/* ============================================================
   Bookly · Pulse Design System
   Direction: Dark luxury athletic (premium boutique fitness)
   Distinct from: editorial / neon / sage / mono / pastel
   ============================================================ */

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

/* ── LIGHT THEME (daylight studio) ─────────────────────── */
:root {
  --bg: #f7f4f0;
  --surface: #ffffff;
  --surface2: #f0ece6;
  --accent: #e8394a;
  --accent-dark: #c42436;
  --accent-glow: rgba(232,57,74,0.18);
  --ink: #1a1412;
  --ink-muted: #6b5f58;
  --line: #ddd8d2;
  --tag-bg: #fde8ea;
  --tag-text: #c42436;
  --space: 28px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26,20,18,0.08);
  --shadow-lg: 0 12px 48px rgba(26,20,18,0.14);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  color-scheme: light;
}

/* ── DARK THEME (evening class atmosphere) ─────────────── */
[data-theme="dark"] {
  --bg: #0e0c10;
  --surface: #1a1720;
  --surface2: #221e2a;
  --accent: #ff4f5e;
  --accent-dark: #e8394a;
  --accent-glow: rgba(255,79,94,0.22);
  --ink: #f5f0eb;
  --ink-muted: #8a7f8a;
  --line: #2d2835;
  --tag-bg: rgba(255,79,94,0.12);
  --tag-text: #ff4f5e;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  color-scheme: dark;
}

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background .3s, color .3s;
  min-height: 100vh;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ── LAYOUT ────────────────────────────────────────────── */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space);
}
.wrap-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ── NAVIGATION ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.nav-logo .logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface2); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s, opacity .2s;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink-muted); background: var(--surface2); }
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 0.5em 0.8em;
}
.btn-ghost:hover { color: var(--ink); }
.btn-sm { font-size: 0.8rem; padding: 0.45em 1em; }
.btn-lg { font-size: 1rem; padding: 0.8em 1.8em; }

/* ── HERO SPLIT ───────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 5rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-inner {
  text-align: center;
  padding: 2rem;
}
.viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}
.viz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.viz-card .vc-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}
.viz-card .vc-label { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── FEATURES GRID ─────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 560px;
  margin-bottom: 3rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.cta-band p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── PRICING ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 999px;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  margin-bottom: 0.3rem;
}
.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-price .period {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 400;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  min-height: 2.6em;
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding: 0.4em 0;
  border-bottom: 1px solid var(--line);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FORM PAGES (login / signup) ───────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem var(--space);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.auth-card .sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}
.auth-card form { display: flex; flex-direction: column; gap: 0.2rem; }
.auth-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 1.2rem 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── DASHBOARD ──────────────────────────────────────────── */
.dashboard-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.dash-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.dash-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.dash-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.dash-nav { list-style: none; }
.dash-nav li { margin-bottom: 0.2rem; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.6em 0.8em;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.dash-nav a:hover { background: var(--surface2); color: var(--ink); }
.dash-nav a.active { background: var(--tag-bg); color: var(--accent); font-weight: 600; }
.dash-content { min-width: 0; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CLASS SCHEDULE ─────────────────────────────────────── */
.class-list { display: flex; flex-direction: column; gap: 0.8rem; }
.class-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow .2s, border-color .2s;
}
.class-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.class-time {
  min-width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.2;
}
.class-time span { display: block; font-size: 0.72rem; color: var(--ink-muted); font-weight: 400; font-family: var(--font-body); }
.class-info { flex: 1; min-width: 0; }
.class-info h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.class-info p { font-size: 0.82rem; color: var(--ink-muted); font-weight: 300; }
.class-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-blue { background: #e3f2fd; color: #1565c0; }
.tag-amber { background: #fff8e1; color: #f57f17; }
[data-theme="dark"] .tag-green { background: rgba(46,125,50,0.15); color: #66bb6a; }
[data-theme="dark"] .tag-blue { background: rgba(25,118,210,0.15); color: #64b5f6; }
[data-theme="dark"] .tag-amber { background: rgba(245,127,23,0.15); color: #ffa726; }
.class-spots { font-size: 0.8rem; color: var(--ink-muted); font-weight: 500; min-width: 70px; text-align: right; }
.class-spots strong { color: var(--ink); font-weight: 700; }

/* ── BOOKING / MEMBERS ─────────────────────────────────── */
.member-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-info h4 { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.1rem; }
.member-info p { font-size: 0.8rem; color: var(--ink-muted); font-weight: 300; }

/* ── TABLE ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.9rem 1.2rem;
  text-align: left;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--ink-muted); font-weight: 300; line-height: 1.6; max-width: 260px; }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 300;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ── LEGAL PAGES ───────────────────────────────────────── */
.legal-page { padding: 4rem 0; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.legal-page .meta { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 2.5rem; }
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.legal-page p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.75; font-weight: 300; margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.75; font-weight: 300; }

/* ── CONTACT ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.contact-info p { font-size: 0.92rem; color: var(--ink-muted); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* ── COOKIE BANNER ──────────────────────────────────────── */
#consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1em var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  font-size: 0.85rem;
  color: var(--ink-muted);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}
#consent p { font-weight: 300; flex: 1; }
#consent-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ── ALERTS ────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: var(--tag-bg); color: var(--accent); border: 1px solid var(--line); }
[data-theme="dark"] .alert-success { background: rgba(46,125,50,0.15); color: #66bb6a; }
[data-theme="dark"] .alert-error { background: rgba(198,40,40,0.15); color: #ef5350; }

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

/* ── THEME / LANG TOGGLES ──────────────────────────────── */
.theme-toggle, .lang-toggle {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.35em 0.8em;
  transition: all .2s;
}
.theme-toggle:hover, .lang-toggle:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}
.lang-select, .theme-select {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.35em 0.8em;
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.5s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .stat-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  :root { --space: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .class-item { flex-wrap: wrap; }
}
