/* =====================================
   DIAMOND MINING — ADVISOR GROWTH ENGINE
   Design System & Layout
   ===================================== */

:root {
  /* Core palette */
  --bg-base: #080c14;
  --bg-surface: #0d1320;
  --bg-card: #111827;
  --bg-card-hover: #151e2d;
  --bg-elevated: #1a2235;
  --bg-input: #0f1824;

  --border-subtle: rgba(96, 165, 250, 0.08);
  --border-default: rgba(96, 165, 250, 0.14);
  --border-accent: rgba(96, 165, 250, 0.3);

  /* Text */
  --text-primary: #f0f4ff;
  --text-secondary: #8b9cbf;
  --text-muted: #4a5a7a;
  --text-accent: #60a5fa;

  /* Accent colors */
  --blue: #60a5fa;
  --blue-dark: #3b82f6;
  --blue-bright: #93c5fd;
  --violet: #a78bfa;
  --violet-dark: #7c3aed;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --orange: #fb923c;

  /* Gem gradient */
  --gem-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  --gem-glow: 0 0 30px rgba(96, 165, 250, 0.2), 0 0 60px rgba(167, 139, 250, 0.1);

  /* Status colors */
  --status-hot: #fb7185;
  --status-warm: #fbbf24;
  --status-cold: #60a5fa;
  --status-booked: #34d399;
  --status-new: #a78bfa;
  --status-nurture: #22d3ee;
  --status-dead: #4a5a7a;

  /* Sidebar */
  --sidebar-width: 240px;

  /* Transitions */
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-gem: 0 0 40px rgba(96, 165, 250, 0.15);
}

/* ===== LIGHT MODE OVERRIDES =====
   Gem gradient, accents, and status colors stay identical.
   Only surface/text/border/shadow tokens are swapped.
   ===================================== */
[data-theme="light"] {
  --bg-base:        #f0f3fa;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f5f7fd;
  --bg-elevated:    #eaecf5;
  --bg-input:       #f5f7fc;

  --border-subtle:  rgba(59, 130, 246, 0.10);
  --border-default: rgba(59, 130, 246, 0.18);
  --border-accent:  rgba(59, 130, 246, 0.42);

  --text-primary:   #0f172a;
  --text-secondary: #334a6e;
  --text-muted:     #64748b;
  --text-accent:    #2563eb;

  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-bright: #3b82f6;

  --shadow-card:     0 2px 12px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 4px 24px rgba(15, 23, 42, 0.12);
  --shadow-gem:      0 0 30px rgba(37, 99, 235, 0.12);
  --gem-glow:        0 0 20px rgba(37, 99, 235, 0.15), 0 0 40px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .sidebar {
  border-right-color: rgba(59, 130, 246, 0.12);
  background: #ffffff;
}

[data-theme="light"] .prospect-drawer {
  background: #ffffff;
  border-left-color: rgba(59, 130, 246, 0.12);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  margin-top: 8px;
}
.theme-toggle:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.theme-toggle-icon { font-size: 13px; }

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  /* Default: block layout for the public landing page */
  display: block;
  height: auto;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(96, 165, 250, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
}
/* Cockpit layout — applied by auth.js when user is authenticated */
body.app-mode {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-accent); }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-gem {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
  animation: gemPulse 4s ease-in-out infinite;
}

@keyframes gemPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.6)); }
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }
.logo-sub { font-size: 10px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 8px 4px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 2px;
}

.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; transition: all var(--transition); }

.nav-item:hover {
  background: rgba(96, 165, 250, 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--gem-gradient);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--rose);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(251, 113, 133, 0); }
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.rep-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.rep-avatar {
  width: 30px; height: 30px;
  background: var(--gem-gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  flex-shrink: 0;
}

.rep-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rep-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.rep-role { font-size: 10px; color: var(--text-muted); }
.rep-status {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 0;
  gap: 16px;
}

.page-header-left { display: flex; flex-direction: column; }
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.page-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ===== KPI Strip ===== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}

.kpi-card:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--kpi-color, var(--gem-gradient));
}

.kpi-label { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.kpi-value { font-size: 26px; font-weight: 800; color: var(--text-primary); margin: 4px 0 2px; letter-spacing: -0.03em; line-height: 1; }
.kpi-delta {
  font-size: 10px;
  font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}
.kpi-delta.up { color: var(--emerald); }
.kpi-delta.down { color: var(--rose); }
.kpi-delta.neutral { color: var(--text-muted); }
.kpi-icon {
  position: absolute;
  right: 12px; top: 12px;
  opacity: 0.15;
  font-size: 22px;
}

/* ===== Section ===== */
.section { padding: 0 28px 20px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-dot {
  width: 6px; height: 6px;
  background: var(--gem-gradient);
  border-radius: 50%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gem-gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: rgba(96, 165, 250, 0.06);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  color: var(--rose);
  border: 1px solid rgba(251, 113, 133, 0.2);
}
.btn-danger:hover {
  background: rgba(251, 113, 133, 0.2);
}

.btn svg { width: 14px; height: 14px; }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-default);
}

