/* ════════════════════════════════════════════════════════════════
   Signal Vault — Subscription Platform
   Dark vault aesthetic · Green accent · Orbitron display font
   ════════════════════════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --bg-base:          #070d0b;
  --bg-surface:       #0b1510;
  --bg-card:          #0f1d14;
  --bg-card-hover:    #14261a;
  --bg-elevated:      #172b1e;

  --border:           #1e3a28;
  --border-bright:    #2d5a3d;
  --border-glow:      rgba(74, 222, 128, 0.25);

  --accent:           #4ade80;
  --accent-dim:       #22c55e;
  --accent-dark:      #16a34a;
  --accent-glow:      rgba(74, 222, 128, 0.12);
  --accent-glow-lg:   rgba(74, 222, 128, 0.25);

  --text-primary:     #e2e8f0;
  --text-secondary:   #94a3b8;
  --text-muted:       #4b5563;

  --danger:           #ef4444;
  --danger-dim:       rgba(239, 68, 68, 0.15);
  --warning:          #f59e0b;
  --success:          #4ade80;
  --gold:             #fbbf24;
  --discord:          #5865f2;

  --font-display:     'Orbitron', 'Courier New', monospace;
  --font-body:        'Inter', -apple-system, sans-serif;

  --radius-sm:        8px;
  --radius:           12px;
  --radius-lg:        16px;
  --radius-xl:        24px;

  --shadow-sm:        0 2px 8px rgba(0,0,0,0.3);
  --shadow:           0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:        0 8px 48px rgba(0,0,0,0.5);
  --shadow-glow:      0 0 40px rgba(74,222,128,0.08);
  --shadow-glow-card: 0 0 60px rgba(74,222,128,0.06);

  --transition:       0.2s ease;
  --transition-slow:  0.4s ease;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family:      var(--font-body);
  background-color: var(--bg-base);
  color:            var(--text-primary);
  line-height:      1.6;
  overflow-x:       hidden;
  -webkit-font-smoothing: antialiased;
}
a    { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img  { max-width: 100%; }
ul   { list-style: none; }

/* ── Background effects ────────────────────────────────────────── */
#particles-canvas {
  position:   fixed;
  inset:      0;
  z-index:    0;
  pointer-events: none;
}

.bg-grid {
  position:   fixed;
  inset:      0;
  z-index:    0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74,222,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
}

/* ── Wrapper ───────────────────────────────────────────────────── */
.page-wrapper {
  position:   relative;
  z-index:    1;
  min-height: 100vh;
}

.container {
  max-width:  1200px;
  margin:     0 auto;
  padding:    0 24px;
}

.container-narrow {
  max-width:  800px;
  margin:     0 auto;
  padding:    0 24px;
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position:        sticky;
  top:             0;
  z-index:         100;
  padding:         16px 0;
  border-bottom:   1px solid var(--border);
  background:      rgba(7,13,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
}

.nav-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  text-decoration: none;
}

.nav-logo-mark {
  width:           36px;
  height:          36px;
  background:      var(--accent-glow);
  border:          1px solid var(--accent-dim);
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-display);
  font-size:       14px;
  font-weight:     700;
  color:           var(--accent);
  box-shadow:      0 0 20px rgba(74,222,128,0.15);
}

.nav-logo-img {
  width:         36px;
  height:        36px;
  border-radius: 8px;
  object-fit:    contain;
  box-shadow:    0 0 20px rgba(74,222,128,0.15);
}

.price-was {
  font-size:       16px;
  color:           var(--text-muted);
  text-decoration: line-through;
  font-weight:     400;
  margin-right:    4px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size:   16px;
  font-weight: 700;
  color:       var(--text-primary);
  letter-spacing: 0.05em;
}
.nav-logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  font-size:  14px;
  color:      var(--text-secondary);
  padding:    6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color:       var(--text-primary);
  background:  rgba(255,255,255,0.04);
  opacity:     1;
}

#nav-user {
  display:     flex;
  align-items: center;
  gap:         8px;
}

