<style>
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0D1117; --bg-card: #161B22; --bg-card-2: #1C2128;
    --teal: #00E5A0; --violet: #7C5CFC; --amber: #F5A623; --red: #FF4B4B;
    --text: #E6EDF3; --text-muted: #8B949E; --text-dim: #484F58;
    --border: #21262D; --border-light: #30363D;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
  body.light { --bg: #F4F6F8; --bg-card: #FFFFFF; --bg-card-2: #EEF1F4; --text: #0D1117; --text-muted: #57606A; --text-dim: #A0A7AF; --border: #D8DDE3; --border-light: #C4CAD1; }
  body.light nav { background: rgba(244,246,248,0.92); }
  body.light .market-dropdown-menu { background: #FFFFFF; }
  body.light .onboarding-overlay { background: rgba(0,0,0,0.55); }
  body.widget-mode { background: transparent; min-height: unset; }

  nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 2rem; height: 56px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(13,17,23,0.92); backdrop-filter: blur(12px); z-index: 100; gap: 1rem; }
  .nav-left { display: flex; align-items: center; gap: 12px; }
  .logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; cursor: pointer; }
  .logo-bolt { font-size: 20px; }
  .logo span:first-of-type { color: var(--text-muted); font-weight: 300; }
  .logo span:last-of-type { color: var(--text); }
  .market-dropdown { position: relative; }
  .market-dropdown-btn { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; cursor: pointer; padding: 5px 10px; transition: border-color 0.2s; letter-spacing: 0.5px; white-space: nowrap; }
  .market-dropdown-btn:hover { border-color: var(--teal); }
  .market-dropdown-arrow { font-size: 9px; color: var(--text-dim); transition: transform 0.2s; }
  .market-dropdown.open .market-dropdown-arrow { transform: rotate(180deg); }
  .market-dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; min-width: 280px; z-index: 200; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }  
  .market-dropdown.open .market-dropdown-menu { display: block; }
  .market-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); }
  .market-option:last-child { border-bottom: none; }
  .market-option:hover:not(.coming-soon) { background: var(--bg-card-2); }
  .market-option.active { background: rgba(0,229,160,0.06); }
  .market-option.coming-soon { opacity: 0.45; cursor: not-allowed; }
  .market-option-code { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 700; color: var(--teal); min-width: 52px; letter-spacing: 0.5px; }
  .market-option.coming-soon .market-option-code { color: var(--text-dim); }
  .market-option-name { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
  .market-option-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-dim); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; margin-left: auto; }
  .market-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; animation: pulse 2s infinite; }
  .nav-links { display: flex; gap: 2rem; list-style: none; justify-self: center; }
  .nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; cursor: pointer; }
  .nav-links a.active { color: var(--teal); }
  .nav-links a:hover { color: var(--text); }
  .nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
  .live-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--teal); letter-spacing: 0.5px; }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
  .theme-toggle { background: none; border: 1px solid var(--border-light); border-radius: 20px; color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 10px; display: flex; align-items: center; gap: 5px; transition: color 0.2s, border-color 0.2s; letter-spacing: 0.3px; }
  .theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

  main { max-width: 1400px; margin: 0 auto; padding: 2rem; }

  /* ONBOARDING */
  .onboarding-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.25s ease forwards; }
  .onboarding-modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 2rem 2.25rem; max-width: 460px; width: 100%; }
  .onboarding-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 1.5rem; }
  .onboarding-logo span:first-of-type { color: var(--text-muted); font-weight: 300; }
  .onboarding-logo span:last-of-type { color: var(--text); }
  .onboarding-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); margin-bottom: 0.4rem; }
  .onboarding-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
  .onboarding-question { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 0.75rem; }
  .onboarding-options { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
  .onboarding-option { display: flex; flex-direction: column; gap: 3px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left; }
  .onboarding-option:hover { border-color: var(--teal); background: rgba(0,229,160,0.04); }
  .onboarding-option-label { font-size: 14px; font-weight: 600; color: var(--text); }
  .onboarding-option-hint { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
  .onboarding-option-dest { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--teal); margin-top: 2px; opacity: 0.85; }
  .onboarding-skip { background: none; border: none; color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 12px; cursor: pointer; padding: 0; text-align: center; width: 100%; transition: color 0.2s; }
  .onboarding-skip:hover { color: var(--text-muted); }

  /* BRIEF */
  .brief-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .signal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; position: relative; overflow: hidden; }
  .signal-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
  .signal-card.CALM::after { background: var(--teal); } .signal-card.WATCH::after { background: var(--amber); } .signal-card.ELEVATED::after { background: var(--red); }
  .signal-card.CALM { border-color: rgba(0,229,160,0.2); } .signal-card.WATCH { border-color: rgba(245,166,35,0.2); } .signal-card.ELEVATED { border-color: rgba(255,75,75,0.2); }
  .signal-date-row { display: flex; justify-content: space-between; align-items: center; }
  .signal-date { font-size: 13px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
  .signal-word { font-size: clamp(52px, 8vw, 80px); font-weight: 700; letter-spacing: -2px; line-height: 1; text-align: center; margin: 0.5rem 0; }
  .signal-word.CALM { color: var(--teal); } .signal-word.WATCH { color: var(--amber); } .signal-word.ELEVATED { color: var(--red); }
  .signal-reason { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; max-width: 340px; margin: 0 auto; }
  .insight-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 12px; padding: 1.75rem; }
  .card-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
  .insight-label { color: var(--violet); } .recap-label { color: var(--teal); } .markets-label { color: var(--amber); } .outlook-label { color: var(--amber); }
  .card-text { font-size: 15px; line-height: 1.7; color: var(--text); font-weight: 400; }
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
  .stat-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
  .stat-value { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; font-family: 'DM Mono', monospace; }
  .stat-value.CALM { color: var(--teal); } .stat-value.WATCH { color: var(--amber); } .stat-value.ELEVATED { color: var(--red); }
  .outlook-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 12px; padding: 1.75rem; margin-bottom: 1rem; }
  .bias-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0.6rem; }
  .bias-badge { font-size: 13px; font-weight: 700; letter-spacing: 1px; font-family: 'DM Mono', monospace; padding: 4px 10px; border-radius: 6px; }
  .bias-badge.SHORT-VOL { color: var(--teal); background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2); }
  .bias-badge.LONG-VOL { color: var(--red); background: rgba(255,75,75,0.1); border: 1px solid rgba(255,75,75,0.2); }
  .bias-badge.NEUTRAL { color: var(--amber); background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2); }
  .bias-reason { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
  .action-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
  .action-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text); }
  .action-num { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700; color: var(--amber); background: rgba(245,166,35,0.1); border-radius: 4px; padding: 2px 6px; flex-shrink: 0; margin-top: 2px; }
  .key-risk-row { display: flex; align-items: flex-start; gap: 10px; padding-top: 1rem; border-top: 1px solid var(--border); }
  .key-risk-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); font-family: 'DM Mono', monospace; flex-shrink: 0; margin-top: 2px; }
  .key-risk-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
  @media (min-width: 1100px) { .brief-top { grid-template-columns: 1fr 1fr 1fr; } }

  /* HISTORY STRIP + CHART */
  .history-strip-wrap { margin-bottom: 1rem; }
  .history-strip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
  .history-strip-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
  .chart-toggle-btn { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-light); border-radius: 6px; color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; cursor: pointer; padding: 3px 8px; transition: color 0.2s, border-color 0.2s; letter-spacing: 0.3px; }
  .chart-toggle-btn:hover { color: var(--text-muted); border-color: var(--text-dim); }
  .chart-toggle-btn.active { color: var(--teal); border-color: var(--teal); background: rgba(0,229,160,0.06); }
  .history-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .history-strip::-webkit-scrollbar { display: none; }
  .history-chip { flex: 1; min-width: 72px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .history-day { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; font-family: 'DM Mono', monospace; }
  .history-signal { display: flex; align-items: center; gap: 5px; }
  .history-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .history-label { font-size: 11px; font-weight: 600; }
  .history-chart-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; }

  /* MARKETS */
  .markets-page { display: flex; flex-direction: column; gap: 1rem; }
  .markets-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
  .chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .chart-title { font-size: 15px; font-weight: 600; color: var(--text); }
  .chart-subtitle { font-size: 12px; color: var(--text-muted); font-family: 'DM Mono', monospace; margin-top: 2px; }
  .chart-wrap { width: 100%; overflow-x: auto; }
  svg.demand-chart { width: 100%; height: 200px; display: block; }
  svg.bar-chart { width: 100%; height: 160px; display: block; }
  .chart-y-label { font-size: 10px; fill: #8B949E; font-family: 'DM Mono', monospace; }
  .chart-x-label { font-size: 10px; fill: #8B949E; font-family: 'DM Mono', monospace; }
  .chart-grid-line { stroke: #21262D; stroke-width: 1; }
  .chart-line { fill: none; stroke: #00E5A0; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .chart-area { fill: url(#areaGradient); }
  .chart-dot { fill: #00E5A0; }
  .markets-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .market-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; }
  .market-stat-card.highlight { border-color: rgba(0,229,160,0.25); }
  .vol-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
  .vol-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
  .vol-signal-badge { display: flex; align-items: center; gap: 10px; }
  .vol-signal-word { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
  .vol-signal-word.CALM { color: var(--teal); } .vol-signal-word.WATCH { color: var(--amber); } .vol-signal-word.ELEVATED { color: var(--red); }
  .vol-signal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .vol-signal-dot.CALM { background: var(--teal); } .vol-signal-dot.WATCH { background: var(--amber); } .vol-signal-dot.ELEVATED { background: var(--red); }
  .vol-reason { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
  .vol-indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .vol-indicator { background: var(--bg-card-2); border-radius: 8px; padding: 0.9rem 1rem; }
  .vol-indicator-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
  .vol-indicator-value { font-size: 13px; font-weight: 600; color: var(--text); }
  .vol-indicator-bar { height: 3px; border-radius: 2px; margin-top: 8px; background: var(--border-light); position: relative; overflow: hidden; }
  .vol-indicator-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
  .data-source-badge { font-size: 11px; color: var(--text-dim); font-family: 'DM Mono', monospace; margin-top: 0.5rem; text-align: right; }

  /* ABOUT */
  .about-page { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
  .about-hero { grid-column: 1 / -1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; text-align: center; min-width: 0; }
  .about-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
  .about-hero h1 span { color: var(--teal); }
  .about-hero p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin: 0 auto; }
  .about-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; min-width: 0; }
  .about-section h2 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
  .about-section p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin-bottom: 0.75rem; }
  .about-section p:last-child { margin-bottom: 0; }
  .about-section a { color: var(--teal); text-decoration: none; }
  .about-section a:hover { text-decoration: underline; }
  @media (max-width: 768px) {
    .how-it-works-flow { flex-direction: column !important; align-items: stretch !important; }
    .how-it-works-arrow { display: none !important; }
    .how-it-works-step { flex: none !important; min-width: 0 !important; width: 100% !important; }
    .how-it-works-arrow-down { display: flex !important; justify-content: center; font-size: 18px; color: var(--text-dim); padding: 0.25rem 0; }
  }
  .data-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
  .data-pill { background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-family: 'DM Mono', monospace; color: var(--text-muted); }
  .signal-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-right: 4px; }
  .signal-pill.CALM { color: var(--teal); background: rgba(0,229,160,0.1); }
  .signal-pill.WATCH { color: var(--amber); background: rgba(245,166,35,0.1); }
  .signal-pill.ELEVATED { color: var(--red); background: rgba(255,75,75,0.1); }
  .glossary-card { grid-column: 1 / -1; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 12px; padding: 1.75rem; }
  .glossary-card h2 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 1.25rem; }
  .glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .glossary-item { background: var(--bg-card-2); border-radius: 8px; padding: 1rem 1.1rem; }
  .glossary-term { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: var(--teal); margin-bottom: 6px; letter-spacing: 0.3px; }
  .glossary-def { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

  footer { text-align: center; padding: 2rem; color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--border); margin-top: 2rem; }
  .loading { display: flex; align-items: center; justify-content: center; min-height: 300px; color: var(--text-muted); font-size: 14px; gap: 10px; }
  .spinner { width: 16px; height: 16px; border: 2px solid var(--border-light); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .error-state { text-align: center; padding: 3rem; color: var(--text-muted); }
  .fade-in { animation: fadeIn 0.4s ease forwards; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13,17,23,0.96); border-top: 1px solid var(--border); padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom)); z-index: 100; }
  .mobile-nav-inner { display: flex; justify-content: space-around; align-items: center; }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 11px; font-weight: 500; cursor: pointer; transition: color 0.2s; }
  .mobile-nav-item.active { color: var(--teal); }
  .mobile-nav-icon { display: flex; align-items: center; justify-content: center; }

  /* LEARN */
  .learn-page { display: flex; flex-direction: column; gap: 1.5rem; }
  .learn-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 2.5rem; }
  .learn-hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 0.5rem; color: var(--text); }
  .learn-hero h1 span { color: var(--teal); }
  .learn-hero p { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 640px; }
  .learn-section-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
  .learn-section-label.violet { color: var(--violet); } .learn-section-label.teal { color: var(--teal); } .learn-section-label.amber { color: var(--amber); }
  .learn-section-divider { flex: 1; height: 1px; background: var(--border); }
  .stakes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stakes-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
  .stakes-term { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; color: var(--teal); letter-spacing: 0.3px; }
  .stakes-what { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .stakes-risk-row { display: flex; align-items: flex-start; gap: 7px; padding-top: 0.6rem; border-top: 1px solid var(--border); margin-top: auto; }
  .stakes-risk-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--amber); text-transform: uppercase; flex-shrink: 0; padding-top: 1px; }
  .stakes-risk-text { font-size: 12px; line-height: 1.55; color: var(--text-muted); }
  .learn-section-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 0; cursor: pointer; margin-bottom: 1.25rem; text-align: left; }
  .learn-toggle-icon { font-size: 10px; color: var(--text-dim); transition: transform 0.25s ease; display: inline-block; flex-shrink: 0; }
  .learn-section-toggle.open .learn-toggle-icon { transform: rotate(180deg); }
  .learn-section-body { overflow: hidden; max-height: 0; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
  .learn-section-body.open { max-height: 9999px; opacity: 1; }
  .curriculum-list { display: flex; flex-direction: column; gap: 1rem; }
  .chapter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1.75rem; }
  .chapter-num { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 0.4rem; }
  .chapter-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 0.85rem; }
  .chapter-body { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
  .chapter-body p { margin-bottom: 0.6rem; } .chapter-body p:last-child { margin-bottom: 0; }
  .chapter-why { display: flex; align-items: flex-start; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--border); }
  .chapter-why-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--teal); text-transform: uppercase; flex-shrink: 0; padding-top: 2px; }
  .chapter-why-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .market-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
  .market-compare-col { background: var(--bg-card-2); border-radius: 8px; padding: 1rem 1.1rem; }
  .market-compare-name { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 0.75rem; letter-spacing: 0.5px; }
  .market-compare-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.6rem; }
  .market-compare-row:last-child { margin-bottom: 0; }
  .market-compare-key { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
  .market-compare-val { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .chapter-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 1rem; background: var(--teal); color: #0D1117; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; border: none; border-radius: 8px; padding: 10px 18px; cursor: pointer; letter-spacing: 0.2px; transition: opacity 0.2s; }
  .chapter-cta:hover { opacity: 0.88; }
  .primer-list { display: flex; flex-direction: column; gap: 1rem; }
  .primer-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.5rem 0 0.25rem; }
  .primer-compare-col { background: var(--bg-card-2); border-radius: 8px; padding: 1rem 1.1rem; }
  .primer-compare-col.block-col { border-top: 2px solid var(--violet); }
  .primer-compare-col.hourly-col { border-top: 2px solid var(--teal); }
  .primer-compare-name { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
  .primer-compare-name.block { color: var(--violet); } .primer-compare-name.hourly { color: var(--teal); }
  .primer-compare-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.6rem; }
  .primer-compare-row:last-child { margin-bottom: 0; }
  .primer-compare-key { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
  .primer-compare-val { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .primer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1.75rem; }
  .primer-card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 0.75rem; }
  .primer-card-body { font-size: 14px; line-height: 1.75; color: var(--text-muted); }
  .primer-card-body p { margin-bottom: 0.6rem; } .primer-card-body p:last-child { margin-bottom: 0; }
  .primer-skills { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
  .primer-skill-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
  .primer-skill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); flex-shrink: 0; margin-top: 8px; }
  .primer-why { display: flex; align-items: flex-start; gap: 8px; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
  .primer-why-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--amber); text-transform: uppercase; flex-shrink: 0; padding-top: 2px; }
  .primer-why-text { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
  .learn-disclaimer { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 10px; }
  .learn-disclaimer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
  .learn-disclaimer p { font-size: 12px; color: var(--text-dim); font-family: 'DM Mono', monospace; line-height: 1.5; }
  .learn-disclaimer p span { color: var(--teal); }

  /* SIGNAL EXPLAINER */
  .signal-explainer-wrap { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
  .signal-explainer-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; padding: 0; transition: color 0.2s; opacity: 0.75; }
  .signal-explainer-toggle:hover { opacity: 1; }
  .signal-explainer-toggle .toggle-icon { font-size: 10px; transition: transform 0.25s ease; display: inline-block; }
  .signal-explainer-toggle.open .toggle-icon { transform: rotate(180deg); }
  .signal-explainer-body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease, opacity 0.3s ease; opacity: 0; }
  .signal-explainer-body.open { max-height: 320px; opacity: 1; }
  .signal-explainer-inner { padding-top: 0.85rem; font-size: 13px; line-height: 1.7; color: var(--text-muted); }
  .signal-explainer-inner strong { color: var(--text); font-weight: 600; }

  /* JARGON */
  .jargon { border-bottom: 1px dashed var(--teal); cursor: help; position: relative; display: inline; }
  .jargon-tooltip { display: none; position: fixed; background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 13px; width: 240px; z-index: 500; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }  
  .jargon:hover .jargon-tooltip, .jargon:focus .jargon-tooltip { display: block; }
  .jargon { cursor: help; }
  .tooltip-term { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; color: var(--teal); margin-bottom: 5px; letter-spacing: 0.3px; }
  .tooltip-def { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

  /* WIDGET */
  .widget-wrap { width: 100%; max-width: 320px; font-family: 'Inter', sans-serif; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .widget-signal-bar { height: 3px; width: 100%; }
  .widget-signal-bar.CALM { background: var(--teal); } .widget-signal-bar.WATCH { background: var(--amber); } .widget-signal-bar.ELEVATED { background: var(--red); }
  .widget-body { padding: 1rem 1.1rem 0.75rem; }
  .widget-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
  .widget-market-badge { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--teal); background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2); border-radius: 4px; padding: 2px 7px; }
  .widget-timestamp { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0.3px; }
  .widget-signal-word { font-size: 42px; font-weight: 700; letter-spacing: -2px; line-height: 1; margin: 0.35rem 0 0.3rem; }
  .widget-signal-word.CALM { color: var(--teal); } .widget-signal-word.WATCH { color: var(--amber); } .widget-signal-word.ELEVATED { color: var(--red); }
  .widget-signal-reason { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin-bottom: 0.75rem; }
  .widget-divider { height: 1px; background: var(--border); margin: 0 0 0.65rem; }
  .widget-bias-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0.65rem; }
  .widget-bias-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
  .widget-bias-badge { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 5px; }
  .widget-bias-badge.SHORT-VOL { color: var(--teal); background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2); }
  .widget-bias-badge.LONG-VOL { color: var(--red); background: rgba(255,75,75,0.1); border: 1px solid rgba(255,75,75,0.2); }
  .widget-bias-badge.NEUTRAL { color: var(--amber); background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2); }
  .widget-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 1.1rem; border-top: 1px solid var(--border); background: var(--bg-card-2); }
  .widget-footer-link { font-size: 11px; color: var(--text-dim); text-decoration: none; transition: color 0.15s; letter-spacing: 0.2px; }
  .widget-footer-link:hover { color: var(--text-muted); }
  .widget-powered { font-size: 11px; color: var(--text-dim); letter-spacing: 0.2px; }
  .widget-powered a { color: var(--teal); text-decoration: none; font-weight: 600; }
  .widget-powered a:hover { text-decoration: underline; }

  /* RESPONSIVE */
  @media (max-width: 900px) { .stakes-grid { grid-template-columns: repeat(2, 1fr); } .primer-compare { grid-template-columns: 1fr; } .market-compare { grid-template-columns: 1fr; } .glossary-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 1099px) { .brief-top { grid-template-columns: 1fr 1fr; } .markets-top { grid-template-columns: 1fr; } }
  @media (max-width: 768px) {
    nav { display: flex; justify-content: space-between; padding: 0 0.75rem; gap: 0.5rem; flex-wrap: nowrap; height: auto; min-height: 56px; }
    nav .nav-links { display: none; }
    .nav-right { gap: 7px; }
    .live-badge { font-size: 11px; gap: 4px; }
    .live-dot { width: 6px; height: 6px; }
    .theme-toggle { padding: 4px 7px; font-size: 11px; }
    #askgp-nav-btn { padding: 5px 8px !important; font-size: 11px !important; }
    .askgp-btn-text { display: none; }
    .market-dropdown-btn { padding: 5px 8px; font-size: 11px; }
    .market-dropdown { position: static; }
    .market-dropdown-menu { position: fixed; top: 56px; left: 1rem; right: 1rem; width: auto; min-width: 0; }
    .market-option { flex-wrap: wrap; }
    .market-option-name { white-space: normal; word-break: break-word; }
    .market-option-badge { margin-left: auto; }
    .mobile-nav { display: block; }
    main { padding: 1rem; padding-bottom: 80px; }
    .brief-top { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .markets-stats { grid-template-columns: 1fr 1fr; }
    .vol-indicators { grid-template-columns: 1fr 1fr; }
    .about-page { grid-template-columns: 1fr; }
    .about-hero { grid-column: 1; padding: 1.25rem 1rem !important; }
    .about-section { grid-column: 1 !important; }
    .how-it-works-flow { flex-direction: column !important; gap: 8px !important; }
    .how-it-works-step { width: 100% !important; min-width: 0 !important; flex: none !important; }
    .signal-word { font-size: 64px; }
    .about-hero h1 { font-size: 24px; }
    .glossary-card { grid-column: 1; }
    .learn-hero { padding: 1.5rem; }
    .learn-hero h1 { font-size: 18px; }
    .stakes-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) { .signal-word { font-size: 52px; } .stat-value { font-size: 20px; } .vol-indicators { grid-template-columns: 1fr; } .glossary-grid { grid-template-columns: 1fr; } }

  /* ASK GP */
  .askgp-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 12px; overflow: hidden; margin-top: 1rem; }
  .askgp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 0; }
  .askgp-card-title-row { display: flex; align-items: center; gap: 10px; }
  .askgp-card-icon { font-size: 18px; line-height: 1; }
  .askgp-card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
  .askgp-card-sub { font-size: 11px; color: var(--text-dim); font-family: 'DM Mono', monospace; margin-top: 2px; }
  .askgp-messages { padding: 1rem 1.5rem 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .askgp-msg { max-width: 88%; font-size: 13px; line-height: 1.6; padding: 9px 12px; border-radius: 10px; }
  .askgp-msg.gp { background: var(--bg-card-2); color: var(--text-muted); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 3px; }
  .askgp-msg.gp strong { color: var(--text); font-weight: 600; }
  .askgp-msg.gp a { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 12px; }
  .askgp-msg.gp a:hover { text-decoration: underline; }
  .askgp-msg.user { background: rgba(0,229,160,0.1); color: var(--text); border: 1px solid rgba(0,229,160,0.2); align-self: flex-end; border-bottom-right-radius: 3px; }
  .askgp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0.85rem 1.5rem 0; }
  .askgp-chip { background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 20px; padding: 5px 11px; font-size: 11px; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s; white-space: nowrap; font-family: 'Inter', sans-serif; }
  .askgp-chip:hover { border-color: var(--teal); color: var(--teal); }
  .askgp-chip:disabled { opacity: 0.4; cursor: not-allowed; }
  .askgp-counter { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text-dim); text-align: right; padding: 0; }
  .askgp-counter.warn { color: var(--amber); }
  .askgp-counter.over { color: var(--red); }
  .askgp-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 0.6rem 1.5rem 1.25rem; }
  .askgp-textarea { flex: 1; background: var(--bg-card-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 8px 11px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px; resize: none; outline: none; min-height: 38px; max-height: 100px; line-height: 1.5; transition: border-color 0.2s; }
  .askgp-textarea:focus { border-color: var(--teal); }
  .askgp-textarea::placeholder { color: var(--text-dim); }
  .askgp-send { background: var(--teal); border: none; border-radius: 8px; color: #0D1117; font-size: 16px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.2s; font-weight: 700; }
  .askgp-send:disabled { opacity: 0.35; cursor: not-allowed; }
  .askgp-typing { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 10px; border-bottom-left-radius: 3px; align-self: flex-start; }
  .askgp-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: askgp-bounce 1.2s infinite; }
  .askgp-typing span:nth-child(2) { animation-delay: 0.2s; }
  .askgp-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes askgp-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
 
</style>
