/* ============================================================
   ArtinFox Signal Intelligence — Design System
   Primary stylesheet for all website pages
   ============================================================ */

/* ── Reset & Box Model ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ── */
:root {
  --bg-primary:     #0D1117;
  --bg-secondary:   #161B22;
  --bg-tertiary:    #1C2A38;
  --border:         #30363D;
  --border-subtle:  #21262D;
  --text-primary:   #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted:     #484F58;
  --accent:         #00B4D8;
  --accent-dark:    #0088AA;
  --accent-hover:   #00C8F0;
  --accent-green:   #06D6A0;
  --accent-red:     #FF4C6B;
  --accent-yellow:  #F7C948;

  --nav-height: 64px;
  --content-width: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --gap: 20px;
  --section-pad: 96px 0;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

/* ── Layout Utilities ── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1440px;
  padding: 0 20px;
}

.section { padding: var(--section-pad); }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap { gap: var(--gap); }
.gap-lg { gap: 32px; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Typography ── */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1, .h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-primary);
}

h2, .h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text-primary);
}

h3, .h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

h4, .h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; letter-spacing: 0.5px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0D1117;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0D1117;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 10px 16px;
}
.btn-ghost:hover { background: rgba(0,180,216,0.1); color: var(--accent-hover); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(13,17,23,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(240,246,252,0.06);
}

.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 60% 0%, rgba(0,136,170,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(6,214,160,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 20px 0 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-stat-value span { color: var(--accent); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* ── Signal Bars (animated logo mark) ── */
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}

.bar {
  width: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: barPulse 1.8s ease-in-out infinite;
}
.bar:nth-child(1)  { height: 30%; opacity: 0.5; animation-delay: 0s;    }
.bar:nth-child(2)  { height: 50%; opacity: 0.6; animation-delay: 0.1s;  }
.bar:nth-child(3)  { height: 40%; opacity: 0.6; animation-delay: 0.2s;  }
.bar:nth-child(4)  { height: 65%; opacity: 0.7; animation-delay: 0.3s;  }
.bar:nth-child(5)  { height: 80%; opacity: 0.8; animation-delay: 0.15s; }
.bar:nth-child(6)  { height: 100%; opacity: 1.0; animation-delay: 0.05s; background: var(--accent); }
.bar:nth-child(7)  { height: 90%; opacity: 0.9; animation-delay: 0.1s;  }
.bar:nth-child(8)  { height: 60%; opacity: 0.75; animation-delay: 0.25s;}
.bar:nth-child(9)  { height: 45%; opacity: 0.65; animation-delay: 0.35s;}
.bar:nth-child(10) { height: 35%; opacity: 0.55; animation-delay: 0.4s; }
.bar:nth-child(11) { height: 25%; opacity: 0.4;  animation-delay: 0.45s;}

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}

/* ── Cards ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0,180,216,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header {
  padding: 20px 20px 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ── Section Headers ── */
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.section-header p { margin-top: 14px; font-size: 16px; line-height: 1.7; }

.section-divider {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--border);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin: 44px 0 20px;
}

/* ── Signal Badges ── */
.signal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.signal-buy  { color: var(--accent-green); background: rgba(6,214,160,0.12); border: 1px solid rgba(6,214,160,0.25); }
.signal-hold { color: var(--accent-yellow); background: rgba(247,201,72,0.12); border: 1px solid rgba(247,201,72,0.25); }
.signal-sell { color: var(--accent-red); background: rgba(255,76,107,0.12); border: 1px solid rgba(255,76,107,0.25); }

/* ── Confidence Bar ── */
.confidence-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.confidence-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-green);
  width: 0;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.confidence-fill.med { background: var(--accent-yellow); }
.confidence-fill.low { background: var(--accent-red); }

/* ── Crypto Asset Cards ── */
.crypto-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.crypto-card:hover { border-color: rgba(0,180,216,0.35); }

