/* =========================================
   LaneCoach.gg — Esports Dark Theme
   ========================================= */

/* === DESIGN TOKENS === */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Surfaces */
  --bg-base:    #0a0a0f;
  --bg-surface: #12121a;
  --bg-raised:  #1a1a24;
  --bg-overlay:  #22222e;
  --bg-hover:   #2a2a38;
  --color-surface-offset: #15151f;
  --color-divider: #1e1e2e;
  --border:     rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.1);

  /* Text */
  --text-primary:  #e8e6e3;
  --text-secondary: #a8a8b3;
  --text-muted:    #6b6b78;
  --text-faint:    #444450;

  /* Accents */
  --mz-green:   #00e676;
  --mz-green-dim: #00c965;
  --mz-green-glow: rgba(0,230,118,0.15);
  --gold:       #c89b3c;
  --gold-dim:   #a07830;
  --gold-glow:  rgba(200,155,60,0.15);
  --teal:       #0a96a0;
  --teal-dim:   #077a82;
  --teal-glow:  rgba(10,150,160,0.15);
  --color-error: #e84057;
  --color-error-dim: rgba(232, 64, 87, 0.15);
  --color-success: #2daf7f;
  --color-success-dim: rgba(45, 175, 127, 0.15);
  --color-warning: #c89b3c;
  --color-warning-dim: rgba(200, 155, 60, 0.15);

  /* Tier Colors */
  --tier-sp:  #ff4444;
  --tier-s:   #ff8800;
  --tier-a:   #ffcc00;
  --tier-b:   #44bb44;
  --tier-c:   #4488cc;
  --tier-d:   #888888;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);

  /* Content */
  --content-max: 1200px;
  --content-narrow: 640px;

  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--mz-green-glow);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--mz-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === UTILITY CLASSES === */
.gold { color: var(--gold); }
.mz-accent { color: var(--mz-green); }
.teal { color: var(--teal); }
.mono { font-family: var(--font-mono); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* Scrollbar styling for dark mode */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* Tabular nums globally for mono */
.mono, [class*="stat-value"], [class*="wr"], [class*="-num"], .hero-stat-num, .price-amount {
  font-variant-numeric: tabular-nums lining-nums;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
}
.nav-logo-text { color: var(--text-primary); }
.nav-links { display: flex; gap: var(--space-1); }
.nav-link {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-raised); }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.nav-auth { display: flex; align-items: center; gap: var(--space-2); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
}
.nav-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--bg-raised); color: var(--text-primary); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: var(--space-2) 0; }

@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .nav-hamburger { display: flex; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--mz-green);
  color: #0a0a0f;
}
.btn-primary:hover { background: var(--mz-green-dim); transform: translateY(-1px); box-shadow: 0 4px 20px var(--mz-green-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-raised); border-color: rgba(255,255,255,0.15); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
.btn-full { width: 100%; }
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }

/* === USER MENU === */
.tier-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  background: var(--bg-raised);
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}
.tier-badge.pro { background: var(--mz-green-glow); color: var(--mz-green); border-color: rgba(0,230,118,0.3); }
.tier-badge.elite { background: var(--teal-glow); color: var(--teal); border-color: rgba(10,150,160,0.3); }

