/* ============================================================
   APEX CRYPTO DESK — styles.css
   Premium Dark Graphite / Emerald Design System v3.0
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds */
  --bg-base:    #0a0b0f;
  --bg-surface: #111318;
  --bg-card:    #161b24;
  --bg-card-2:  #1a2030;
  --bg-panel:   rgba(16, 20, 32, 0.92);
  --bg-hover:   rgba(255, 255, 255, 0.04);

  /* Borders */
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(16, 185, 129, 0.35);

  /* Text */
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --text-accent:   #10b981;

  /* Emerald accent family */
  --emerald:       #10b981;
  --emerald-light: #34d399;
  --emerald-dim:   rgba(16, 185, 129, 0.15);
  --emerald-glow:  0 0 24px rgba(16, 185, 129, 0.4);

  /* Cyan secondary */
  --cyan:      #06b6d4;
  --cyan-dim:  rgba(6, 182, 212, 0.12);

  /* Violet accent (sparingly) */
  --violet:    #8b5cf6;
  --violet-dim:rgba(139, 92, 246, 0.1);

  /* Semantic */
  --green:     #10b981;
  --green-dim: rgba(16, 185, 129, 0.15);
  --red:       #ef4444;
  --red-dim:   rgba(239, 68, 68, 0.15);
  --yellow:    #f59e0b;
  --yellow-dim:rgba(245, 158, 11, 0.15);

  /* Signal colors */
  --signal-strong-buy: #10b981;
  --signal-buy:        #34d399;
  --signal-neutral:    #94a3b8;
  --signal-sell:       #fb923c;
  --signal-strong-sell:#ef4444;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow:0 0 30px rgba(16, 185, 129, 0.2);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Transitions */
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Type scale */
  --font-mono: "Space Mono", "Courier New", monospace;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

/* ── BASE ── */
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow orbs */
body::before {
  content: '';
  position: fixed;
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  z-index: 0; pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  width: 400px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
  bottom: 20%; right: -100px;
  z-index: 0; pointer-events: none;
}

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--emerald); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700; font-size: 0.875rem; text-decoration: none;
  z-index: 9999; transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── CUSTOM SCROLLBARS ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 5px;
  border: 2.5px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--emerald-dim); border-color: var(--emerald); }
@supports (scrollbar-color: auto) {
  * { scrollbar-color: var(--border-strong) var(--bg-base); scrollbar-width: thin; }
}