/* ===== Table ===== */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table thead {
  background: var(--bg-elevated);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
  cursor: pointer;
}
.data-table tbody tr:hover td {
  background: rgba(96, 165, 250, 0.04);
  color: var(--text-primary);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Score Badges ===== */
.score-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-track {
  width: 50px; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.score-num { font-size: 11px; font-weight: 700; min-width: 24px; }

/* ===== Status Pills ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill-hot { background: rgba(251, 113, 133, 0.12); color: var(--status-hot); }
.pill-warm { background: rgba(251, 191, 36, 0.12); color: var(--status-warm); }
.pill-cold { background: rgba(96, 165, 250, 0.12); color: var(--status-cold); }
.pill-booked { background: rgba(52, 211, 153, 0.12); color: var(--status-booked); }
.pill-new { background: rgba(167, 139, 250, 0.12); color: var(--status-new); }
.pill-nurture { background: rgba(34, 211, 238, 0.12); color: var(--status-nurture); }
.pill-dead { background: rgba(74, 90, 122, 0.12); color: var(--status-dead); }
.pill-contacted { background: rgba(251, 146, 60, 0.12); color: var(--orange); }
.pill-engaged { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }

/* ===== Alert Queue ===== */
.alert-queue { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.alert-item:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
}
.alert-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.alert-text { flex: 1; }
.alert-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.alert-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.alert-time { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* ===== Top Queue ===== */
.top-queue { display: flex; flex-direction: column; gap: 6px; }
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.queue-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(2px);
}
.queue-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  min-width: 20px;
}
.queue-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.queue-info { flex: 1; min-width: 0; }
.queue-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.queue-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.queue-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  min-width: 32px;
  text-align: right;
}
.queue-action {
  padding: 4px 10px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(96, 165, 250, 0.2);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.queue-action:hover {
  background: rgba(96, 165, 250, 0.2);
}

/* ===== Grid layouts ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-12 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.grid-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ===== Filters bar ===== */
.filters-bar {
  display: flex;
  gap: 8px;
  padding: 0 28px 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--border-accent);
  color: var(--blue);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1;
  max-width: 280px;
}
.search-input-wrap svg { color: var(--text-muted); width: 14px; height: 14px; flex-shrink: 0; }
.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
}
.search-input::placeholder { color: var(--text-muted); }

/* ===== Drawer ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.prospect-drawer {
  position: fixed;
  right: -480px;
  top: 0; bottom: 0;
  width: 480px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  z-index: 300;
  overflow-y: auto;
  transition: right var(--transition-slow);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}
.prospect-drawer.open { right: 0; }

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition);
  font-size: 18px;
  line-height: 1;
}
.drawer-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

.drawer-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.reason-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--blue-bright);
  margin: 3px;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}
.signal-row:last-child { border-bottom: none; }
.signal-label { color: var(--text-muted); }
.signal-value { color: var(--text-primary); font-weight: 500; }

.msg-draft {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.msg-draft:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ===== Niche card ===== */
.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.niche-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.niche-card.active {
  border-color: var(--blue);
  background: rgba(96, 165, 250, 0.05);
}
.niche-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}
.niche-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.niche-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.niche-card-count {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ===== Pipeline board ===== */
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-width: 900px;
}
.pipeline-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  min-height: 200px;
}
.pipeline-col-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pipeline-col-count {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
}
.pipeline-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 11.5px;
}
.pipeline-item:hover {
  border-color: var(--border-accent);
  background: rgba(96, 165, 250, 0.06);
}
.pipeline-item-name { font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.pipeline-item-meta { color: var(--text-muted); font-size: 10px; }

/* ===== Form elements ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.08);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-select { cursor: pointer; }

/* ===== Progress ring ===== */
.progress-ring-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-ring {
  --r: 16;
  --c: calc(2 * 3.14159 * var(--r));
  width: 40px; height: 40px;
  transform: rotate(-90deg);
}
.progress-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.progress-ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: calc(var(--c) * 1px);
  transition: stroke-dashoffset 0.6s ease;
}

/* ===== Agent thinking indicator ===== */
.agent-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 12px;
  animation: agentBlink 2s ease-in-out infinite;
}
@keyframes agentBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.agent-dots span {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  margin: 0 1px;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.agent-dots span:nth-child(2) { animation-delay: 0.2s; }
.agent-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* ===== Performance bars ===== */
.perf-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perf-bar-item { display: flex; flex-direction: column; gap: 4px; }
.perf-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.perf-bar-label-name { color: var(--text-secondary); }
.perf-bar-label-val { color: var(--text-primary); font-weight: 600; }
.perf-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.perf-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ===== Tabs ===== */
.tab-bar {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.tab-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ===== Meeting dossier ===== */
.dossier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.dossier-header {
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dossier-avatar {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white;
  background: var(--gem-gradient);
  flex-shrink: 0;
}
.dossier-body { padding: 16px 20px; }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-elevated);
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-icon { font-size: 16px; }

/* ===== Doughnut chart placeholder ===== */
.chart-donut {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) 0% 40%, var(--blue) 40% 65%, var(--amber) 65% 80%, var(--rose) 80% 100%);
  position: relative;
}
.chart-donut::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--bg-card);
  border-radius: 50%;
}

