/* ═══════════════════════════════════════════════════════════════
   StrixEDGE — style.css
   Chart Pattern Detection Platform | Dark / Light Theme
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --gold:          #F5C842;
  --gold-light:    #FFE87A;
  --gold-dark:     #C9A000;
  --crimson:       #E02020;

  /* DARK THEME (default) */
  --bg:            #06091A;
  --bg-alt:        #080C22;
  --bg-card:       rgba(14, 19, 50, 0.75);
  --bg-card-solid: #0E1332;
  --border:        rgba(245, 200, 66, 0.14);
  --border-hover:  rgba(245, 200, 66, 0.5);
  --text:          #F0F2FF;
  --text-sec:      rgba(210, 218, 255, 0.60);
  --nav-bg:        rgba(6, 9, 26, 0.85);
  --ticker-bg:     rgba(8, 12, 34, 0.98);
  --ticker-text:   rgba(210, 218, 255, 0.65);
  --footer-bg:     #03050E;
  --footer-text:   rgba(200, 210, 255, 0.55);
  --footer-edge:   #F0F2FF;
  --input-bg:      rgba(14, 19, 50, 0.7);
  --stat-bg:       rgba(14, 19, 55, 0.92);
  --shadow:        0 4px 40px rgba(0,0,0,0.55);
  --glow:          rgba(245, 200, 66, 0.25);
  --method-bg:     #070A1C;
  --about-bg:      #070A1C;
  --risk-bg:       rgba(224,32,32,0.07);
  --risk-border:   rgba(224,32,32,0.2);
  --risk-text:     rgba(210,218,255,0.65);
  --honesty-bg:    rgba(14,19,50,0.6);
  --pricing-bg:    rgba(14,19,50,0.75);
  --pricing-feat:  rgba(20,28,70,0.95);
  --chip-bg:       rgba(245,200,66,0.1);
  --chip-text:     #F5C842;
  --chip-border:   rgba(245,200,66,0.2);
}

[data-theme="light"] {
  --bg:            #F4F5FB;
  --bg-alt:        #ECEEF8;
  --bg-card:       rgba(255,255,255,0.92);
  --bg-card-solid: #FFFFFF;
  --border:        rgba(10,15,46,0.10);
  --border-hover:  rgba(245,200,66,0.55);
  --text:          #0A0F2E;
  --text-sec:      rgba(10,15,46,0.58);
  --nav-bg:        rgba(244,245,251,0.92);
  --ticker-bg:     rgba(10,15,46,0.96);
  --ticker-text:   rgba(230,235,255,0.80);
  --footer-bg:     #0A0F2E;
  --footer-text:   rgba(200,210,255,0.60);
  --footer-edge:   #EEF0FF;
  --input-bg:      rgba(255,255,255,0.95);
  --stat-bg:       rgba(255,255,255,0.96);
  --shadow:        0 4px 30px rgba(10,15,46,0.10);
  --glow:          rgba(245,200,66,0.20);
  --method-bg:     #ECEEF8;
  --about-bg:      #E8EAF5;
  --risk-bg:       rgba(224,32,32,0.05);
  --risk-border:   rgba(224,32,32,0.15);
  --risk-text:     rgba(10,15,46,0.60);
  --honesty-bg:    rgba(255,255,255,0.7);
  --pricing-bg:    rgba(255,255,255,0.92);
  --pricing-feat:  #FFFFFF;
  --chip-bg:       rgba(245,200,66,0.14);
  --chip-text:     #8A6800;
  --chip-border:   rgba(245,200,66,0.3);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--text); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none !important; }
  .scroll-wheel  { animation: none !important; }
}

/* Text helpers */
.text-secondary-text { color: var(--text-sec); }
.logo-edge-text      { color: var(--text); }
.footer-edge-text    { color: var(--footer-edge); }
.footer-body-text    { color: var(--footer-text); }

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar { background: transparent; }
#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.nav-link {
  color: var(--text-sec);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.ham-line { background: var(--text); }

.theme-btn {
  color: var(--text-sec);
  border-color: var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}
.theme-btn:hover { color: var(--gold); border-color: var(--border-hover); }

.mobile-menu {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.cta-primary {
  background: var(--gold);
  color: #0A0F2E;
  border: 2px solid var(--gold);
  box-shadow: 0 0 22px rgba(245,200,66,0.28);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 36px rgba(245,200,66,0.5);
  transform: translateY(-2px);
}
.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  text-decoration: none;
  transition: all 0.3s;
}
.cta-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── HERO ────────────────────────────────────────────────── */
#hero { background: var(--bg); }