/* ── LAYOUT ── */
.shell {
  width: min(1160px, 93vw);
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ── CINEMATIC LOADER ── */
.cinematic-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.cinematic-loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo-wrap {
  position: relative;
  width: 80px; height: 80px;
}
.loader-logo-wrap svg {
  width: 100%; height: 100%;
  animation: logoAppear 1s ease-out both;
}
.loader-ring {
  position: absolute; inset: -8px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes logoAppear {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.1); opacity: 1; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s 0.5s ease both;
}
.loader-bar {
  width: 160px; height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  animation: fadeInUp 0.6s 0.7s ease both;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  animation: barFill 2.5s ease-out both;
}
@keyframes barFill {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LAUNCHER OVERLAY ── */
.launcher-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease;
}
.launcher-overlay.active {
  opacity: 1; visibility: visible; pointer-events: all;
}
.launcher-window {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  width: min(480px, 92vw);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 2rem;
  animation: launcherIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}
@keyframes launcherIn {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.launcher-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border);
  background: none; color: var(--text-secondary);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), color var(--ease);
}
.launcher-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.launcher-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.launcher-header img {
  width: 44px; height: 44px; border-radius: var(--r-md);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.launcher-header h2 {
  margin: 0; font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary);
}
.launcher-header .version {
  font-size: 0.7rem; color: var(--emerald);
  font-family: var(--font-mono); margin-left: 0.4rem;
  background: var(--emerald-dim); padding: 0.1rem 0.5rem;
  border-radius: 999px; border: 1px solid var(--border-accent);
}
.launcher-body p {
  color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem;
}
.launcher-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.launcher-opt {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
  cursor: pointer;
}
.launcher-opt:hover {
  border-color: var(--border-accent);
  background: var(--emerald-dim);
  transform: translateX(4px);
}
.launcher-opt.primary { border-color: var(--border-accent); background: var(--emerald-dim); }
.launcher-opt-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); flex-shrink: 0;
}
.opt-main { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.opt-sub  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.launcher-footer {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.security-readout {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--emerald); letter-spacing: 0.12em;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.security-readout::before {
  content: '●'; font-size: 0.5rem;
  animation: secPulse 2s ease-in-out infinite;
}
@keyframes secPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── NAVIGATION ── */
.top-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  position: relative; z-index: 100;
}
.top-nav.scrolled {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary);
}
.brand img {
  width: 32px; height: 32px; border-radius: var(--r-sm);
}
.brand-name {
  background: linear-gradient(135deg, var(--emerald-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color var(--ease); position: relative;
}
.nav-link:hover { color: var(--text-primary); }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0.4rem 0.55rem; cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0;
}
.hamburger::before { top: -5px; }
.hamburger::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(3px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(3px, -4px); }

/* ── BUTTONS ── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: var(--r-md); border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  cursor: pointer; font-family: inherit; letter-spacing: 0.01em;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

.button.primary {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.button.primary:hover {
  background: var(--emerald-light);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  border-color: var(--emerald-light);
}

.button.secondary {
  background: transparent;
  color: var(--emerald);
  border-color: var(--border-accent);
}
.button.secondary:hover {
  background: var(--emerald-dim);
  border-color: var(--emerald);
}

.button.ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text-secondary);
}
.button.ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.button.block { width: 100%; }
.button.sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; border-radius: var(--r-sm); }

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    var(--bg-base);
}
/* Subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 3rem; align-items: center;
  padding: 3.5rem 0 4.5rem;
  position: relative; z-index: 1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--emerald); font-size: 0.72rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin: 0;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  animation: dot-ping 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--emerald);
}
@keyframes dot-ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1; margin: 0.75rem 0 1rem;
  font-weight: 900; letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 strong {
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary); max-width: 52ch;
  font-size: 1rem; line-height: 1.75;
}

.cta-row {
  display: flex; gap: 0.75rem; margin-top: 2rem;
  flex-wrap: wrap; align-items: center;
}

.trust-row {
  margin: 1.5rem 0 0; display: flex; flex-wrap: wrap;
  gap: 0.5rem; padding: 0; list-style: none;
}
.trust-row li {
  display: flex; align-items: center; gap: 0.35rem;
  background: rgba(16, 185, 129, 0.07);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.775rem; font-weight: 500;
}

/* ── HERO PREVIEW CARD ── */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  transition: box-shadow var(--ease-slow), transform var(--ease-slow);
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent 50%, rgba(6, 182, 212, 0.05));
  pointer-events: none;
}
.hero-card:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: translateY(-4px);
}
.hero-card img {
  width: 100%; border-radius: var(--r-lg);
  display: block;
}
.hero-meta {
  display: flex; justify-content: space-between;
  margin-top: 0.6rem; color: var(--text-muted);
  font-size: 0.72rem; font-family: var(--font-mono);
  padding: 0 0.2rem;
}

/* ── TICKER STRIP ── */
.ticker-strip {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 0.5rem 0; position: relative;
}
.ticker-strip::before, .ticker-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.ticker-strip::before { left: 0; background: linear-gradient(90deg, rgba(10, 11, 15, 0.9), transparent); }
.ticker-strip::after  { right: 0; background: linear-gradient(-90deg, rgba(10, 11, 15, 0.9), transparent); }

.ticker-inner {
  display: inline-flex;
  animation: tickerScroll 40s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.ticker-symbol { color: var(--text-primary); font-weight: 700; font-size: 0.72rem; }
.ticker-price  { color: var(--text-secondary); }
.ticker-up     { color: var(--emerald); }
.ticker-down   { color: var(--red); }
.ticker-flat   { color: var(--text-muted); }
.ticker-loading { padding: 0 2rem; opacity: 0.4; }

/* ── SECTION BASE ── */
.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-label {
  color: var(--emerald); font-size: 0.7rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before { content: '//'; opacity: 0.5; }
.section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800;
  color: var(--text-primary); margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-secondary); max-width: 56ch; font-size: 1rem;
  line-height: 1.7; margin: 0 0 2.5rem;
}