.user-avatar { position: relative; }
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold);
  transition: border-color var(--transition);
}
.user-avatar:hover .avatar-circle { border-color: var(--gold); }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}
.user-menu-header { padding: var(--space-2) var(--space-3); }
.user-menu-email { font-size: var(--text-xs); color: var(--text-muted); }
.user-menu-divider { height: 1px; background: var(--border); margin: var(--space-1) 0; }
.user-menu-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: var(--space-2) var(--space-3) var(--space-1); }
.user-menu-item {
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.user-menu-item:hover { background: var(--bg-overlay); color: var(--text-primary); }

.tier-toggle {
  display: flex;
  gap: 2px;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-base);
  border-radius: var(--radius-md);
  margin: var(--space-1) var(--space-2);
}
.tier-opt {
  flex: 1;
  padding: var(--space-1) var(--space-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.tier-opt:hover { color: var(--text-secondary); }
.tier-opt.active { background: var(--bg-raised); color: var(--text-primary); }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 200ms var(--ease-out);
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: slideUp 300ms var(--ease-out);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 20px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-logo { margin-bottom: var(--space-4); }
.modal-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.modal-subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-6); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-1); }
.form-group label { font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); }
.form-group input {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder { color: var(--text-faint); }
.auth-forgot { font-size: var(--text-xs); text-align: right; }
.auth-forgot a { color: var(--text-muted); }
.auth-forgot a:hover { color: var(--mz-green); }
.modal-auth-toggle { margin-top: var(--space-3); font-size: var(--text-sm); }
.modal-auth-toggle a { color: var(--mz-green); }
.modal-footer-text { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-muted); text-align: center; }
.modal-footer-text a { color: var(--mz-green); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(56px + var(--space-12)) var(--space-5) var(--space-12);
  position: relative;
  overflow: hidden;
  max-width: var(--content-max);
  margin: 0 auto;
  gap: var(--space-8);
}
.hero-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(200,155,60,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(0,230,118,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(10,150,160,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(0,230,118,0.05) 50%, transparent 60%),
    linear-gradient(225deg, transparent 45%, rgba(200,155,60,0.04) 55%, transparent 65%),
    linear-gradient(315deg, transparent 35%, rgba(10,150,160,0.04) 45%, transparent 55%);
  background-size: 200% 200%;
  animation: auraShift 12s ease-in-out infinite;
  opacity: 1;
}
@keyframes auraShift {
  0%, 100% { background-position: 0% 50%, 100% 0%, 0% 100%; }
  50% { background-position: 100% 50%, 0% 100%, 100% 0%; }
}
.hero-champions {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-champions img {
  position: absolute;
  width: 280px;
  height: auto;
  opacity: 0.09;
  object-fit: contain;
  filter: contrast(0.5) saturate(0.4);
}
.hero-champions img:first-child {
  left: 5%;
  bottom: 15%;
  transform: scaleX(-1);
}
.hero-champions img:last-child {
  right: 5%;
  top: 20%;
}
@media (max-width: 900px) {
  .hero-champions img { width: 180px; opacity: 0.04; }
}
@media (max-width: 600px) {
  .hero-champions { display: none; }
}
.hero-content {
  max-width: 560px;
  z-index: 1;
  flex-shrink: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--teal);
  margin-bottom: var(--space-6);
  animation: fadeIn 600ms var(--ease-out) both;
}
.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  animation: fadeIn 600ms var(--ease-out) 100ms both;
}
.hero-title-accent { color: var(--mz-green); }
.hero-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-8);
  animation: fadeIn 600ms var(--ease-out) 200ms both;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  animation: fadeIn 600ms var(--ease-out) 300ms both;
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  animation: fadeIn 600ms var(--ease-out) 400ms both;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label { font-size: var(--text-xs); color: var(--text-muted); }