.crypto-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.crypto-name { font-size: 16px; font-weight: 700; }
.crypto-symbol { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.crypto-meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.crypto-meta span { display: flex; align-items: center; gap: 4px; }
.crypto-models { margin-top: 12px; font-size: 11px; color: var(--text-muted); }
.crypto-models strong { color: var(--text-secondary); }

/* ── Paywall Overlay ── */
.paywall-wrap {
  position: relative;
}

.paywall-wrap .blurred {
  filter: blur(5px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(13,17,23,0.6) 30%, rgba(13,17,23,0.95) 70%);
  border-radius: var(--radius);
  z-index: 10;
}

.paywall-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 40px rgba(0,180,216,0.1);
}

.paywall-card h3 { font-size: 18px; margin: 10px 0 6px; }
.paywall-card p { font-size: 13px; margin-bottom: 20px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

thead {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 10px 8px;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: rgba(240,246,252,0.03); }

.rank-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Accuracy Pill ── */
.acc-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.acc-high { background: rgba(6,214,160,0.15); color: var(--accent-green); }
.acc-med  { background: rgba(247,201,72,0.15); color: var(--accent-yellow); }
.acc-low  { background: rgba(255,76,107,0.15); color: var(--accent-red); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  align-items: start;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--bg-tertiary);
  box-shadow: 0 0 40px rgba(0,180,216,0.12);
}

.pricing-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card.featured .pricing-tier { color: var(--accent); }

.pricing-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup { font-size: 20px; letter-spacing: 0; vertical-align: top; margin-top: 6px; display: inline-block; }
.pricing-price sub { font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }

.pricing-was {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
  min-height: 16px;
}
.launch-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(247, 201, 72, 0.15);
  color: #F7C948;
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 24px;
  min-height: 40px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li.locked {
  opacity: 0.4;
}
.pricing-features li.locked::before {
  content: '—';
  color: var(--text-muted);
}

.popular-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--accent);
  color: #0D1117;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── Steps (How It Works) ── */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Feature Blocks ── */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ── Disclaimer ── */
.disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, #0D1117 0%, #1C3D5A 50%, #0D1117 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 260px; line-height: 1.7; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials { display: flex; gap: 14px; margin-top: 16px; }
.footer-socials a { color: var(--text-muted); transition: color 0.15s; }
.footer-socials a:hover { color: var(--accent); }

/* ── Utility ── */
.hidden { display: none !important; }
.mt-sm { margin-top: 8px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb { margin-bottom: 16px; }
.mb-lg { margin-bottom: 32px; }
.w-full { width: 100%; }

/* ── Delay indicator ── */
.delay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-yellow);
  background: rgba(247,201,72,0.1);
  border: 1px solid rgba(247,201,72,0.2);
  padding: 2px 8px;
  border-radius: 4px;
}
.delay-badge.live {
  color: var(--accent-green);
  background: rgba(6,214,160,0.1);
  border-color: rgba(6,214,160,0.2);
}
.delay-badge::before {
  content: '●';
  font-size: 7px;
  animation: blink 2s step-end infinite;
}
.delay-badge.live::before { animation: blink 1.2s step-end infinite; }

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

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  h1, .h1 { letter-spacing: -1px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 56px; }
  .hero-stats { margin-top: 44px; }
}

