/* ============================================================
   Panter Tracker – Global Design System
   Dark purple/violet theme, glassmorphism, smooth animations
   ============================================================ */

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

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:           #09090f;
  --c-bg-2:         #0f0f1a;
  --c-bg-3:         #14141f;
  --c-surface:      rgba(255,255,255,0.04);
  --c-surface-2:    rgba(255,255,255,0.07);
  --c-border:       rgba(255,255,255,0.08);
  --c-border-2:     rgba(255,255,255,0.14);

  /* Brand */
  --c-violet:       #7c3aed;
  --c-violet-2:     #8b5cf6;
  --c-violet-light: #a78bfa;
  --c-violet-glow:  rgba(124,58,237,0.35);
  --c-indigo:       #4f46e5;
  --c-fuchsia:      #d946ef;

  /* Accent */
  --c-green:        #22c55e;
  --c-green-dim:    rgba(34,197,94,0.15);
  --c-red:          #ef4444;
  --c-red-dim:      rgba(239,68,68,0.15);
  --c-yellow:       #eab308;
  --c-yellow-dim:   rgba(234,179,8,0.15);
  --c-blue:         #3b82f6;

  /* Text */
  --c-text:         #f4f4f8;
  --c-text-2:       #a0a0b8;
  --c-text-3:       #6b6b80;

  /* Spotify / SoundCloud brand */
  --c-spotify:      #1db954;
  --c-soundcloud:   #ff5500;

  /* Gradients */
  --g-brand:        linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #d946ef 100%);
  --g-card:         linear-gradient(145deg, rgba(124,58,237,0.1) 0%, rgba(79,70,229,0.05) 100%);
  --g-hero:         radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.4) 0%, transparent 70%);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  /* Shadows */
  --sh-card:    0 4px 24px rgba(0,0,0,0.4);
  --sh-violet:  0 0 40px rgba(124,58,237,0.3), 0 4px 24px rgba(0,0,0,0.5);
  --sh-glow:    0 0 60px rgba(124,58,237,0.5);

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Colors */
  --c-bg:           #f5f5fa;
  --c-bg-2:         #ffffff;
  --c-bg-3:         #eaeaf2;
  --c-surface:      rgba(0,0,0,0.02);
  --c-surface-2:    rgba(0,0,0,0.05);
  --c-border:       rgba(0,0,0,0.08);
  --c-border-2:     rgba(0,0,0,0.14);

  /* Brand adjustments for contrast */
  --c-violet:       #6d28d9;
  --c-violet-2:     #7c3aed;
  --c-violet-light: #5b21b6;
  --c-violet-glow:  rgba(109,40,217,0.15);

  /* Text colors */
  --c-text:         #0f0f1a;
  --c-text-2:       #5b5b78;
  --c-text-3:       #8c8ca5;

  /* Gradients */
  --g-card:         linear-gradient(145deg, rgba(124,58,237,0.03) 0%, rgba(79,70,229,0.02) 100%);
  --g-hero:         radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.12) 0%, transparent 70%);

  /* Shadows */
  --sh-card:    0 4px 20px rgba(0,0,0,0.05);
  --sh-violet:  0 4px 20px rgba(109,40,217,0.2);
  --sh-glow:    0 0 40px rgba(124,58,237,0.2);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--c-text-2); }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted  { color: var(--c-text-2); }
.text-dimmed { color: var(--c-text-3); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: var(--font-mono); }

/* ── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-sm { max-width: 720px; }
.container-lg { max-width: 1400px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(9,9,15,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-logo { display: flex; align-items: center; gap: var(--sp-3); font-weight: 700; font-size: 1.125rem; }
.navbar-logo .logo-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--sh-violet);
}
.navbar-nav { display: flex; align-items: center; gap: var(--sp-2); }
.navbar-nav a {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--c-text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--c-text); background: var(--c-surface-2); }
.navbar-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 20px; border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 600;
  border: none; outline: none;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--c-violet); color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}
.btn-primary:hover { background: var(--c-violet-2); box-shadow: var(--sh-violet); }

.btn-gradient {
  background: var(--g-brand); color: #fff;
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.btn-gradient:hover { box-shadow: var(--sh-glow); transform: translateY(-1px); }

.btn-ghost {
  background: var(--c-surface); color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border-2); }

.btn-danger { background: rgba(239,68,68,0.15); color: var(--c-red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 7px 14px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-full { width: 100%; }

.btn-google {
  background: #fff; color: #1f1f1f;
  border: 1px solid rgba(0,0,0,0.1);
  gap: var(--sp-3);
}
.btn-google:hover { background: #f8f8f8; }
.btn-google img { width: 18px; height: 18px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--g-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--c-border-2); box-shadow: var(--sh-card); }

.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--c-text-2); }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text); font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px var(--c-violet-glow);
  background: var(--c-surface-2);
}
.form-input::placeholder { color: var(--c-text-3); }
.form-error { font-size: 0.8125rem; color: var(--c-red); }
.form-hint  { font-size: 0.8125rem; color: var(--c-text-3); }

/* Toggle / Switch */
.toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--c-bg-3); border: 1px solid var(--c-border-2);
  border-radius: var(--r-full);
  cursor: pointer; transition: background-color var(--t-base), border-color var(--t-base);
}
.toggle-slider::before {
  content: '';
  position: absolute; left: 3px; bottom: 3px;
  width: 16px; height: 16px;
  background: var(--c-text-3); border-radius: 50%;
  transition: transform var(--t-base), background-color var(--t-base);
}
.toggle input:checked + .toggle-slider { background: var(--c-violet); border-color: var(--c-violet); }
.toggle input:checked + .toggle-slider::before { background: #fff; transform: translateX(20px); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-violet { background: rgba(124,58,237,0.2); color: var(--c-violet-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-green  { background: var(--c-green-dim); color: var(--c-green); border: 1px solid rgba(34,197,94,0.3); }
.badge-red    { background: var(--c-red-dim); color: var(--c-red); border: 1px solid rgba(239,68,68,0.3); }
.badge-yellow { background: var(--c-yellow-dim); color: var(--c-yellow); border: 1px solid rgba(234,179,8,0.3); }
.badge-spotify { background: rgba(29,185,84,0.15); color: var(--c-spotify); border: 1px solid rgba(29,185,84,0.3); }
.badge-soundcloud { background: rgba(255,85,0,0.15); color: var(--c-soundcloud); border: 1px solid rgba(255,85,0,0.3); }
.badge-premium { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(217,70,239,0.3)); color: var(--c-violet-light); border: 1px solid rgba(124,58,237,0.4); }

/* ── Stat cards ─────────────────────────────────────────── */
.stat-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.stat-card-glow { position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8125rem; color: var(--c-text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-change { font-size: 0.8125rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-change.up   { color: var(--c-green); }
.stat-change.down { color: var(--c-red); }

/* ── Release cards ───────────────────────────────────────── */
.release-card {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
}
.release-card:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.release-source-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.25rem;
}
.release-source-icon.spotify    { background: rgba(29,185,84,0.15); }
.release-source-icon.soundcloud { background: rgba(255,85,0,0.15); }
.release-info { flex: 1; min-width: 0; }
.release-title {
  font-weight: 600; font-size: 0.9375rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.release-meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: 4px; }
.release-date { font-size: 0.8125rem; color: var(--c-text-3); }
.release-new-dot {
  position: absolute; left: -3px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-violet);
  box-shadow: 0 0 8px var(--c-violet);
}

/* ── Artist card ─────────────────────────────────────────── */
.artist-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  cursor: pointer; position: relative; overflow: hidden;
}
.artist-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--g-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.artist-card:hover { border-color: rgba(124,58,237,0.4); box-shadow: var(--sh-violet); transform: translateY(-3px); }
.artist-card:hover::after { transform: scaleX(1); }
.artist-avatar {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: var(--sp-4);
}
.artist-name { font-weight: 700; font-size: 1rem; margin-bottom: var(--sp-2); }
.artist-stats { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); }
.artist-stat { text-align: center; }
.artist-stat-val { font-weight: 700; font-size: 1.125rem; }
.artist-stat-lbl { font-size: 0.75rem; color: var(--c-text-3); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--t-slow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text-2); font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.modal-close:hover { background: var(--c-surface-2); color: var(--c-text); }