/* ===== Rep row ===== */
.rep-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.rep-row:last-child { border-bottom: none; }
.rep-row-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gem-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.rep-row-info { flex: 1; }
.rep-row-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.rep-row-sub { font-size: 11px; color: var(--text-muted); }
.rep-row-stat {
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald);
}
.rep-row-stat-label { font-size: 10px; color: var(--text-muted); }

/* ===== Empty state ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-state-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; max-width: 300px; }

/* ===== Tag ===== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin: 2px;
}

/* ===== Avatar colors ===== */
.av-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.av-violet { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.av-cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.av-emerald { background: linear-gradient(135deg, #059669, #065f46); }
.av-rose { background: linear-gradient(135deg, #e11d48, #9f1239); }
.av-amber { background: linear-gradient(135deg, #d97706, #92400e); }
.av-indigo { background: linear-gradient(135deg, #4f46e5, #312e81); }

/* ===== Outreach card ===== */
.outreach-type-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: inherit;
  width: 100%;
  margin-bottom: 6px;
}
.outreach-type-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.outreach-type-btn.active {
  border-color: var(--blue);
  background: rgba(96, 165, 250, 0.06);
}
.outreach-type-icon { font-size: 20px; flex-shrink: 0; }
.outreach-type-info { display: flex; flex-direction: column; gap: 2px; }
.outreach-type-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.outreach-type-desc { font-size: 11px; color: var(--text-muted); }

/* ===== Variant A / B / C Tabs ===== */
.variant-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.variant-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  color: var(--text-muted);
}
.variant-tab:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}
.variant-tab.active {
  border-color: var(--blue);
  background: rgba(96, 165, 250, 0.08);
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}
.variant-tab-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-default);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
  flex-shrink: 0;
  transition: all var(--transition);
}
.variant-tab.active .variant-tab-badge {
  background: var(--blue);
  color: #fff;
}
.variant-tab-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== Agent Meta Bar (post-Generate: Angle / Why / Warmth / CTA) ===== */
.agent-meta-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.agent-meta-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.agent-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 80px;
}
.agent-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.agent-meta-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.agent-meta-why {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Compliance + channel pills ── */
.risk-pill,
.clean-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
}
.risk-pill {
  background: rgba(251, 113, 133, 0.12);
  color: var(--rose);
  border: 1px solid rgba(251, 113, 133, 0.25);
}
.clean-pill {
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ===== Message editor ===== */
.message-editor {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
}
.message-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.editor-tool-btn {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.editor-tool-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-default);
  color: var(--text-primary);
}
.message-body {
  padding: 14px;
  min-height: 180px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* ===== Scrollable x wrapper ===== */
.scroll-x { overflow-x: auto; }

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Highlight gem metric ===== */
.gem-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.gem-metric::after {
  content: '💎';
  position: absolute;
  right: 10px; bottom: 6px;
  font-size: 28px;
  opacity: 0.08;
}
.gem-metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.gem-metric-value { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); }
.gem-metric-sub { font-size: 11px; color: var(--text-muted); }

/* ===== Mining animation ===== */
.mining-loader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--blue);
}
.mining-gems span {
  display: inline-block;
  animation: gemSpin 1.5s ease-in-out infinite;
  font-size: 14px;
}
.mining-gems span:nth-child(2) { animation-delay: 0.3s; }
.mining-gems span:nth-child(3) { animation-delay: 0.6s; }
@keyframes gemSpin {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.2) rotate(20deg); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-12, .grid-21 { grid-template-columns: 1fr; }
}

/* ===== Empty State ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-state-sub { font-size: 12.5px; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

/* ===== Scroll X wrapper ===== */
.scroll-x { overflow-x: auto; padding-bottom: 8px; }

/* =========================================
   NICHE MAPPING WIZARD — Phase 1.3
   ========================================= */

/* ── Wizard Shell ── */
.wizard-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

/* ── Progress Bar ── */
.wizard-progress-wrap {
  position: relative;
  margin: 20px 0 28px;
}
.wizard-progress-track {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--gem-gradient);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}
.wizard-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.wizard-progress-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.wizard-progress-label.active {
  color: var(--blue);
}
.wizard-progress-label.done {
  color: var(--emerald);
}