/* ══════════════════════════════════════════════════════
   FEAR & GREED SENTIMENT STRIP
═══════════════════════════════════════════════════════ */
#sentiment-strip {
  position: sticky;
  top: var(--nav-height);
  z-index: 99;
}
.sentiment-strip {
  height: 32px;
  background: var(--bg-primary);
  font-size: 11px;
  overflow: hidden;
}
.ss-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  gap: 14px;
  overflow: hidden;
}
.ss-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.ss-track {
  flex: 1;
  height: 5px;
  background: linear-gradient(90deg,
    #FF4C6B 0%,
    #FF8C42 25%,
    #F7C948 50%,
    #3DD68C 75%,
    #06D6A0 100%
  );
  border-radius: 3px;
  position: relative;
  max-width: 400px;
  min-width: 100px;
}
.ss-thumb {
  position: absolute;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transform: translateX(-50%);
  transition: left 0.6s ease;
}
.ss-score {
  font-size: 14px;
  font-weight: 700;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.ss-sentiment-label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ss-change {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.ss-change--up   { color: var(--accent-green); }
.ss-change--down { color: var(--accent-red); }
.ss-change--flat { color: var(--text-muted); }
.ss-divider { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; margin-left: auto; }
.ss-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.ss-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.ss-stat strong { font-weight: 700; }
.ss-loading { color: var(--text-muted); font-size: 11px; }
.ss-desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
@media (max-width: 768px) {
  .ss-inner { padding: 0 16px; }
  .ss-desc, .ss-stats { display: none; }
}

/* ══════════════════════════════════════════════════════
   NEWS TICKER STRIP
═══════════════════════════════════════════════════════ */
.news-ticker-strip {
  height: 32px;
  background: var(--bg-primary);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  z-index: 98;
  font-size: 13px;
}
.nt-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
  overflow: hidden;
}
.nt-label {
  flex-shrink: 0;
  padding: 0 10px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}
.nt-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nt-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: nt-scroll 60s linear infinite;
}
.nt-track:hover .nt-inner {
  animation-play-state: paused;
}
@keyframes nt-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.nt-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  border-right: 1px solid var(--border);
  height: 32px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nt-item:hover { color: var(--text-primary); }
