/* Coins — equal distribution. Clean fintech: soft grey canvas, white cards, graphite text, one emerald accent. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --ink: #0f1115;
  --ink-2: #3d424d;
  --muted: #8a909c;
  --line: #e8eaee;
  --line-2: #dcdfe5;
  --accent: #0e9f6e;
  --accent-2: #0b8a5f;
  --accent-ink: #ffffff;
  --accent-soft: #e7f6f0;
  --dot-off: #e9ebef;
  --up: #0e9f6e;
  --down: #e5484d;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 18px 48px rgba(16, 24, 40, 0.1);
  --r: 20px;
  --r-sm: 12px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0a0a; --card: #111111; --card-2: #171717; --ink: #ededed; --ink-2: #b4b4b4; --muted: #7a7a7a;
    --line: #1f1f1f; --line-2: #2a2a2a; --accent: #3ccf91; --accent-2: #34b880; --accent-ink: #06140e; --accent-soft: #15201b;
    --dot-off: #1f1f1f; --up: #3ccf91; --down: #f26d6d;
    --shadow: none; --shadow-lg: none; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a0a0a; --card: #111111; --card-2: #171717; --ink: #ededed; --ink-2: #b4b4b4; --muted: #7a7a7a;
    --line: #1f1f1f; --line-2: #2a2a2a; --accent: #3ccf91; --accent-2: #34b880; --accent-ink: #06140e; --accent-soft: #15201b;
    --dot-off: #1f1f1f; --up: #3ccf91; --down: #f26d6d;
    --shadow: none; --shadow-lg: none; color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: 500 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.up { color: var(--up); }
.down { color: var(--down); }
.r { text-align: right; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { color: var(--accent-2); }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 max(20px, calc((100% - 1180px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: flex; gap: 3px; align-items: flex-end; height: 22px; padding: 6px; background: var(--ink); border-radius: 9px; box-sizing: content-box; }
.brand-mark i { width: 5px; height: 10px; border-radius: 2px; background: var(--accent); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; min-width: 0; margin: 0 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--ink); color: var(--bg); }
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.ca { height: 36px; padding: 0 12px; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; color: var(--ink-2); }
.ca:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn, .x-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.icon-btn:hover, .x-link:hover { color: var(--ink); border-color: var(--line-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; font-weight: 700; font-size: 13.5px; background: var(--ink); color: var(--bg); border-radius: 999px; white-space: nowrap; transition: transform 0.15s, opacity 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn.disabled { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); cursor: default; transform: none; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }

/* ---------- pages ---------- */
.page { padding: 32px 0 64px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 12px 0 24px; }
.page-h h1 { font-size: clamp(30px, 4vw, 44px); }
.page-h .sub { margin-top: 8px; max-width: 620px; color: var(--muted); font-size: 15px; }
.page-h .meta { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.kicker { font-size: 12px; font-weight: 700; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card + .card { margin-top: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.card-h .mono { font-weight: 600; font-size: 12.5px; }
.card-h .muted.small { font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent);  }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.empty-note { padding: 16px 0; color: var(--muted); font-size: 13.5px; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.hero .card + .card { margin-top: 0; }
.hero-main { padding: 30px 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }

.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.badge-soft { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.hero-k { margin-top: 30px; font-size: 15px; font-weight: 600; color: var(--muted); position: relative; z-index: 1; }
.hero-v { font-size: clamp(56px, 8.5vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-top: 6px; position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-s { margin-top: 10px; color: var(--muted); font-weight: 600; position: relative; z-index: 1; }
.hero-eq { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-top: 28px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-sm); position: relative; z-index: 1; }
.hero-eq > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; min-width: 0; }
.hero-eq .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hero-eq .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-eq .s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-eq .op { display: grid; place-items: center; width: 44px; font-size: 22px; color: var(--muted); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.now-token { display: flex; align-items: center; gap: 14px; }
.now-token img { width: 52px; height: 52px; border-radius: 50%; background: var(--card-2); flex: none; box-shadow: 0 0 0 4px var(--card-2); }
.now-id { min-width: 0; flex: 1; }
.now-sym { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nowName { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-count { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.now-count .mono { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.track { height: 8px; margin: 10px 0 12px; background: var(--dot-off); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1s linear; }
.next-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; font-size: 12.5px; font-weight: 700; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; max-width: 100%; }
.pill img { width: 20px; height: 20px; border-radius: 50%; }
.pill em { font-style: normal; font-weight: 600; color: var(--muted); }
.pill:hover { border-color: var(--line-2); }

.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: end; margin: 44px 0 26px; }
.intro h1 { font-size: clamp(30px, 4.4vw, 50px); }
.intro p { color: var(--ink-2); font-size: 16px; }

.cells-block .cells-note { margin-top: 14px; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 6px; }
.cells i { aspect-ratio: 1; border-radius: 50%; background: var(--dot-off); }
.cells i.on { background: var(--accent); animation: pop 0.5s both; animation-delay: var(--d); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cells i.on, .live-dot { animation: none; } }

.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.duo .card + .card { margin-top: 0; }
.mini-drops { display: flex; flex-direction: column; }
.md { display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r-sm); cursor: pointer; }
.md:hover { background: var(--card-2); }
.md img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.md > div:not(.r) { min-width: 0; flex: 1; }
.md b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md .r { font-weight: 800; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px 22px; align-content: start; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.facts dd { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- stats rows ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.stats .k { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stats .v { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
.stats .v.small { font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: normal; }

/* ---------- top memecoins map ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; font-size: 13px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on .muted { color: inherit; opacity: 0.6; }
.map { position: relative; height: min(68vh, 640px); min-height: 420px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 18px; }
.map-loading { display: grid; place-items: center; height: 100%; color: var(--muted); }
.sector { position: absolute; }
.sector-label { position: absolute; left: 10px; top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; border-radius: 10px; background: var(--card-2); cursor: pointer; transition: background 0.15s; }
.tile:hover { background: var(--line); }
.tile .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.08; filter: blur(16px); }
.tile .logo, .tile .fallback { position: relative; border-radius: 50%; object-fit: cover; }
.tile .fallback { display: grid; place-items: center; background: var(--dot-off); color: var(--muted); font-weight: 700; }
.tile .sym { position: relative; font-weight: 800; line-height: 1; max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap, .tile .chg { position: relative; color: var(--muted); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .chg.up { color: var(--up); }
.tile .chg.down { color: var(--down); }
.tile.live { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.tile .badge { position: absolute; top: 6px; right: 6px; font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.tip { position: fixed; z-index: 50; pointer-events: none; opacity: 0; transition: opacity 0.12s; width: 250px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; }
.tip.show { opacity: 1; }
.tip-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tip-h > div { min-width: 0; }
.tip-h img { width: 34px; height: 34px; border-radius: 50%; }
.tip-h b, .tip-h span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-h span { color: var(--muted); font-size: 11.5px; }
.tip dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.tip dt { color: var(--muted); }
.tip dd { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.moves { display: flex; flex-direction: column; }
.move { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.move:last-child { border-bottom: 0; }
.move[data-mint] { cursor: pointer; }
.move img, .move .fb { width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); flex: none; }
.move .r { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.dir { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.dir.in { background: var(--accent-soft); color: var(--accent); }
.dir.out { background: var(--card-2); color: var(--muted); }

/* ---------- coin page ---------- */
.back { display: inline-block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; }
.back:hover { color: var(--ink); }
.coin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.coin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.coin-head img { width: 60px; height: 60px; border-radius: 50%; background: var(--card-2); }
.coin-title { flex: 1; min-width: 0; }
.coin-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coin-title h1 { font-size: 32px; }
.ca-inline { margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ca-inline:hover { color: var(--ink); }
.coin-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-link { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); }
.pill-link:hover { border-color: var(--line-2); }
.coin-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.tag.live, .tag.grad { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.coin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.coin-stats > div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card-2); }
.coin-stats .k { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.coin-stats .v { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; }
.chart { height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: var(--card); margin-bottom: 18px; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart .empty-note { display: grid; place-items: center; height: 100%; }
#cInfo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel-block h3 { font-size: 16px; margin-bottom: 10px; }
.info-grid > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-grid dt { color: var(--muted); }
.info-grid dd { text-align: right; font-weight: 700; }

/* ---------- rotation ---------- */
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.slot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 14px; cursor: pointer; min-width: 0; transition: transform 0.15s; }
.slot:hover { transform: translateY(-2px); }
.slot.now { box-shadow: 0 0 0 2px var(--accent), var(--shadow); background: var(--accent-soft); border-color: transparent; }
.slot-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.slot.now .slot-top span:first-child { color: var(--accent); font-weight: 800; }
.slot-tok { display: flex; align-items: center; gap: 10px; }
.slot-tok img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.slot-tok > div { min-width: 0; }
.slot-tok b, .slot-tok span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-tok span { font-size: 12px; color: var(--muted); }

/* ---------- drops ---------- */
.lookup { display: flex; gap: 8px; margin-bottom: 18px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.search.sm { height: 34px; flex: 0 1 220px; box-shadow: none; }
.lookup .btn { height: 44px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
tr.row { cursor: pointer; }
tr.row:hover td, tr.row.open td { background: var(--card-2); }
td .when { display: block; font-weight: 700; }
.tok { display: flex; align-items: center; gap: 8px; }
.tok img { width: 24px; height: 24px; border-radius: 50%; }
td a { color: var(--accent); font-weight: 600; }
.chev { color: var(--muted); }
td.empty { padding: 40px 16px; text-align: center; color: var(--muted); white-space: normal; }
td.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
tr.detail > td { padding: 0; background: var(--card-2); }
.detail-wrap { padding: 16px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; white-space: normal; }
.rec-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.rec td, .rec th { padding: 8px 12px; }
.w-coins { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pager { display: flex; align-items: center; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.pager button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--muted); }
.pager .info { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- how it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.steps li > .mono { display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 12.5px; font-weight: 800; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 14px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 32px; }
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.cmp h3 { font-size: 19px; margin: 4px 0 18px; }
.cmp-bars { display: flex; height: 48px; gap: 4px; margin-bottom: 12px; }
.cmp-bars i { width: var(--w); background: var(--dot-off); border-radius: 8px; }
.cmp-eq { box-shadow: 0 0 0 2px var(--accent), var(--shadow); border-color: transparent; }
.cmp-eq .kicker { color: var(--accent); }
.cmp-eq .cmp-bars i { background: var(--accent); }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--card-2); color: var(--muted); font-weight: 600; }
.faq details[open] summary::after { content: '−'; background: var(--accent-soft); color: var(--accent); }
.faq p { padding: 0 0 18px; max-width: 760px; color: var(--ink-2); }
.faq a { color: var(--accent); }

/* ---------- treasury ---------- */
.treasury { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ca-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ca-box .ca { font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- footer, toast ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 10px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: 0.18s; z-index: 60; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .bar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; flex-basis: 100%; margin: 0; }
  .bar-right { margin-left: auto; }
  .hero, .duo, .compare, #cInfo, .intro { grid-template-columns: 1fr; }
  .intro { gap: 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .ca { display: none; }
  .bar-right .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .page { padding: 20px 0 48px; }
  .page-h { flex-direction: column; align-items: flex-start; }
  .page-h .meta { text-align: left; }
  .card { padding: 18px; }
  .hero-main { padding: 22px; }
  .hero-k { margin-top: 22px; }
  .hero-eq { grid-template-columns: 1fr; }
  .hero-eq .op { width: auto; height: 30px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; }
  .intro { margin: 32px 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .lookup { flex-direction: column; }
  .map { min-height: 360px; }
  .chart { height: 380px; }
  .cells { grid-template-columns: repeat(auto-fill, minmax(11px, 1fr)); gap: 5px; }
  .facts { grid-template-columns: 1fr 1fr; padding: 4px 18px; }
}

/* dark: flat and quiet — no tinted pills, plain greys, the accent only on the number that matters */
:root[data-theme='dark'] .badge-soft { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
:root[data-theme='dark'] .tabs a.on, :root[data-theme='dark'] .chip.on, :root[data-theme='dark'] .pager button.on { background: var(--ink); color: var(--bg); }
:root[data-theme='dark'] .hero-eq { background: transparent; }
:root[data-theme='dark'] .dir.in, :root[data-theme='dark'] .steps li > .mono { background: var(--card-2); }
:root[data-theme='dark'] .tile.live { background: var(--card-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .badge-soft { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
  :root:not([data-theme='light']) .hero-eq { background: transparent; }
  :root:not([data-theme='light']) .dir.in, :root:not([data-theme='light']) .steps li > .mono { background: var(--card-2); }
  :root:not([data-theme='light']) .tile.live { background: var(--card-2); }
}
.note { margin-top: 12px; }
.note h3 { font-size: 17px; margin-bottom: 6px; }
.note p { color: var(--ink-2); max-width: 860px; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; }
.hero-eq { grid-template-columns: repeat(3, 1fr); }
.hero-eq > div + div { border-left: 1px solid var(--line); }
@media (max-width: 600px) { .hero-eq { grid-template-columns: 1fr; } .hero-eq > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- $COIN page ---------- */
.self-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.self-head img { width: 56px; height: 56px; border-radius: 50%; }
.self-id { flex: 1; min-width: 0; }
.self-id h1 { font-size: 30px; }
.self-links { display: flex; gap: 6px; flex-wrap: wrap; }
.self-links .pill-link.disabled { color: var(--muted); cursor: default; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }
.table-wrap.flat { box-shadow: none; border-radius: var(--r-sm); }
table.holders td .tag { font-size: 11px; }
.det { color: var(--ink-2); font-weight: 700; }
tr.row:hover .det, tr.row.open .det { color: var(--accent); }

/* ---------- our chart (TradingView Lightweight Charts) ---------- */
.chart { display: flex; flex-direction: column; padding: 10px 12px 12px; position: relative; }
.chart-tf { display: flex; gap: 2px; padding-bottom: 8px; }
.chart-tf button { height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chart-tf button.on { background: var(--card-2); color: var(--ink); }
.chart-plot { flex: 1; min-height: 0; }
.chart-empty { position: absolute; inset: 44px 0 0; display: grid; place-items: center; }
.more-note { margin-top: 8px; }
