:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --card: #111117;
  --card-2: #17171f;
  --card-3: #1e1e28;
  --line: rgba(255,255,255,.065);
  --line-2: rgba(255,255,255,.11);
  --ink: #f5f5f8;
  --ink-2: #c9c9d4;
  --muted: #8b8b9b;
  --faint: #5d5d6d;
  --brand: #6b74ff;
  --brand-2: #8790ff;
  --brand-soft: rgba(107,116,255,.14);
  --lime: #b6f24a;
  --up: #2bd67b;
  --up-soft: rgba(43,214,123,.12);
  --down: #ff5d6c;
  --down-soft: rgba(255,93,108,.12);
  --r: 20px;
  --r-sm: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --nav-h: 66px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { min-height: 100vh; font-size: 15px; line-height: 1.4; font-feature-settings: "cv11", "ss01"; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 520px; background: radial-gradient(50% 60% at 70% 0%, rgba(107,116,255,.13), transparent 70%); pointer-events: none; z-index: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); font-size: 13px; }
.up { color: var(--up); }
.down { color: var(--down); }
.na { color: var(--faint); }

.app { position: relative; max-width: 1260px; margin: 0 auto; padding: 0 24px 48px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 72px; margin: 0 -24px; padding: 0 24px; background: rgba(7,7,10,.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { stroke: none; width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(91,92,240,.7); transition: transform .3s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.04); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.045em; display: flex; gap: 5px; }
.wordmark span { color: var(--brand-2); font-weight: 700; }
.topnav { display: flex; gap: 2px; margin-left: 18px; padding: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 999px; }
.topnav button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s, background .2s; }
.topnav button svg { width: 16px; height: 16px; }
.topnav button:hover { color: var(--ink); }
.topnav button.on { color: var(--ink); background: var(--card-3); box-shadow: var(--shadow); }
[data-watch-count] { font-style: normal; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 6px; line-height: 15px; }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live img { width: 22px; height: 22px; border-radius: 7px; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.live.stale .dot { background: #f5a524; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,214,123,.55); } 70% { box-shadow: 0 0 0 7px rgba(43,214,123,0); } 100% { box-shadow: 0 0 0 0 rgba(43,214,123,0); } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 12px; }
.col-list { min-width: 0; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.col-detail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; background: linear-gradient(180deg, var(--bg-2), #0a0a0e); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: var(--card-3) transparent; }

/* ---------- hero ---------- */
.hero-card { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(107,116,255,.32), transparent 55%), linear-gradient(180deg, #14141d, #0f0f15); border: 1px solid var(--line-2); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(182,242,74,.10), transparent 65%); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.eyebrow img { width: 18px; height: 18px; border-radius: 50%; }
.big { margin: 6px 0 4px; font-family: var(--display); font-size: 42px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.sub { margin: 0; color: var(--muted); font-size: 13px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.hero-stats div { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.hero-stats span { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.025em; }
.hero-stats small { color: var(--muted); font-size: 12px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(180deg, #7c84ff, #5f67f5); color: #fff; font-weight: 650; font-size: 15px; padding: 0 20px; border-radius: 15px; min-height: 50px; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(95,103,245,.8); transition: filter .15s, transform .12s var(--ease); white-space: nowrap; }
.btn-primary img { width: 22px; height: 22px; border-radius: 7px; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 15px; padding: 0 18px; border-radius: 15px; min-height: 50px; transition: border-color .15s, transform .12s var(--ease); }
.btn-ghost img { width: 20px; height: 20px; border-radius: 5px; }
.btn-ghost:hover { border-color: rgba(255,255,255,.22); }
.btn-ghost:active { transform: scale(.97); }
.btn-soft { margin-top: 14px; padding: 9px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }

/* ---------- movers ---------- */
.movers-wrap { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2, .list-head h2 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.big-head { flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0 18px; }
.big-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 32px; letter-spacing: -.035em; }
.h-ico { width: 34px; height: 34px; border-radius: 10px; }
.movers { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); scrollbar-width: none; }
.movers::-webkit-scrollbar { display: none; }
.mover { cursor: pointer; scroll-snap-align: start; flex: 0 0 156px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.mover:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.mover:active { transform: scale(.97); }
.m-top { display: flex; align-items: center; gap: 9px; }
.m-id { min-width: 0; }
.mover b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.m-chg { display: block; margin-top: 14px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.m-sub { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- list head, search, sort ---------- */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.list-head div { display: flex; align-items: baseline; gap: 10px; }
.search-row { margin-top: 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 7px 0 15px; height: 52px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: rgba(107,116,255,.6); box-shadow: 0 0 0 4px var(--brand-soft); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.45); }
.paste { flex: none; background: var(--card-3); border: 1px solid var(--line-2); padding: 8px 13px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.paste:hover { color: var(--ink); }
.sort-bar { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.sort-label { line-height: 38px; }
.sort-label { flex: none; color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sorts { display: flex; flex-wrap: wrap; gap: 6px; scrollbar-width: none; padding: 2px 0; }
.sorts::-webkit-scrollbar { display: none; }
.sort { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; height: 38px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .12s var(--ease); }
.sort:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.sort:active { transform: scale(.95); }
.sort.on { background: var(--ink); color: #0a0a0f; border-color: var(--ink); }
.sort .arr { width: 15px; height: 15px; stroke-width: 2.4; transition: transform .25s var(--ease); }
.sort .arr.up { transform: rotate(180deg); }
.sort-note { margin: 10px 2px 4px; color: var(--faint); font-size: 12px; }

/* ---------- token list ---------- */
.list, .feed, .trades { list-style: none; margin: 0; padding: 0; }
.list li { animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.row { position: relative; cursor: pointer; display: flex; align-items: center; gap: 13px; padding: 11px 12px; margin: 0 -12px; width: calc(100% + 24px); border-radius: 18px; text-align: left; transition: background .18s, transform .12s var(--ease); min-height: 70px; }
.row:hover { background: var(--card); }
.row.sel { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.row:active { transform: scale(.985); }
.row.changed { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.r-mid { flex: 1; min-width: 0; }
.r-mid b { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-star { width: 13px; height: 13px; fill: #ffd166; stroke: #ffd166; }
.r-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.r-sub { overflow: hidden; text-overflow: ellipsis; }
.vchip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px 0 3px; border-radius: 7px; background: rgba(255,255,255,.045); border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.vchip img { width: 15px; height: 15px; border-radius: 4px; }
.vchip.none { padding: 0 7px; color: var(--faint); }
.r-end { text-align: right; flex: none; }
.r-end strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; border-radius: 6px; }
.tick-up { animation: tickUp 1.2s ease-out; }
.tick-down { animation: tickDown 1.2s ease-out; }
@keyframes tickUp { 0% { color: var(--up); background: var(--up-soft); } 100% { color: inherit; background: transparent; } }
@keyframes tickDown { 0% { color: var(--down); background: var(--down-soft); } 100% { color: inherit; background: transparent; } }
.pct { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pct.chip-like { padding: 4px 9px; border-radius: 9px; margin-top: 0; }
.pct.up.chip-like { background: var(--up-soft); }
.pct.down.chip-like { background: var(--down-soft); }
.pct.na.chip-like { background: rgba(255,255,255,.05); }
.skeleton { height: 66px; border-radius: 18px; margin: 6px 0; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; list-style: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); list-style: none; }
.empty h3, .detail-empty h3 { color: var(--ink); margin: 14px 0 4px; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.empty p, .detail-empty p { margin: 0 auto; max-width: 300px; font-size: 14px; }
.e-art { width: 60px; height: 60px; margin: 0 auto; border-radius: 20px; background: var(--card-2) center / 28px no-repeat; border: 1px solid var(--line-2); }
.e-moon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b9b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.e-star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd166' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.25 4.1 1 5.8L12 16.9l-5.25 2.7 1-5.8L3.5 9.7l5.9-.9z'/%3E%3C/svg%3E"); }
.e-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b9b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.e-chart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238790ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l5-5 4 3 8-8M15 7h5v5'/%3E%3C/svg%3E"); }

/* ---------- avatars ---------- */
.ava { --h: 220; position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 45) 68% 40%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px -4px rgba(0,0,0,.6); }
.ava-init { font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.03em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ava-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--card-2); opacity: 0; transition: opacity .25s; image-rendering: auto; }
.ava-img.ok { opacity: 1; }
.ava-img.px { image-rendering: pixelated; }
.ava .badge { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--bg); background: #000; }
.ava.xs { width: 20px; height: 20px; box-shadow: none; }
.ava.xs .ava-init { font-size: 8px; }
.ava.sm { width: 34px; height: 34px; }
.ava.sm .ava-init { font-size: 12px; }
.ava.sm .badge { width: 15px; height: 15px; border-radius: 5px; right: -3px; bottom: -3px; }
.ava.lg { width: 54px; height: 54px; }
.ava.lg .ava-init { font-size: 19px; }
.ava.lg .badge { width: 21px; height: 21px; border-radius: 7px; }
.inline-ico { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }

/* ---------- copy buttons ---------- */
.cp { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -4px -6px -4px 0; border-radius: 11px; color: var(--faint); transition: color .15s, background .15s, transform .12s var(--ease); }
.cp::after { content: ""; position: absolute; inset: -6px; } /* bigger hit area */
.cp:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.cp:active { transform: scale(.88); }
.cp svg { width: 17px; height: 17px; }
.cp.sm { width: 30px; height: 30px; margin: -6px -6px 0 auto; }
.cp.sm svg { width: 15px; height: 15px; }
.i-check { display: none; }
.done .i-copy { display: none; }
.done .i-check { display: block; color: var(--up); animation: pop .35s var(--ease); }
.cp.done { color: var(--up); background: var(--up-soft); }
.d-ca { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ca-pill { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s, transform .12s var(--ease); }
.ca-pill:hover { border-color: rgba(255,255,255,.24); }
.ca-pill:active { transform: scale(.97); }
.ca-k { display: inline-grid; place-items: center; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-2); font-size: 11.5px; font-weight: 750; letter-spacing: .04em; }
.pair-pill .ca-k { background: rgba(79,224,176,.12); color: #4fe0b0; }
.ca-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--ink); }
.ca-pill svg { width: 17px; height: 17px; color: var(--muted); }
.ca-pill.done { border-color: rgba(43,214,123,.5); background: var(--up-soft); }
.copy-addr { display: inline-flex; align-items: center; gap: 8px; }
.copy-addr svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.mover .m-top { align-items: flex-start; }
.feed li .cp { margin-left: 2px; }

/* ---------- feed ---------- */
.feed li { display: flex; gap: 13px; align-items: center; padding: 13px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; transition: border-color .2s, transform .12s var(--ease); animation: rise .3s var(--ease) both; }
.feed li:hover { border-color: var(--line-2); }
.feed li:active { transform: scale(.985); }
.feed li.empty { display: block; cursor: default; }
.f-mid { flex: 1; min-width: 0; font-size: 14.5px; }
.f-mid p { margin: 0; }
.f-mid small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.f-amt { text-align: right; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.f-amt small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 12px; }

/* ---------- chain ---------- */
.chain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chain-grid div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; }
.chain-grid span { display: block; font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.chain-grid small { color: var(--muted); font-size: 13px; }
.card-note { margin: 12px 2px; color: var(--muted); font-size: 12.5px; line-height: 1.55; word-break: break-word; }
.links-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.links-card a { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; transition: border-color .2s, transform .2s var(--ease); }
.links-card a:hover { border-color: rgba(107,116,255,.5); transform: translateY(-2px); }
.links-card img { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.links-card b { display: block; }
.links-card span span { color: var(--muted); font-size: 13px; }
.fine { color: var(--faint); font-size: 12px; line-height: 1.6; margin-top: 18px; }

/* ---------- detail ---------- */
.detail-empty { display: grid; place-items: center; text-align: center; padding: 96px 24px; color: var(--muted); }
.detail { padding: 20px 22px 22px; animation: fade .3s var(--ease); }
.d-bar { display: flex; align-items: center; gap: 10px; }
.d-id { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.d-title-wrap { min-width: 0; text-align: left; }
.d-title { display: block; font-family: var(--display); font-size: 22px; font-weight: 750; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-name { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-title-wrap:hover .d-name { color: var(--ink-2); }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.d-chips .vchip { height: 28px; padding: 0 10px 0 5px; border-radius: 9px; font-size: 12.5px; }
.d-chips .vchip img { width: 18px; height: 18px; border-radius: 5px; }
.pair { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 9px; background: rgba(255,255,255,.045); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; }
.pair i { font-style: normal; color: var(--faint); margin: 0 -2px; }
.pair-ico { display: flex; align-items: center; }
.pair-ico > img { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-2); }
.pair-ico .ava { box-shadow: 0 0 0 2px var(--bg-2); }
.d-actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); flex: none; transition: color .15s, border-color .15s, transform .12s var(--ease); }
.icon-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.22); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { color: #ffd166; border-color: rgba(255,209,102,.35); background: rgba(255,209,102,.08); }
.icon-btn.on svg { fill: #ffd166; }
.icon-btn.pop svg { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.back { display: none; }
.d-price { display: flex; justify-content: space-between; align-items: flex-end; margin: 20px 0 14px; gap: 12px; }
#d-px { display: block; font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.d-price p { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.d-price p small { color: var(--muted); font-weight: 500; font-size: 13px; }
.d-mc { text-align: right; }
.d-mc strong { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.d-mc span { color: var(--muted); font-size: 12.5px; }
.chart-box { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 6px 4px; }
.chart { height: 320px; }
.chart.is-empty { height: 0; }
.legend { position: absolute; z-index: 3; left: 12px; right: 12px; top: 9px; display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.legend b { font-weight: 600; color: var(--ink-2); }
.chart-empty { margin: 0; padding: 50px 16px; text-align: center; color: var(--muted); }
.chart-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chart-ctrl.sub { margin-top: 8px; }
.pills { position: relative; display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 3px; }
.pills button { padding: 0 13px; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 42px; transition: color .15s, background .2s; font-variant-numeric: tabular-nums; }
.pills button:hover { color: var(--ink); }
.pills button.on { background: var(--card-3); color: var(--ink); box-shadow: var(--shadow); }
.pills.small button { padding: 0 11px; height: 30px; font-size: 12.5px; }
.d-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 24px 0 16px; }
.d-tabs button { padding: 10px 0 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; transition: color .15s, border-color .2s; }
.d-tabs button:hover { color: var(--ink-2); }
.d-tabs button.on { color: var(--ink); border-color: var(--brand); }
.d-tabs span { color: var(--faint); font-weight: 500; }
.d-pane { animation: fade .25s var(--ease); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; }
.stat-grid small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat-grid b { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-grid em { display: block; font-style: normal; color: var(--faint); font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.bs { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; }
.bs-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.bs-bar { height: 8px; border-radius: 99px; background: var(--down); overflow: hidden; }
.bs-bar i { display: block; height: 100%; background: var(--up); border-radius: 99px; box-shadow: 2px 0 0 var(--bg); transition: width .5s var(--ease); }
.trades li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.trades li:last-child { border-bottom: 0; }
.t-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 17px; }
.t-ico.buy { background: var(--up-soft); color: var(--up); }
.t-ico.sell { background: var(--down-soft); color: var(--down); }
.t-mid { flex: 1; min-width: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.t-mid small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.t-end { text-align: right; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.t-end a { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }
.t-end a:hover { color: var(--brand-2); }
.about { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.about .desc { margin: 0 0 14px; color: var(--ink); font-size: 15px; line-height: 1.55; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.link-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: border-color .15s; }
.link-pill:hover { border-color: rgba(255,255,255,.25); }
.link-pill img { width: 16px; height: 16px; border-radius: 4px; }
.link-pill svg { width: 14px; height: 14px; }
.about dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; align-items: center; }
.about dt { color: var(--muted); font-size: 13px; }
.about dd { margin: 0; word-break: break-all; }
.copy-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink-2); text-align: left; word-break: break-all; }
.copy-addr:hover { color: var(--brand-2); }
.cta-bar { display: flex; gap: 8px; margin-top: 22px; }
.btn-primary.wide { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px) scale(.96); background: rgba(245,245,248,.96); color: #0a0a0f; font-weight: 600; font-size: 14px; padding: 11px 17px; border-radius: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.bottomnav { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .app { padding: 0 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .topbar { height: 62px; margin: 0 -16px; padding: 0 16px; }
  .topnav { display: none; }
  .live { padding: 5px 10px 5px 5px; }
  .live img { width: 20px; height: 20px; }
  .layout { display: block; padding-top: 6px; }
  .movers { margin: 0 -16px; padding: 2px 16px 6px; -webkit-mask-image: none; mask-image: none; }
  .sort-bar { margin: 14px -16px 0; padding: 0 16px; }
  .sorts { flex-wrap: nowrap; overflow-x: auto; }
  .col-detail { position: fixed; inset: 0; max-height: none; border: 0; border-radius: 0; z-index: 40; background: var(--bg); transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden; padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
  body[data-view="token"] .col-detail { transform: none; visibility: visible; }
  body[data-view="token"] { overflow: hidden; }
  body[data-view="token"] .bottomnav { display: none; }
  .detail-empty { display: none; }
  .detail { padding: 10px 16px 24px; }
  .back { display: grid; }
  .d-bar { position: sticky; top: 0; background: rgba(7,7,10,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 -16px; padding: 8px 16px 10px; z-index: 5; }
  #d-px { font-size: 38px; }
  .chart { height: 270px; }
  .cta-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 32%); padding: 20px 0 8px; margin-top: 8px; }
  .cp { width: 40px; height: 40px; }
  .cp.sm { width: 34px; height: 34px; }
  .ca-pill { height: 44px; gap: 7px; padding: 0 9px 0 5px; }
  .d-ca { gap: 6px; }
  .ca-v { font-size: 13px; }
  .ca-k { padding: 0 6px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(9,9,13,.88); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
  .bottomnav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 10.5px; font-weight: 600; transition: color .15s; }
  .bottomnav button.on { color: var(--ink); }
  .bottomnav button.on svg { color: var(--brand-2); }
  .bottomnav button:active svg { transform: scale(.88); }
  .bottomnav svg { width: 23px; height: 23px; transition: transform .12s var(--ease); }
  .bottomnav [data-watch-count] { position: absolute; top: 8px; left: calc(50% + 6px); font-size: 9.5px; padding: 0 5px; }
  .big { font-size: 36px; }
}
@media (max-width: 380px) {
  .hero-stats span { font-size: 16px; }
  .btn-primary { padding: 0 14px; }
  .wordmark { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