.nav-username {
  font-size:  13px;
  color:      var(--accent);
  font-weight: 500;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding:    80px 0 40px;
  text-align: center;
}

.hero-logo-wrap {
  margin-bottom: 40px;
}

.hero-logo-img {
  width:         200px;
  height:        200px;
  border-radius: 40px;
  object-fit:    contain;
  display:       block;
  margin:        0 auto;
  box-shadow:    0 0 80px rgba(74,222,128,0.30), 0 0 160px rgba(74,222,128,0.12);
}

.hero-edu-note {
  display:     block;
  font-size:   13px;
  color:       var(--text-muted);
  margin-top:  8px;
  font-style:  italic;
}

.hero-stats-header {
  font-size:     12px;
  font-weight:   600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:         var(--text-muted);
  margin-bottom: 20px;
}

.stat-sub {
  display:    block;
  font-size:  10px;
  color:      var(--text-muted);
  margin-top: 2px;
  font-style: italic;
}

.stats-context {
  display:     flex;
  flex-wrap:   wrap;
  justify-content: center;
  align-items: center;
  gap:         8px;
  font-size:   11px;
  color:       var(--text-muted);
  margin-top:  16px;
  margin-bottom: 12px;
}

.stats-context-sep {
  color: var(--border-bright);
}

.stats-disclaimer {
  font-size:     11px;
  color:         var(--text-muted);
  max-width:     600px;
  margin:        0 auto 48px;
  line-height:   1.7;
  padding:       10px 16px;
  border:        1px solid var(--border);
  border-radius: var(--radius-sm);
  background:    rgba(255,255,255,0.01);
}

.hero-eyebrow {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  font-size:     12px;
  font-weight:   600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:         var(--accent);
  background:    var(--accent-glow);
  border:        1px solid rgba(74,222,128,0.2);
  padding:       6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content:       '';
  display:       block;
  width:         6px;
  height:        6px;
  background:    var(--accent);
  border-radius: 50%;
  animation:     pulse 2s infinite;
}

.hero-title {
  font-family:   var(--font-display);
  font-size:     clamp(2rem, 5vw, 3.5rem);
  font-weight:   900;
  line-height:   1.1;
  letter-spacing: -0.02em;
  color:         var(--text-primary);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size:     1.1rem;
  color:         var(--text-secondary);
  max-width:     560px;
  margin:        0 auto 40px;
  line-height:   1.7;
}

.hero-stats {
  display:         flex;
  justify-content: center;
  gap:             40px;
  flex-wrap:       wrap;
  margin-bottom:   48px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display:     block;
  font-family: var(--font-display);
  font-size:   1.6rem;
  font-weight: 700;
  color:       var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size:  12px;
  color:      var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Capacity bar ───────────────────────────────────────────────── */
.capacity-section {
  padding:       0 0 32px;
}

.capacity-card {
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       20px 24px;
  max-width:     640px;
  margin:        0 auto;
}

.capacity-header {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   12px;
  font-size:       13px;
}

.capacity-title {
  font-weight: 600;
  color:       var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size:   11px;
}

#capacity-label {
  font-size:  13px;
  color:      var(--accent);
  font-weight: 600;
}

.capacity-bar-track {
  height:        8px;
  background:    var(--bg-elevated);
  border-radius: 100px;
  overflow:      hidden;
  margin-bottom: 8px;
}

#capacity-bar-fill {
  height:        100%;
  background:    linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 100px;
  width:         0%;
  transition:    width 1s ease;
  box-shadow:    0 0 12px rgba(74,222,128,0.4);
}

#early-adopter-label {
  font-size:  12px;
  color:      var(--warning);
  font-weight: 500;
}

/* ── Discord Verification Panel ────────────────────────────────── */
.discord-section {
  padding:       0 0 40px;
}

#discord-panel {
  max-width:     640px;
  margin:        0 auto;
  border-radius: var(--radius-lg);
  border:        1px solid var(--border);
  background:    var(--bg-surface);
  overflow:      hidden;
  transition:    border-color var(--transition);
}

#discord-panel.panel-shake {
  animation: shake 0.5s ease;
}

.discord-panel-inner {
  padding: 24px;
}

