/* ═══════════════════════════════════════════════════════════════
   AdPilot — Global Stylesheet
   Structure:
     1. Design Tokens (CSS Variables)
     2. Reset & Base
     3. Typography
     4. Layout Utilities
     5. Background & Atmosphere
     6. Components — Navigation
     7. Components — Buttons
     8. Components — Forms
     9. Components — Cards
    10. Components — Badges & Labels
    11. Components — Modals
    12. Components — Toast
    13. Components — Footer
    14. Pages — Hero
    15. Pages — Auth (Guest Layout)
    16. Pages — Features
    17. Pages — Pricing
    18. Animations & Keyframes
    19. Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:          #060A0F;
  --color-surface:     #0D1421;
  --color-surface-alt: #111828;
  --color-border:      rgba(255, 255, 255, 0.07);
  --color-border-hover:rgba(255, 255, 255, 0.15);
  --color-accent:      #00E5FF;
  --color-accent-2:    #7B61FF;
  --color-accent-3:    #FF6B35;
  --color-success:     #00D68F;
  --color-danger:      #FF4757;
  --color-warning:     #FFB800;
  --color-text:        #E8EDF5;
  --color-muted:       #6B7A99;
  --color-card:        rgba(255, 255, 255, 0.03);

  /* Gradients */
  --gradient-accent:   linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  --gradient-bg-mesh:
    radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(0, 229, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%,  rgba(123, 97, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 107, 53, 0.04) 0%, transparent 60%);

  /* Shadows */
  --shadow-glow:       0 0 40px rgba(0, 229, 255, 0.12);
  --shadow-card:       0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-modal:      0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-lg:         0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.12);

  /* Typography */
  --font-display:      'Clash Display', sans-serif;
  --font-heading:      'Syne', sans-serif;
  --font-body:         'DM Sans', sans-serif;

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

  /* Border Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-height:       68px;
  --container-max:    1200px;
  --container-pad:    24px;
}


/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }


/* ─────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
}

h1 { font-size: clamp(48px, 6vw, 80px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: 18px; font-family: var(--font-heading); letter-spacing: -0.01em; }

p { color: var(--color-muted); line-height: 1.7; }

.text-accent  { color: var(--color-accent); }
.text-accent2 {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted   { color: var(--color-muted); }
.text-center  { text-align: center; }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }

.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}


/* ─────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: 100px;
  position: relative;
  z-index: 1;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

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

.mt-1  { margin-top: var(--space-1); }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.ms-2  { margin-inline-start: var(--space-2); }
.ms-3  { margin-inline-start: var(--space-3); }
.ms-4  { margin-inline-start: var(--space-4); }
.w-full { width: 100%; }
.block  { display: block; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ─────────────────────────────────────────────────────────────
   5. BACKGROUND & ATMOSPHERE
   ───────────────────────────────────────────────────────────── */
.bg-mesh::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-bg-mesh);
  pointer-events: none;
  z-index: 0;
}

.bg-surface     { background: var(--color-surface); }
.bg-surface-alt { background: var(--color-surface-alt); }
.bg-card        { background: var(--color-card); }

.border         { border: 1px solid var(--color-border); }
.border-accent  { border: 1px solid rgba(0, 229, 255, 0.3); }
.border-top     { border-top: 1px solid var(--color-border); }
.border-bottom  { border-bottom: 1px solid var(--color-border); }

.divider-line {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-6);
}

/* Top edge glow on cards */
.edge-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}


/* ─────────────────────────────────────────────────────────────
   6. COMPONENTS — NAVIGATION
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding-inline: var(--container-pad);
  background: rgba(6, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo__mark {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-10);
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  padding: var(--space-2) 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__links a:hover { color: var(--color-text); background: var(--color-card); }
.nav__links a.active { color: var(--color-accent); }

/* Dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}

.nav__dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-muted);
  background: none;
  margin: 0;
}

.dropdown-menu a:hover { color: var(--color-text); background: var(--color-card); }
.dropdown-menu a .icon { font-size: 15px; width: 20px; text-align: center; }

/* Nav Right */
.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}


/* ─────────────────────────────────────────────────────────────
   7. COMPONENTS — BUTTONS
   ───────────────────────────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

/* Sizes */
.btn--sm  { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--md  { padding: 9px var(--space-5); }
.btn--lg  { padding: 14px var(--space-8); font-size: 16px; border-radius: var(--radius-md); }
.btn--xl  { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-md); }
.btn--full { width: 100%; }