/* ── MARKET REGIME BANNER ── */
.market-regime-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
}
.regime-label {
  font-size: 0.7rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
}
.regime-value {
  font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-top: 0.2rem;
}
.regime-value.bullish   { color: var(--emerald); }
.regime-value.bearish   { color: var(--red); }
.regime-value.neutral   { color: var(--yellow); }
.regime-value.uncertain { color: var(--text-muted); }
.regime-freshness {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem;
}
.freshness-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
}
.freshness-dot.stale { background: var(--yellow); animation: none; }
.freshness-dot.offline { background: var(--red); }
.freshness-dot.live {
  background: var(--emerald);
  animation: dot-ping 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--emerald);
}

/* ── TOP MOVERS ── */
.top-movers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.mover-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: border-color var(--ease), background var(--ease);
}
.mover-card:hover {
  border-color: var(--border-strong); background: var(--bg-card-2);
}
.mover-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  font-family: var(--font-mono); flex-shrink: 0;
}
.mover-sym  { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.mover-name { font-size: 0.7rem; color: var(--text-muted); }
.mover-pct  { margin-left: auto; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.mover-pct.up   { color: var(--emerald); }
.mover-pct.down { color: var(--red); }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.1);
  transform: translateY(-3px);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--emerald-dim);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--emerald);
}
.feature-card h3 {
  margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; color: var(--text-primary);
}
.feature-card p {
  margin: 0; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65;
}

/* ── MARKET SECTION (dark bg) ── */
.section-market {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(16, 185, 129, 0.04), transparent),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── LIVE BADGE ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--emerald); font-family: var(--font-mono);
  flex-shrink: 0;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  animation: dot-ping 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--emerald);
}
.live-badge.error {
  color: var(--red); border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.live-badge.error .live-dot {
  background: var(--red); animation: none; box-shadow: none;
}

/* ── MARKET CARDS ── */
.market-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
  cursor: default; position: relative; overflow: hidden;
}
.market-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  opacity: 0; transition: opacity var(--ease);
}
.market-card:hover { background: var(--bg-card-2); border-color: var(--border-strong); transform: translateY(-2px); }
.market-card:hover::before { opacity: 1; }
.market-card.skeleton { animation: skeletonPulse 1.5s ease infinite; }

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}
.sk-line {
  background: var(--bg-surface);
  border-radius: var(--r-sm); height: 13px; margin-bottom: 8px;
}
.sk-line.wide { width: 65%; }
.sk-line.narrow { width: 40%; }

.market-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; }
.market-card-sym {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.03em;
}
.market-card-name { font-size: 0.7rem; color: var(--text-muted); }
.market-card-signal {
  font-size: 0.65rem; font-weight: 700; font-family: var(--font-mono);
  padding: 0.15rem 0.45rem; border-radius: 999px; letter-spacing: 0.05em;
}
.signal-buy    { background: var(--green-dim); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.signal-sell   { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.signal-watch  { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245, 158, 11, 0.3); }
.signal-neutral{ background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }

.market-card-price {
  font-size: 1.1rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.01em; margin-bottom: 0.25rem;
}
.market-card-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.market-card-change {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
}
.change-up   { color: var(--emerald); }
.change-down { color: var(--red); }
.change-flat { color: var(--text-muted); }
.market-card-vol {
  font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono);
  margin-left: auto;
}

/* ── CHART CONTAINER ── */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.6rem;
}
.chart-title-group { display: flex; align-items: center; gap: 0.6rem; }
.chart-title {
  font-weight: 800; font-size: 0.95rem; color: var(--text-primary);
  font-family: var(--font-mono);
}
.chart-badge {
  font-size: 0.65rem; background: var(--bg-surface); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0.15rem 0.45rem; font-family: var(--font-mono);
}
.chart-controls { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chart-btn {
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--r-sm);
  padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-mono);
  transition: all var(--ease);
}
.chart-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.chart-btn.active {
  background: var(--emerald-dim); border-color: var(--border-accent);
  color: var(--emerald);
}