.discord-panel-inner.verified {
  border-color:  var(--accent);
  box-shadow:    0 0 40px rgba(74,222,128,0.08);
}

.discord-panel-header {
  display:       flex;
  align-items:   center;
  gap:           16px;
  margin-bottom: 20px;
}

.discord-icon {
  width:           44px;
  height:          44px;
  background:      rgba(88,101,242,0.15);
  border:          1px solid rgba(88,101,242,0.3);
  border-radius:   10px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.discord-user-avatar {
  position:     relative;
  flex-shrink:  0;
}

.discord-user-avatar img {
  width:         44px;
  height:        44px;
  border-radius: 50%;
  border:        2px solid var(--border-bright);
}

.online-dot {
  position:      absolute;
  bottom:        1px;
  right:         1px;
  width:         10px;
  height:        10px;
  background:    var(--accent);
  border-radius: 50%;
  border:        2px solid var(--bg-surface);
}

.discord-panel-header h3 {
  font-size:   15px;
  font-weight: 600;
  color:       var(--text-primary);
  margin-bottom: 2px;
}

.discord-panel-header p {
  font-size: 13px;
  color:     var(--text-secondary);
}

.discord-panel-header .btn-ghost.btn-sm {
  margin-left: auto;
}

/* Simplified verify steps (unauthenticated state) */
.verify-steps {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-bottom:  20px;
}

.verify-step {
  display:       flex;
  align-items:   center;
  gap:           12px;
  font-size:     14px;
  color:         var(--text-secondary);
  padding:       10px 14px;
  border-radius: var(--radius-sm);
  background:    rgba(255,255,255,0.02);
  border:        1px solid var(--border);
}

.step-num {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           22px;
  height:          22px;
  border-radius:   50%;
  background:      var(--accent-glow);
  border:          1px solid rgba(74,222,128,0.3);
  color:           var(--accent);
  font-size:       12px;
  font-weight:     700;
  flex-shrink:     0;
}

/* Role checklist */
.role-checklist {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-bottom:  20px;
}

.role-item {
  display:       flex;
  align-items:   center;
  gap:           10px;
  font-size:     14px;
  padding:       10px 14px;
  border-radius: var(--radius-sm);
  border:        1px solid;
}

.role-item.role-met {
  background:    rgba(74,222,128,0.06);
  border-color:  rgba(74,222,128,0.2);
  color:         var(--text-primary);
}

.role-item.role-missing {
  background:    rgba(239,68,68,0.06);
  border-color:  rgba(239,68,68,0.2);
  color:         var(--text-secondary);
}

.role-item.role-pending {
  background:    rgba(255,255,255,0.03);
  border-color:  var(--border);
  color:         var(--text-muted);
}

.role-check {
  font-size:   14px;
  font-weight: 700;
  flex-shrink: 0;
  width:       18px;
  text-align:  center;
}

.role-met    .role-check { color: var(--accent); }
.role-missing .role-check { color: var(--danger); }
.role-pending .role-check { color: var(--text-muted); }

.role-action {
  margin-left: auto;
  font-size:   12px;
  font-weight: 500;
  color:       var(--accent);
  white-space: nowrap;
}

.role-action-here {
  color: var(--warning);
}

/* ToS acceptance box */
.tos-acceptance {
  margin-top:    16px;
  padding:       20px;
  border:        1px solid rgba(74,222,128,0.25);
  border-radius: var(--radius);
  background:    rgba(74,222,128,0.03);
}

.tos-acceptance-intro {
  font-size:     13px;
  color:         var(--text-secondary);
  margin-bottom: 14px;
}

.tos-checkbox-label {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
  font-size:   13px;
  color:       var(--text-primary);
  cursor:      pointer;
  margin-bottom: 14px;
  line-height: 1.5;
}

.tos-checkbox-label input[type="checkbox"] {
  width:        16px;
  height:       16px;
  flex-shrink:  0;
  margin-top:   2px;
  accent-color: var(--accent);
  cursor:       pointer;
}

.tos-status {
  font-size:  12px;
  margin-top: 8px;
  min-height: 18px;
}

.tos-status-error   { color: var(--danger); }
.tos-status-loading { color: var(--text-muted); }

.discord-panel-actions {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            12px;
}

.btn-link {
  font-size:  13px;
  color:      var(--text-secondary);
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    0;
  transition: color var(--transition);
}
.btn-link:hover { color: var(--accent); opacity: 1; }

.panel-note {
  font-size:  13px;
  color:      var(--text-secondary);
  line-height: 1.5;
}

.panel-note a { color: var(--accent); }

.panel-note-success {
  color: var(--accent);
}

/* ── Billing toggle ─────────────────────────────────────────────── */
.pricing-toggle-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             14px;
  margin-bottom:   40px;
}