.hero-preview {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
  animation: fadeIn 800ms var(--ease-out) 500ms both;
  min-width: 0;
}
.preview-card {
  background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(18,18,26,0.95) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,230,118,0.08), 0 0 80px rgba(0,230,118,0.06), 0 0 120px rgba(200,155,60,0.04);
  transition: box-shadow 600ms var(--ease-out);
}
.preview-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,230,118,0.12), 0 0 100px rgba(0,230,118,0.08), 0 0 140px rgba(200,155,60,0.05);
}
.preview-header { margin-bottom: var(--space-4); }
.preview-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  min-height: 140px;
}
.preview-grid--matchup {
  grid-template-columns: 1fr;
  min-height: 200px;
  gap: 0;
}
/* Matchup-style hero preview */
.preview-matchup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-4) 0 var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.preview-matchup-champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.preview-matchup-champ img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--bg-overlay);
}
.preview-you img { border-color: var(--gold); box-shadow: 0 0 16px rgba(200,155,60,0.25); }
.preview-enemy img { border-color: rgba(232,64,87,0.5); box-shadow: 0 0 16px rgba(232,64,87,0.15); }
.preview-matchup-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.preview-matchup-name { font-size: var(--text-sm); font-weight: 700; }
.preview-matchup-vs {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.preview-matchup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.preview-stat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}
.preview-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.preview-stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}
.preview-matchup-meta {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 960px) {
  .hero { flex-direction: column; text-align: center; min-height: auto; padding-bottom: var(--space-12); gap: var(--space-6); }
  .hero-content { max-width: 100%; align-items: center; display: flex; flex-direction: column; }
  .hero-subtitle { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-preview { justify-content: center; width: 100%; }
  .preview-card { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: var(--space-4); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .preview-matchup-header { gap: var(--space-4); }
  .preview-matchup-champ img { width: 52px; height: 52px; }
  .preview-matchup-stats { grid-template-columns: 1fr; }
}

/* === FEATURES === */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
  margin-bottom: var(--space-10);
  opacity: 0.6;
}
.features-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-5) var(--space-20);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.features-header { margin-bottom: var(--space-10); }
.section-title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.feature-card {
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  position: relative;
}
.coming-soon-icon .coming-badge,
.coming-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid rgba(10,150,160,0.3);
}
.coming-soon-icon .coming-badge {
  position: absolute;
  top: -6px;
  right: -16px;
}
.feature-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }
.feature-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* === APP / DASHBOARD === */
.app-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(56px + var(--space-8)) var(--space-5) var(--space-12);
  min-height: 100vh;
}
.app-step {
  animation: fadeIn 300ms var(--ease-out) both;
}
.step-header { margin-bottom: var(--space-6); }
.step-title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-1); }
.step-subtitle { font-size: var(--text-sm); color: var(--text-secondary); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  transition: color var(--transition);
}
.back-btn:hover { color: var(--text-primary); }

/* Lane Grid */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  max-width: 800px;
}
.lane-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.lane-btn:hover {
  border-color: var(--gold);
  background: var(--bg-raised);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,155,60,0.1);
}
.lane-icon { color: var(--text-muted); transition: color var(--transition); }
.lane-btn:hover .lane-icon { color: var(--gold); }
.lane-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.lane-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 1px 8px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
}

@media (max-width: 600px) {
  .lane-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .lane-btn { padding: var(--space-5) var(--space-3); }
}
@media (max-width: 380px) {
  .lane-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Search */
.search-bar {
  position: relative;
  margin-bottom: var(--space-4);
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-bar input {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-3) + 24px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.search-bar input:focus { outline: none; border-color: var(--gold); }
.search-bar input::placeholder { color: var(--text-faint); }

/* Tier Filters */
.tier-filters {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.tier-filter {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.tier-filter:hover { color: var(--text-secondary); border-color: var(--border-bright); }
.tier-filter.active { background: var(--bg-raised); color: var(--text-primary); border-color: var(--border-bright); }

/* Champion Grid */
.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-3);
}
.champ-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: champFadeIn 300ms var(--ease-out) both;
}
.champ-card:hover {
  border-color: var(--gold);
  background: var(--bg-raised);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.champ-card.locked {
  cursor: pointer;
}
.champ-card.locked .champ-img,
.champ-card.locked .champ-name,
.champ-card.locked .champ-wr {
  filter: blur(4px);
  opacity: 0.4;
}
.champ-card.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.champ-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--gold);
  opacity: 0.8;
}
.champ-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-overlay);
  border: 2px solid var(--border);
}
.champ-card:hover .champ-img { border-color: rgba(200,155,60,0.3); }
.champ-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.champ-wr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.champ-tier-badge {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

/* Selected champion bar */
.selected-champ-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--gold-glow);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.selected-champ-bar img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
}
.selected-info { display: flex; flex-direction: column; }
.selected-name { font-weight: 700; font-size: var(--text-base); }
.selected-meta { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); }

/* === MATCHUP VIEW === */
.matchup-container { animation: fadeIn 400ms var(--ease-out) both; }
.matchup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.matchup-header-meta {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.matchup-wr-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-error-dim);
  color: var(--color-error);
}
.matchup-wr-badge--positive { background: var(--color-success-dim); color: var(--color-success); }
.matchup-champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.matchup-champ img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.matchup-champ.you img { border-color: var(--gold); box-shadow: 0 0 12px rgba(200, 155, 60, 0.2); }
.matchup-champ.enemy img { border-color: var(--color-error); box-shadow: 0 0 12px rgba(232, 64, 87, 0.15); }
.matchup-champ-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.matchup-champ-name { font-size: var(--text-base); font-weight: 700; }
.matchup-champ-title {
  font-size: 0.625rem;
  color: var(--text-faint);
  display: block;
  margin-top: 2px;
}