.chart-value-row {
  display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem;
}
.chart-price {
  font-size: 1.75rem; font-weight: 900; color: var(--text-primary);
  letter-spacing: -0.03em; font-family: var(--font-sans);
}
.chart-change   { font-size: 0.875rem; font-weight: 700; font-family: var(--font-mono); }
.chart-change.up   { color: var(--emerald); }
.chart-change.down { color: var(--red); }

.chart-canvas-wrap { position: relative; }
#priceChart { width: 100%; height: 220px; display: block; border-radius: var(--r-md); cursor: crosshair; }

/* Chart Tooltip */
.chart-tooltip {
  position: absolute;
  background: var(--bg-card-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-primary);
  pointer-events: none;
  display: none;
  z-index: 10;
  box-shadow: var(--shadow-md);
  min-width: 120px;
}
.chart-tooltip-price { font-weight: 700; color: var(--emerald); font-size: 0.9rem; }
.chart-tooltip-time  { color: var(--text-muted); font-size: 0.65rem; margin-top: 0.2rem; }
.chart-crosshair-v, .chart-crosshair-h {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(255, 255, 255, 0.1);
  display: none;
}
.chart-crosshair-v { width: 1px; top: 0; }
.chart-crosshair-h { height: 1px; left: 0; right: 0; }

.chart-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.chart-data-note {
  font-size: 0.7rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem;
}
.chart-update-time {
  font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono);
}

/* ── SIGNAL CARD ── */
.signal-explanation-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
}
.signal-card-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.signal-card-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--emerald-dim); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); flex-shrink: 0;
}
.signal-card-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.signal-card-sub   { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.signal-rows { display: grid; gap: 0.6rem; }
.signal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card); border-radius: var(--r-sm);
  font-size: 0.8rem;
}
.signal-row-label { color: var(--text-secondary); }
.signal-row-value { font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; }
.signal-row-value.pos { color: var(--emerald); }
.signal-row-value.neg { color: var(--red); }
.signal-row-value.neu { color: var(--yellow); }
.confidence-bar-wrap { margin-top: 0.75rem; }
.confidence-bar-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.confidence-bar { height: 4px; background: var(--bg-surface); border-radius: 4px; overflow: hidden; }
.confidence-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

/* ── DOWNLOAD SECTION ── */
.section-download {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 1.5rem;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem; 
  transition: border-color var(--ease), box-shadow var(--ease);
}
.download-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}
.download-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--emerald-dim); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); margin-bottom: 1rem;
}
.download-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--text-primary); font-weight: 700; }
.download-card p  { margin: 0 0 1.1rem; color: var(--text-secondary); font-size: 0.875rem; }
.meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.6rem !important; }

.hashes {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
}
.hashes-header {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.hashes h3 { margin: 0; font-size: 0.9rem; color: var(--emerald); }
.hashes pre {
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--font-mono); font-size: 0.72rem;
  margin: 0 0 1rem; line-height: 2; color: var(--text-muted);
}
.hash-download-btn {
  color: var(--emerald) !important; border-color: var(--border-accent) !important;
  background: var(--emerald-dim) !important;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 0.5rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pricing-card:hover { border-color: var(--border-strong); }
.pricing-card.featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
  background: linear-gradient(160deg, #161d28 0%, #131b25 100%);
}
.pricing-card ul { margin: 1rem 0 1.5rem; padding-left: 1rem; }
.pricing-card li { margin-bottom: 0.45rem; color: var(--text-secondary); font-size: 0.875rem; }
.pricing-card li::marker { color: var(--emerald); }

.featured-badge {
  display: inline-flex;
  background: var(--emerald); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 0.8rem;
}
.price {
  font-size: 2.3rem; font-weight: 900; color: var(--text-primary);
  margin: 0.3rem 0 0.4rem; line-height: 1;
}
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); margin-left: 0.15rem; }
.price-alt { font-size: 0.8rem; color: var(--emerald); font-weight: 600; margin: 0 0 1rem; }
.pricing-note { margin-top: 1.25rem; color: var(--text-secondary); font-size: 0.85rem; }
.pricing-note a { color: var(--emerald); text-decoration: none; font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }
.pricing-note-inline { font-size: 0.75rem; color: var(--text-muted); margin: 0.5rem 0 0; text-align: center; }

