/* ============================================================
   EasyGuard Portal — Design System
   Dark purple/blue theme. Inspired by NordVPN / Mullvad.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:            #0a0a0f;
  --bg2:           #080810;
  --surface:       #111118;
  --surface2:      #16161f;
  --surface3:      #1c1c2a;
  --border:        #252538;
  --border-bright: #333350;

  --purple:        #8b5cf6;
  --purple-dark:   #7c3aed;
  --purple-light:  #a78bfa;
  --purple-dim:    rgba(139,92,246,0.15);
  --blue:          #3b82f6;
  --blue-light:    #60a5fa;
  --cyan:          #06b6d4;
  --cyan-dim:      rgba(6,182,212,0.12);

  --text:          #e8e8f0;
  --text-muted:    #8888a8;
  --text-dim:      #4a4a6a;

  --success:       #10b981;
  --success-dim:   rgba(16,185,129,0.15);
  --warning:       #f59e0b;
  --warning-dim:   rgba(245,158,11,0.15);
  --danger:        #ef4444;
  --danger-dim:    rgba(239,68,68,0.15);
  --info:          #3b82f6;
  --info-dim:      rgba(59,130,246,0.15);

  --gradient:         linear-gradient(135deg, #8b5cf6, #3b82f6);
  --gradient-subtle:  linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.08));
  --gradient-border:  linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --shadow-glow:0 0 32px rgba(139,92,246,0.2);

  --transition: 0.2s ease;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── Public Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img, .nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links .active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Mobile nav toggle ──────────────────────────────────────── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 8px;
}
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px; z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 16px; color: var(--text-muted);
  font-weight: 500; border-radius: var(--radius-sm);
}
.nav-mobile a:hover { color: var(--text); background: var(--surface2); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ── Portal Sidebar Layout ─────────────────────────────────── */
.portal-wrap {
  display: flex; min-height: 100vh;
}
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50; overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo img, .sidebar-logo svg { height: 32px; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover { color: var(--text); background: var(--surface2); }
.sidebar-nav a.active {
  color: var(--purple-light); background: var(--purple-dim);
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-section {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
  padding: 16px 12px 6px;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-footer a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.875rem;
  transition: all var(--transition);
}
.sidebar-footer a:hover { color: var(--danger); background: var(--danger-dim); }

.portal-main {
  margin-left: 240px; flex: 1;
  min-height: 100vh; background: var(--bg);
}
.portal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.portal-content { padding: 32px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .portal-content { padding: 20px; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
  white-space: nowrap; line-height: 1.4;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(139,92,246,0.45);
  color: #fff;
}
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface3); color: var(--text); border-color: var(--border-bright); }

.btn-outline {
  background: transparent; color: var(--purple-light);
  border: 1px solid var(--purple);
}
.btn-outline:hover { background: var(--purple-dim); color: var(--purple-light); }

.btn-danger {
  background: var(--danger-dim); color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success {
  background: var(--success-dim); color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }

.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card-sm { padding: 16px; border-radius: var(--radius); }
.card-glow {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), var(--shadow-glow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 1rem; font-weight: 600; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .grid-2 { grid-template-columns: 1fr; } }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.9rem; transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 5px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 5px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 0.875rem; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.alert-error   { background: var(--danger-dim);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.alert-warning { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.alert-info    { background: var(--info-dim);    color: var(--blue-light); border: 1px solid rgba(59,130,246,0.3); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-info    { background: var(--info-dim);    color: var(--blue-light); }
.badge-muted   { background: var(--surface2);    color: var(--text-muted); }
.badge-purple  { background: var(--purple-dim);  color: var(--purple-light); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--surface2); }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
tbody td { padding: 12px 16px; color: var(--text-muted); vertical-align: middle; }
tbody td strong { color: var(--text); }

/* ── Stats cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
}
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
              letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Pricing cards ──────────────────────────────────────────── */
.pricing-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-bright);
}
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), 0 0 40px rgba(139,92,246,0.2);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-name { font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
                letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.pricing-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.pricing-amount .big  { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-amount .per  { font-size: 1rem; color: var(--text-muted); }
.pricing-billing { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.pricing-saving  { font-size: 0.8rem; color: var(--success); font-weight: 600; margin-bottom: 24px; height: 20px; }
.pricing-features { list-style: none; margin: 0 0 28px; padding: 0; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 0.875rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: ''; display: block; width: 16px; height: 16px; flex-shrink: 0;
  background: var(--success-dim); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* ── Hero / sections ────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-dim); color: var(--purple-light);
  border: 1px solid rgba(139,92,246,0.3);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title { margin-bottom: 20px; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-sub {
  text-align: center; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 48px;
}

/* ── Feature cards ──────────────────────────────────────────── */
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--gradient-subtle); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; border: 1px solid var(--border);
}
.feature-icon svg { width: 24px; height: 24px; color: var(--purple-light); }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Platform icons ─────────────────────────────────────────── */
.platform-grid {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.platform-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
  transition: all var(--transition); min-width: 90px;
}
.platform-item:hover { border-color: var(--purple); color: var(--text); background: var(--surface3); }
.platform-item svg { width: 28px; height: 28px; color: var(--purple-light); }

/* ── Auth forms ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-logo img, .auth-logo svg { height: 40px; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-dim); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-muted); }

/* ── Device cards ───────────────────────────────────────────── */
.device-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  transition: border-color var(--transition);
}
.device-card:hover { border-color: var(--border-bright); }
.device-card.current { border-color: var(--success); background: rgba(16,185,129,0.03); }
.device-icon {
  width: 44px; height: 44px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.device-icon svg { width: 22px; height: 22px; color: var(--purple-light); }
.device-info { flex: 1; min-width: 0; }
.device-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Server list ────────────────────────────────────────────── */
.server-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.server-row:last-child { border-bottom: none; }
.server-row:hover { background: var(--surface2); }
.server-flag { font-size: 1.4rem; line-height: 1; }
.server-name { font-weight: 600; font-size: 0.9rem; flex: 1; }
.server-type {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.server-type.premium { background: var(--purple-dim); color: var(--purple-light); }
.server-type.standard { background: var(--surface2); color: var(--text-muted); }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.checkout-method {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px; border: 2px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition); background: var(--surface2);
  text-decoration: none; color: var(--text);
}
.checkout-method:hover { border-color: var(--purple); color: var(--text); }
.checkout-method.selected { border-color: var(--purple); background: var(--purple-dim); }
.checkout-method-icon { font-size: 2rem; }
.checkout-method-label { font-weight: 600; font-size: 0.9rem; }
.checkout-method-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ── Footer (public) ────────────────────────────────────────── */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 32px; margin-bottom: 14px; }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
  padding: 10px 18px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); margin-bottom: -1px;
  background: none; border-top: none; border-left: none; border-right: none;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--purple-light); border-bottom-color: var(--purple); }