.toggle-label {
  font-size:  14px;
  color:      var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.toggle-label.active {
  color: var(--text-primary);
}

.toggle-savings {
  font-size:     11px;
  background:    rgba(74,222,128,0.12);
  color:         var(--accent);
  padding:       2px 7px;
  border-radius: 100px;
  font-weight:   600;
  margin-left:   6px;
}

.toggle-switch {
  position: relative;
  display:  inline-block;
  width:    44px;
  height:   24px;
}

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

.toggle-slider {
  position:      absolute;
  inset:         0;
  background:    var(--bg-elevated);
  border:        1px solid var(--border-bright);
  border-radius: 100px;
  cursor:        pointer;
  transition:    background var(--transition);
}

.toggle-slider::before {
  content:       '';
  position:      absolute;
  width:         16px;
  height:        16px;
  left:          3px;
  bottom:        3px;
  background:    var(--text-secondary);
  border-radius: 50%;
  transition:    transform var(--transition), background var(--transition);
}

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

.toggle-switch input:checked + .toggle-slider::before {
  transform:  translateX(20px);
  background: var(--accent);
}

/* ── Pricing grid ───────────────────────────────────────────────── */
.pricing-section { padding: 0 0 80px; }

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

.section-title {
  font-family:   var(--font-display);
  font-size:     clamp(1.5rem, 3vw, 2rem);
  font-weight:   700;
  letter-spacing: -0.02em;
  color:         var(--text-primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color:     var(--text-secondary);
}

.pricing-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:                   24px;
  max-width:             800px;
  margin:                0 auto;
}

/* ── Pricing cards ──────────────────────────────────────────────── */
.pricing-card {
  background:   var(--bg-card);
  border:       1px solid var(--border);
  border-radius: var(--radius-xl);
  padding:      32px;
  position:     relative;
  transition:   transform var(--transition-slow), border-color var(--transition-slow),
                box-shadow var(--transition-slow);
  transform-style: preserve-3d;
}

.pricing-card:hover {
  transform:    translateY(-6px);
  border-color: var(--border-bright);
  box-shadow:   var(--shadow-glow-card);
}

.pricing-card.card-featured {
  border-color: var(--accent-dim);
  background:   var(--bg-card-hover);
  box-shadow:   0 0 0 1px rgba(74,222,128,0.15), var(--shadow-glow-card);
}

.pricing-card.card-featured:hover {
  border-color: var(--accent);
  box-shadow:   0 0 0 1px var(--accent), 0 0 60px rgba(74,222,128,0.15);
  transform:    translateY(-8px);
}

.card-badge-top {
  position:      absolute;
  top:           -12px;
  left:          50%;
  transform:     translateX(-50%);
  font-family:   var(--font-display);
  font-size:     10px;
  font-weight:   700;
  letter-spacing: 0.15em;
  background:    var(--accent);
  color:         var(--bg-base);
  padding:       4px 16px;
  border-radius: 100px;
  white-space:   nowrap;
}

.card-top {
  margin-bottom: 28px;
}

.plan-name {
  font-family:   var(--font-display);
  font-size:     18px;
  font-weight:   700;
  letter-spacing: 0.1em;
  color:         var(--text-primary);
  margin-bottom: 16px;
}

.plan-price {
  display:     flex;
  align-items: baseline;
  gap:         6px;
  flex-wrap:   wrap;
  margin-bottom: 6px;
}

.price-amount {
  font-family:   var(--font-display);
  font-size:     2.8rem;
  font-weight:   900;
  color:         var(--accent);
  line-height:   1;
}

.price-period {
  font-size:  14px;
  color:      var(--text-secondary);
  align-self: flex-end;
  padding-bottom: 4px;
}

.price-equiv {
  font-size:  12px;
  color:      var(--text-muted);
  margin-top: 4px;
}

.savings-badge {
  display:       inline-block;
  font-size:     11px;
  font-weight:   600;
  background:    rgba(74,222,128,0.12);
  color:         var(--accent);
  padding:       2px 8px;
  border-radius: 100px;
  margin-left:   4px;
  vertical-align: middle;
}

.early-note {
  font-size:  12px;
  color:      var(--warning);
  font-weight: 600;
  margin-top: 4px;
}

.early-countdown {
  text-align:  center;
  font-size:   12px;
  color:       var(--warning);
  font-weight: 500;
  margin-bottom: 24px;
  padding:     8px 16px;
  background:  rgba(245,158,11,0.08);
  border:      1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
}

/* Feature list */
.feature-list {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-bottom:  28px;
}

.feature-list li {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   14px;
  color:       var(--text-secondary);
}

.feature-list li::before {
  content:       '✓';
  color:         var(--accent);
  font-weight:   700;
  flex-shrink:   0;
  font-size:     12px;
}

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display:       inline-block;
  font-size:     10px;
  font-weight:   700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:       3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.badge-early {
  background: rgba(245,158,11,0.12);
  color:      var(--warning);
  border:     1px solid rgba(245,158,11,0.25);
}

.badge-green {
  background: rgba(74,222,128,0.12);
  color:      var(--accent);
  border:     1px solid rgba(74,222,128,0.25);
  font-size:  11px;
  padding:    2px 10px;
  border-radius: 100px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     600;
  padding:         12px 24px;
  border-radius:   var(--radius);
  border:          1px solid transparent;
  cursor:          pointer;
  text-decoration: none;
  transition:      all var(--transition);
  white-space:     nowrap;
  line-height:     1;
}

.btn-block  { width: 100%; }
.btn-sm     { padding: 8px 16px; font-size: 13px; }
.btn-xs     { padding: 6px 12px; font-size: 12px; }

.btn-primary {
  background:  var(--accent);
  color:       var(--bg-base);
  border-color: var(--accent);
  box-shadow:  0 0 24px rgba(74,222,128,0.2);
}
.btn-primary:hover {
  background:  #5cf090;
  box-shadow:  0 0 40px rgba(74,222,128,0.35);
  transform:   translateY(-1px);
  opacity:     1;
}

.btn-elite {
  background:  linear-gradient(135deg, var(--accent-dim), var(--accent));
  color:       var(--bg-base);
  border-color: var(--accent);
  box-shadow:  0 0 32px rgba(74,222,128,0.25);
}
.btn-elite:hover {
  box-shadow:  0 0 48px rgba(74,222,128,0.4);
  transform:   translateY(-1px);
  opacity:     1;
}

.btn-outline {
  background:  transparent;
  color:       var(--accent);
  border-color: var(--accent-dim);
}
.btn-outline:hover {
  background:  var(--accent-glow);
  opacity:     1;
}

.btn-ghost {
  background:  transparent;
  color:       var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background:  rgba(255,255,255,0.06);
  color:       var(--text-primary);
  opacity:     1;
}

.btn-discord {
  background:  var(--discord);
  color:       white;
  border-color: var(--discord);
  box-shadow:  0 4px 20px rgba(88,101,242,0.3);
}
.btn-discord:hover {
  background:  #6975f3;
  box-shadow:  0 4px 32px rgba(88,101,242,0.45);
  transform:   translateY(-1px);
  opacity:     1;
}

.btn-locked {
  background:  var(--bg-elevated) !important;
  color:       var(--text-muted) !important;
  border-color: var(--border) !important;
  box-shadow:  none !important;
  cursor:      pointer;
  opacity:     1 !important;
}
.btn-locked:hover { transform: none !important; }

/* ── Waitlist section ───────────────────────────────────────────── */
.waitlist-header {
  text-align:    center;
  margin-bottom: 40px;
}

.waitlist-badge {
  display:       inline-block;
  font-size:     11px;
  font-weight:   700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:         var(--warning);
  background:    rgba(245,158,11,0.1);
  border:        1px solid rgba(245,158,11,0.25);
  padding:       5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.waitlist-header h2 {
  font-family:   var(--font-display);
  font-size:     1.8rem;
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 10px;
}

.waitlist-header p {
  font-size:  15px;
  color:      var(--text-secondary);
  max-width:  520px;
  margin:     0 auto;
}

.waitlist-tiers {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:                   16px;
  margin-bottom:         32px;
}

.waitlist-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       24px;
  position:      relative;
  text-align:    center;
  transition:    border-color var(--transition), transform var(--transition-slow);
}

.waitlist-card:hover {
  border-color: var(--border-bright);
  transform:    translateY(-4px);
}

.waitlist-card.waitlist-current {
  border-color: var(--warning);
  background:   rgba(245,158,11,0.04);
}

.current-badge {
  position:      absolute;
  top:           -10px;
  left:          50%;
  transform:     translateX(-50%);
  font-size:     10px;
  font-weight:   700;
  letter-spacing: 0.1em;
  background:    var(--warning);
  color:         var(--bg-base);
  padding:       3px 12px;
  border-radius: 100px;
  white-space:   nowrap;
}

.waitlist-card h4 {
  font-family:   var(--font-display);
  font-size:     14px;
  font-weight:   700;
  letter-spacing: 0.1em;
  color:         var(--text-secondary);
  margin-bottom: 12px;
}

.deposit-amount {
  font-family:   var(--font-display);
  font-size:     1.6rem;
  font-weight:   900;
  color:         var(--warning);
  margin-bottom: 8px;
}

.waitlist-rates {
  font-size:     13px;
  color:         var(--text-primary);
  margin-bottom: 8px;
}

.waitlist-rates .sep {
  color: var(--text-muted);
  margin: 0 4px;
}

.waitlist-rates em {
  font-style:  normal;
  color:       var(--accent);
  font-weight: 600;
  font-size:   12px;
}

.deposit-note {
  font-size:     11px;
  color:         var(--text-muted);
  margin-bottom: 16px;
  line-height:   1.5;
}

.waitlist-note {
  font-size:  13px;
  color:      var(--text-muted);
  text-align: center;
  max-width:  600px;
  margin:     0 auto;
  line-height: 1.6;
}

/* ── Features section ───────────────────────────────────────────── */
.features-section {
  padding:    60px 0 80px;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       24px;
  transition:    border-color var(--transition), transform var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--border-bright);
  transform:    translateY(-3px);
}