.matchup-vs {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.matchup-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.matchup-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.matchup-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.matchup-stat-label,
.matchup-stat-card .stat-label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.matchup-stat-value,
.matchup-stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.matchup-stat-sub,
.matchup-stat-card .stat-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }

/* Difficulty bar (Sion-style) */
.diff-bar { display: flex; gap: 2px; margin-top: var(--space-1); justify-content: center; }
.diff-pip {
  width: 16px; height: 4px;
  border-radius: 2px;
  background: var(--bg-overlay);
}
.diff-pip.filled { background: var(--color-error); }
.diff-pip.filled.medium { background: var(--color-warning); }
.diff-pip.filled.easy { background: var(--color-success); }

@media (max-width: 600px) {
  .matchup-stats-grid { grid-template-columns: 1fr; }
  .matchup-header { gap: var(--space-4); }
  .matchup-champ img { width: 56px; height: 56px; }
}

/* Build Section */
.build-section {
  margin-bottom: var(--space-8);
}
.build-section-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.build-section-title svg { color: var(--gold); }

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 600px) { .build-grid { grid-template-columns: 1fr; } }

.build-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
}
.build-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,0.2), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.build-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.build-items { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.build-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
}
.build-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.build-icon-img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.build-icon-fallback {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  background: var(--bg-raised);
}
.rune-icons-row { gap: var(--space-1); }
.rune-pill.rune-icon {
  padding: 2px;
  min-width: 28px;
  min-height: 28px;
}
.rune-pill.rune-icon .build-icon-img {
  width: 28px;
  height: 28px;
}

/* Rune display */
.rune-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.rune-row:last-child { margin-bottom: 0; }
.rune-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}
.rune-pill.keystone {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(200,155,60,0.25);
  font-weight: 600;
}
.rune-pill.minor {
  background: var(--bg-raised);
  color: var(--text-secondary);
}
.rune-pill.secondary {
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid rgba(10,150,160,0.2);
}
.rune-pill.shard {
  background: var(--bg-overlay);
  color: var(--text-muted);
  font-size: 10px;
}
.rune-tree-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}

/* Skill order */
.skill-order {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.skill-key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
}
.skill-key.primary-skill { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(200,155,60,0.25); }
.skill-key.secondary-skill { background: var(--bg-raised); color: var(--text-secondary); }
.skill-arrow { color: var(--text-faint); font-size: var(--text-xs); }