/* ── FAQ ── */
.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--border-accent); }
.faq-item summary {
  padding: 1rem 1.2rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--emerald); flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0; padding: 0 1.2rem 1rem;
  color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0; text-align: center;
  background: var(--bg-surface);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem;
}
.footer-brand img { border-radius: var(--r-sm); }
.footer-brand span {
  background: linear-gradient(135deg, var(--emerald-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer p { margin: 0.35rem 0; color: var(--text-secondary); font-size: 0.875rem; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  justify-content: center; margin: 1rem 0;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.8rem; transition: color var(--ease);
}
.footer-links a:hover { color: var(--emerald); }
.fine-print { font-size: 0.75rem !important; max-width: 62ch; margin: 0 auto !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .hero-card      { max-width: 540px; margin: 0 auto; }
  .market-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .top-movers     { grid-template-columns: repeat(2, 1fr); }
  .faq-grid       { grid-template-columns: 1fr; }
  .feature-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 0.5rem); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1rem;
    flex-direction: column; gap: 1rem; min-width: 200px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .market-cards-grid { grid-template-columns: 1fr; }
  .top-movers     { grid-template-columns: 1fr; }
  .download-grid  { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .hero-grid      { padding: 2rem 0 3rem; }
  h1              { font-size: clamp(1.7rem, 7vw, 2.5rem); }
}

/* ── PRESERVE PREVIEW SECTION ── */
.section-dark-preview { /* alias for section-market */
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(16, 185, 129, 0.04), transparent),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.preview-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-sub.light { color: rgba(148, 163, 184, 0.7); }

/* ── BACKWARD COMPAT TOKEN ALIASES ── */
/* Old tokens that sub-pages still reference inline */
:root {
  --ink-dim:    var(--text-secondary);
  --radius-lg:  var(--r-lg);
  --bg-glass:   var(--bg-card);
}

/* ── SUB-PAGE SHARED HEADER ── */
.checkout-header {
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
}
.checkout-header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── CHECKOUT PROGRESS STEPS ── */
.checkout-steps {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.checkout-steps .step {
  display: flex; align-items: center; gap: 0.35rem;
  font-weight: 500;
}
.checkout-steps .step.active { color: var(--emerald); font-weight: 700; }
.checkout-steps .step-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-family: var(--font-mono);
}
.checkout-steps .step.active .step-num {
  background: var(--emerald-dim); border-color: var(--border-accent);
  color: var(--emerald);
}
.checkout-steps .step-divider { opacity: 0.3; font-size: 0.65rem; }

/* ── CHECKOUT LAYOUT ── */
.checkout-main { padding: 3rem 0; min-height: 70vh; }
.checkout-shell { max-width: 820px; margin: 0 auto; }
.back-btn { margin-bottom: 1.5rem; width: fit-content; }

.checkout-intro { margin-bottom: 2rem; }
.checkout-intro h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.checkout-intro .subtitle { color: var(--text-secondary); max-width: 54ch; font-size: 0.95rem; }

/* ── CHECKOUT PLAN CARDS ── */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.6rem;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.checkout-card:hover { border-color: var(--border-strong); }
.checkout-card.featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}
.plan-header { margin-bottom: 0.5rem; }
.plan-header h2 { font-size: 1.1rem; margin: 0; color: var(--text-primary); font-weight: 700; }
.checkout-card .price { font-size: 2rem; font-weight: 900; margin: 0.4rem 0; color: var(--text-primary); }
.checkout-card .price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.checkout-card .meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1rem; }
.plan-features { padding-left: 1rem; margin: 0 0 1.25rem; }
.plan-features li { color: var(--text-secondary); font-size: 0.86rem; margin-bottom: 0.4rem; }
.plan-features li::marker { color: var(--emerald); }
.btn-icon { display: inline-flex; align-items: center; }

/* ── CHECKOUT STATUS BOX ── */
.checkout-status-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  min-height: 56px; display: flex; align-items: center;
}
.status-inner { width: 100%; }
.status-spinner {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.875rem;
}
.spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--emerald);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-message {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.875rem; line-height: 1.6;
}
.status-message svg { flex-shrink: 0; margin-top: 2px; }
.status-ok   { color: var(--emerald); }
.status-info { color: var(--text-secondary); }
.status-info svg { color: var(--cyan); }