.feature-icon {
  font-size:     24px;
  margin-bottom: 12px;
  display:       block;
}

.feature-card h4 {
  font-size:     15px;
  font-weight:   600;
  color:         var(--text-primary);
  margin-bottom: 6px;
}

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

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section {
  padding:    60px 0 80px;
  border-top: 1px solid var(--border);
}

.faq-list {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  margin-top:     40px;
}

.faq-item {
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
}

.faq-question {
  width:           100%;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         18px 20px;
  background:      none;
  border:          none;
  color:           var(--text-primary);
  font-family:     var(--font-body);
  font-size:       14px;
  font-weight:     500;
  cursor:          pointer;
  text-align:      left;
  gap:             16px;
  transition:      background var(--transition);
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-chevron {
  flex-shrink: 0;
  color:       var(--text-muted);
  transition:  transform var(--transition);
  font-size:   18px;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  font-size:   14px;
  color:       var(--text-secondary);
  line-height: 1.7;
  padding:     0 20px;
  max-height:  0;
  overflow:    hidden;
  transition:  max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  padding:    0 20px 18px;
  max-height: 400px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top:  1px solid var(--border);
  padding:     32px 0;
  margin-top:  40px;
}

.footer-inner {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             16px;
  flex-wrap:       wrap;
}

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

.footer-links {
  display: flex;
  gap:     20px;
}

.footer-links a {
  font-size: 13px;
  color:     var(--text-muted);
}
.footer-links a:hover { color: var(--accent); opacity: 1; }

/* ── Account portal ─────────────────────────────────────────────── */
.account-gate {
  text-align: center;
  padding:    80px 24px;
}

.gate-icon {
  font-size:     48px;
  margin-bottom: 24px;
}

.account-gate h2 {
  font-family:   var(--font-display);
  font-size:     1.8rem;
  font-weight:   700;
  margin-bottom: 12px;
  color:         var(--text-primary);
}

.account-gate p {
  font-size:     15px;
  color:         var(--text-secondary);
  margin-bottom: 32px;
}

.account-header {
  display:       flex;
  align-items:   center;
  gap:           16px;
  margin-bottom: 32px;
  padding:       20px 24px;
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
}

.account-avatar img {
  width:         48px;
  height:        48px;
  border-radius: 50%;
  border:        2px solid var(--border-bright);
}

.account-user-info h2 {
  font-size:   18px;
  font-weight: 600;
  color:       var(--text-primary);
}

.account-user-info p {
  font-size:  12px;
  color:      var(--text-muted);
}

.account-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:                   20px;
}