/* ── Toast notifications ──────────────────────────────────  */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: var(--sp-3); }
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-bg-2); border: 1px solid var(--c-border-2);
  box-shadow: var(--sh-card);
  font-size: 0.875rem; font-weight: 500;
  animation: toastIn var(--t-slow) forwards;
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--c-green); }
.toast.error   { border-left: 3px solid var(--c-red); }
.toast.info    { border-left: 3px solid var(--c-violet); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── Loading ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--c-border-2);
  border-top-color: var(--c-violet);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,9,15,0.7); border-radius: inherit;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-6) 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.divider span { font-size: 0.8125rem; color: var(--c-text-3); white-space: nowrap; }

/* ── Page wrapper ────────────────────────────────────────── */
.page-wrapper { padding-top: 64px; min-height: 100vh; }
.page-main { padding: var(--sp-10) 0; }
.page-header { margin-bottom: var(--sp-8); }
.page-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.page-subtitle { color: var(--c-text-2); margin-top: var(--sp-2); }

/* ── Sidebar layout ──────────────────────────────────────── */
.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.sidebar {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid var(--c-border);
  background: var(--c-bg-2);
}
.sidebar-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.sidebar-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-4); border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--c-text-2);
  transition: background-color var(--t-fast), color var(--t-fast); cursor: pointer;
}
.sidebar-item:hover { background: var(--c-surface); color: var(--c-text); }
.sidebar-item.active { background: rgba(124,58,237,0.15); color: var(--c-violet-light); }
.sidebar-item .icon { font-size: 1.125rem; width: 20px; text-align: center; }
.sidebar-section { font-size: 0.7rem; font-weight: 700; color: var(--c-text-3); letter-spacing: 0.1em; text-transform: uppercase; padding: var(--sp-4) var(--sp-4) var(--sp-2); }
.app-content { padding: var(--sp-8) var(--sp-8); overflow-y: auto; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-8);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.empty-icon { font-size: 3rem; opacity: 0.3; }
.empty-title { font-size: 1.125rem; font-weight: 600; }
.empty-text { color: var(--c-text-3); max-width: 320px; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--sp-1); background: var(--c-surface); border-radius: var(--r-md); padding: 4px; }
.tab {
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--c-text-2);
  cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  border: none; background: transparent;
}
.tab:hover { color: var(--c-text); }
.tab.active { background: var(--c-bg); color: var(--c-text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ── Progress bar ────────────────────────────────────────── */
.progress { height: 4px; background: var(--c-surface-2); border-radius: var(--r-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--g-brand); border-radius: var(--r-full); transition: width var(--t-slow); }

/* ── Hero section ────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: var(--sp-20) var(--sp-6);
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  font-size: 0.8125rem; font-weight: 600; color: var(--c-violet-light);
  margin-bottom: var(--sp-6);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 6px var(--c-green); }
.hero-title { margin-bottom: var(--sp-6); }
.hero-subtitle { font-size: 1.125rem; color: var(--c-text-2); max-width: 600px; margin: 0 auto var(--sp-10); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* ── Features section ────────────────────────────────────── */
.feature-card {
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-4px); box-shadow: var(--sh-card); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: var(--sp-4);
}
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: var(--sp-2); }
.feature-text { font-size: 0.875rem; color: var(--c-text-2); line-height: 1.7; }

/* ── Pricing cards ───────────────────────────────────────── */
.pricing-card {
  padding: var(--sp-8); border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
}
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(124,58,237,0.15), rgba(79,70,229,0.1));
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--sh-violet);
}
.pricing-badge {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  background: var(--g-brand); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full);
}
.pricing-price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin: var(--sp-4) 0; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--c-text-3); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-6) 0; }
.pricing-features li { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.9rem; }
.pricing-features li::before { content: '✓'; color: var(--c-violet-light); font-weight: 700; flex-shrink: 0; }
.pricing-features li.unavail { color: var(--c-text-3); }
.pricing-features li.unavail::before { content: '–'; color: var(--c-text-3); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 200px 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 100px; }
  .navbar-nav { display: none; }
  .app-content { padding: var(--sp-5) var(--sp-4); }
}

/* ── Scroll bar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes shimmer  { from { background-position:-200% 0; } to { background-position:200% 0; } }

.animate-fade-up  { animation: fadeUp 0.5s ease forwards; }
.animate-fade-in  { animation: fadeIn 0.5s ease forwards; }
.animate-float    { animation: float 4s ease-in-out infinite; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--c-surface) 25%, var(--c-surface-2) 50%, var(--c-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }
.hidden  { display: none !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
