/* ============================================================================
   SNEK MULTI-SERVER SAAS CONTROL CENTER — MULTI-THEME DESIGN SYSTEM
   Themes:
   1. [data-theme="dark"]    — Obsidian Slate (Default Linear/Vercel Dark)
   2. [data-theme="light"]   — Crisp Alabaster White (Clean Modern Light)
   3. [data-theme="crimson"] — Dark Crimson Blood (Vampiric Obsidian & Red)
   ============================================================================ */

:root,
[data-theme="dark"] {
  --bg-app: #090a0f;
  --bg-sidebar: #0e1017;
  --bg-surface: #131620;
  --bg-elevated: #1a1e2b;
  --bg-input: #0d0f16;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.15);
  --accent-text: #fda4af;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-input: #f8fafc;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --accent: #0f172a;
  --accent-hover: #1e293b;
  --accent-soft: rgba(15, 23, 42, 0.08);
  --accent-text: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.12);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);

  --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.06);
}

[data-theme="crimson"] {
  --bg-app: #090305;
  --bg-sidebar: #110508;
  --bg-surface: #17070b;
  --bg-elevated: #220a10;
  --bg-input: #0d0306;

  --border-subtle: rgba(244, 63, 94, 0.14);
  --border-strong: rgba(244, 63, 94, 0.32);

  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.18);
  --accent-text: #fda4af;

  --text-primary: #fff1f2;
  --text-secondary: #fecdd3;
  --text-muted: #9f5866;

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.2);

  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   REFINED SAAS HOME PAGE & ZERO-TRUST OAUTH2 LANDING EXPERIENCE
   ============================================================================ */
.auth-gate-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.14) 0%, transparent 52%),
    radial-gradient(circle at 85% 35%, rgba(88, 101, 242, 0.08) 0%, transparent 45%),
    var(--bg-app);
}

.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.landing-nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .landing-nav-links {
    display: none;
  }
  .landing-navbar {
    padding: 0 18px;
  }
}

.landing-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.landing-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}

.landing-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.landing-hero p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 30px;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-discord-hero {
  justify-content: center;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  background: #5865F2;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-discord-hero:hover {
  background: #4752C4;
  transform: translateY(-1px);
}

.btn-invite-hero {
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-invite-hero:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.landing-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 44px 0 56px;
}

.landing-metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.landing-metric-box .lm-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.landing-metric-box .lm-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.landing-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.landing-section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.landing-section-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.landing-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.landing-feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.lf-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border-strong);
}

.landing-feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.landing-feature-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.landing-cmd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.landing-cmd-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.auth-alert-banner {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--text-primary);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto 24px;
  max-width: 680px;
  text-align: left;
}

.auth-setup-drawer {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.auth-setup-drawer summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.landing-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================================
   TOP SAAS HEADER BAR
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.brand-tag {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* Server Switcher Dropdown in Header */
.server-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

.server-select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  min-width: 190px;
}

/* Topbar Right: Theme Switcher + Professional Profile Dropdown */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switcher {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}

.theme-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.theme-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Professional Top-Right User Profile Dropdown */
.profile-dropdown-wrap {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.profile-trigger:hover {
  border-color: var(--accent);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
}

.profile-trigger-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.profile-trigger-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-trigger-role {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-text);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 500;
}

.profile-menu.open {
  display: flex;
}

.profile-menu-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.profile-menu-header .pm-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-menu-header .pm-handle {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.profile-menu-item.danger {
  color: var(--danger);
}

.profile-menu-item.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ============================================================================
   APP SHELL: LEFT SIDEBAR + MAIN WORKSPACE
   ============================================================================ */
.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  flex: 1;
  min-height: calc(100vh - 64px);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px !important;
  }
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0 10px;
  margin: 12px 0 6px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--border-strong);
}

/* Server Dock inside Sidebar */
.guild-dock-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.guild-dock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.guild-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.guild-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.guild-role-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================================
   MAIN CONTENT AREA & TABS
   ============================================================================ */
.workspace {
  padding: 28px 32px 64px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-title h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.page-title p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Metric Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
}

/* Panels */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.panel-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--border-strong);
}

/* Toggle Switch Matrix */
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 13px 16px;
  border-radius: 10px;
}

.toggle-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-info p {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* Clean Switch */
.snek-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.snek-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  transition: 0.2s ease;
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: 0.2s ease;
}

.snek-switch input:checked + .slider {
  background-color: var(--accent);
  border-color: var(--accent);
}

.snek-switch input:checked + .slider::before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Inputs & Form Grid */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.form-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
}

.form-box label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-box input,
.form-box select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  outline: none;
}

/* Buttons */
.btn {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn.secondary:hover:not(:disabled) {
  background: var(--border-subtle);
}

.btn.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}

.btn.danger:hover,
.btn.danger.active {
  background: var(--danger);
  color: #ffffff;
}

/* Lists & Rows */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 15px;
  gap: 12px;
}

.row-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}

.row-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--text-secondary);
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Auth Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