.account-card {
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       24px;
}

.account-card h3 {
  font-size:     14px;
  font-weight:   600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:         var(--text-muted);
  margin-bottom: 16px;
}

.portal-actions {
  display:        flex;
  flex-direction: column;
  gap:            10px;
}

.portal-note {
  font-size:  12px;
  color:      var(--text-muted);
  line-height: 1.5;
}

.plan-info-list {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  margin-bottom:  16px;
}

.plan-info-row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  font-size:       14px;
}

.plan-info-row span:first-child { color: var(--text-secondary); }
.plan-value { color: var(--text-primary); font-weight: 500; }

.plan-note {
  font-size:  12px;
  color:      var(--text-muted);
  line-height: 1.5;
}

.plan-info-empty {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            12px;
}

/* ── Plan status pills ────────────────────────────────────────────── */
.plan-status-pill {
  display:       inline-block;
  padding:       2px 9px;
  border-radius: 99px;
  font-size:     11px;
  font-weight:   600;
  letter-spacing: 0.02em;
}

.pill-active      { background: rgba(74,222,128,0.12); color: #4ade80; }
.pill-past-due    { background: rgba(245,158,11,0.12); color: #f59e0b; }
.pill-canceled    { background: rgba(239,68,68,0.10);  color: #ef4444; }
.pill-grandfathered { background: rgba(74,222,128,0.12); color: #4ade80; }
.pill-standard    { background: rgba(100,116,139,0.12); color: #94a3b8; }

/* ── Skeleton shimmer ─────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background:      linear-gradient(90deg, var(--bg-surface) 25%, var(--border) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation:       shimmer 1.6s ease-in-out infinite;
  border-radius:   4px;
}

.plan-info-loading {
  display:        flex;
  flex-direction: column;
  gap:            14px;
  padding:        4px 0;
}

.skeleton-row {
  height: 14px;
  width:  100%;
}

.quick-links {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.quick-link {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   14px;
  color:       var(--text-secondary);
  padding:     10px 12px;
  border-radius: var(--radius-sm);
  transition:  all var(--transition);
  border:      1px solid transparent;
}

.quick-link:hover {
  background:  var(--accent-glow);
  border-color: rgba(74,222,128,0.15);
  color:       var(--text-primary);
  opacity:     1;
}

/* ── Success / Cancel pages ─────────────────────────────────────── */
.result-page {
  display:         flex;
  align-items:     center;
  justify-content: center;
  min-height:      80vh;
  padding:         40px 24px;
}

.result-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-xl);
  padding:       48px;
  max-width:     520px;
  width:         100%;
  text-align:    center;
  box-shadow:    var(--shadow-lg);
}

.result-card.success-card {
  border-color: rgba(74,222,128,0.3);
  box-shadow:   0 0 60px rgba(74,222,128,0.08);
}

.result-card.cancel-card {
  border-color: rgba(239,68,68,0.2);
}

.result-icon {
  font-size:     56px;
  margin-bottom: 20px;
  display:       block;
  animation:     bounceIn 0.6s ease;
}

.result-card h1 {
  font-family:   var(--font-display);
  font-size:     1.8rem;
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 12px;
}

.result-card p {
  font-size:     15px;
  color:         var(--text-secondary);
  line-height:   1.7;
  margin-bottom: 24px;
}

.result-steps {
  text-align:    left;
  background:    var(--bg-surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       20px 24px;
  margin-bottom: 32px;
}

.result-steps h4 {
  font-size:   13px;
  font-weight: 600;
  color:       var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.result-steps ol {
  list-style:   decimal;
  padding-left: 20px;
  display:      flex;
  flex-direction: column;
  gap:          8px;
}

.result-steps li {
  font-size:  13px;
  color:      var(--text-secondary);
  line-height: 1.6;
}

.result-actions {
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

/* ── Terms / Privacy ────────────────────────────────────────────── */
.legal-page {
  padding: 60px 0 80px;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header h1 {
  font-family:   var(--font-display);
  font-size:     2rem;
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 8px;
}

.legal-header p {
  font-size: 14px;
  color:     var(--text-muted);
}

.legal-content {
  color:      var(--text-secondary);
  line-height: 1.8;
  font-size:  15px;
}

.legal-content h2 {
  font-size:     18px;
  font-weight:   600;
  color:         var(--text-primary);
  margin:        40px 0 12px;
  padding-top:   20px;
  border-top:    1px solid var(--border);
}

.legal-content h3 {
  font-size:   15px;
  font-weight: 600;
  color:       var(--text-primary);
  margin:      24px 0 8px;
}

.legal-content p  { margin-bottom: 16px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; margin-bottom: 6px; }
.legal-content a  { color: var(--accent); }

.legal-content ol.numbered-list {
  padding-left:  20px;
  margin-bottom: 16px;
  counter-reset: rule-counter;
  list-style:    none;
}
.legal-content ol.numbered-list li {
  counter-increment: rule-counter;
  margin-bottom:     10px;
  padding-left:      8px;
}
.legal-content ol.numbered-list li::before {
  content:      counter(rule-counter) ". ";
  font-weight:  600;
  color:        var(--accent);
  margin-right: 4px;
}

.legal-callout {
  background:    rgba(74, 222, 128, 0.04);
  border:        1px solid rgba(74, 222, 128, 0.20);
  border-left:   3px solid var(--accent);
  border-radius: var(--radius);
  padding:       24px 28px;
  margin:        0 0 24px;
}
.legal-callout h3 {
  color:       var(--accent);
  margin-top:  0;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-updated {
  font-size:   13px;
  color:       var(--text-muted);
  margin-top:  40px;
  padding-top: 20px;
  border-top:  1px solid var(--border);
}

/* ── Utilities ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: 12px; }
.sep { color: var(--text-muted); }

.divider {
  height:     1px;
  background: var(--border);
  margin:     40px 0;
}

/* Loading spinner */
.spinner {
  width:         24px;
  height:        24px;
  border:        2px solid rgba(74,222,128,0.2);
  border-top:    2px solid var(--accent);
  border-radius: 50%;
  animation:     spin 0.8s linear infinite;
  display:       inline-block;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(74,222,128,0.1); }
  50%       { box-shadow: 0 0 40px rgba(74,222,128,0.25); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero           { padding: 48px 0 24px; }
  .hero-stats     { gap: 24px; }
  .nav-links      { display: none; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card   { padding: 24px; }
  .waitlist-tiers { grid-template-columns: repeat(2, 1fr); }
  .account-grid   { grid-template-columns: 1fr; }
  .result-card    { padding: 32px 20px; }
  .footer-inner   { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container       { padding: 0 16px; }
  .waitlist-tiers  { grid-template-columns: 1fr; }
  .hero-title      { font-size: 1.8rem; }
}