.nt-item-sym {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text-muted);
  flex-shrink: 0;
}
.nt-item-sig {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.nt-item-sig--buy  { background: rgba(6,214,160,0.12); color: #06D6A0; }
.nt-item-sig--sell { background: rgba(255,76,107,0.12); color: #FF4C6B; }
.nt-item-sig--hold { background: rgba(247,201,72,0.12); color: #F7C948; }
.nt-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
  font-size: 13px;
}
.nt-item-src {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nt-item-age {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nt-empty {
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}
@media (max-width: 768px) {
  .news-ticker-strip { display: none; }
}


/* ══════════════════════════════════════════════════════
   BADGE SYSTEM
═══════════════════════════════════════════════════════ */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
.badge-chip:hover { transform: scale(1.04); }

.badge-legend    { color: #E040FB; background: rgba(224,64,251,0.12); border-color: rgba(224,64,251,0.35); box-shadow: 0 0 10px rgba(224,64,251,0.2); }
.badge-oracle    { color: #00E5FF; background: rgba(0,229,255,0.10); border-color: rgba(0,229,255,0.35); box-shadow: 0 0 8px rgba(0,229,255,0.15); }
.badge-precision { color: #F7C948; background: rgba(247,201,72,0.12); border-color: rgba(247,201,72,0.35); }
.badge-sharp     { color: #C0C8D2; background: rgba(192,200,210,0.10); border-color: rgba(192,200,210,0.25); }
.badge-reliable  { color: #CD7F32; background: rgba(205,127,50,0.12); border-color: rgba(205,127,50,0.3); }

.badge-votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
  font-family: var(--font);
  margin-left: 4px;
}
.badge-votes:hover { border-color: var(--accent-green); color: var(--accent-green); background: rgba(6,214,160,0.06); }
.badge-votes.voted { border-color: var(--accent-green); color: var(--accent-green); background: rgba(6,214,160,0.1); }
.badge-votes .bv-icon { font-size: 9px; }

/* Badge sparkle animation for Legend tier */
@keyframes legendGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(224,64,251,0.3); }
  50% { box-shadow: 0 0 20px rgba(224,64,251,0.6), 0 0 40px rgba(224,64,251,0.2); }
}
.badge-legend { animation: legendGlow 2.5s ease-in-out infinite; }

/* Oracle pulse */
@keyframes oraclePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0,229,255,0.2); }
  50% { box-shadow: 0 0 16px rgba(0,229,255,0.5); }
}
.badge-oracle { animation: oraclePulse 3s ease-in-out infinite; }

/* Badge Legend panel */
.badge-legend-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 4px 16px 8px;
}
.badge-legend-panel summary::-webkit-details-marker { display: none; }
.badge-legend-panel summary::before { content: '\25B6\FE0E'; font-size: 10px; margin-right: 6px; transition: transform .2s; }
details[open].badge-legend-panel summary::before { transform: rotate(90deg); }


/* ══════════════════════════════════════════════════════
   PORTFOLIO PAGE
═══════════════════════════════════════════════════════ */
.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.pf-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.pf-stat-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.pf-stat-val   { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -1px; }
.pf-stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.pf-holding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.pf-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s;
}
.pf-card:hover { border-color: rgba(0,180,216,0.3); }
.pf-card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.pf-card-sym { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.pf-card-name { font-size: 11px; color: var(--text-muted); }
.pf-card-signal { flex-shrink: 0; }

.pf-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.pf-detail-row .pf-lbl { color: var(--text-muted); }
.pf-detail-row .pf-val { font-weight: 600; color: var(--text-primary); }

.pf-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.pf-btn-edit, .pf-btn-delete {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.pf-btn-edit:hover   { border-color: var(--accent); color: var(--accent); }
.pf-btn-delete:hover { border-color: var(--accent-red); color: var(--accent-red); }

.pf-add-card {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font);
  color: var(--text-muted);
  font-size: 13px;
  min-height: 180px;
}
.pf-add-card:hover { border-color: var(--accent); background: rgba(0,180,216,0.04); color: var(--accent); }
.pf-add-icon { font-size: 28px; line-height: 1; }

/* Portfolio modal */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pf-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  width: 100%;
  max-width: 420px;
}
.pf-modal h3 { font-size: 18px; margin-bottom: 20px; }
.pf-form-group { margin-bottom: 16px; }
.pf-form-group label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.pf-form-group input, .pf-form-group select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.pf-form-group input:focus, .pf-form-group select:focus { border-color: var(--accent); }
.pf-form-group select option { background: var(--bg-tertiary); }
.pf-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.pf-modal-actions .btn { flex: 1; justify-content: center; }

/* P&L colours */
.pnl-pos { color: var(--accent-green); }
.pnl-neg { color: var(--accent-red); }


/* ══════════════════════════════════════════════════════
   ONBOARDING MODAL
═══════════════════════════════════════════════════════ */
.ob-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ob-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 560px;
  position: relative;
}
.ob-step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.ob-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.ob-step-dot.active { border-color: var(--accent); color: var(--accent); background: rgba(0,180,216,0.1); }
.ob-step-dot.done   { border-color: var(--accent-green); color: var(--accent-green); background: rgba(6,214,160,0.1); }
.ob-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.ob-step-line.done { background: var(--accent-green); }
.ob-step-content { min-height: 280px; }
.ob-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ob-sub   { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.ob-asset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.ob-asset-btn {
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-family: var(--font);
}
.ob-asset-btn:hover { border-color: var(--accent); color: var(--accent); }
.ob-asset-btn.selected { border-color: var(--accent); background: rgba(0,180,216,0.12); color: var(--accent); }
.ob-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ob-risk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: var(--font);
}
.ob-risk-card:hover { border-color: var(--accent); }
.ob-risk-card.selected { border-color: var(--accent); background: rgba(0,180,216,0.08); }
.ob-risk-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.ob-risk-label { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.ob-risk-desc  { font-size: 10px; color: var(--text-muted); }
.ob-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.ob-progress { font-size: 11px; color: var(--text-muted); }
.ob-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-tertiary); border-radius: 8px; margin-bottom: 12px; }
.ob-toggle-label { font-size: 14px; color: var(--text-primary); }
.ob-toggle-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ob-toggle {
  position: relative; width: 40px; height: 22px;
  background: var(--border); border-radius: 11px;
  cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.ob-toggle.on { background: var(--accent); }
.ob-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.ob-toggle.on::after { transform: translateX(18px); }

/* ══════════════════════════════════════════════════════
   CHART — PREDICTION OUTCOME LEGEND
═══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   NEWS — OUTCOME BADGES
═══════════════════════════════════════════════════════ */
.news-outcome {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.outcome-correct { color: var(--accent-green); background: rgba(6,214,160,0.12); border: 1px solid rgba(6,214,160,0.25); }
.outcome-wrong   { color: var(--accent-red);   background: rgba(255,76,107,0.12); border: 1px solid rgba(255,76,107,0.25); }
.outcome-pending { color: var(--text-muted);   background: rgba(72,79,88,0.12);   border: 1px solid rgba(72,79,88,0.3); }

.source-accuracy-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,180,216,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,180,216,0.2);
}

