/* Nox Terminal visual system (HANDOFF.md §3) */
:root {
  --bg: #05070C;
  --panel: #0B0E16;
  --panel-deep: #05080E;
  --line: #262C3C;
  --line-soft: #1A2030;
  --line-dash: #3A4256;
  --text: #F0F2F8;
  --muted: #8A92A8;
  --muted-2: #A3AABD;
  --dim: #5E667C;
  --cyan: #3CDCF5;
  --cyan-hover: #8CEBFA;
  --on-cyan: #06121A;
  --green: #3CDC82;
  --red: #FF5468;
  --red-text: #FF7A8A;
  --gold: #FFC440;
  --purple: #AA7CFF;
  --purple-text: #C4A8FF;
  --gutter: 80px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 78% 8%, #0E1A2C 0%, rgba(5, 7, 12, 0) 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(5, 7, 12, 0) 60%, #030409 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
main { flex: 1 0 auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.disp { font-family: Montserrat, sans-serif; }
.accent { color: var(--cyan); }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lbl.accent { color: var(--cyan); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.up { color: var(--green); }
.down { color: var(--red-text); }
.flat { color: var(--muted); }

/* ---- nav ---- */
.nav { height: 76px; display: flex; align-items: center; gap: 40px; }
.top { border-bottom: 1px solid var(--line-soft); }
.logo { display: flex; align-items: center; font-size: 20px; font-weight: 800; color: var(--text); white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo .gt { color: var(--cyan); }
.cursor { width: .55em; height: 1.05em; margin-left: 3px; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 28px; flex-grow: 1; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted-2); white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links-mobile { display: none; }

.icon-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 22px; color: var(--text); }
.icon-btn:hover { border-color: var(--muted); color: var(--text); }
.btn-outline { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--cyan); border-radius: 22px; color: var(--cyan); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-outline:hover { background: rgba(60, 220, 245, .08); }
.login-short { display: none; }

.btn { height: 60px; padding: 0 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--cyan); border: 0; border-radius: 30px; color: var(--on-cyan); font: 700 18px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--cyan-hover); color: var(--on-cyan); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; border-radius: 28px; }

/* ---- price tape ---- */
.tape { height: 40px; display: flex; align-items: center; gap: 24px; padding-left: 24px; background: #070A12; border-top: 1px solid var(--line-soft); font-size: 13px; overflow: hidden; }
.live-dot { display: flex; align-items: center; gap: 6px; flex: none; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.live-dot .dot, .rt .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.live-dot.off { color: var(--muted); }
.live-dot.off .dot { background: var(--muted); box-shadow: none; }
.tape-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape-viewport:hover .tape-track { animation-play-state: paused; }
.tape-set { display: flex; gap: 36px; padding-right: 36px; }
.tick { display: flex; gap: 8px; white-space: nowrap; }
.tick-s { font-weight: 700; color: var(--text); }
.tick-p { color: #C3C8D6; transition: color .6s; }
.tick-p.flash-up { color: var(--green); transition: none; }
.tick-p.flash-down { color: var(--red-text); transition: none; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .cursor { animation: none; }
}

/* ---- hero ---- */
.hero { padding-top: 104px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero h1 { margin: 0; font-size: 96px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.hero-sub { margin: 0; max-width: 720px; font-size: 20px; color: var(--muted-2); }

.search { margin-top: 16px; width: 100%; max-width: 860px; height: 84px; padding: 0 12px 0 32px; display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1.5px solid var(--cyan); border-radius: 42px; box-shadow: 0 0 48px rgba(60, 220, 245, .18); }
.search:focus-within { box-shadow: 0 0 64px rgba(60, 220, 245, .3); }
.search-prompt { font-size: 34px; font-weight: 700; color: var(--cyan); }
.search input { flex-grow: 1; min-width: 0; height: 60px; background: transparent; border: 0; outline: none; color: var(--text); font-size: 26px; text-transform: uppercase; caret-color: var(--cyan); }
.search input::placeholder { color: var(--dim); text-transform: none; }
.search-sm { max-width: 560px; height: 64px; padding: 0 8px 0 22px; border-radius: 32px; margin-top: 8px; }
.search-sm .search-prompt { font-size: 24px; }
.search-sm input { font-size: 20px; height: 48px; }
.search-sm .btn { height: 48px; padding: 0 24px; font-size: 16px; }

.search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .55); text-align: left; max-height: 60vh; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 12px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #121826; }
.suggest .suggest-none { color: var(--muted); font-size: 14px; cursor: default; }
.suggest .suggest-none:hover { background: none; }
.suggest-sym { font-size: 16px; font-weight: 700; color: var(--text); }
.suggest-alias { font-size: 12px; color: var(--muted); }
.suggest-p { margin-left: auto; font-size: 14px; color: #C3C8D6; }
.suggest-c { width: 72px; text-align: right; font-size: 13px; font-weight: 700; }

.chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chips[hidden] { display: none; }
.chips-label { font-size: 14px; color: var(--muted); margin-right: 6px; }
.chips-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 22px; color: var(--text); font-size: 14px; }
.chip:hover { border-color: var(--cyan); color: var(--text); }

/* ---- panels ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid3.second { margin-top: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel-deep { background: var(--panel-deep); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta { font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted-2); }
.empty { margin: 0; padding: 18px 0; font-size: 14px; color: var(--muted); }
.locked { padding: 16px; border: 1px dashed var(--line-dash); border-radius: 12px; display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 13px; }
.locked svg { color: var(--cyan); flex: none; }
.rt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.more { margin-top: auto; font-size: 13px; font-weight: 600; }

.mood { display: flex; flex-direction: column; gap: 6px; }
.mood-value { font-size: 44px; font-weight: 900; color: var(--muted); line-height: 1.1; }
.gauge-scale { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--green)); opacity: .5; }
.gauge-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -8px; }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.rows li { display: flex; justify-content: space-between; gap: 12px; }
.rows a { color: var(--text); font-weight: 700; }
.rows a:hover { color: var(--cyan); }
.rows .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.rows .skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, #10141E, #161B28, #10141E); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- CTA ---- */
.cta { margin-top: 72px; margin-bottom: 72px; }
.cta-box { padding: 40px 48px; border: 1px solid var(--cyan); border-radius: 22px; background: linear-gradient(120deg, #0B1624, var(--panel)); display: flex; align-items: center; gap: 40px; box-shadow: 0 0 60px rgba(60, 220, 245, .10); }
.cta-text { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.cta-title { font-size: 34px; font-weight: 900; line-height: 1.15; }
.cta-sub { font-size: 17px; color: var(--muted-2); }

/* ---- token / simple pages ---- */
.token-head { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.token-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
.token-sym, .page-title { margin: 0; font-size: 72px; font-weight: 900; line-height: 1; }
.token-price { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.token-chg { font-size: 22px; font-weight: 700; }
.term-line { margin: 0; font-size: 18px; color: var(--muted-2); }
.term-line.err { color: var(--red-text); }

/* ---- shared bits for lookup pages ---- */
.free-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.free-short { display: none; }
.btn-ghost { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line); border-radius: 22px; color: var(--text); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-line { height: 58px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-dash); border-radius: 29px; color: var(--text); font-size: 16px; font-weight: 600; text-align: center; padding: 0 20px; }
.btn-line:hover { border-color: var(--muted); color: var(--text); }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--green); border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--green); }
.badge-live[hidden] { display: none; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.note-sm { font-size: 12px; line-height: 1.5; color: var(--muted); }
.note-sm.push { margin-top: auto; }
.center { text-align: center; }
.link-sm { font-size: 13px; font-weight: 600; }
.dim { color: var(--dim); }
.warn { color: var(--gold); }
.empty-sm { margin: 4px 0; font-size: 13px; color: var(--muted); }
.span2 { grid-column: span 2; }
.updated { margin-top: 20px; margin-bottom: 56px; font-size: 12px; color: var(--muted); }
.lookup .grid3 + .grid3, .lookup .setups { margin-top: 24px; }
.reveal .panel, .reveal .setup { animation: rise .5s ease-out both; }
.reveal .grid3:nth-of-type(2) .panel { animation-delay: .08s; }
.reveal .setup { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* terminal loader */
.loader { margin-top: 24px; }
.loader-box { gap: 10px; min-height: 180px; font-size: 14px; color: var(--muted-2); }
.loader-line { margin: 0; opacity: 0; animation: typein .3s ease-out forwards; overflow: hidden; white-space: nowrap; }
@keyframes typein { from { opacity: 0; max-width: 0; } to { opacity: 1; max-width: 100%; } }
.loader-cursor .cursor { display: inline-block; height: 1em; vertical-align: middle; }
#lookup-error { margin-top: 24px; margin-bottom: 56px; }
#lookup-error .panel { gap: 10px; }
.verify { margin-top: 24px; }
.verify-box { align-items: flex-start; }

/* ---- analyzer ---- */
.tk-top { padding-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tk-id { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 8px 0; min-width: 0; }
.tk-idtop { display: flex; flex-direction: column; gap: 14px; }
.tk-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* --len is the ticker length including "$": long tickers shrink to fit their column. */
.tk-sym { --len: 4; --col: calc((min(100vw, 1440px) - 2 * var(--gutter) - 48px) / 3); margin: 0; line-height: .95; font-weight: 900; white-space: nowrap; font-size: min(104px, calc(var(--col) / (var(--len) * .8))); }
.tk-price { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-chg { display: flex; gap: 20px; font-size: 18px; font-weight: 700; }
.tk-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chart-panel { grid-column: span 2; height: 340px; padding: 22px 26px; gap: 12px; }
.chart { flex: 1; min-height: 0; position: relative; }
.tabs { display: flex; gap: 6px; font-size: 12px; }
.tabs button { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: #16202E; color: var(--cyan); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 30px; column-gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; animation: rise .5s ease-out both; }
.tile-k { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.tile-v { font-size: clamp(22px, 2vw, 32px); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-sub { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.tile-sub.warn { color: var(--gold); }

.lean { border-width: 1.5px; border-color: var(--line); transition: border-color .4s, box-shadow .4s; }
.lean[data-side="neutral"] { border-color: var(--gold); box-shadow: 0 0 40px rgba(255, 196, 64, .10); }
.lean[data-side="long"] { border-color: var(--green); box-shadow: 0 0 40px rgba(60, 220, 130, .10); }
.lean[data-side="short"] { border-color: var(--red); box-shadow: 0 0 40px rgba(255, 84, 104, .10); }
.lean-side { font-size: clamp(40px, 3.9vw, 56px); font-weight: 900; line-height: 1; color: var(--muted); white-space: nowrap; }
.lean-pct { font-size: .6em; margin-left: .2em; }
.lean[data-side="none"] .lean-side { font-size: clamp(26px, 2.6vw, 36px); white-space: normal; }
.lean[data-side="neutral"] .lean-side { color: var(--gold); }
.lean[data-side="long"] .lean-side { color: var(--green); }
.lean[data-side="short"] .lean-side { color: var(--red-text); }
.lean-conf { font-size: 16px; font-weight: 600; min-height: 1.2em; }
.lean-gauge { position: relative; height: 10px; border-radius: 5px; background: #1C2232; margin-top: 6px; }
.lean-dot { position: absolute; left: 50%; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 11px; background: var(--muted); transition: left .9s cubic-bezier(.2, .8, .2, 1), background .4s; }
.lean[data-side="neutral"] .lean-dot { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.lean[data-side="long"] .lean-dot { background: var(--green); box-shadow: 0 0 16px var(--green); }
.lean[data-side="short"] .lean-dot { background: var(--red); box-shadow: 0 0 16px var(--red); }
.lean-scale { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: -8px; }
.lean-text p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: #C3C8D6; }
.lean-text .k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.lean .note-sm { margin-top: auto; }

.fp { flex-direction: row; gap: 40px; }
.fp-funding { width: 250px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.fp-rate { font-size: 36px; font-weight: 900; }
.fund-bars { position: relative; height: 90px; display: flex; align-items: stretch; gap: 10px; }
.fbar { width: 28px; position: relative; }
.fbar-fill { position: absolute; left: 0; right: 0; border-radius: 3px; transition: top .6s, height .6s; }
.fbar-fill.pos { background: var(--green); }
.fbar-fill.neg { background: var(--red); }
.fbar-zero { position: absolute; left: 0; right: 0; top: 45px; border-top: 1px solid var(--line); }
.fp-pos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ratios { display: flex; flex-direction: column; gap: 18px; }
.ratio { display: flex; flex-direction: column; gap: 8px; }
.ratio-head { display: flex; justify-content: space-between; gap: 12px; }
.ratio-k { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.ratio-v { font-size: 18px; font-weight: 700; }
.ratio-bar { position: relative; height: 22px; border-radius: 11px; background: #C84054; overflow: hidden; }
.ratio-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: #2CB46A; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ratio-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(240, 242, 248, .6); }
.ratio-l, .ratio-r { position: absolute; top: 3px; font-size: 12px; font-weight: 700; color: #05070C; }
.ratio-l { left: 10px; }
.ratio-r { right: 10px; }
.ratio.empty .ratio-bar { background: #1C2232; }
.ratio.empty .ratio-fill { background: transparent; }

.walls-mini { display: flex; flex-direction: column; gap: 12px; }
.wrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w-price { width: 96px; flex: none; font-size: 14px; font-weight: 700; }
.wrow.buy .w-price { color: var(--green); }
.w-bar { flex: 1; min-width: 20px; height: 18px; position: relative; }
.w-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.wrow.sell .w-fill { background: var(--red); box-shadow: 0 0 12px rgba(255, 84, 104, .35); }
.wrow.buy .w-fill { background: var(--green); box-shadow: 0 0 12px rgba(60, 220, 130, .35); }
.w-usd { width: 70px; flex: none; text-align: right; font-size: 13px; font-weight: 700; }
.wrow.sell .w-usd { color: var(--red-text); }
.wrow.buy .w-usd { color: var(--green); }
.w-venue { width: 100px; flex: none; font-size: 14px; color: #C3C8D6; }
.w-dist { width: 52px; flex: none; text-align: right; font-size: 12px; color: var(--muted-2); }
.now-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.now-rule { flex: 1; border-top: 2px dashed var(--cyan); }
.now-line span { font-size: 13px; font-weight: 700; color: var(--cyan); white-space: nowrap; }

.setups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.setups[hidden] { display: none; }
.setup { --c: var(--gold); background: var(--panel); border: 1px solid var(--c); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.setup.pos { --c: var(--green); }
.setup.neg { --c: var(--red); }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.setup-t { font-size: 20px; font-weight: 800; color: var(--c); }
.setup.neg .setup-t { color: var(--red-text); }
.setup-st { flex: none; padding: 4px 12px; border: 1px solid var(--c); border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--c); }
.setup-l { margin: 0; font-size: 16px; line-height: 1.5; color: #D6DAE4; }
.setup-ev { font-size: 13px; color: var(--muted); }

/* ---- order book ---- */
.ob-top { padding-top: 40px; display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.ob-title { display: flex; flex-direction: column; gap: 10px; }
.ob-title .tk-sym { font-size: min(88px, calc((100vw - 2 * var(--gutter)) / (var(--len) * .8))); }
.ob-price { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.ob-price .tk-price { font-size: 36px; }
.ob-search { margin: 0 0 0 auto; width: 360px; }
#ob-body { margin-top: 24px; }
.ladder { padding: 24px 32px; gap: 6px; }
.ladder-head { height: 32px; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.ladder-head .c-price { width: 96px; }
.ladder-head .c-size { flex: 1; }
.ladder-head .c-venue { width: 100px; }
.ladder-head .c-dist { width: 52px; text-align: right; }
#ladder { display: flex; flex-direction: column; }
#ladder .wrow { height: 34px; }
#ladder .w-price { font-size: 15px; }
#ladder .now-line { height: 40px; }
.ob-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.split-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 34px; font-weight: 900; }
.split-nums .down { color: var(--red); }
.split-bar { height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: #1C2232; }
.split-sell { background: var(--red); transition: width .8s; }
.split-buy { background: var(--green); transition: width .8s; }
.split-counts { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.panel-glow { border: 1.5px solid var(--cyan); box-shadow: 0 0 36px rgba(60, 220, 245, .10); gap: 10px; }
.big-num { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ob-side .panel { gap: 12px; }

/* ---- limit ---- */
.limit { padding-top: 72px; padding-bottom: 96px; display: flex; justify-content: center; }
.limit-box { width: 100%; max-width: 620px; padding: 48px 52px; background: var(--panel); border: 1.5px solid var(--cyan); border-radius: 24px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 0 80px rgba(60, 220, 245, .16); }
.limit-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.limit-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--line-dash); }
.limit-meta > span:last-child { margin-left: 8px; }
.limit-box h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 900; }
.limit-box > p { margin: 0; font-size: 18px; line-height: 1.55; color: #C3C8D6; }
.limit-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.limit-actions .btn { height: 58px; gap: 10px; }

/* ---- login / account ---- */
.member-dot { width: 8px; height: 8px; flex: none; border-radius: 4px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.account-btn { color: var(--text); border-color: var(--line); }
.account-btn.is-member { border-color: var(--green); }
.account-btn:hover { color: var(--text); border-color: var(--muted); }
.tg-widget { min-height: 48px; display: flex; align-items: center; }
.acct-status { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--muted-2); }
.acct-status.member { border-color: var(--green); color: var(--text); }
.box-muted { border-color: var(--line); box-shadow: none; }
.btn-line.full { width: 100%; background: transparent; font-family: inherit; cursor: pointer; }
.limit-box form { margin: 0; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line-soft); }
.foot-inner { min-height: 88px; display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--muted); }
.foot-x { display: flex; align-items: center; gap: 8px; color: var(--text); }
.foot-x .disp { font-size: 16px; font-weight: 800; }
.foot-tag { letter-spacing: .12em; }
.foot-disc { margin-left: auto; }

/* ---- responsive ---- */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .nav { gap: 24px; }
  .nav-links { gap: 20px; font-size: 14px; }
  .hero h1 { font-size: 76px; }
}

/* The full nav row (logo, six links, counter, X, login) needs ~1180px. */
@media (max-width: 1180px) {
  .nav .nav-links { display: none; }
  .nav { justify-content: space-between; gap: 12px; }
  .nav .logo { margin-right: auto; }
  .nav-links-mobile { display: flex; gap: 22px; padding-top: 2px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
  .nav-links-mobile::-webkit-scrollbar { display: none; }
}

@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr; gap: 16px; }
  .grid3.second { margin-top: 16px; }
  .cta-box { flex-direction: column; align-items: stretch; gap: 20px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 28px; padding-bottom: 28px; }
  .foot-disc { margin-left: 0; }
  .free-long { display: none; }
  .free-short { display: inline; }
  .span2, .chart-panel { grid-column: auto; }
  .tk-top { grid-template-columns: 1fr; gap: 20px; }
  .tk-sym { --col: calc(100vw - 2 * var(--gutter)); }
  .tile-v { font-size: clamp(22px, 3.1vw, 30px); }
  .lookup .grid3 + .grid3, .lookup .setups { margin-top: 16px; }
  .setups { grid-template-columns: 1fr; gap: 16px; }
  .ob-search { margin-left: 0; width: 100%; max-width: none; }
  .ob-side { gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --radius: 16px; }
  .nav { height: 60px; }
  .logo { font-size: 16px; }
  .icon-btn { display: none; }
  .btn-outline { padding: 0 14px; font-size: 13px; }
  .btn-outline svg, .login-long { display: none; }
  .login-short { display: inline; }
  .tape { padding-left: 16px; gap: 16px; }
  .hero { padding-top: 48px; padding-bottom: 36px; align-items: flex-start; text-align: left; gap: 18px; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 16px; }
  .search { margin-top: 8px; height: 64px; padding: 0 8px 0 20px; gap: 10px; border-radius: 32px; box-shadow: 0 0 32px rgba(60, 220, 245, .18); }
  .search-prompt { font-size: 24px; }
  .search input { font-size: 20px; height: 48px; }
  .search .btn { height: 48px; padding: 0 22px; font-size: 16px; }
  .chips, .chips-list { justify-content: flex-start; }
  .chips-label { width: 100%; }
  .panel { padding: 20px; gap: 14px; }
  .cta { margin-top: 32px; margin-bottom: 32px; }
  .cta-box { padding: 26px 22px; border-radius: 18px; }
  .cta-title { font-size: 24px; }
  .cta-sub { font-size: 15px; }
  .btn-lg { height: 52px; font-size: 16px; }
  .token-head { padding-top: 48px; padding-bottom: 56px; }
  .token-sym, .page-title { font-size: 48px; }
  .token-price { font-size: 30px; }
  .foot-tag { display: none; }
  .free-count { font-size: 11px; }
  .suggest li { padding: 0 12px; gap: 8px; }
  .suggest-c { width: 62px; font-size: 12px; }
  .suggest-p { font-size: 13px; }
  .tk-top, .ob-top { padding-top: 24px; }
  .tk-sym, .ob-title .tk-sym { font-size: min(60px, calc((100vw - 40px) / (var(--len) * .8))); }
  .tk-price, .ob-price .tk-price { font-size: 28px; }
  .tk-chg { font-size: 15px; gap: 16px; }
  .tk-actions .btn-ghost { flex: 1; justify-content: center; }
  .chart-panel { height: 240px; padding: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; column-gap: 16px; }
  .tile-k { font-size: 11px; letter-spacing: .06em; }
  .tile-v { font-size: 24px; }
  .lean-side { font-size: 40px; }
  .lean[data-side="none"] .lean-side { font-size: 28px; }
  .fp { flex-direction: column; gap: 24px; }
  .fp-funding { width: auto; }
  .ratio-k { font-size: 11px; letter-spacing: .06em; }
  .ratio-v { font-size: 15px; }
  .ratio-l, .ratio-r { font-size: 11px; }
  .w-price { width: 80px; font-size: 13px; }
  .w-usd { width: 60px; font-size: 12px; }
  .w-venue, .ladder-head .c-venue { display: none; }
  .w-dist, .ladder-head .c-dist { width: 44px; }
  .ladder-head .c-price { width: 80px; }
  .ladder { padding: 18px 16px; }
  .setup { padding: 18px 20px; }
  .setup-t { font-size: 16px; }
  .setup-l { font-size: 14px; }
  .split-nums { font-size: 26px; }
  .big-num { font-size: 32px; }
  .limit { padding-top: 32px; padding-bottom: 48px; }
  .limit-box { padding: 28px 22px; border-radius: 18px; }
  .limit-box h1 { font-size: 34px; }
  .limit-box > p { font-size: 16px; }
  .btn-line { height: 52px; font-size: 14px; }
}
