@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #07080b;
  --bg-card: rgba(11, 14, 20, 0.88);
  --bg-card-hover: rgba(16, 20, 28, 0.94);
  --border-color: rgba(255, 255, 255, 0.065);
  --border-glow: rgba(255, 255, 255, 0.12);
  --retro-panel: #0d1117;
  --retro-panel-alt: #111827;
  --retro-accent: #7ef0c8;
  --retro-gold: #f3c86b;
  --text-primary: #f1f5f9;
  --text-secondary: #8590a2;
  --discord-blurple: #4f59d9;
  --discord-hover: #3f49c4;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #d97706;
  --accent-cyan: #0ea5e9;
  --glow-blurple: rgba(0, 0, 0, 0.4);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --retro-radius: 10px 0 10px 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Orbitron', 'Outfit', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(126, 240, 200, 0.04), rgba(126, 240, 200, 0.01)),
    radial-gradient(at 20% 10%, rgba(25, 30, 42, 0.2) 0px, transparent 60%),
    radial-gradient(at 80% 90%, rgba(15, 18, 26, 0.25) 0px, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, transparent 1px, transparent 14px);
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 24px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(126, 240, 200, 0.04), transparent 30%, transparent 70%, rgba(79, 89, 217, 0.04));
}

.container {
  width: 100%;
  max-width: 520px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(126, 240, 200, 0.22);
  border-radius: var(--retro-radius);
  padding: 32px 28px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.85);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--retro-accent), var(--discord-blurple), transparent);
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

.icon-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--discord-blurple);
  font-size: 38px;
  box-shadow: 0 0 20px var(--glow-blurple);
}

.icon-wrapper.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.icon-wrapper.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.icon-wrapper.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