/* Power spikes */
.timeline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 64px;
  padding: var(--space-3) 0;
}
.timeline-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-width: 4px;
  transition: height 500ms var(--ease-out);
}
.timeline-bar.spike {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200, 155, 60, 0.25);
}
.timeline-bar.normal { background: var(--bg-overlay); }
.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* theory-box (Sion-style highlight) */
.theory-box {
  background: rgba(200, 155, 60, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4);
  margin: var(--space-4) 0;
}
.theory-box .theory-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.theory-box p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Tips */
.tips-list { display: flex; flex-direction: column; gap: var(--space-3); }
.tips-theory-box .theory-label { margin-bottom: var(--space-3); }
.tip-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--teal);
}
.tip-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  width: 20px;
}
.tip-text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.tip-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.tip-item-structured {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.tip-item-structured .tip-label { margin-bottom: var(--space-1); }

/* Matchup deep-dive sections (Sion-style, all champs) */
.matchup-section {
  margin-bottom: var(--space-4);
}
.matchup-section h4 {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.matchup-section p, .matchup-section .collapse-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
.collapse-panel.game-theory-panel .collapse-content {
  background: rgba(200, 155, 60, 0.05);
  border-left: 3px solid var(--gold);
}

/* Structured Elite matchup - collapsible */
.structured-matchup-elite { margin-top: var(--space-4); }
.collapse-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.collapse-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.collapse-header:hover { background: var(--bg-raised); }
.collapse-header svg { flex-shrink: 0; color: var(--gold); }
.collapse-chevron {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
}
.collapse-content {
  padding: 0 var(--space-4) var(--space-4);
  background: var(--bg-surface);
}
.collapse-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding: var(--space-3);
  background: var(--bg-overlay);
  border-radius: var(--radius-sm);
}

/* Trading patterns */
.pattern-card {
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}
.pattern-phase {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}
.pattern-text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* === PRICING === */
.pricing-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(56px + var(--space-12)) var(--space-5) var(--space-20);
}
.pricing-header { text-align: center; margin-bottom: var(--space-10); }
.pricing-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.pricing-subtitle { font-size: var(--text-base); color: var(--text-secondary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.price-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--mz-green);
  box-shadow: 0 0 40px var(--mz-green-glow);
}
.price-card.featured:hover { border-color: var(--mz-green); }
.price-card.elite-card {
  border-color: var(--teal);
  box-shadow: 0 0 40px var(--teal-glow);
}
.price-card.elite-card:hover { border-color: var(--teal); }
.feature-coming-soon {
  opacity: 0.7;
  font-style: italic;
}
.btn-elite {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #fff;
  border: none;
  font-weight: 700;
}
.btn-elite:hover {
  background: linear-gradient(135deg, #0bb0bc, var(--teal));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow);
}
.price-decimal { font-size: var(--text-lg); }
.user-tier-display {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.price-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--mz-green);
  color: #0a0a0f;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-tier {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.price-amount {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  font-variant-numeric: tabular-nums;
}
.price-currency { font-size: var(--text-lg); vertical-align: top; color: var(--text-muted); }
.price-period { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }
.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.price-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.price-features li.disabled { color: var(--text-faint); }
.price-features li strong { color: var(--text-primary); }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* === PAYWALL === */
.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 300ms var(--ease-out);
}
.paywall-content {
  background: var(--bg-surface);
  border: 1px solid var(--mz-green);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 60px var(--mz-green-glow);
}
.paywall-icon { margin-bottom: var(--space-4); }
.paywall-content h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.paywall-content p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-6); }

.app-auth-gate {
  max-width: var(--content-max);
  margin: calc(56px + var(--space-10)) auto var(--space-8);
  padding: 0 var(--space-5);
  position: relative;
  z-index: 2;
}

.app-auth-gate-card {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200,155,60,0.25);
  background:
    radial-gradient(circle at top, rgba(200,155,60,0.12), transparent 55%),
    linear-gradient(180deg, rgba(18,18,26,0.98), rgba(10,10,15,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  text-align: center;
}

.app-auth-gate-card svg {
  margin: 0 auto var(--space-4);
}

.app-auth-gate-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.app-auth-gate-card p {
  max-width: 560px;
  margin: 0 auto var(--space-6);
  color: var(--text-secondary);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  padding: var(--space-5) var(--space-5);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-left, .footer-right { display: flex; align-items: center; gap: var(--space-3); }
.footer-links-row {
  max-width: var(--content-max);
  margin: var(--space-4) auto 0;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-links-row a { color: var(--text-muted); }
.footer-links-row a:hover { color: var(--mz-green); }
.footer-brand { font-size: var(--text-sm); font-weight: 700; color: var(--text-secondary); }
.footer-sep { color: var(--text-faint); }
.footer-copy { font-size: var(--text-xs); color: var(--text-muted); }
.footer-patch { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.footer-attr { font-size: var(--text-xs); color: var(--text-muted); transition: color var(--transition); }
.footer-attr:hover { color: var(--text-secondary); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes champFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === VIEW TRANSITIONS === */
.view {
  animation: fadeIn 250ms var(--ease-out) both;
  position: relative;
  z-index: 1;
}

/* Difficulty colors */
.diff-easy { color: var(--color-success); }
.diff-medium { color: var(--color-warning); }
.diff-hard { color: var(--color-error); }

/* WR color helpers */
.wr-high { color: var(--color-success); }
.wr-mid { color: var(--text-primary); }
.wr-low { color: var(--color-error); }

/* Step re-animation trigger */
.step-animate {
  animation: fadeIn 250ms var(--ease-out) both;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-container {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}
.faq-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.faq-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-top: var(--space-3);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover,
.faq-item.open {
  border-color: var(--border-bright);
}
.faq-item.open {
  border-color: rgba(0,230,118,0.25);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--mz-green); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 250ms var(--ease-out), color var(--transition);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--mz-green);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out), padding 300ms var(--ease-out);
  padding: 0 var(--space-6);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-6) var(--space-5);
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.faq-answer strong { color: var(--text-primary); }
.faq-cta {
  text-align: center;
  margin-top: var(--space-10);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.faq-cta a { color: var(--mz-green); text-decoration: none; }
.faq-cta a:hover { text-decoration: underline; }

/* ===========================
   DATA IN ACTION & SLEEPER SECTIONS
   =========================== */
#viewDataInAction {
  display: block !important;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.data-action-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-action-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.data-action-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: var(--space-4);
}
.data-action-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.data-action-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 420px;
}
.data-action-visual { display: flex; justify-content: center; align-items: center; }
.data-action-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-bright);
}