.hero-overlay {
  background: linear-gradient(135deg, rgba(6,9,26,0.78) 0%, rgba(10,15,46,0.50) 50%, rgba(6,9,26,0.82) 100%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(135deg, rgba(244,245,251,0.78) 0%, rgba(220,224,248,0.52) 50%, rgba(244,245,251,0.82) 100%);
}

.hero-fallback-bg {
  background: radial-gradient(ellipse at 60% 40%, rgba(245,200,66,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(224,32,32,0.05) 0%, transparent 50%);
}

.hero-tag {
  background: rgba(245,200,66,0.1);
  color: var(--gold);
  border: 1px solid rgba(245,200,66,0.22);
}
.hero-sub-text { color: var(--text-sec); }

.mantra-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: var(--chip-bg); color: var(--chip-text); border: 1px solid var(--chip-border);
}

/* Signal card */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 0 50px var(--glow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.signal-row { display: flex; justify-content: space-between; align-items: center; }
.signal-pair { font-family: 'Syne',sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.signal-pattern {
  font-family: 'JetBrains Mono',monospace; font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(245,200,66,0.12); color: var(--gold);
  border: 1px solid rgba(245,200,66,0.2);
}
.signal-metric {
  background: rgba(14,19,50,0.5); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
[data-theme="light"] .signal-metric { background: rgba(240,242,255,0.7); }
.metric-label { font-family: 'JetBrains Mono',monospace; font-size: 10px; color: var(--text-sec); text-transform: uppercase; }
.metric-val { font-family: 'JetBrains Mono',monospace; font-size: 14px; font-weight: 700; }

.rr-bar-bg { background: var(--border); }
.rr-bar-fill { background: linear-gradient(90deg, var(--crimson), var(--gold)); }

/* Scroll mouse */
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(245,200,66,0.4); border-radius: 12px; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: sw 1.8s ease-in-out infinite; }
@keyframes sw { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-wrapper { background: var(--ticker-bg); border-top: 1px solid rgba(245,200,66,0.15); border-bottom: 1px solid rgba(245,200,66,0.15); }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 38s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { color: var(--ticker-text); flex-shrink: 0; font-family: 'JetBrains Mono',monospace; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SECTIONS ────────────────────────────────────────────── */
.section-padding { padding: 100px 0; }
@media (max-width:768px){ .section-padding { padding: 64px 0; } }

.methodology-bg { background: var(--method-bg); }
.about-bg        { background: var(--about-bg); }
.footer-bg       { background: var(--footer-bg); }

.section-eyebrow {
  display: inline-block; font-family: 'JetBrains Mono',monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne',sans-serif; font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; margin-bottom: 16px; color: var(--text);
}
.section-sub { font-size: 1.05rem; color: var(--text-sec); line-height: 1.7; }

.section-header { transition: opacity 0.7s ease, transform 0.7s ease; }

/* ── HOW IT WORKS STEPS ──────────────────────────────────── */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), border-color 0.3s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow) 0%, transparent 70%);
  transition: opacity 0.4s; border-radius: 20px;
}
.step-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: 0 20px 50px rgba(245,200,66,0.15); }
.step-card:hover::before { opacity: 1; }

.step-num { font-family: 'JetBrains Mono',monospace; font-size: 11px; font-weight: 500; color: var(--gold); opacity: 0.6; margin-bottom: 12px; letter-spacing: 0.1em; }
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step-title { font-family: 'Syne',sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step-desc { font-size: 0.875rem; color: var(--text-sec); line-height: 1.65; }

.honesty-box {
  background: var(--honesty-bg);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
}
.honesty-item { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-sec); font-size: 0.875rem; line-height: 1.5; }

/* ── METHODOLOGY ─────────────────────────────────────────── */
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  display: flex; gap: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.method-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 14px 40px rgba(245,200,66,0.12); }