/* ── Stage Container ── */
.wizard-stage {
  animation: fadeInUp 0.3s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stage Header ── */
.wizard-stage-header {
  margin-bottom: 24px;
}
.wizard-stage-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.wizard-stage-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Question Card ── */
.wizard-question {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.wizard-question:hover {
  border-color: var(--border-default);
}
.wizard-question.answered {
  border-color: rgba(96, 165, 250, 0.2);
}
.wizard-question-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.wizard-question-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ── Likert Scale ── */
.likert-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.likert-btn {
  flex: 1;
  min-width: 0;
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  line-height: 1.35;
}
.likert-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.likert-btn.selected {
  background: rgba(96, 165, 250, 0.12);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--blue);
}

/* ── Zone Badge ── */
.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.zone-fit     { background: rgba(96, 165, 250, 0.1);  color: var(--blue); }
.zone-focus   { background: rgba(167, 139, 250, 0.1); color: var(--violet); }
.zone-market  { background: rgba(34, 211, 238, 0.1);  color: var(--cyan); }
.zone-access  { background: rgba(52, 211, 153, 0.1);  color: var(--emerald); }
.zone-service { background: rgba(251, 191, 36, 0.1);  color: var(--amber); }

/* ── Wizard Nav ── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.wizard-nav-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   NICHE RESULTS PAGE
   ───────────────────────────────────────── */

.results-intro {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(167, 139, 250, 0.06) 100%);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.results-intro-icon { font-size: 32px; flex-shrink: 0; }
.results-intro-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.results-intro-sub   { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ── Niche Result Card ── */
.niche-result-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-subtle);
}
.niche-result-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.niche-result-card.rank-1 {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, var(--bg-card) 60%);
}
.niche-result-card.rank-2 {
  border-color: rgba(167, 139, 250, 0.2);
}
.niche-result-card.rank-3 {
  border-color: var(--border-subtle);
}

.niche-result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--niche-color, var(--gem-gradient));
  border-radius: 14px 14px 0 0;
}

.nrc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.nrc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.nrc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.nrc-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nrc-rank-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  display: inline-block;
}
.rank-1 .nrc-rank-badge { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.rank-2 .nrc-rank-badge { background: rgba(167, 139, 250, 0.12); color: var(--violet); }
.rank-3 .nrc-rank-badge { background: var(--bg-elevated); color: var(--text-muted); }

/* ── Match Ring ── */
.match-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.match-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  background: conic-gradient(
    var(--niche-color, var(--blue)) calc(var(--pct) * 1%),
    var(--bg-elevated) 0
  );
}
.match-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg-card);
  border-radius: 50%;
}
.match-ring-val {
  position: relative;
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.match-ring-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Zone Breakdown ── */
.zone-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.zone-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zone-breakdown-label {
  font-size: 10.5px;
  color: var(--text-muted);
  min-width: 100px;
  font-weight: 500;
}
.zone-breakdown-track {
  flex: 1;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}
.zone-breakdown-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.zone-breakdown-val {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
}

/* ── Messaging angle ── */
.messaging-angle-block {
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 3px solid var(--niche-color, var(--blue));
  margin-top: 4px;
}

/* ── ICP Preview ── */
.icp-preview-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 24px;
}
.icp-preview-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.icp-preview-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}
.icp-preview-row:last-child { border-bottom: none; }
.icp-preview-key {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 140px;
  flex-shrink: 0;
}
.icp-preview-val {
  font-size: 11.5px;
  color: var(--text-primary);
  line-height: 1.55;
}

/* ── Apply CTA ── */
.apply-cta {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.apply-cta-text { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.apply-cta-sub  { font-size: 11.5px; color: var(--text-muted); }
.apply-cta-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Saved Profile Banner ── */
.saved-profile-banner {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.saved-profile-banner:hover {
  background: rgba(52, 211, 153, 0.1);
}

/* ===========================================
   ENTERPRISE INTELLIGENCE PANEL — Phase 1.4
   =========================================== */

/* ── Enrichment Panel card ── */
.enrich-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2px;
}
.enrich-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.enrich-pending {
  padding: 16px;
  background: var(--bg-elevated);
}

/* ── Row types ── */
.enrich-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.enrich-row:last-of-type { border-bottom: none; }
.enrich-row-block {
  flex-direction: column;
  align-items: stretch;
  padding: 10px 14px;
}

/* ── Labels + values ── */
.enrich-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 118px;
  flex-shrink: 0;
}
.enrich-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  flex: 1;
}
.enrich-highlight {
  color: var(--emerald);
  font-size: 12.5px;
}

/* ── Wealth score bar ── */
.enrich-score-track {
  flex: 1;
  max-width: 80px;
  height: 5px;
  background: var(--bg-base);
  border-radius: 3px;
  overflow: hidden;
}
.enrich-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ── Badges ── */
.enrich-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.enrich-conf-high   { background: rgba(52,211,153,0.12); color: var(--emerald); border: 1px solid rgba(52,211,153,0.3); }
.enrich-conf-medium { background: rgba(251,191,36,0.12);  color: var(--amber);   border: 1px solid rgba(251,191,36,0.3); }
.enrich-conf-low    { background: rgba(251,113,133,0.12); color: var(--rose);    border: 1px solid rgba(251,113,133,0.3); }

