  :root {
    --bg:        #000000;
    --bg-1:      #08090b;
    --bg-2:      #101216;
    --bg-3:      #181a20;
    --ink:       #eaecef;
    --ink-soft:  #b7bdc6;
    --ink-mute:  #848e9c;
    --ink-faint: #474d57;
    --rule:      #1e2329;
    --rule-soft: #131519;

    /* Exchange green/red — Binance standard, never soften */
    --up:        #0ecb81;
    --up-soft:   rgba(14, 203, 129, 0.12);
    --up-glow:   rgba(14, 203, 129, 0.25);
    --down:      #f6465d;
    --down-soft: rgba(246, 70, 93, 0.12);
    --down-glow: rgba(246, 70, 93, 0.25);

    /* Primary accent: mint electric (GitHub-green adjacent, not crypto-yellow) */
    --mint:      #00e5a0;
    --mint-deep: #00b382;
    --mint-soft: rgba(0, 229, 160, 0.12);
    --mint-glow: rgba(0, 229, 160, 0.35);

    /* Secondary: gold-amber for hot/alpha badges */
    --gold:      #fcd535;
    --gold-soft: rgba(252, 213, 53, 0.12);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    font-feature-settings: "tnum" 1, "lnum" 1;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--mint); color: var(--bg); }
  .mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

  .wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

  /* ═══════════ NOW #1 SPOTLIGHT (below tape) ═══════════ */
  .now1-card {
    display: flex;
    background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
    border-bottom: 1px solid var(--rule);
    padding: 14px 24px;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    transition: background 0.2s;
  }
  .now1-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(252, 213, 53, 0.08) 0%, transparent 60%);
    pointer-events: none;
  }
  .now1-card:hover { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%); }
  .now1-inner {
    max-width: 1400px; margin: 0 auto; width: 100%;
    display: grid;
    grid-template-columns: 180px 1fr 140px;
    gap: 24px;
    align-items: center;
    position: relative; z-index: 1;
  }
  .now1-label {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
    color: var(--gold);
  }
  .now1-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(252, 213, 53, 0.6);
    animation: now1Pulse 1.8s ease-in-out infinite;
  }
  @keyframes now1Pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(252, 213, 53, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(252, 213, 53, 0); }
  }
  .now1-label .now1-meta { color: var(--ink-mute); font-weight: 500; letter-spacing: 0.1em; }
  .now1-body {
    display: flex; align-items: center; gap: 32px;
    min-width: 0;
  }
  .now1-ticker {
    display: flex; align-items: baseline; gap: 12px;
    min-width: 0;
  }
  .now1-ticker .t {
    font-family: var(--mono); font-size: 20px; font-weight: 700;
    color: var(--mint); letter-spacing: 0.03em;
  }
  .now1-ticker .name {
    font-family: var(--font); font-size: 13px; color: var(--ink-soft);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0; max-width: 400px;
  }
  .now1-metrics {
    display: flex; gap: 20px; flex-shrink: 0;
  }
  .now1-metrics .m {
    font-family: var(--mono); font-size: 12px;
    display: flex; flex-direction: column; gap: 2px;
  }
  .now1-metrics .mk { color: var(--ink-mute); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
  .now1-metrics .mv { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
  .now1-metrics .mv.up { color: var(--up); }
  .now1-metrics .mv.down { color: var(--down); }
  .now1-cta {
    font-family: var(--mono); font-size: 11px;
    color: var(--mint); letter-spacing: 0.1em;
    padding: 8px 14px; border: 1px solid var(--mint); border-radius: 4px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    transition: all 0.12s;
  }
  .now1-card:hover .now1-cta {
    background: var(--mint); color: var(--bg);
    transform: translateX(3px);
  }
  @media (max-width: 900px) {
    .now1-inner { grid-template-columns: 1fr; gap: 10px; }
    .now1-body { flex-direction: column; align-items: flex-start; gap: 10px; }
    .now1-metrics { gap: 14px; }
    .now1-cta { width: fit-content; }
  }

  /* ═══════════ TICKER TAPE (very top) ═══════════ */
  .ticker-tape {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-1);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
    height: 32px;
    display: flex; align-items: center;
    isolation: isolate; /* own stacking context — content scrolls UNDER cleanly */
  }
  .tt-label {
    /* Frozen overlay over the scrolling stream. position:absolute + high
       z-index so the animated tt-stream NEVER renders text underneath
       the LIVE TAPE label. (Bug 2026-04-25: stream's translateX animation
       moved items leftward into label area — text overlay visible.) */
    position: absolute; left: 0; top: 0; bottom: 0;
    z-index: 2;
    flex-shrink: 0;
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mint);
    background: var(--bg-1);
    border-right: 1px solid var(--rule);
    display: flex; align-items: center; gap: 6px;
    box-shadow: 4px 0 8px -4px rgba(0,0,0,0.4); /* subtle right-edge shadow */
  }
  .tt-label .pulse {
    width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
    box-shadow: 0 0 0 0 var(--mint-glow);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--mint-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
  }
  .tt-stream {
    display: flex; gap: 32px; white-space: nowrap;
    /* Padding-left = tt-label width (~106px) + buffer so first item
       starts visually clear of the LIVE TAPE label. Stream's translateX
       animation moves leftward; this padding ensures the visible "start"
       of the stream is right of the label. */
    padding-left: 130px;
    font-family: var(--mono);
    font-size: 12px;
    animation: tape 60s linear infinite;
  }
  .tt-stream:hover { animation-play-state: paused; }
  .tt-stream .item { display: inline-flex; gap: 6px; align-items: center; }
  .tt-stream .tkr { color: var(--ink); font-weight: 500; }
  .tt-stream .px { color: var(--ink-mute); }
  .tt-stream .chg.up { color: var(--up); }
  .tt-stream .chg.down { color: var(--down); }
  @keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ═══════════ TOPBAR ═══════════ */
  .topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    position: sticky; top: 32px; z-index: 999;
    isolation: isolate;
  }
  .topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1440px; margin: 0 auto; padding: 14px 24px;
    gap: 24px;
  }
  .brand {
    display: flex; align-items: baseline; gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .brand .logo {
    font-size: 22px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
  }
  .brand .logo .x { color: var(--mint); }
  .brand .tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    background: var(--mint-soft);
    color: var(--mint);
    border-radius: 2px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .nav-main {
    display: flex; gap: 6px;
    flex: 1; justify-content: center;
  }
  .nav-main a {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    color: var(--ink-soft);
    border-radius: 4px;
    transition: all 0.12s;
  }
  .nav-main a:hover { color: var(--mint); background: var(--mint-soft); }
  .nav-right { display: flex; gap: 10px; align-items: center; }
  .btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.12s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
  .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
  .btn-primary { background: var(--mint); color: var(--bg); }
  .btn-primary:hover { background: var(--mint-deep); }
  .btn-up { background: var(--up); color: #053322; }
  .btn-up:hover { background: #12dd8f; }
  .btn-down { background: var(--down); color: #3e0a14; }
  .btn-down:hover { background: #ff5f75; }

  /* ═══════════ RISK BANNER ═══════════ */
  .risk-banner {
    background: var(--down-soft);
    border-bottom: 1px solid rgba(246, 70, 93, 0.2);
    padding: 8px 24px;
    font-size: 12px;
    color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center; gap: 12px;
  }
  .risk-banner strong { color: var(--down); font-weight: 600; }

  /* ═══════════ HERO ═══════════ */
  .hero {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 85% 30%, var(--mint-soft) 0%, transparent 45%),
      radial-gradient(ellipse at 15% 70%, rgba(0, 229, 160, 0.03) 0%, transparent 40%);
    pointer-events: none;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 40px; align-items: center;
    position: relative;
  }

  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--mint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 16px;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .hero-eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--mint);
  }

  .hero h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 20px;
  }
  .hero h1 .mint { color: var(--mint); }
  .hero h1 .slash {
    color: var(--ink-faint);
    font-weight: 400;
  }

  .hero .sub {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 28px;
    line-height: 1.55;
  }

  .hero-stats {
    display: flex; gap: 28px; flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .hero-stat .l {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }
  .hero-stat .v {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--ink);
    font-weight: 500;
  }
  .hero-stat .v.up { color: var(--up); }

  .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

  /* ═══════════ HERO CHART (live) ═══════════ */
  .hero-terminal {
    background: var(--bg-1);
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--rule);
  }
  .term-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  }
  .term-ticker {
    display: flex; align-items: baseline; gap: 12px;
  }
  .term-ticker .sym {
    font-weight: 700; font-size: 16px; color: var(--ink);
  }
  .term-ticker .pair { color: var(--mint); font-weight: 500; font-size: 14px; }
  .term-ticker .name {
    font-size: 12px; color: var(--ink-mute);
  }
  .term-price {
    display: flex; align-items: baseline; gap: 10px;
  }
  .term-price .p {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
  }
  .term-price .d {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
  }
  .term-price .d.up { color: var(--up); }
  .term-price .d.down { color: var(--down); }
  .term-tabs {
    display: flex; gap: 2px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-1);
    padding: 0 14px;
  }
  .term-tab {
    background: transparent;
    border: none;
    color: var(--ink-mute);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    padding: 10px 14px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.12s;
  }
  .term-tab.active { color: var(--mint); border-bottom-color: var(--mint); }
  .term-tab:hover:not(.active) { color: var(--ink); }
  .term-chart {
    height: 280px;
    position: relative;
    background:
      linear-gradient(90deg, transparent 0%, transparent calc(100% - 80px),
        rgba(255,255,255,0.01) 100%);
  }
  .term-chart .loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-mute); font-family: var(--mono); font-size: 11px;
  }
  .term-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 11px;
    background: var(--bg-2);
  }
  .term-footer .k { color: var(--ink-mute); }
  .term-footer .v { color: var(--ink); font-weight: 500; }
  .term-footer .v.up { color: var(--up); }
  .term-footer .v.down { color: var(--down); }
  .term-micro-stats {
    display: flex; gap: 18px;
    font-family: var(--mono); font-size: 11px;
  }

  /* ═══════════ STATS BAND ═══════════ */
  .stats-band {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-1);
  }
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .stat-cell .lbl {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .stat-cell .val {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
  }
  .stat-cell .val .unit {
    color: var(--ink-mute); font-size: 14px; font-weight: 400; margin-left: 4px;
  }
  .stat-cell .chg {
    font-family: var(--mono); font-size: 11px;
    margin-top: 4px;
  }
  .stat-cell .chg.up { color: var(--up); }
  .stat-cell .chg.down { color: var(--down); }

  /* ═══════════ SEARCH ROW ═══════════ */
  .search-band {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
  }
  .search-wrap {
    position: relative;
    max-width: 520px;
  }
  .search-wrap input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    padding: 11px 14px 11px 40px;
    transition: all 0.15s;
  }
  .search-wrap input:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px var(--mint-soft);
  }
  .search-wrap input::placeholder { color: var(--ink-mute); }
  .search-wrap .icon {
    position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
    color: var(--ink-mute); width: 14px; height: 14px; pointer-events: none;
  }
  .search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    margin-top: 4px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    max-height: 340px; overflow-y: auto;
    display: none; z-index: 40;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .search-hit {
    display: grid;
    grid-template-columns: 1fr 80px 90px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule-soft);
    transition: background 0.1s;
  }
  .search-hit:hover { background: var(--bg-3); }
  .search-hit:last-child { border-bottom: none; }
  .search-hit .n { font-size: 13px; min-width: 0; overflow: hidden; }
  .search-hit .n .tkr { font-family: var(--mono); font-size: 11px; color: var(--mint); font-weight: 500; letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
  .search-hit .n .nm { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .search-hit .s { width: 80px; height: 28px; display: block; }
  .search-hit .r { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); text-align: right; }
  .search-hit .r .p { color: var(--ink); font-weight: 500; display: block; }
  .search-hit .r .ch { display: block; margin-top: 2px; }
  .search-hit .r .ch.up { color: var(--up); }
  .search-hit .r .ch.down { color: var(--down); }

  /* ═══════════ SECTION ═══════════ */
  .section {
    padding: 56px 0;
    border-bottom: 1px solid var(--rule);
  }
  .section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 24px;
    gap: 20px;
  }
  .section-head .label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--mint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .section-head h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .section-head .right {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
    display: flex; gap: 14px;
    align-items: center;
  }
  .section-head .right a { color: var(--mint); }
  .section-head .right a:hover { text-decoration: underline; }

  /* ═══════════ ALPHA ROW (horizontal scroll) ═══════════ */
  .alpha-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .alpha-row::-webkit-scrollbar { height: 6px; }
  .alpha-row::-webkit-scrollbar-track { background: var(--bg-2); }
  .alpha-row::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
  .alpha-card {
    background: var(--bg-1);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 16px;
    transition: all 0.15s;
    display: block;
    position: relative;
    overflow: hidden;
  }
  .alpha-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  }
  .alpha-card:hover {
    border-color: var(--mint);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 160, 0.15);
  }
  .alpha-card .hot {
    display: inline-block;
    font-family: var(--mono); font-size: 9px;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .alpha-card .tkr {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--mint);
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .alpha-card .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 4px 0 10px;
  }
  .alpha-card .data {
    display: flex; justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 11px;
  }
  .alpha-card .data .k { color: var(--ink-mute); }
  .alpha-card .data .v { color: var(--ink); font-weight: 500; }
  .alpha-card .data .v.up { color: var(--up); }
  .alpha-card .data .v.down { color: var(--down); }
  .alpha-card .spark {
    margin: 10px 0 12px; height: 40px;
    border-top: 1px dashed var(--rule); padding-top: 10px;
  }
  .alpha-card .spark svg { width: 100%; height: 30px; display: block; }
  .alpha-card .hot.s2 { color: var(--gold); background: var(--gold-soft); }
  .alpha-card .hot.s3 { color: var(--mint); background: var(--mint-soft); }
  .alpha-card .hot.s4 { color: var(--down); background: var(--down-soft); }
  .alpha-card.s3::before { background: linear-gradient(90deg, var(--mint) 0%, transparent 100%); }
  .alpha-card.s4::before { background: linear-gradient(90deg, var(--down) 0%, transparent 100%); }

  /* Category + sort tabs */
  .markets-tabs {
    display: flex; gap: 6px; align-items: center;
    margin-bottom: 14px; flex-wrap: wrap;
  }
  .markets-tabs .cat-spacer { flex: 1; }
  .markets-tabs .sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
  .cat-tab, .sort-tab {
    font-family: var(--mono); font-size: 11px;
    background: var(--bg-1); border: 1px solid var(--rule); color: var(--ink-mute);
    padding: 6px 14px; border-radius: 4px; cursor: pointer;
    letter-spacing: 0.05em; transition: all 0.12s; white-space: nowrap;
  }
  .cat-tab:hover, .sort-tab:hover { border-color: var(--ink-faint); color: var(--ink); }
  .cat-tab.active, .sort-tab.active {
    background: var(--mint-soft); color: var(--mint); border-color: var(--mint);
  }

  /* ═══════════ MARKETS TABLE ═══════════ */
  .markets {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
  }
  .markets table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .markets thead th {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    border-bottom: 1px solid var(--rule);
    background: var(--bg-1);
    white-space: nowrap;
  }
  .markets thead th.right { text-align: right; }
  .markets tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: middle;
  }
  .markets tbody tr {
    transition: background 0.1s;
    cursor: pointer;
  }
  .markets tbody tr:hover { background: var(--bg-2); }
  .markets tbody tr:last-child td { border-bottom: none; }
  .markets .sym-cell {
    display: flex; align-items: center; gap: 12px;
  }
  .markets .sym-avatar {
    width: 32px; height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--bg-3), var(--rule));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: 11px;
    color: var(--mint);
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .markets .sym-text .pair {
    font-family: var(--mono); font-weight: 600; font-size: 14px;
    color: var(--ink); letter-spacing: 0.02em;
  }
  .markets .sym-text .pair .usd { color: var(--ink-mute); font-weight: 400; }
  .sponsored-pill {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: rgba(0, 229, 160, 0.10);
    color: var(--mint);
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
  }
  .markets .sym-text .lang {
    font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
    margin-top: 2px;
  }
  .markets .num { font-family: var(--mono); font-weight: 500; text-align: right; }
  .markets .num.up { color: var(--up); }
  .markets .num.down { color: var(--down); }
  .markets .price-cell { position: relative; transition: background 0.1s ease-out; }
  .markets .price-cell.flash-up {
    animation: rowFlashUp 700ms ease-out;
  }
  .markets .price-cell.flash-down {
    animation: rowFlashDown 700ms ease-out;
  }
  @keyframes rowFlashUp {
    0% { background: rgba(14, 203, 129, 0.36); color: var(--up); }
    100% { background: transparent; }
  }
  @keyframes rowFlashDown {
    0% { background: rgba(246, 70, 93, 0.36); color: var(--down); }
    100% { background: transparent; }
  }
  .markets .sparkline {
    width: 110px; height: 32px;
  }
  .markets .watch-btn {
    background: transparent; border: none; cursor: pointer;
    color: var(--ink-faint); font-size: 16px;
    padding: 4px 6px; border-radius: 3px;
    transition: color 0.12s;
  }
  .markets .watch-btn:hover { color: var(--gold); }
  .markets .watch-btn.on { color: var(--gold); }

  /* Multi-select compare */
  .markets .sel-box {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; border-radius: 3px;
    background: var(--bg-2); border: 1px solid var(--ink-faint);
    cursor: pointer; position: relative;
    transition: all 0.12s;
  }
  .markets .sel-box:checked { background: var(--mint); border-color: var(--mint); }
  .markets .sel-box:checked::after {
    content: "✓"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg); font-weight: 700; font-size: 11px;
  }
  .markets tr.selected { background: rgba(0, 229, 160, 0.04); }

  .cmp-tray {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--bg-1); border: 1px solid var(--mint);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex; align-items: center; gap: 18px;
    box-shadow: 0 14px 36px rgba(0, 229, 160, 0.25), 0 0 0 1px rgba(0, 229, 160, 0.15);
    z-index: 86;
    font-family: var(--mono); font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.05), opacity 0.2s;
    opacity: 0; pointer-events: none;
  }
  .cmp-tray.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
  .cmp-tray .count {
    color: var(--mint); font-weight: 700;
    padding: 4px 10px; background: var(--mint-soft); border-radius: 3px;
  }
  .cmp-tray .tickers { color: var(--ink); letter-spacing: 0.04em; }
  .cmp-tray button, .cmp-tray a {
    font-family: var(--mono); font-size: 11px;
    padding: 8px 14px; border-radius: 4px; cursor: pointer;
    border: 1px solid var(--rule); background: transparent; color: var(--ink);
    letter-spacing: 0.06em; text-transform: uppercase;
    transition: all 0.12s;
    text-decoration: none;
  }
  .cmp-tray button:hover, .cmp-tray a:hover { border-color: var(--ink-mute); }
  .cmp-tray .go {
    background: var(--mint); color: var(--bg); border-color: var(--mint);
    font-weight: 700;
  }
  .cmp-tray .go:hover { background: var(--mint-deep); border-color: var(--mint-deep); }
  .markets .trade-btn {
    background: var(--mint-soft);
    color: var(--mint);
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
    font-family: var(--font);
  }
  .markets .trade-btn:hover { background: var(--mint); color: var(--bg); }
  .markets .load-row td {
    text-align: center; color: var(--ink-mute); font-family: var(--mono); padding: 32px;
  }

  /* ═══════════ FEATURES ═══════════ */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .feature {
    background: var(--bg-1);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.15s;
  }
  .feature:hover {
    border-color: var(--mint);
    background: linear-gradient(180deg, var(--bg-1) 0%, rgba(0, 229, 160, 0.02) 100%);
  }
  .feature::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--mint) 50%, transparent 100%);
    opacity: 0.4;
  }
  .feature .ico {
    width: 40px; height: 40px;
    background: var(--mint-soft);
    color: var(--mint);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .feature p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  .feature p code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--mint);
    background: var(--mint-soft);
    padding: 1px 4px;
    border-radius: 2px;
  }

  /* ═══════════ TRUST BAND ═══════════ */
  .trust {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--rule);
  }
  .trust-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
  }
  .trust-item {
    text-align: center;
    border-right: 1px solid var(--rule);
    padding: 10px 20px;
  }
  .trust-item:last-child { border-right: none; }
  .trust-item .v {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--mint);
    letter-spacing: -0.01em;
  }
  .trust-item .l {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
  }

  /* ═══════════ HOW IT WORKS ═══════════ */
  .how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
  }
  .step {
    counter-increment: step;
    position: relative;
    padding: 28px 24px;
    background: var(--bg-1);
    border: 1px solid var(--rule);
    border-radius: 6px;
  }
  .step::before {
    content: "0" counter(step);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--mint);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
  }
  .step h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .step p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
  }

  /* ═══════════ CTA BAND ═══════════ */
  .cta-band {
    padding: 72px 0;
    background:
      radial-gradient(ellipse at center, var(--mint-soft) 0%, transparent 60%),
      var(--bg);
    border-bottom: 1px solid var(--rule);
    text-align: center;
  }
  .cta-band h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 14px;
  }
  .cta-band h2 .mint { color: var(--mint); }
  .cta-band p {
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 28px;
    font-size: 15px;
  }
  .cta-band form {
    display: flex; gap: 8px; max-width: 440px; margin: 0 auto;
    padding: 4px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
  }
  .cta-band form:focus-within { border-color: var(--mint); }
  .cta-band input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    padding: 10px 14px;
  }
  .cta-band input:focus { outline: none; }
  .cta-band button {
    background: var(--mint);
    color: var(--bg);
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
  }
  .cta-band button:hover { background: var(--mint-deep); }
  .cta-status {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    margin-top: 12px;
    min-height: 14px;
  }
  .cta-status.done { color: var(--up); }

  /* ═══════════ FAQ ═══════════ */
  .faq {
    max-width: 820px;
    margin: 0 auto;
  }
  .faq details {
    background: var(--bg-1);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 18px 24px;
    margin-bottom: 10px;
    transition: border-color 0.12s;
  }
  .faq details[open] { border-color: var(--mint); }
  .faq summary {
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    color: var(--mint);
    font-weight: 400;
    font-size: 20px;
    transition: transform 0.2s;
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
  }
  .faq details p code {
    font-family: var(--mono); font-size: 12px;
    color: var(--mint); background: var(--mint-soft);
    padding: 1px 5px; border-radius: 2px;
  }

  /* ═══════════ FOOTER ═══════════ */
  .footer {
    background: var(--bg);
    border-top: 1px solid var(--rule);
    padding: 48px 0 32px;
    color: var(--ink-mute);
    font-size: 13px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 24px;
  }
  .footer-grid h5 {
    font-size: 11px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    font-weight: 600;
  }
  .footer-grid a {
    display: block;
    padding: 4px 0;
    color: var(--ink-mute);
    font-size: 13px;
    transition: color 0.12s;
  }
  .footer-grid a:hover { color: var(--mint); }
  .footer-grid .disc {
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.6;
  }
  .footer-grid .disc strong { color: var(--ink); font-weight: 500; }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
  }

  /* ═══════════ RESPONSIVE ═══════════ */
  @media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); }
    .trust-item { border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
    .trust-item:nth-last-child(-n+1) { border-bottom: none; }
    /* Tablet landscape (1024 area): nav-main + 3 nav-right CTAs together
       overflow ~60px past viewport. Hide btn-ghost (Open Terminal, Log In)
       early — keeps Sign Up + theme toggle visible, nav-main reachable. */
    .nav-right .btn-ghost { display: none; }
  }
  @media (max-width: 900px) {
    /* Hide desktop nav AT hamburger threshold (mobile-nav.js fires <=900px).
       Was previously inside the 1100px block — created a 900-1100 tablet
       gap where neither nav was visible. Fixed 2026-04-25. */
    .nav-main { display: none; }
    /* Topbar declutter: at <=900px we hide secondary buttons (Open Terminal,
       Log In) — both reachable via hamburger drawer + dedicated /login.html.
       Sign Up stays as primary CTA. Without this, 3 buttons + hamburger +
       theme-toggle wraps and clips on 375px. Fixed 2026-04-25. */
    .nav-right .btn-ghost { display: none; }
    .nav-right .btn-primary { padding: 8px 14px; font-size: 12px; }
    .topbar-inner { padding: 12px 14px; gap: 10px; }
  }
  @media (max-width: 640px) {
    .features { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .trust-inner { grid-template-columns: 1fr; }
    .markets .sparkline { display: none; }
    .markets thead th.sparkline-col { display: none; }
    .markets tbody td.sparkline-col { display: none; }
    /* Mobile markets table — show only essentials (ticker, price, 24h%).
       Founder report 2026-04-25: mobile view of markets table cut off
       price column. Columns hidden by index: 1=checkbox, 2=watch★,
       6=stars total, 7=stars/day, 9=trade btn (whole row clickable). */
    .markets thead th:nth-child(1),
    .markets thead th:nth-child(2),
    .markets thead th:nth-child(6),
    .markets thead th:nth-child(7),
    .markets thead th:nth-child(9),
    .markets tbody td:nth-child(1),
    .markets tbody td:nth-child(2),
    .markets tbody td:nth-child(6),
    .markets tbody td:nth-child(7),
    .markets tbody td:nth-child(9) {
      display: none !important;
    }
    /* Force layout: fixed widths so cells truncate inside their box. */
    .markets table { table-layout: fixed; width: 100%; }
    .markets thead th:nth-child(3) { width: auto; }       /* ticker — flex */
    .markets thead th:nth-child(4) { width: 60px; }       /* price */
    .markets thead th:nth-child(5) { width: 60px; }       /* 24h % */
    /* Header labels are wider than 60px in JetBrains Mono — abbreviate */
    .markets thead th:nth-child(4)::before { content: "PRICE"; }
    .markets thead th:nth-child(4) { font-size: 0; }
    .markets thead th:nth-child(4)::before { font-size: 9px; letter-spacing: 0.05em; }
    .markets thead th:nth-child(5) { font-size: 0; }
    .markets thead th:nth-child(5)::before { content: "24H %"; font-size: 9px; letter-spacing: 0.05em; }
    .markets tbody td { padding: 10px 6px !important; }
    .markets thead th { padding: 10px 6px !important; font-size: 9px; }
    .markets .sym-cell { gap: 6px; min-width: 0; }
    .markets .sym-avatar { width: 26px; height: 26px; font-size: 10px; flex: none; }
    .markets .sym-text { min-width: 0; flex: 1; overflow: hidden; }
    .markets .pair { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .markets .pair .usd { display: none; }
    .markets .lang { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .markets td.num { font-size: 12px; white-space: nowrap; text-align: right; }
    /* Markets tabs on mobile: single-row horizontal scroll instead of
       wrapping into 3 lines. Cat tabs scroll separately from sort tabs.
       Founder report 2026-04-25: "Gainers / Losers / Trending" cut off. */
    .markets-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .markets-tabs::-webkit-scrollbar { height: 0; }
    .markets-tabs .cat-spacer { display: none; }
    .markets-tabs .sort-tabs { flex-wrap: nowrap; flex-shrink: 0; }
    .cat-tab, .sort-tab { padding: 6px 10px; font-size: 10px; flex-shrink: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* Hero kompresja na mobile (2026-05-09 Mobile-A redesign).
       Cel: hero zajmuje ~700px (z 1100px) żeby user szybciej trafił
       na markets table. Każda zmiana zaweryfikowana headless. */
    .hero { padding: 24px 0 24px; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 12px; }
    .hero h1 { font-size: 30px; line-height: 1.05; margin-bottom: 14px; }
    .hero .sub { font-size: 14px; margin-bottom: 18px; }
    .hero-stats { gap: 16px; margin-bottom: 16px; }
    .hero-cta { gap: 8px; }
    .hero-cta .btn { padding: 12px 16px; font-size: 13px; }

    /* Hero chart — compact on phones, OHLC legend shrinks and hides less-useful fields.
       !important bo .term-chart{height:340px} jest definiowane LATER w pliku (linia 1260)
       jako "Binance/Hyperliquid style" override — bez !important cascade wygrywa 340px. */
    .term-chart { height: 200px !important; }
    .term-header { padding: 10px 12px; }
    .term-tabs { padding: 6px 12px; }
    .term-footer { padding: 8px 12px; }
    .term-legend { font-size: 9px; gap: 6px; top: 6px; left: 8px; flex-wrap: wrap; }
    .term-legend .leg-pair { font-size: 10px; }
    .term-watermark { font-size: 32px; bottom: 28px; }
  }
  @media (max-width: 375px) {
    /* iPhone SE (320×568) — shrink hero so headline fits in 3 lines max.
       Without this h1 wraps to 4-5 lines on smallest mobile viewports. */
    .hero h1 { font-size: 28px; }
    .hero .sub { font-size: 14px; }
    .hero-eyebrow { font-size: 10px; }
    .risk-banner { font-size: 12px; padding: 10px 14px; }
  }

  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s, transform 0.6s; transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }

  /* A11y — skip-to-main link (visible on keyboard focus) */
  .skip-link {
    position: absolute; top: -40px; left: 8px; z-index: 999;
    background: var(--mint); color: var(--bg);
    padding: 10px 18px; border-radius: 0 0 6px 6px;
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em;
    transition: top 0.15s;
  }
  .skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

  /* Universal focus ring for keyboard navigation */
  :focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
    border-radius: 2px;
  }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
  }

  /* Hero chart OHLC legend overlay (Binance/Hyperliquid style) */
  .term-chart { height: 340px; }
  .term-legend {
    position: absolute; top: 8px; left: 12px; z-index: 3;
    display: flex; gap: 14px; align-items: center;
    font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
    pointer-events: none;
    letter-spacing: 0.02em;
  }
  .term-legend .leg-pair { color: var(--ink); font-weight: 600; font-size: 11px; }
  .term-legend .k { color: var(--ink-mute); }
  .term-legend .v { color: var(--ink); font-variant-numeric: tabular-nums; }
  .term-legend .v.up { color: var(--up); }
  .term-legend .v.down { color: var(--down); }
  .term-watermark {
    position: absolute; right: 14px; bottom: 42px; z-index: 1;
    font-family: var(--font); font-size: 48px; font-weight: 800;
    color: rgba(234, 236, 239, 0.03); letter-spacing: -0.02em;
    pointer-events: none; user-select: none;
  }