/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  min-width: 180px; z-index: 200;
  box-shadow: var(--shadow);
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-muted);
  background: none; border: none; cursor: pointer; text-decoration: none;
  transition: all var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface3); color: var(--text); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95); transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.5rem; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer; font-weight: 500; font-size: 0.95rem;
  background: none; border: none; width: 100%; text-align: left; color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--purple-light); }
.faq-chevron { transition: transform 0.25s ease; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 16px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Subscription status bar ────────────────────────────────── */
.sub-status-bar {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.sub-status-bar.active { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
.sub-status-bar.trialing { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.04); }
.sub-status-bar.payment_failed { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Utilities ──────────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-1   { margin-top: 4px; }
.mt-2   { margin-top: 8px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mb-2   { margin-bottom: 8px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.mb-8   { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }
.hidden      { display: none !important; }

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--purple);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mesh bg pattern ────────────────────────────────────────── */
.bg-mesh {
  background-image:
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Toast notifications ────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  font-size: 0.875rem; color: var(--text);
  box-shadow: var(--shadow); min-width: 260px; max-width: 360px;
  display: flex; align-items: center; gap: 12px;
  animation: slide-in 0.25s ease;
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error   { border-left: 3px solid var(--danger); }
.toast.toast-info    { border-left: 3px solid var(--blue); }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Glow divider ───────────────────────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--blue), transparent);
  opacity: 0.4; margin: 0;
}

/* ── How it works steps ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  margin: 0 auto 16px; position: relative; z-index: 1;
  box-shadow: 0 0 20px rgba(139,92,246,0.4);
}
.step-title { font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