/* ── Source attribution tags ── */
.enrich-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border-subtle);
}
.enrich-source-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-base);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ── Signal dot system (drawer — full size) ── */
.esig-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.esig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}
.esig-dot.esig-empty    { background: var(--border-default); }
.esig-dot.esig-wealth   { background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,0.6); }
.esig-dot.esig-liquidity{ background: #a78bfa; box-shadow: 0 0 5px rgba(167,139,250,0.6); }
.esig-dot.esig-contact  { background: #60a5fa; box-shadow: 0 0 5px rgba(96,165,250,0.6); }
.esig-dot.esig-court    { background: #fb7185; box-shadow: 0 0 5px rgba(251,113,133,0.6); }

/* ── Signal dot system (table — compact 2×2 grid) ── */
.esig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 22px;
}
.esig-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.esig-dot-sm.esig-empty    { background: rgba(255,255,255,0.1); }
.esig-dot-sm.esig-wealth   { background: #fbbf24; box-shadow: 0 0 4px rgba(251,191,36,0.5); }
.esig-dot-sm.esig-liquidity{ background: #a78bfa; box-shadow: 0 0 4px rgba(167,139,250,0.5); }
.esig-dot-sm.esig-contact  { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,0.5); }
.esig-dot-sm.esig-court    { background: #fb7185; box-shadow: 0 0 4px rgba(251,113,133,0.5); }

/* ===========================================
   PILOT FEEDBACK WIDGET — Phase 1.4
   =========================================== */

/* ── Drawer version (full-width row) ── */
.feedback-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 2px;
}
.fb-label {
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.fb-btns {
  display: flex;
  gap: 8px;
}
.fb-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}
.fb-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: scale(1.08);
}
.fb-btn:active { transform: scale(0.94); }
.fb-btn.fb-active-up {
  background: rgba(52, 211, 153, 0.12);
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald), 0 2px 10px rgba(52,211,153,0.2);
  transform: scale(1.06);
}
.fb-btn.fb-active-down {
  background: rgba(251, 113, 133, 0.12);
  border-color: var(--rose);
  box-shadow: 0 0 0 1px var(--rose), 0 2px 10px rgba(251,113,133,0.2);
  transform: scale(1.06);
}

/* ── Inline table version (compact) ── */
.fb-inline {
  display: flex;
  gap: 4px;
  align-items: center;
}
.fb-btn-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}
.fb-btn-sm:hover {
  border-color: var(--border-accent);
  transform: scale(1.1);
}
.fb-btn-sm:active { transform: scale(0.9); }
.fb-btn-sm.fb-active-up {
  background: rgba(52, 211, 153, 0.14);
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald);
}
.fb-btn-sm.fb-active-down {
  background: rgba(251, 113, 133, 0.14);
  border-color: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
}

/* ===========================================
   PUBLIC LANDING PAGE — Phase 1.2.5
   =========================================== */

/* ── Shell layout ── */
/* display is controlled entirely via JS style attribute (showAppShell / showPublicShell) */
/* body.app-mode and body.public-mode are toggled by auth.js */
#public-shell {
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
#app-shell {
  height: 100vh;
  overflow: hidden;
  flex: 1;
}

/* ── Public Header ── */
.pub-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.pub-header.scrolled {
  background: rgba(8, 12, 20, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.pub-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pub-logo svg { filter: drop-shadow(0 0 6px rgba(96,165,250,0.4)); }
.pub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pub-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition);
}
.pub-nav-link:hover { color: var(--text-primary); background: rgba(96,165,250,0.06); }
.pub-login-btn {
  margin-left: 8px;
  padding: 7px 18px;
  background: var(--gem-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(96,165,250,0.25);
}
.pub-login-btn:hover {
  box-shadow: 0 4px 20px rgba(96,165,250,0.4);
  transform: translateY(-1px);
}
/* Book Demo — ghost button in nav */
.pub-demo-btn {
  margin-left: 4px;
  padding: 7px 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pub-demo-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(96,165,250,0.06);
}
/* Pilot Login — ghost secondary in hero */
.hero-cta-pilot {
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.hero-cta-pilot:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(96,165,250,0.06);
}
/* Trust bullets below hero CTAs */
.hero-trust-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-trust-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.hero-trust-bullets li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
[data-theme="light"] .pub-header {
  background: rgba(248, 250, 255, 0.92);
  border-color: rgba(59,130,246,0.15);
}
[data-theme="light"] .pub-header.scrolled {
  background: rgba(248, 250, 255, 0.99);
  box-shadow: 0 1px 0 rgba(59,130,246,0.1), 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .pub-nav-link {
  color: #374151;
}
[data-theme="light"] .pub-nav-link:hover {
  color: #1d4ed8;
}
[data-theme="light"] .pub-logo span {
  color: #111827;
}

/* ── Theme toggle button (both modes) ── */
.pub-theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.pub-theme-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: scale(1.06);
}
[data-theme="light"] .pub-theme-btn {
  background: #f0f3fa;
  border-color: rgba(59,130,246,0.2);
}
[data-theme="light"] .pub-theme-btn:hover {
  background: #e5eaf6;
}

/* ── Hero ── */
[data-theme="light"] .hero-wrapper {
  background: linear-gradient(160deg, #f4f7ff 0%, #eef2ff 50%, #f8faff 100%);
}
[data-theme="light"] .hero-bg-glow {
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99,102,241,0.08) 0%, transparent 70%);
}
[data-theme="light"] .hero-grid-overlay {
  opacity: 0.04;
}
[data-theme="light"] .hero-headline {
  color: #111827;
}
[data-theme="light"] .hero-subhead {
  color: #4b5563;
}
[data-theme="light"] .hero-trust-bullets li {
  color: #374151;
}
[data-theme="light"] .hero-trust-bullets li::before {
  color: #2563eb;
}
[data-theme="light"] .trust-strip {
  color: #6b7280;
  border-top-color: rgba(59,130,246,0.12);
}
[data-theme="light"] .niche-pill {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: #1e3a8a;
}
[data-theme="light"] .niche-pill:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.35);
}
[data-theme="light"] .pilot-badge {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #166534;
}
[data-theme="light"] .pilot-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
}