/* ══════════════════════════════════════════════════════
   MODEL COMPARISON PANEL
═══════════════════════════════════════════════════════ */
.compare-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 32px;
}
.compare-panel .cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.cp-selects { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-select {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  padding: 7px 12px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cp-select:focus { border-color: var(--accent); }
.cp-vs { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.cp-chart-area {
  height: 240px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cp-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.cp-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cp-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.cp-legend-line {
  width: 24px; height: 3px; border-radius: 2px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   PERSONALISED DASHBOARD SECTION
═══════════════════════════════════════════════════════ */
.dash-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  display: none; /* shown by JS when logged in */
}
.dash-section.visible { display: block; }

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.wl-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}
.wl-card:hover { border-color: rgba(0,180,216,0.3); }
.wl-info { flex: 1; min-width: 0; }
.wl-sym  { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.wl-name { font-size: 11px; color: var(--text-muted); }
.wl-conf { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.wl-empty { color: var(--text-muted); font-size: 13px; padding: 24px 0; }

.user-greeting {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.user-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════
   MOBILE HAMBURGER NAV
═══════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 201;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  padding: 72px 16px 16px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-mobile-menu a:hover, .nav-mobile-menu a.active { background: var(--bg-tertiary); color: var(--text-primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════════
   ONBOARDING MODAL (new injectable markup from auth-nav.js)
═══════════════════════════════════════════════════════ */
.ob-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ob-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  width: 100%; max-width: 520px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
/* Step indicator row */
.ob-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
}
.ob-step {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 4px 0;
}
.ob-step span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.ob-step.active       { color: var(--accent); }
.ob-step.active span  { border-color: var(--accent); color: var(--accent); background: rgba(0,180,216,0.1); }
.ob-step.done span    { border-color: var(--accent-green); color: var(--accent-green); background: rgba(6,214,160,0.1); }
.ob-step-divider      { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }
/* Pane min-height keeps modal stable */
.ob-pane { min-height: 220px; }
/* Asset chips (checkbox style) */
.ob-asset-chip { cursor: pointer; }
.ob-asset-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.ob-asset-chip span {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.15s; cursor: pointer;
}
.ob-asset-chip:hover span { border-color: var(--accent); color: var(--accent); }
.ob-asset-chip input:checked ~ span { border-color: var(--accent); color: var(--accent); background: rgba(0,180,216,0.12); }
/* Risk chips (radio style) */
.ob-risk-chip {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-tertiary); border: 2px solid var(--border); border-radius: 10px;
  padding: 18px 14px; cursor: pointer; transition: all 0.15s; gap: 6px;
}
.ob-risk-chip:hover { border-color: var(--accent); }
.ob-risk-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.ob-risk-chip input:checked ~ * { color: var(--accent); }
.ob-risk-chip:has(input:checked) { border-color: var(--accent); background: rgba(0,180,216,0.07); }
.ob-risk-chip strong { font-size: 13px; color: var(--text-primary); display: block; }
.ob-risk-chip span   { font-size: 10px; color: var(--text-muted); }
/* Toggle switch */
.ob-toggle-wrap { display: flex; align-items: center; cursor: pointer; gap: 0; position: relative; }
.ob-toggle-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.ob-toggle-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  position: relative; transition: background 0.2s;
}
.ob-toggle-track .ob-toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted); transition: all 0.2s;
}
.ob-toggle-wrap input:checked + .ob-toggle-track { background: var(--accent); border-color: var(--accent); }
.ob-toggle-wrap input:checked + .ob-toggle-track .ob-toggle-knob { left: 22px; background: #fff; }

/* ══════════════════════════════════════════════════════
   DASHBOARD / WATCHLIST SUPPLEMENT
═══════════════════════════════════════════════════════ */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
/* wl-card is already defined above; extend for dashboard mini-cards */
.wl-card .wl-price { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.wl-card .wl-label { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.wl-card .wl-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.dash-portfolio-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════
   COMPARISON PANEL SELECT CONTROLS
═══════════════════════════════════════════════════════ */
.cp-select {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 10px;
  font-size: 13px; color: var(--text-primary);
  outline: none; cursor: pointer;
}
.cp-select:focus { border-color: var(--accent); }
.cp-vs { font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 0 4px; }

/* ── Screen-reader-only utility ── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE ENHANCEMENTS
   Supplements the existing 960/768/480 breakpoints
═══════════════════════════════════════════════════════ */

/* ── Tablet: 769–960px ── */
@media (max-width: 960px) {
  .hero { padding: 80px 0 64px; }
}

/* ── Mobile: ≤768px ── */
@media (max-width: 768px) {
  /* Nav layout */
  .nav { height: auto; min-height: var(--nav-height); }
  .nav-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav-logo { flex-shrink: 0; }
  .nav-logo img { height: 40px; }

  /* Nav CTA (logged-in: email + buttons) */
  .nav-cta { gap: 6px; }
  .nav-cta > span:first-child { display: none; }

  /* Grid overflows */
  .grid-auto { grid-template-columns: 1fr; }

  /* Auth card padding */
  .auth-card { padding: 28px 20px; }

  /* Onboarding modal */
  .ob-modal { padding: 24px 16px; }
  .ob-asset-grid { grid-template-columns: repeat(3, 1fr); }
  .ob-risk-grid  { grid-template-columns: 1fr; gap: 8px; }

  /* Leaderboard asset filter bar */
  .asset-filter-bar { overflow-x: auto; flex-wrap: nowrap; }
  .asset-filter-bar::-webkit-scrollbar { display: none; }

  /* Tab bar horizontal scroll */
  .tab-bar { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .tab-bar::-webkit-scrollbar { display: none; }

  /* Badge legend table scroll */
  .badge-legend-wrap { overflow-x: auto; }

  /* Charts toolbar */
  .charts-topbar { font-size: 11px; gap: 4px; }

  /* Portfolio grid */
  .pf-grid { grid-template-columns: 1fr; }
  .pf-lock-box { padding: 28px 20px; }

  /* Modal box */
  .modal-box { max-width: 100%; }
  .modal-hdr { padding: 16px 16px 12px; flex-wrap: wrap; gap: 8px; }
  .modal-body { padding: 16px; }
  .modal-table { display: block; overflow-x: auto; }

  /* Hero spacing */
  .hero { padding: 72px 0 56px; }
}

/* ── Small phone: ≤480px ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .ss-inner { padding: 0 12px; }

  /* Signal card source name flex */
  .src-bar-name { flex: 0 0 72px; }

  /* Onboarding modal */
  .ob-asset-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav CTA logged-out buttons */
  .nav-cta .btn { padding: 6px 10px; font-size: 11px; }
}