.method-icon-wrap {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.method-card:hover .method-icon-wrap { background: rgba(245,200,66,0.2); transform: scale(1.1) rotate(-5deg); }

.method-tag { font-family: 'JetBrains Mono',monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 6px; }
.method-title { font-family: 'Syne',sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.method-desc { font-size: 0.875rem; color: var(--text-sec); line-height: 1.65; }
.method-desc em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── PRICING ─────────────────────────────────────────────── */
.pricing-card {
  background: var(--pricing-bg);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column;
  transition: transform 0.35s, border-color 0.3s, box-shadow 0.35s;
  position: relative;
}
.pricing-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: 0 20px 50px rgba(245,200,66,0.12); }

.pricing-featured {
  background: var(--pricing-feat);
  border-color: rgba(245,200,66,0.4);
  box-shadow: 0 0 0 1px rgba(245,200,66,0.15), 0 20px 60px rgba(245,200,66,0.15);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0A0F2E;
  font-family: 'JetBrains Mono',monospace; font-size: 10px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; letter-spacing: 0.1em; white-space: nowrap;
}
.pricing-tier { font-family: 'Syne',sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.pricing-price { font-family: 'Syne',sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--text); margin-bottom: 6px; line-height: 1; }
.pricing-period { font-size: 1rem; font-weight: 400; color: var(--text-sec); }
.pricing-sub { font-size: 0.875rem; color: var(--text-sec); margin-bottom: 24px; line-height: 1.55; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.pricing-features li { font-size: 0.875rem; color: var(--text-sec); display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::first-letter { color: var(--gold); }

.pricing-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; text-align: center; transition: all 0.3s;
}
.pricing-btn-outline {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--border); color: var(--text);
  text-decoration: none; text-align: center; transition: all 0.3s;
}
.pricing-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  background: var(--chip-bg); color: var(--chip-text); border: 1px solid var(--chip-border);
}
.about-visual-box {
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.stat-bubble {
  background: var(--stat-bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ── RISK BANNER ─────────────────────────────────────────── */
.risk-banner {
  background: var(--risk-bg);
  border-top: 1px solid var(--risk-border);
  border-bottom: 1px solid var(--risk-border);
}
.risk-text { color: var(--risk-text); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.form-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-sec); margin-bottom: 6px; text-transform: uppercase; }
.form-input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px;
  font-family: 'Space Grotesk',sans-serif; font-size: 14px; color: var(--text);
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { color: var(--text-sec); opacity: 0.6; }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,200,66,0.10); }

.contact-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border-radius: 100px; font-size: 13px; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sec); text-decoration: none; transition: border-color 0.25s, color 0.25s;
}
.contact-chip:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-heading {
  font-family: 'Syne',sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--footer-text); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.07); }

.social-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(245,200,66,0.07); border: 1px solid rgba(245,200,66,0.13);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-text); text-decoration: none; transition: all 0.25s;
}
.social-icon:hover { background: rgba(245,200,66,0.18); border-color: rgba(245,200,66,0.45); color: var(--gold); transform: translateY(-2px); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal-page { max-width: 820px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-page h1 { font-family: 'Syne',sans-serif; font-size: clamp(2rem,5vw,3rem); font-weight: 800; margin-bottom: 12px; color: var(--text); }
.legal-page .legal-sub { color: var(--text-sec); margin-bottom: 48px; font-size: 0.95rem; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 { font-family: 'Syne',sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-section p, .legal-section li { font-size: 0.9rem; color: var(--text-sec); line-height: 1.75; }
.legal-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-section ul li::before { content: '—  '; color: var(--gold); }
.legal-section a { color: var(--gold); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 0.875rem; color: var(--text-sec); text-decoration: none; transition: color 0.2s; }
.legal-back:hover { color: var(--gold); }
.legal-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-family: 'JetBrains Mono',monospace; background: var(--chip-bg); color: var(--chip-text); border: 1px solid var(--chip-border); margin-bottom: 12px; }

/* ── AUTH CTA SECTION ────────────────────────────────────── */
.auth-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.auth-divider-line { background: var(--border); }
.auth-or-text { color: var(--text-sec); letter-spacing: 0.08em; }

/* Sign In button (outline style, sits beside cta-primary in navbar) */
.nav-signin-btn {
  color: var(--text-sec);
  border: 1.5px solid var(--border);
  background: transparent;
  text-decoration: none;
  transition: all 0.25s;
}
.nav-signin-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ── AUTH PAGES (login.html / register.html) ─────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 20px; }
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--text-sec);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Google / social button */
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card-solid, var(--bg));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: 'Space Grotesk', sans-serif;
}
.auth-social-btn:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(245,200,66,0.12);
}

/* OR divider */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.auth-or-line { flex: 1; height: 1px; background: var(--border); }
.auth-or-label { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text-sec); letter-spacing: 0.12em; white-space: nowrap; }

/* Field group */
.auth-field { margin-bottom: 16px; }
.auth-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.auth-forgot { font-size: 12px; color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.auth-forgot:hover { opacity: 0.75; }

/* Password input wrapper */
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-sec);
  padding: 4px; line-height: 0; transition: color 0.2s;
}
.pw-toggle:hover { color: var(--text); }