p.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--retro-radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(126, 240, 200, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, opacity 0.22s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 10px 18px -14px rgba(0,0,0,0.8);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-discord {
  background: linear-gradient(135deg, #5a67db 0%, #3d49be 42%, #2c347d 100%);
  color: #f8fbff;
  border-color: rgba(126, 240, 200, 0.28);
  box-shadow: 0 12px 24px -18px rgba(99, 115, 255, 0.9), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #7684ff 0%, #5866e3 42%, #4652d3 100%);
  box-shadow: 0 18px 28px -18px rgba(99, 115, 255, 0.95), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-invite {
  background: linear-gradient(135deg, #18c382 0%, #0ca76d 100%);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(24, 195, 130, 0.85), inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn-invite:hover {
  background: linear-gradient(135deg, #22d290 0%, #0ca76d 100%);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(148, 163, 184, 0.22);
}

.btn-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.btn-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.32);
  color: #fcd34d;
}

.btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  margin-top: 24px;
}

.badge-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-status.inactive {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* Forms */
.form-group {
  text-align: left;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px 0 8px 0;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(126, 240, 200, 0.2);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--discord-blurple);
  box-shadow: 0 0 0 3px rgba(126, 240, 200, 0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Dashboard Layout */
.dashboard-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 32px;
  border-radius: 28px;
  background: rgba(8, 10, 16, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dashboard-container::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 180px;
  background: radial-gradient(circle at top left, rgba(79, 89, 217, 0.28), transparent 60%);
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(126, 240, 200, 0.2);
  border-radius: var(--retro-radius);
  background: linear-gradient(145deg, rgba(11, 16, 25, 0.96), rgba(18, 24, 34, 0.8));
  box-shadow: 0 24px 40px -30px rgba(0,0,0,0.98), inset 0 1px 0 rgba(255,255,255,0.04);
}

.dashboard-header .brand-title {
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.dashboard-header .subtitle {
  max-width: 560px;
}

.dashboard-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--retro-radius);
  padding: 12px;
  background: rgba(9, 12, 18, 0.78);
  align-items: center;
  flex-wrap: wrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 18px 30px -26px rgba(0,0,0,0.9);
}

.dashboard-nav .btn-pill {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148, 163, 184, 0.09);
  color: #dbe3f1;
}

.dashboard-nav .btn-pill.active,
.dashboard-nav .btn-pill:hover {
  background: linear-gradient(135deg, rgba(99, 115, 255, 0.28), rgba(16, 185, 129, 0.14));
  border-color: rgba(120, 136, 255, 0.64);
  box-shadow: 0 10px 18px -14px rgba(99, 115, 255, 0.85);
}

.dashboard-user-menu {
  background: linear-gradient(135deg, rgba(14, 18, 26, 0.95), rgba(16, 22, 31, 0.8));
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 26px -18px rgba(0,0,0,0.8);
}

.dashboard-section-intro {
  padding: 0 6px;
}

.dashboard-section-intro h2 {
  text-shadow: 0 0 18px rgba(79, 89, 217, 0.18);
}

.server-grid-container {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 15, 22, 0.9), rgba(9, 12, 18, 0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.server-card {
  min-height: 82px;
  background: linear-gradient(135deg, rgba(19, 25, 38, 0.85), rgba(12, 16, 25, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.07);
  border-radius: 10px 0 10px 0;
  box-shadow: 0 10px 18px -16px rgba(0,0,0,0.85);
}

.server-card.selected {
  border-color: rgba(111, 132, 255, 0.75);
  background: linear-gradient(135deg, rgba(79, 89, 217, 0.18), rgba(12, 18, 28, 0.9));
  box-shadow: 0 12px 26px -18px rgba(79, 89, 217, 0.8);
}

.card {
  background: linear-gradient(180deg, rgba(12, 17, 24, 0.92), rgba(10, 14, 20, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.09);
  box-shadow: 0 18px 34px -24px rgba(0,0,0,0.9);
}

.dashboard-grid .card {
  padding: 28px 24px;
}

.server-appeals-panel {
  margin-top: 24px;
  padding: 24px;
}

.server-appeals-header,
.server-appeals-tools,
.server-appeal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-appeals-header {
  margin-bottom: 12px;
}

.server-appeals-header h2 {
  margin: 0;
  font-size: 20px;
}

.server-appeals-tools {
  color: var(--text-secondary);
  font-size: 12px;
}

.server-appeals-list {
  display: grid;
}

.server-appeal-item {
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}

.server-appeal-heading {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.server-appeal-heading code {
  color: var(--text-secondary);
  font-size: 12px;
}

.server-appeal-meta {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

.server-appeal-reason {
  margin: 12px 0 0;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.server-appeal-error {
  color: var(--accent-red);
}

.form-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.96), rgba(12, 16, 25, 0.88));
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.btn {
  box-shadow: 0 12px 22px -18px rgba(79, 89, 217, 0.8);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(148, 163, 184, 0.2);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--discord-blurple);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.guild-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Server Selection Card Grid Styling */
.server-grid-container {
  margin-bottom: 32px;
}

.server-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.server-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.server-card.selected {
  border-color: var(--discord-blurple);
  background: rgba(88, 101, 242, 0.12);
  box-shadow: 0 0 15px var(--glow-blurple);
}

.server-card.missing-bot {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--discord-blurple);
  flex-shrink: 0;
}

.server-info {
  flex-grow: 1;
  overflow: hidden;
}

.server-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.server-status {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.server-status.ready {
  color: var(--accent-green);
}

.server-status.missing {
  color: var(--accent-red);
}

.server-status.dev-member {
  color: #60a5fa;
}

.server-status.dev-only-status {
  color: #c084fc;
}

.server-card.developer-only-server {
  border-color: rgba(192, 132, 252, 0.28);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.16), rgba(12, 16, 25, 0.84));
}

/* Universal Navigation Bar & Action Buttons */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding: 12px 18px;
  border-radius: var(--retro-radius);
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(126, 240, 200, 0.2);
  width: 100%;
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(126, 240, 200, 0.16);
  backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link.active {
  color: #fff;
  background: var(--discord-blurple);
  border-color: var(--discord-blurple);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
  font-weight: 700;
}

.nav-link-admin {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(6, 182, 212, 0.25)) !important;
  border-color: rgba(88, 101, 242, 0.5) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.nav-link-admin:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.45), rgba(6, 182, 212, 0.45)) !important;
  border-color: var(--discord-blurple) !important;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.6) !important;
}

/* Landing Page Overview & Feature Grid Styles */
.landing-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-header {
  text-align: center;
  margin-bottom: 48px;
}