/* Sleeper section — reversed layout */
.sleeper-section {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.sleeper-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-12);
  align-items: center;
}
.sleeper-visual { display: flex; justify-content: center; }
.sleeper-img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,230,118,0.15);
}

/* Social proof strip */
.social-proof-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.social-proof-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}
.social-proof-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-bright);
}

.answer-blocks-section {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.answer-blocks-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}

.answer-blocks-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-10);
}

.answer-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.answer-block-card {
  display: block;
  background: linear-gradient(180deg, rgba(26,26,36,0.98), rgba(18,18,26,0.98));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.answer-block-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,230,118,0.22);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.answer-block-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.answer-block-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.answer-block-card span {
  color: var(--mz-green);
  font-weight: 600;
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .data-action-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
  .data-action-desc { max-width: 100%; }
  .sleeper-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
  .sleeper-img { max-width: 220px; margin: 0 auto; }
  .social-proof-img { max-width: 100%; }
  .answer-blocks-grid { grid-template-columns: 1fr; }
}

/* ===========================
   PRODUCT OVERVIEW
   =========================== */
.product-overview {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-5) var(--space-8);
}
.product-overview-inner {
  padding: var(--space-8) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,230,118,0.04), 0 0 40px rgba(0,230,118,0.03);
}
.product-overview-headline {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
.product-overview-lead {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.product-tier-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.tier-pill {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 500;
}
.tier-pill-free {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tier-pill-pro {
  background: var(--mz-green-glow);
  color: var(--mz-green);
  border: 1px solid rgba(0,230,118,0.2);
}
.tier-pill-elite {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(200,155,60,0.2);
}
.product-overview-cta {
  display: inline-block;
  margin-bottom: var(--space-4);
}
.product-overview-info-box {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-left: 3px solid rgba(0,230,118,0.4);
  border-radius: var(--radius-lg);
  text-align: left;
}
.product-overview-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.product-overview-geo {
  font-size: 0.65rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
}
@media (max-width: 640px) {
  .product-tier-pills { flex-direction: column; }
  .tier-pill { text-align: center; }
}

/* ===========================
   TRUST BAR
   =========================== */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-6);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(18,18,26,0.97) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-item svg {
  color: var(--mz-green);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ===========================
   GUARANTEE BADGE
   =========================== */
.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.guarantee-badge svg { color: var(--color-success); flex-shrink: 0; }

/* ===========================
   COOKIE CONSENT BAR
   =========================== */
.cookie-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-bright);
  padding: var(--space-4) var(--space-6);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  flex: 1;
}
.cookie-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ===========================
   EXIT INTENT POPUP
   =========================== */
.exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.exit-popup-content {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8) var(--space-6);
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: slideUp 300ms var(--ease-out);
  box-shadow: var(--shadow-lg), 0 0 60px var(--mz-green-glow);
}
.exit-popup-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 20px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.exit-popup-close:hover { color: var(--text-primary); }
.exit-popup-icon { margin-bottom: var(--space-4); display: flex; justify-content: center; }
.exit-popup-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-3); }
.exit-popup-body { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-6); line-height: 1.6; }
.exit-popup-body strong { color: var(--text-primary); }
.exit-popup-dismiss { font-size: var(--text-xs); color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.exit-popup-dismiss:hover { color: var(--text-secondary); }