/* Remember me */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sec);
  cursor: pointer;
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: transparent;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Submit button */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 20px;
  background: var(--gold);
  color: #0A0F2E;
  box-shadow: 0 0 22px rgba(245,200,66,0.28);
  transition: all 0.3s;
}
.auth-submit:hover {
  background: var(--gold-light);
  box-shadow: 0 0 36px rgba(245,200,66,0.5);
  transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }

/* Loading spinner state */
.auth-submit.loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Bottom link */
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-sec);
}
.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* Error / success messages */
.auth-error {
  display: none;
  background: rgba(224,32,32,0.1);
  border: 1px solid rgba(224,32,32,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff6b6b;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-success {
  display: none;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #4ade80;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-error.visible, .auth-success.visible { display: block; }

/* Password strength bar */
.pw-strength { margin-top: 6px; height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0%; }
.pw-strength-text { font-size: 11px; color: var(--text-sec); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

/* Terms checkbox line */
.auth-terms { font-size: 12px; color: var(--text-sec); line-height: 1.5; }
.auth-terms a { color: var(--gold); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* ── MISC ────────────────────────────────────────────────── */
@keyframes priceFlashUp   { 0%{color:#4ade80} 100%{color:inherit} }
@keyframes priceFlashDown { 0%{color:#f87171} 100%{color:inherit} }
.price-flash-up   { animation: priceFlashUp   0.5s ease forwards; }
.price-flash-down { animation: priceFlashDown 0.5s ease forwards; }

.ticker-loading { color: var(--ticker-text); opacity: 0.5; }
::selection { background: rgba(245,200,66,0.3); color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245,200,66,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
spline-viewer { width: 100% !important; height: 100% !important; }

/* ── LOGGED-IN HERO (index.html) ─────────────────────── */
.logged-in-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .logged-in-hero { grid-template-columns: 1fr; }
}
.li-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.li-stat { text-align: center; }
.li-stat-val { font-family:'Syne',sans-serif; font-size:1.4rem; font-weight:800; color:var(--gold); line-height:1; margin-bottom:3px; }
.li-stat-lbl { font-size:10px; font-family:'JetBrains Mono',monospace; letter-spacing:0.1em; color:var(--text-sec); text-transform:uppercase; }
.li-stat-divider { width:1px; height:36px; background:var(--border); flex-shrink:0; }
.li-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.li-signout-btn { background:transparent; border:1.5px solid var(--border); color:var(--text-sec); padding:10px 20px; border-radius:100px; font-size:13px; font-weight:600; cursor:pointer; font-family:'Space Grotesk',sans-serif; transition:all 0.25s; }
.li-signout-btn:hover { border-color:var(--crimson); color:#ff6b6b; }
.li-plan-card { background:var(--bg-card); border:1px solid var(--border); border-radius:24px; padding:28px; box-shadow:var(--shadow-card); }
.li-plan-header { display:flex; align-items:center; gap:14px; margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.li-avatar { width:46px; height:46px; border-radius:50%; background:rgba(245,200,66,0.12); border:2px solid var(--gold); display:flex; align-items:center; justify-content:center; font-family:'Syne',sans-serif; font-size:1rem; font-weight:800; color:var(--gold); flex-shrink:0; }
.li-plan-name { font-family:'Syne',sans-serif; font-size:1rem; font-weight:700; color:var(--text-primary); }
.li-plan-sub { font-size:12px; color:var(--text-sec); margin-top:2px; }
.li-plan-badge { margin-left:auto; font-size:10px; font-family:'JetBrains Mono',monospace; font-weight:700; letter-spacing:0.1em; padding:4px 10px; border-radius:100px; background:rgba(34,197,94,0.1); color:#22c55e; border:1px solid rgba(34,197,94,0.25); }
.li-features { display:flex; flex-direction:column; gap:10px; margin-bottom:22px; }
.li-feature { display:flex; align-items:center; gap:10px; font-size:13px; }
.li-feature-on { color:var(--text-primary); }
.li-feature-off { color:var(--text-sec); opacity:0.65; }
.li-upgrade-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:13px; border-radius:100px; background:var(--gold); color:#0A0F2E; font-weight:700; font-size:14px; text-decoration:none; transition:all 0.3s; box-shadow:0 0 20px rgba(245,200,66,0.25); }
.li-upgrade-btn:hover { background:var(--gold-light,#FFE87A); box-shadow:0 0 32px rgba(245,200,66,0.45); transform:translateY(-2px); }