.gradient-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--discord-blurple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
  }
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--discord-blurple), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px var(--glow-blurple);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-points {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.feature-points li + li {
  margin-top: 6px;
}

.steps-section {
  background: rgba(18, 22, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 40px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-item {
  text-align: left;
  padding: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.2);
  color: var(--discord-blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* MOBILE & TABLET RESPONSIVE VISION (Breakpoints: 768px & 480px)     */
/* ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  body {
    padding: 14px 10px;
  }

  .container, .landing-container, .dashboard-container, .commands-container, .faq-container {
    width: 100%;
    padding: 0;
  }

  .card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  /* Nav Bar Mobile Optimization */
  .nav-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
    padding-bottom: 14px !important;
  }

  .nav-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
  }

  .nav-link {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 13px;
    text-align: center;
  }

  /* Hero & Typography Mobile */
  .gradient-title {
    font-size: clamp(24px, 6vw, 34px) !important;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.5;
    margin-bottom: 20px !important;
  }

  /* CTA Buttons */
  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Stats & Ticker */
  .hero-stats {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 24px !important;
  }

  .stat-pill {
    width: 100%;
    padding: 10px 16px;
    justify-content: flex-start;
  }

  .chains-ticker {
    gap: 6px !important;
    margin: 16px 0 20px !important;
  }

  .chain-chip {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Grids & Cards */
  .overview-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-bottom: 32px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .steps-section {
    padding: 24px 16px;
    margin-bottom: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .step-item {
    padding: 10px;
  }

  /* Dashboard Mobile */
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .user-profile {
    width: 100%;
    justify-content: space-between;
  }

  .server-grid {
    grid-template-columns: 1fr !important;
  }

  .server-card {
    padding: 12px;
  }

  .server-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  /* Filter Pills Horizontal Scroller */
  .search-filter-bar {
    flex-direction: column;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .filter-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .filter-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Table Mobile Safe-Scroll */
  .options-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .options-table td, .options-table th {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Chain Grid in Command Cards */
  .chain-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .chain-badge {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px 14px;
  }

  .brand-title {
    font-size: 22px !important;
  }

  .icon-wrapper {
    width: 68px;
    height: 68px;
    font-size: 30px;
    margin-bottom: 18px;
  }

  .chain-grid {
    grid-template-columns: 1fr !important;
  }

  input, textarea, select {
    padding: 11px 13px;
    font-size: 13px;
  }

  .faq-question {
    padding: 16px 14px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 14px 16px;
    font-size: 13px;
  }
}

/* ── Dev Panel & Compact UI Component Styles ─────────────────────────────── */
.btn-sm {
  width: auto !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all 0.15s ease !important;
}

.btn-sm:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px);
}

.btn-pill {
  border-radius: 10px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-pill.active, .btn-pill:hover {
  background: rgba(88, 101, 242, 0.25) !important;
  border-color: var(--discord-blurple) !important;
  color: #fff !important;
}

.btn-action-sweep {
  background: rgba(240, 185, 11, 0.12) !important;
  border-color: rgba(240, 185, 11, 0.4) !important;
  color: #f0b90b !important;
}
.btn-action-sweep:hover {
  background: rgba(240, 185, 11, 0.25) !important;
}

.btn-action-set {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #60a5fa !important;
}
.btn-action-set:hover {
  background: rgba(59, 130, 246, 0.25) !important;
}

.btn-action-give {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
}
.btn-action-give:hover {
  background: rgba(16, 185, 129, 0.25) !important;
}

.btn-action-take {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}
.btn-action-take:hover {
  background: rgba(239, 68, 68, 0.25) !important;
}

/* Compact dashboard controls: buttons size to their labels instead of filling panels. */
.dashboard-container .btn {
  width: auto !important;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
}

.dashboard-container .btn-pill {
  border-radius: 10px !important;
  padding: 7px 11px !important;
  font-size: 12px !important;
}

.dashboard-container button:not(.btn):not(.btn-sm):not(.btn-pill) {
  width: auto !important;
}

/* Dashboard workspace refresh */
.dashboard-kicker, .section-eyebrow, .profile-overline {
  color: #6f82a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.dashboard-user-menu {
  min-width: 190px;
}

.logout-link {
  color: #fca5a5;
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.logout-link:hover {
  color: #fecaca;
}

.dashboard-utility-link {
  margin-left: auto;
}

.dashboard-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 4px 0 24px;
}

.dashboard-section-intro h2 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.dashboard-section-intro p:not(.section-eyebrow) {
  color: var(--text-secondary);
  font-size: 13px;
}

.section-intro-mark {
  color: rgba(148, 163, 184, 0.35);
  font-family: 'Outfit', sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 0.8;
}

.dashboard-page-section {
  animation: dashboard-fade-in 0.25s ease both;
}

@keyframes dashboard-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.server-grid-container {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.55);
}

.server-card {
  min-height: 82px;
  background: rgba(19, 25, 38, 0.72);
}

.profile-layout, .billing-layout {
  display: grid;
  gap: 18px;
}

.profile-hero-card, .profile-actions-card, .billing-status-card, .billing-side-card {
  background: linear-gradient(135deg, rgba(21, 29, 45, 0.94), rgba(10, 14, 22, 0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
}

.profile-avatar-ring {
  width: 82px;
  height: 82px;
  padding: 4px;
  border-radius: 24px;
  background: linear-gradient(145deg, #28c7b7, #4f59d9);
  flex-shrink: 0;
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
}

.profile-hero-card h3, .profile-actions-card h3, .billing-status-card h3, .billing-side-card h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.profile-muted {
  color: var(--text-secondary);
  font-size: 13px;
}

.profile-auth-badge, .mode-badge {
  margin-left: auto;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  white-space: nowrap;
}

.profile-auth-badge {
  color: #5eead4;
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(45, 212, 191, .25);
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-info-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}

.dashboard-info-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  margin-bottom: 7px;
}

.dashboard-info-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.profile-summary-card {
  padding: 21px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}

.profile-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-summary-heading .section-eyebrow { margin-bottom: 0; }
.profile-summary-card h3 { font-size: 19px; margin-bottom: 6px; }
.profile-status-dot, .profile-summary-number { color: #5eead4; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.profile-summary-number { color: var(--text-secondary); }

.profile-progress-track {
  height: 5px;
  margin: 18px 0 12px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.profile-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #28c7b7, #4f59d9);
}

.profile-summary-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.profile-summary-meta strong { color: var(--text-primary); font-size: 11px; }
.profile-action-button { margin-top: 18px; }

.profile-actions-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.profile-list-layout {
  border-top: 1px solid rgba(255,255,255,.1);
}

.profile-list-section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.profile-identity-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 0 16px;
}

.profile-identity-row .profile-avatar-ring {
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 17px;
  background: linear-gradient(145deg, #41c9a2, #d7ae5d);
}

.profile-identity-row .profile-avatar-ring img {
  border-radius: 14px;
}

.profile-identity-copy { min-width: 0; }
.profile-identity-copy h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.profile-identity-copy .profile-muted { margin: 2px 0 0; }
.profile-identity-copy .profile-overline { margin: 0 0 3px; font-size: 9px; }
.profile-identity-row .profile-auth-badge { margin-left: auto; align-self: center; }
.profile-equipped-title { display: inline-block; margin-top: 6px; }
.profile-equipped-title[hidden] { display: none; }
.header-equipped-title { display: inline-flex; margin: 4px 0 2px; font-size: 10px; padding: 2px 7px; }
.header-equipped-title[hidden] { display: none; }

.profile-list-heading {
  margin: 0 0 4px;
  color: var(--text-secondary);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.profile-record-list { margin: 0; }
.profile-record-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 2px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.profile-record-row dt,
.profile-record-row > span:first-child {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.profile-record-row dd,
.profile-record-row > strong {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-title-redeem-row {
  display: grid;
  grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 11px 2px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.profile-title-redeem-row > label { color: var(--text-secondary); font-size: 12px; }
.profile-title-redeem-row > div { display: flex; gap: 8px; }
.profile-title-redeem-row input { min-width: 0; flex: 1; text-transform: uppercase; }
.profile-title-redeem-row button { flex: 0 0 auto; }
.profile-title-redeem-row > p { grid-column: 2; min-height: 17px; margin: 0; font-size: 12px; }
.profile-owned-title-content { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.profile-owned-title-details { display: grid; gap: 2px; min-width: 0; }
.profile-owned-title-row.is-equipped { background: rgba(255,255,255,.025); }
.profile-owned-title-row.is-equipped > span:first-child { color: var(--retro-accent); font-weight: 700; }
.profile-owned-title-row > div span { color: var(--text-secondary); font-size: 11px; }
.profile-title-equip-button { flex: 0 0 auto; padding: 6px 10px; }
.profile-title-action-status { min-height: 16px; margin: 4px 0 0; font-size: 12px; }
.profile-owned-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--profile-title-color) 65%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--profile-title-color) 12%, transparent);
  color: var(--text-primary);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-owned-title-badge.header-equipped-title { margin: 4px 0 2px; padding: 2px 7px; font-size: 10px; }
.profile-title-image { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }

.profile-list-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(255,255,255,.055);
}

.profile-action-button { margin: 0; white-space: nowrap; }
.profile-control-row { grid-template-columns: minmax(0, 1fr) auto; }
.profile-control-row > div:first-child { display: grid; gap: 2px; }
.profile-control-row > div:first-child strong { font-size: 13px; }
.profile-control-row > div:first-child span { font-size: 11px; }
.profile-inline-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.profile-inline-actions input[readonly] { min-width: 220px; flex: 1 1 280px; padding: 9px 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: rgba(0,0,0,.3); color: var(--text-primary); font: inherit; font-size: 12px; }
#profile-referral-status { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; }
.profile-export-row { grid-template-columns: minmax(0, 1fr) auto; }
.profile-export-row .profile-disclosure,
.profile-export-row #data-export-status { grid-column: 1 / -1; }
.profile-disclosure { color: var(--text-secondary); font-size: 12px; }
.profile-disclosure summary,
.profile-delete-disclosure summary { cursor: pointer; }
.profile-disclosure summary { width: fit-content; padding: 3px 0; color: var(--retro-accent); }
.profile-disclosure p { max-width: 900px; margin: 7px 0 0; line-height: 1.6; }
.profile-export-row #data-export-status { margin: 0; font-size: 12px; }

.profile-delete-disclosure {
  margin-top: 8px;
  border-top: 1px solid rgba(239,68,68,.24);
  border-bottom: 1px solid rgba(239,68,68,.24);
  color: var(--text-primary);
}

.profile-delete-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  color: #fecaca;
}

.profile-delete-disclosure summary > span:first-child { display: grid; gap: 2px; }
.profile-delete-disclosure summary small { color: var(--text-secondary); font-size: 11px; }
.profile-delete-label { color: #fca5a5; font-size: 9px; font-weight: 800; white-space: nowrap; }
.profile-delete-content { padding: 4px 0 16px; }
.profile-delete-content > p { margin-bottom: 10px; }
.profile-delete-warning { padding: 12px 14px; border: 1px solid rgba(248,113,113,.3); border-radius: 6px; background: rgba(127,29,29,.1); color: #fecaca; font-size: 12px; line-height: 1.6; }
.profile-delete-warning ul { margin: 8px 0 0 18px; padding: 0; }
.profile-delete-acknowledge { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; color: var(--text-secondary); font-size: 12px; }
.profile-delete-acknowledge input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.profile-delete-confirm-label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; }
.profile-delete-confirm-label strong { color: #fecaca; }
.profile-delete-content > input[type="text"] { width: 100%; margin-bottom: 10px; }
.profile-delete-content > button { background: #991b1b; border-color: #ef4444; color: #fff; }
.profile-delete-content > #delete-data-status { margin: 8px 0 0; font-size: 12px; }

.dashboard-logout-button {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5;
  white-space: nowrap;
}

.dashboard-logout-button:hover {
  background: rgba(239, 68, 68, .2);
}

.billing-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

.billing-status-top, .billing-plan-row, .billing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.billing-status-top {
  justify-content: space-between;
}

.billing-plan-row {
  margin: 34px 0 28px;
}

.billing-plan-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #5eead4;
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(45, 212, 191, .25);
  font-size: 27px;
}

.billing-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: 18px;
}

.billing-actions .btn {
  flex: 1;
}

.billing-message {
  min-height: 17px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.mode-badge.live { color: #fca5a5; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); }
.mode-badge.test { color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); }
.mode-badge.unavailable { color: #cbd5e1; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.2); }

.billing-feature {
  display: flex;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.billing-feature span {
  color: #5eead4;
  font-size: 11px;
  font-weight: 800;
}

.billing-feature p { font-size: 13px; line-height: 1.45; }
.billing-feature small { color: var(--text-secondary); font-size: 11px; }

@media (max-width: 720px) {
  .dashboard-section-intro { align-items: flex-start; }
  .section-intro-mark { display: none; }
  .billing-layout { grid-template-columns: 1fr; }
  .profile-actions-card { align-items: flex-start; flex-direction: column; }
  .dashboard-logout-button { width: 100% !important; }
}

@media (max-width: 480px) {
  .profile-hero-card { align-items: flex-start; flex-wrap: wrap; }
  .profile-auth-badge { margin-left: 0; width: 100%; text-align: center; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .profile-overview-grid { grid-template-columns: 1fr; }
  .billing-actions { align-items: stretch; flex-direction: column; }
  .dashboard-section-intro h2 { font-size: 24px; }
}

/* Full dashboard surface normalization */
.dashboard-container {
  max-width: 1180px;
  padding: 8px 0 42px;
}

.dashboard-container .dashboard-header {
  padding: 22px 0 26px;
}

.dashboard-container .dashboard-header h1 {
  letter-spacing: -.8px;
}

.dashboard-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 10px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px;
  background: rgba(9, 13, 21, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}

.dashboard-nav .btn-pill {
  min-height: 34px;
  border-radius: 7px !important;
  border-color: transparent !important;
}

.dashboard-nav .btn-pill.active {
  background: #2836a8 !important;
  border-color: #5261ec !important;
  box-shadow: 0 5px 16px rgba(79,89,217,.28);
}

.dashboard-nav .btn-sm {
  min-height: 30px;
  background: rgba(255,255,255,.035);
}

.dashboard-container .card {
  border-radius: 14px;
  border-color: rgba(255,255,255,.08);
  background: rgba(13, 18, 29, .86);
  box-shadow: 0 18px 46px rgba(0,0,0,.2);
}

.dashboard-container .card:hover {
  transform: none;
  border-color: rgba(113, 128, 255, .2);
}

.dashboard-container input,
.dashboard-container textarea,
.dashboard-container select {
  background: rgba(5, 8, 14, .72) !important;
  border-color: rgba(148,163,184,.16) !important;
  border-radius: 8px !important;
}

.dashboard-container label {
  color: #a4afc3;
  letter-spacing: 1px;
}

#main-content > .card:first-child {
  border-top: 2px solid rgba(45,212,191,.72);
}

#main-content > .card:last-child {
  border-top: 2px solid rgba(96,165,250,.72);
}

#main-content .form-group > select + input,
#main-content .form-group > select {
  margin-bottom: 8px;
}

#recent-list > div {
  padding: 13px 0 !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
}

.dev-workspace {
  animation: dashboard-fade-in .25s ease both;
}

.dev-workspace > .card:first-child {
  padding: 24px !important;
  border-top: 2px solid #7c83ff;
  background: linear-gradient(135deg, rgba(26,31,59,.94), rgba(11,15,24,.94)) !important;
}

.dev-panel-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 5px;
}

/* Keep server selection visible while the selected server workspace stays nearby. */
#guild-security-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

#guild-security-section > .dashboard-section-intro {
  grid-column: 1 / -1;
}

#guild-security-section > .server-grid-container {
  grid-column: 1;
  grid-row: 2 / span 2;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  margin-bottom: 0;
  padding: 16px;
}

#guild-security-section .server-grid-header {
  display: block;
  margin-bottom: 12px;
}

#guild-security-section .server-grid-header h2 {
  font-size: 15px !important;
  margin-bottom: 5px;
}

#guild-security-section .server-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}

#guild-security-section .server-card {
  min-height: 68px;
  padding: 11px;
  gap: 10px;
}

#guild-security-section .server-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 14px;
}