/* Variants */
.btn--primary {
  background: var(--gradient-accent);
  color: #000;
}
.btn--primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline-accent {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--color-accent);
}
.btn--outline-accent:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--color-accent);
}

.btn--surface {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--surface:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-hover);
}

.btn--google {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.btn--google:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-border-hover);
}

.btn--danger {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--color-danger);
}
.btn--danger:hover { background: rgba(255, 71, 87, 0.15); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}


/* ─────────────────────────────────────────────────────────────
   8. COMPONENTS — FORMS
   ───────────────────────────────────────────────────────────── */

/* Input Label */
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  line-height: 1;
}

/* Text Input */
.text-input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.text-input::placeholder { color: var(--color-muted); opacity: 0.7; }

.text-input:focus {
  border-color: var(--color-accent);
  background: rgba(0, 229, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.text-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.08);
}

/* Checkbox */
.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(107, 122, 153, 0.5);
  background: rgba(255, 255, 255, 0.04);
  accent-color: var(--color-accent);
  cursor: pointer;
  transition: var(--transition);
}

/* Form Group */
.form-group { position: relative; }

/* Inline form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Input Error */
.input-error {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-error::before {
  content: '⚠';
  font-size: 11px;
}

/* Auth Session Status (success flash) */
.auth-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.2);
  color: var(--color-success);
}

/* Divider with text */
.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-5);
  font-size: 12px;
  color: var(--color-muted);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--color-border);
}


/* ─────────────────────────────────────────────────────────────
   9. COMPONENTS — CARDS
   ───────────────────────────────────────────────────────────── */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card--feature { padding: var(--space-7, 28px); }
.card--pricing { padding: var(--space-8); border-radius: var(--radius-xl); }

.card--featured {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(123, 97, 255, 0.06));
  border-color: rgba(0, 229, 255, 0.3);
}

/* Feature Icon */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-5);
}
.icon--blue   { background: rgba(0, 229, 255, 0.1); }
.icon--purple { background: rgba(123, 97, 255, 0.1); }
.icon--orange { background: rgba(255, 107, 53, 0.1); }
.icon--green  { background: rgba(0, 214, 143, 0.1); }


/* ─────────────────────────────────────────────────────────────
   10. COMPONENTS — BADGES & LABELS
   ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.badge--accent {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
}

.badge--live {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.25);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
}

.badge--popular {
  background: var(--gradient-accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 2s infinite;
}


/* ─────────────────────────────────────────────────────────────
   11. COMPONENTS — MODALS (kept for JS fallback)
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
  box-shadow: var(--shadow-modal);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal__close:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}


/* ─────────────────────────────────────────────────────────────
   12. COMPONENTS — TOAST
   ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-surface);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px var(--space-5);
  font-size: 14px;
  color: var(--color-text);
  z-index: 600;
  transform: translateX(120%);
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toast.show  { transform: translateX(0); }
.toast__icon { color: var(--color-accent); font-size: 16px; }


/* ─────────────────────────────────────────────────────────────
   13. COMPONENTS — FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 var(--space-10);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand .logo { margin-bottom: 14px; }

.footer__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.social-links { display: flex; gap: var(--space-2); }

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--color-muted);
}
.social-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }

.footer__col ul a {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer__col ul a:hover { color: var(--color-text); }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy { font-size: 13px; color: var(--color-muted); }

.footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__legal a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer__legal a:hover { color: var(--color-text); }


/* ─────────────────────────────────────────────────────────────
   14. PAGES — HERO
   ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
}

.hero__content {
  max-width: 800px;
  padding-block: var(--space-20);
}

.hero__desc {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -1px;
  line-height: 1;
}
.stat__num span { color: var(--color-accent); }
.stat__label    { font-size: 13px; color: var(--color-muted); margin-top: 4px; }

/* Dashboard floating card */
.hero__visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-45%);
  width: 580px;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.dashboard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.dc__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.dc__title  { font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 1px; }

.dc__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }

.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.metric__val   { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.metric__label { font-size: 11px; color: var(--color-muted); margin-top: 3px; }
.metric__change{ font-size: 11px; margin-top: var(--space-2); }
.up   { color: var(--color-success); }
.down { color: var(--color-danger); }

.chart-area  { height: 90px; margin-bottom: var(--space-4); }
.chart-bars  { display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(0, 229, 255, 0.3), rgba(0, 229, 255, 0.05));
  border-radius: 5px 5px 0 0;
  border-top: 1px solid rgba(0, 229, 255, 0.4);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.chart-bar:hover { background: linear-gradient(to top, rgba(0, 229, 255, 0.5), rgba(0, 229, 255, 0.1)); }

.dc__campaigns { display: flex; flex-direction: column; gap: var(--space-2); }
.campaign-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.campaign-dot    { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.campaign-name   { font-size: 12px; flex: 1; }
.campaign-roas   { font-size: 12px; font-weight: 600; color: var(--color-accent); }
.campaign-budget { font-size: 11px; color: var(--color-muted); }


/* ─────────────────────────────────────────────────────────────
   15. PAGES — AUTH (GUEST LAYOUT)
   ───────────────────────────────────────────────────────────── */

/* Full screen auth wrapper */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel — branding side */
.auth-brand {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(123, 97, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.auth-brand__content { position: relative; z-index: 1; }

.auth-brand__tagline {
  margin-top: auto;
  padding-top: var(--space-16);
}

.auth-brand__tagline h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.auth-brand__tagline p {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 360px;
  line-height: 1.7;
}

.auth-brand__stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.auth-stat { }
.auth-stat__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-text);
}
.auth-stat__num span { color: var(--color-accent); }
.auth-stat__label { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

.auth-brand__footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--color-muted);
}

/* Right panel — form side */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-8);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Auth Form Container */
.auth-form-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-header .logo {
  justify-content: center;
  margin-bottom: var(--space-6);
}

.auth-header h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: var(--space-2);
}

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

/* Auth Form */
.auth-form { width: 100%; }

.auth-form .form-group + .form-group { margin-top: var(--space-4); }

/* Remember / Forgot row */
.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.auth-form__remember {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.auth-form__remember span {
  font-size: 13px;
  color: var(--color-muted);
}

.auth-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.auth-link {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  transition: var(--transition);
}
.auth-link:hover { color: var(--color-text); }

.auth-link--accent {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-link--accent:hover { text-decoration: underline; }

/* Footer link below form */
.auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: var(--space-6);
}

.auth-footer-link a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer-link a:hover { text-decoration: underline; }

/* Nav back link on auth pages */
.auth-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding-inline: var(--container-pad);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(6, 10, 15, 0.85);
  backdrop-filter: blur(20px);
}

.auth-nav__inner {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ─────────────────────────────────────────────────────────────
   16. PAGES — FEATURES
   ───────────────────────────────────────────────────────────── */
.features-section { padding-block: 100px; }

.features-header { margin-bottom: var(--space-16); }
.features-header .section-desc { font-size: 17px; max-width: 520px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.feature-card__title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; margin-bottom: var(--space-3); color: var(--color-text); letter-spacing: -0.3px; }
.feature-card__desc  { font-size: 14px; color: var(--color-muted); line-height: 1.65; }


/* ─────────────────────────────────────────────────────────────
   17. PAGES — PRICING
   ───────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-16); }

.pricing-card--featured {
  transform: scale(1.04);
  position: relative;
}

.pricing-card--featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan__name   { font-family: var(--font-heading); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-muted); margin-bottom: var(--space-3); }
.plan__price  { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -2px; line-height: 1; margin-bottom: 4px; }
.plan__price sub { font-family: var(--font-body); font-size: 15px; color: var(--color-muted); font-weight: 400; letter-spacing: 0; vertical-align: bottom; margin-bottom: 8px; display: inline-block; }
.plan__period { font-size: 13px; color: var(--color-muted); margin-bottom: var(--space-6); }

.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.plan__features li {
  font-size: 14px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.plan__features li.disabled { opacity: 0.35; }
.plan__features li.disabled::before { content: '✕'; color: var(--color-muted); }


/* ─────────────────────────────────────────────────────────────
   18. ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(-45%); }
  50%       { transform: translateY(-48%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * { animation: fadeUp 0.6s both; }
.stagger > *:nth-child(1) { animation-delay: 0.0s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }
.stagger > *:nth-child(5) { animation-delay: 0.4s; }
.stagger > *:nth-child(6) { animation-delay: 0.5s; }


/* ─────────────────────────────────────────────────────────────
   19. RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__visual { display: none; }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand  { display: none; }
  .auth-form-panel { padding: var(--space-6); padding-top: calc(var(--nav-height) + var(--space-8)); min-height: 100vh; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
  .hero__stats   { gap: var(--space-6); }
  .form-row      { grid-template-columns: 1fr; }
  .auth-form__actions { justify-content: stretch; flex-direction: column-reverse; }
  .auth-form__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .footer__grid  { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  :root { --container-pad: 16px; }
}