/* ── CTA buttons ── */
[data-theme="light"] .hero-cta-pilot {
  color: #2563eb;
  border-color: rgba(37,99,235,0.3);
}
[data-theme="light"] .hero-cta-pilot:hover {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.5);
}

/* ── LP Sections ── */
[data-theme="light"] .lp-section {
  background: #f8faff;
}
[data-theme="light"] .lp-section-alt {
  background: #f0f3fa;
}
[data-theme="light"] .lp-section-offer {
  background: linear-gradient(135deg, #eef2ff 0%, #f8faff 100%);
}
[data-theme="light"] .lp-section-label {
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.2);
}
[data-theme="light"] .lp-section-title {
  color: #111827;
}
[data-theme="light"] .lp-prose p {
  color: #4b5563;
}

/* ── Comparison strip ── */
[data-theme="light"] .comparison-col {
  background: #ffffff;
  border-color: rgba(59,130,246,0.15);
}
[data-theme="light"] .comparison-col li {
  color: #374151;
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .comparison-col-bad {
  background: #fff5f5;
  border-color: rgba(239,68,68,0.15);
}
[data-theme="light"] .comparison-col-label {
  color: #111827;
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .comparison-divider {
  color: #9ca3af;
}

/* ── Value prop cards ── */
[data-theme="light"] .value-prop-card {
  background: #ffffff;
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
[data-theme="light"] .value-prop-card:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 4px 20px rgba(59,130,246,0.1);
}
[data-theme="light"] .vp-title {
  color: #111827;
}
[data-theme="light"] .vp-body {
  color: #4b5563;
}

/* ── Social proof ── */
[data-theme="light"] .social-proof-block {
  background: #ffffff;
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
[data-theme="light"] .social-proof-quote {
  color: #1f2937;
}
[data-theme="light"] .social-proof-attribution {
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .social-proof-meta {
  color: #6b7280;
}

/* ── How steps ── */
[data-theme="light"] .how-step {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .how-step-number {
  color: #2563eb;
  background: #ffffff;
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 0 0 4px #f8faff;
}
[data-theme="light"] .how-step-title {
  color: #111827;
}
[data-theme="light"] .how-step-body {
  color: #4b5563;
}

/* ── Offer / pricing card ── */
[data-theme="light"] .offer-copy p,
[data-theme="light"] .offer-intro {
  color: #374151;
}
[data-theme="light"] .offer-list li {
  color: #374151;
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .offer-subtext {
  color: #6b7280;
}
[data-theme="light"] .offer-pricing-card {
  background: #ffffff;
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 4px 24px rgba(59,130,246,0.1);
}
[data-theme="light"] .opc-label {
  color: #6b7280;
}
[data-theme="light"] .opc-price {
  color: #111827;
}
[data-theme="light"] .opc-locked {
  color: #16a34a;
}
[data-theme="light"] .opc-divider {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .opc-compare-label {
  color: #9ca3af;
}
[data-theme="light"] .opc-compare-price {
  color: #6b7280;
  text-decoration: line-through;
}
[data-theme="light"] .opc-savings {
  color: #16a34a;
  background: rgba(22,163,74,0.08);
}
[data-theme="light"] .opc-guarantee {
  color: #374151;
  background: rgba(59,130,246,0.06);
}

/* ── Lead capture ── */
[data-theme="light"] .lead-capture-wrap {
  background: rgba(59,130,246,0.04);
  border-color: rgba(59,130,246,0.15);
}
[data-theme="light"] .lead-capture-label,
[data-theme="light"] .lead-capture-note {
  color: #6b7280;
}

/* ── FAQ ── */
[data-theme="light"] .faq-item {
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .faq-question {
  color: #111827;
}
[data-theme="light"] .faq-question:hover {
  background: rgba(59,130,246,0.04);
}
[data-theme="light"] .faq-answer {
  color: #4b5563;
  border-top-color: rgba(0,0,0,0.06);
}

/* ── Footer ── */
[data-theme="light"] .pub-footer {
  background: #eef2ff;
  border-top-color: rgba(59,130,246,0.12);
}
[data-theme="light"] .pub-footer-name {
  color: #111827;
}
[data-theme="light"] .pub-footer-sub,
[data-theme="light"] .pub-footer-copy {
  color: #6b7280;
}
[data-theme="light"] .pub-footer-links a {
  color: #4b5563;
}
[data-theme="light"] .pub-footer-links a:hover {
  color: #1d4ed8;
}

/* ── Auth modal ── */
[data-theme="light"] .auth-modal {
  background: #ffffff;
  border-color: rgba(59,130,246,0.15);
}
[data-theme="light"] .auth-modal-title {
  color: #111827;
}
[data-theme="light"] .auth-modal-sub {
  color: #6b7280;
}
[data-theme="light"] .auth-label {
  color: #374151;
}
[data-theme="light"] .auth-input {
  background: #f9fafb;
  border-color: rgba(59,130,246,0.2);
  color: #111827;
}
[data-theme="light"] .auth-input:focus {
  border-color: #2563eb;
  background: #ffffff;
}
[data-theme="light"] .auth-pilot-note {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.15);
  color: #374151;
}
/* =====================================================
   HERO — Full-bleed wrapper + two-column content grid
   ===================================================== */

/* Wrapper: owns the full-width dark background & absolute decorative layers */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--bg-base);
}

/* Decorative background glow — fills the wrapper edge-to-edge */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(96,165,250,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(167,139,250,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 85%, rgba(34,211,238,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid overlay — fills the wrapper edge-to-edge */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Safari requires -webkit- prefix for mask-image */
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.5) 75%, transparent);
  mask-image:         linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.5) 75%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Section: single-column, max-width, centered */
.hero-section {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 820px;
  width: 100%;
  min-height: 92vh;
  margin: 0 auto;
  padding: 130px 56px 90px;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
}

/* LEFT column — hero copy */
.hero-content {
  position: relative;
  z-index: 2;
}

.pilot-badge {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pilot-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  -webkit-animation: dot-pulse 2s ease-in-out infinite;
  animation: dot-pulse 2s ease-in-out infinite;
  -webkit-transform: translateZ(0); /* Safari GPU layer */
  transform: translateZ(0);
}
@-webkit-keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 12px rgba(52,211,153,0.9); }
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(52,211,153,0.5); }
  50%      { box-shadow: 0 0 12px rgba(52,211,153,0.9); }
}

.hero-headline {
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.hero-headline-accent {
  background: var(--gem-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for older Safari */
  color: var(--blue);
}
.hero-subhead {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 520px;
}

/* CTAs row */
.hero-ctas {
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-cta-primary {
  padding: 14px 28px;
  background: var(--gem-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-transition: box-shadow 0.2s ease, -webkit-transform 0.2s ease;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(96,165,250,0.3);
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent; /* removes tap flash on iOS */
}
.hero-cta-primary:hover {
  box-shadow: 0 6px 30px rgba(96,165,250,0.5);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}
.hero-cta-secondary {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 2px;
  -webkit-transition: color 0.2s, border-color 0.2s;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hero-cta-secondary:hover { color: var(--text-primary); border-color: var(--border-accent); }

.trust-strip {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  max-width: 500px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* =====================================================
   PILL CLOUD — flex-wrap row, 30px below trust strip
   ===================================================== */
.hero-pills {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px;
  margin-top: 30px;
}

.niche-pill {
  display: inline-block;
  padding: 9px 18px;
  background: rgba(8, 14, 26, 0.88);
  border: 1px solid rgba(96,165,250,0.22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #ccd9f0;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  -webkit-animation: floatPill 5s ease-in-out infinite;
  animation: floatPill 5s ease-in-out infinite;
  -webkit-animation-delay: var(--delay, 0s);
  animation-delay: var(--delay, 0s);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.niche-pill:hover {
  -webkit-transform: translateY(-3px) scale(1.02);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(96,165,250,0.2);
}

@-webkit-keyframes floatPill {
  0%, 100% { -webkit-transform: translateY(0) translateZ(0); opacity: 0.8; }
  50%       { -webkit-transform: translateY(-7px) translateZ(0); opacity: 1; }
}
@keyframes floatPill {
  0%, 100% { transform: translateY(0) translateZ(0); opacity: 0.8; }
  50%       { transform: translateY(-7px) translateZ(0); opacity: 1; }
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: 100px 20px 64px;
  }
  .hero-subhead { font-size: 15px; }
  .hero-ctas {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta-primary { text-align: center; }

  /* Pills: 2 columns × 6 rows on mobile */
  .hero-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .niche-pill {
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    white-space: normal;   /* allow long labels to wrap instead of overflow */
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── LP Section Foundation ── */
.lp-section {
  padding: 100px 32px;
}
.lp-section-alt {
  background: rgba(13,19,32,0.6);
}
.lp-section-offer {
  background: linear-gradient(135deg, rgba(96,165,250,0.04) 0%, rgba(167,139,250,0.03) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.lp-container {
  max-width: 1100px;
  margin: 0 auto;
}
.lp-container-narrow {
  max-width: 760px;
}
.lp-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.lp-section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 40px;
}
.lp-prose p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 720px;
}

/* ── Comparison Strip ── */
.comparison-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}
.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-top: 20px;
}
.comparison-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
}
.comparison-col-bad { border-color: rgba(251,113,133,0.2); }
.comparison-col-good { border-color: rgba(52,211,153,0.25); }
.comparison-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.comparison-col li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.comparison-col-bad li { color: var(--text-muted); }
.comparison-col-good li { color: var(--text-secondary); }

/* ── Value Props Grid ── */
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.value-prop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.value-prop-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.value-prop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gem-gradient);
}
.vp-icon {
  font-size: 32px;
  display: block;
  text-align: center;
  margin-bottom: 16px;
}
.vp-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.vp-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.vp-body {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Social Proof Quote ── */
.social-proof-block {
  margin-top: 56px;
  padding: 32px 40px;
  background: rgba(96,165,250,0.04);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.social-proof-quote {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  quotes: none;
}
.social-proof-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.social-proof-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(96,165,250,0.12);
  color: var(--blue);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.social-proof-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── How It Works Steps ── */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  left: 28px; top: 44px; bottom: 44px;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--violet) 100%);
  opacity: 0.3;
}
.how-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.how-step:last-child { border-bottom: none; }
.how-step-number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-base);
}
.how-step-content { flex: 1; padding-top: 8px; }
.how-step-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.how-step-body {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Founding Offer ── */
.offer-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .offer-block { grid-template-columns: 1fr; } }
.offer-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.offer-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.offer-list strong { color: var(--text-primary); }
.offer-bullet { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.offer-cta-btn {
  padding: 14px 28px;
  background: var(--gem-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(96,165,250,0.3);
}
.offer-cta-btn:hover {
  box-shadow: 0 6px 30px rgba(96,165,250,0.5);
  transform: translateY(-2px);
}
.offer-subtext {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
}
/* ── Lead Capture Form ── */
.lead-capture-wrap {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  max-width: 520px;
}
.lead-capture-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
.lead-capture-row {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
}
.lead-capture-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.lead-capture-input::placeholder { color: var(--text-muted); }
.lead-capture-input:focus { border-color: var(--blue); }
.lead-capture-btn {
  padding: 10px 18px;
  background: var(--gem-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lead-capture-btn:hover { box-shadow: 0 4px 16px rgba(96,165,250,0.4); transform: translateY(-1px); }
.lead-capture-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
}
.lead-capture-success {
  padding: 12px 0 4px;
  font-size: 14px;
  color: var(--emerald);
  font-weight: 500;
}
@media (max-width: 539px) {
  .lead-capture-row { flex-direction: column; }
  .lead-capture-btn { width: 100%; text-align: center; }
}
/* Pricing card */
.offer-pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-gem);
}
.opc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.opc-price {
  font-size: 52px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 4px;
}
.opc-price span { font-size: 20px; font-weight: 500; color: var(--text-secondary); }
.opc-locked {
  font-size: 12px;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 20px;
}
.opc-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}
.opc-compare-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.opc-compare-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
  letter-spacing: -0.03em;
}
.opc-compare-price span { font-size: 14px; }
.opc-savings {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  margin-top: 4px;
}
.opc-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.opc-g-icon { font-size: 18px; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-chevron {
  font-size: 22px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-chevron { transform: rotate(90deg); color: var(--blue); }
.faq-answer {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ── Footer ── */
.pub-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px;
}
.pub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.pub-footer-brand { display: flex; flex-direction: column; gap: 3px; }
.pub-footer-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.pub-footer-sub { font-size: 11px; color: var(--text-muted); }
.pub-footer-links { display: flex; gap: 20px; }
.pub-footer-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.pub-footer-links a:hover { color: var(--text-primary); }
.pub-footer-copy { font-size: 11.5px; color: var(--text-muted); }

/* ── Auth Modal ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.auth-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-elevated), var(--gem-glow);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.auth-modal-overlay.open .auth-modal {
  transform: translateY(0);
}
.auth-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all var(--transition);
  line-height: 1;
}
.auth-modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.auth-modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-modal-logo svg { filter: drop-shadow(0 0 8px rgba(96,165,250,0.4)); }
.auth-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}
/* Google Sign-In Button */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 4px;
}
.auth-google-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.auth-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
:root[data-theme="light"] .auth-google-btn {
  background: #fff;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
:root[data-theme="light"] .auth-google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

/* "or" Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.auth-divider span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.auth-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.12);
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-error {
  font-size: 12.5px;
  color: var(--rose);
  line-height: 1.5;
  background: rgba(251,113,133,0.08);
  border: 1px solid rgba(251,113,133,0.2);
  border-radius: 6px;
  padding: 8px 12px;
}
.auth-submit-btn {
  padding: 12px;
  background: var(--gem-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(96,165,250,0.25);
  margin-top: 4px;
}
.auth-submit-btn:hover { box-shadow: 0 4px 20px rgba(96,165,250,0.4); transform: translateY(-1px); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-footer-links {
  display: flex;
  justify-content: center;
}
.auth-forgot-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition);
}
.auth-forgot-link:hover { color: var(--blue); }
.auth-pilot-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  justify-content: center;
  padding-top: 4px;
}

/* ── Logout Button ── */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  margin-top: 6px;
}
.logout-btn:hover {
  background: rgba(251,113,133,0.08);
  border-color: rgba(251,113,133,0.25);
  color: var(--rose);
}

/* ── Public header scroll JS hook ── */