#guild-security-section .server-name {
  font-size: 13px;
}

#guild-security-section .server-status {
  font-size: 10px;
  line-height: 1.35;
}

#guild-security-section > #bot-invite-banner,
#guild-security-section > #main-content {
  grid-column: 2;
  min-width: 0;
}

#guild-security-section > #bot-invite-banner {
  grid-row: 2;
  margin-bottom: 0;
}

#guild-security-section > #main-content {
  grid-row: 3;
  align-self: start;
}

@media (max-width: 900px) {
  #guild-security-section {
    display: block;
  }

  #guild-security-section > .dashboard-section-intro {
    margin-bottom: 20px;
  }

  #guild-security-section > .server-grid-container {
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }

  #guild-security-section > #bot-invite-banner {
    margin-bottom: 18px;
  }
}

.dev-free-grant-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.8fr);
  gap: 14px 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(45,212,191,.2);
  border-radius: 10px;
  background: rgba(20,184,166,.06);
}

.dev-free-grant-card h3 { font-size: 16px; margin-bottom: 4px; }
.dev-free-grant-card p:not(.section-eyebrow) { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

.dev-free-grant-form {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.1fr .6fr;
  gap: 8px;
}

.dev-free-grant-form input,
.dev-free-grant-form select {
  min-width: 0;
  padding: 9px 10px !important;
  font-size: 12px !important;
}

.dev-free-grant-form .btn { min-height: 34px !important; padding: 7px 10px !important; font-size: 11px !important; }
.dev-free-status { grid-column: 2; min-height: 16px; color: var(--text-secondary); font-size: 12px; }
.dev-free-status.success { color: #5eead4; }
.dev-free-status.error { color: #fca5a5; }

.dev-workspace .card {
  border-radius: 12px !important;
  background: rgba(13,18,29,.9) !important;
}

.dev-workspace .btn-pill {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #bdc7d8;
}

.dev-workspace .btn-pill.active,
.dev-workspace .btn-pill:hover {
  background: rgba(79,89,217,.28) !important;
  border-color: rgba(112,124,255,.7) !important;
  color: #fff !important;
}

.dev-workspace table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
}

.dev-workspace table th {
  background: rgba(255,255,255,.045);
  color: #aeb9ca !important;
  font-size: 11px !important;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.dev-workspace table td,
.dev-workspace table th {
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.dev-workspace .form-group[style*="background"],
.dev-workspace div[style*="background: #07090e"],
.dev-workspace div[style*="background: #0c0f17"] {
  background: rgba(7,11,18,.74) !important;
  border-color: rgba(255,255,255,.07) !important;
}

.dev-workspace [style*="font-family: monospace"],
.dev-workspace #recheck-console-output {
  background: #060910 !important;
  border: 1px solid rgba(112,124,255,.25) !important;
  border-radius: 9px !important;
}

.dev-workspace [style*="grid-template-columns"] {
  gap: 14px !important;
}

.dev-workspace .btn-sm {
  border-radius: 7px !important;
  min-height: 30px;
}

.dev-workspace .badge-status,
.dev-workspace span[style*="border-radius: 12px"] {
  border-radius: 6px !important;
}

@media (max-width: 768px) {
  .dashboard-container { padding-top: 0; }
  .dashboard-nav { position: static; overflow-x: auto; flex-wrap: nowrap !important; }
  .dashboard-nav > * { flex-shrink: 0; }
  .dashboard-nav .dashboard-utility-link { margin-left: 0; }
  .dev-workspace > .card:first-child > div:first-child { align-items: flex-start !important; flex-direction: column; }
  .dev-workspace .options-table,
  .dev-workspace table { display: block; overflow-x: auto; }
  .dev-free-grant-card { grid-template-columns: 1fr; }
  .dev-free-grant-form { grid-template-columns: 1fr 1fr; }
  .dev-free-status { grid-column: 1 / -1; }
}

/* Discord-inspired dashboard finish */
.dashboard-container {
  --field-line: rgba(255, 255, 255, 0.08);
  color: #dbdee1;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.dashboard-container .dashboard-header {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: #232428;
  box-shadow: none;
}

.dashboard-container .dashboard-header h1,
.dashboard-container .dashboard-section-intro h2,
.dashboard-container .section-eyebrow,
.dashboard-container .dashboard-kicker {
  color: #f2f3f5;
  font-family: 'Outfit', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.dashboard-container .dashboard-header h1 {
  letter-spacing: 0;
  text-shadow: none;
}

.dashboard-container .dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px;
  padding: 8px !important;
  margin-bottom: 24px;
  background: #232428;
  box-shadow: none;
}

.dashboard-nav-tabs,
.dashboard-nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dashboard-nav-tabs {
  padding: 3px;
  border-radius: 7px;
  background: #1e1f22;
}

.dashboard-nav-tools {
  margin-left: auto;
  gap: 6px;
}

.dashboard-container .dashboard-nav .btn-pill {
  min-height: 34px;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  border-right: 0 !important;
  color: #b5bac1;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-container .dashboard-nav .btn-pill.active,
.dashboard-container .dashboard-nav .btn-pill:hover {
  color: #fff !important;
  background: #404249 !important;
  border-color: transparent !important;
  box-shadow: none;
}

.dashboard-container .dashboard-nav .btn-pill.active {
  background: #5865f2 !important;
}

.dashboard-container .dashboard-nav-tools .btn-sm {
  min-height: 34px;
  padding: 7px 11px !important;
  color: #c6c9ce;
  border: 1px solid transparent;
  border-radius: 6px !important;
  background: transparent;
  text-decoration: none;
}

.dashboard-container .dashboard-nav-tools .btn-sm:hover {
  color: #fff;
  background: #35363c;
}

.dashboard-container #auto-refresh-badge {
  gap: 7px;
  color: #b5bac1 !important;
  background: #1e1f22 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  cursor: default;
}

.dashboard-container #auto-refresh-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.12);
}

.dashboard-container .card,
.dashboard-container .server-grid-container {
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #2b2d31;
  box-shadow: none;
}

.dashboard-container .card::before {
  display: none;
}

.dashboard-container .server-card {
  border-radius: 7px;
  border-color: rgba(255, 255, 255, 0.07);
  background: #232428;
}

.dashboard-container .server-card:hover,
.dashboard-container .server-card.selected {
  border-color: #5865f2;
  background: #292c40;
  box-shadow: inset 3px 0 0 #5865f2;
}

.dashboard-container label {
  color: #b5bac1;
  letter-spacing: 0.04em;
}

.dashboard-container input,
.dashboard-container textarea,
.dashboard-container select {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  color: #dbdee1;
  background-color: #1e1f22 !important;
  box-shadow: none;
}

.dashboard-container select {
  appearance: none;
  padding-right: 38px !important;
  background-image: linear-gradient(45deg, transparent 50%, #b5bac1 50%), linear-gradient(135deg, #b5bac1 50%, transparent 50%), linear-gradient(90deg, transparent, transparent) !important;
  background-position: calc(100% - 17px) 50%, calc(100% - 11px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 34px 100%;
  background-repeat: no-repeat;
}

.dashboard-container input:focus,
.dashboard-container textarea:focus,
.dashboard-container select:focus {
  border-color: #5865f2 !important;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.22);
}

.dashboard-container .btn {
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.dashboard-container .btn-secondary {
  color: #dbdee1;
  border-color: rgba(255, 255, 255, 0.1);
  background: #404249;
}

.dashboard-container .badge-status,
.dashboard-container .btn-sm {
  border-radius: 6px !important;
}

@media (max-width: 768px) {
  .dashboard-container .dashboard-nav {
    align-items: stretch;
    flex-direction: column;
    overflow: visible;
  }

  .dashboard-container .dashboard-header,
  .dashboard-container .dashboard-nav,
  .dashboard-container .dashboard-nav-tabs,
  .dashboard-container .dashboard-nav-tools {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard-container .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-container table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: normal;
  }

  .dashboard-container th,
  .dashboard-container td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-container .dashboard-nav-tabs {
    flex-wrap: wrap;
  }

  .dashboard-container .dashboard-nav-tools {
    align-items: stretch;
  }

  .dashboard-container .dashboard-nav-tools > * {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .dashboard-nav-tabs {
    width: 100%;
  }

  .dashboard-nav-tabs .btn-pill {
    flex: 1 1 0;
  }

  .dashboard-nav-tools {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .dashboard-nav-tools > * {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dashboard-container .dashboard-nav .btn-pill {
    border-right: 0 !important;
  }
}

body.dashboard-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background: #1e1f22;
  overflow-x: hidden;
}

body.dashboard-page::before { display: none; }

body.dashboard-page .dashboard-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.dashboard-page .dashboard-container::before { display: none; }

@media (max-width: 768px) {
  body.dashboard-page .dashboard-container { padding: 14px 12px 24px; }
  body.dashboard-page .dashboard-header { gap: 12px; padding: 14px; }
  body.dashboard-page .dashboard-nav { margin-bottom: 18px; }
}