/* ── CHECKOUT TRUST ROW ── */
.checkout-trust {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.trust-item svg { color: var(--emerald); flex-shrink: 0; }

/* ── CHECKOUT FOOTER ── */
.checkout-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
  background: var(--bg-surface);
}
.checkout-footer .fine-print { color: var(--text-muted); font-size: 0.8rem; }
.checkout-footer .fine-print a { color: var(--emerald); text-decoration: none; }
.checkout-footer .fine-print a:hover { text-decoration: underline; }

/* ── CHECKOUT RESPONSIVE ── */
@media (max-width: 620px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-steps { display: none; }
}

/* ── SUB-PAGE CONTENT (privacy, terms, support) ── */
.subpage-content { max-width: 680px; }
.subpage-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.02em;
}
.subpage-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin: 1.75rem 0 0.4rem;
}
.subpage-content p { color: var(--text-secondary); line-height: 1.75; margin: 0 0 0.75rem; }
.subpage-content a { color: var(--emerald); text-decoration: none; }
.subpage-content a:hover { text-decoration: underline; }
.subpage-date { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); margin-bottom: 2rem; }
.subpage-warn {
  background: var(--red-dim); border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--r-md); padding: 0.75rem 1rem;
  color: var(--red); font-size: 0.875rem; margin: 1rem 0;
}
.subpage-contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem; margin-top: 1.5rem;
}
.subpage-contact-card h3 { margin-top: 0; }


/* ── AI DASHBOARD (v4.0) ── */
.ai-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.ai-dashboard::before {
  content: 'AI INTELLIGENCE — ALPHA V4';
  position: absolute; top: 0; right: 0;
  background: var(--emerald); color: #000;
  font-family: var(--font-mono); font-size: 0.6rem;
  font-weight: 800; padding: 0.25rem 0.75rem;
  border-radius: 0 0 0 var(--r-md);
  letter-spacing: 0.1em;
}

.ai-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ai-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.bias-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.bias-value.bullish { color: var(--emerald); }
.bias-value.bearish { color: var(--red); }
.bias-value.neutral { color: var(--yellow); }

.meter-group { margin-top: 0.25rem; }
.meter-label {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-secondary);
  margin-bottom: 0.4rem; font-weight: 500;
}
.meter-bar {
  height: 6px; background: var(--bg-surface);
  border-radius: 10px; overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.meter-bar.risk .meter-fill {
  background: linear-gradient(90deg, var(--yellow), var(--red));
}

.setup-type {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.setup-reasoning {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.setup-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: auto;
}
.level-item {
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 0.75rem;
  border-left: 3px solid var(--emerald);
}
.level-item.inv { border-left-color: var(--red); }
.level-item.tgt { border-left-color: var(--cyan); }
.level-label {
  display: block; font-size: 0.65rem;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.level-price {
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 700; color: var(--text-primary);
}

.factor-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.factor-tag {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem; color: var(--text-secondary);
  transition: transform 0.2s;
}
.factor-tag.ok { border-color: var(--border-accent); color: var(--emerald-light); }
.factor-tag:hover { transform: scale(1.05); }

.ai-dashboard-footer {
  display: flex; justify-content: space-between;
  margin-top: 1.5rem; align-items: center;
}
.freshness-label {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
}
.disclaimer-trigger {
  font-size: 0.7rem; color: var(--text-muted);
  cursor: help; text-decoration: underline dotted;
}

@media (max-width: 768px) {
  .ai-dashboard-grid { grid-template-columns: 1fr; }
}
