/* ═══════════════════════════════════════════════════════════════════
   abroad — site skin v3. The brew.family register in our own palette:
   near-black violet ground, 17px cards with a 1px hairline, Geist at
   16px, pale-violet primary button with ink text, lavender accent text,
   colour otherwise only on price moves. Header nav on desktop, a
   floating dock on mobile. Square-art token cards in a 5-up grid.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0c;
  --bg-2: #101011;
  --panel: #141415;
  --panel-2: #1b1b1d;
  --panel-3: #232325;
  --line: rgba(255, 255, 255, 0.15);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.05);
  --text: #f2f1ee;
  --text-2: #d8d7d3;
  --muted: #929096;
  --muted-2: #6b6a70;
  --accent: #e9e7e1;
  --accent-2: #bdbbb5;
  --accent-btn: #f2f0eb;
  --accent-ink: #121212;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --accent-line: rgba(255, 255, 255, 0.22);
  --up: #4fd18b;
  --down: #ff5d5d;
  --up-soft: rgba(79, 209, 139, 0.14);
  --down-soft: rgba(255, 93, 93, 0.14);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r: 17px;
  --r-sm: 12px;
  --r-xs: 8px;
  --pill: 999px;
  --gold: var(--accent); /* alias used by app.js inline styles */
  --text-50: var(--muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: 40px; box-sizing: border-box; }
/* the visible view fills the window so the footer never rides up under a short board */
main.wrap { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
::selection { background: rgba(255, 255, 255, 0.22); }
.wrap { max-width: 1472px; margin: 0 auto; padding: 22px 36px 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ── header ────────────────────────────────────────────────────── */
.vnav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 12px 18px; min-height: 74px; background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vlogo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--text); }
.vlogo .mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent); }
.vlogo .mark svg { width: 18px; height: 18px; }
.vlogo .dot { color: var(--accent); }
.vnav-links { display: flex; gap: 4px; }
.vnav-links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: var(--pill); position: relative; }
.vnav-links a:hover { color: var(--text); }
.vnav-links a.active { color: var(--text); }
.vnav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.vnav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.chain-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 8px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.chain-pill:hover { color: var(--text); }
.chain-pill i { display: none; }
.vnav-x { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.vnav-x:hover { background: var(--panel-3); }

/* buttons */
.vbtn-solid, .btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-btn); color: var(--accent-ink); border: 1px solid transparent; border-radius: var(--pill); padding: 10px 16px; font-weight: 600; font-size: 13px; line-height: 1.2; transition: background 0.12s, transform 0.06s; }
.vbtn-solid:hover, .btn-accent:hover { background: #ffffff; }
.vbtn-solid:active, .btn-accent:active { transform: translateY(1px); }
.vbtn-solid:disabled { background: var(--panel-2); color: var(--muted-2); border-color: var(--line-2); cursor: not-allowed; }
.btn-accent { border-radius: var(--r-sm); }
.vbtn-outline, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 10px 16px; font-weight: 500; font-size: 13px; line-height: 1.2; transition: background 0.12s, border-color 0.12s; }
.vbtn-outline:hover, .btn-outline:hover { background: var(--panel-3); border-color: var(--line); }
.vbtn-solid.is-connected { font-family: var(--mono); font-size: 12px; background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.vbtn-solid.is-connected::after { content: ""; display: inline-block; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.vbtn-block, .btn-block { display: flex; width: 100%; }
.vbtn-lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-sm); }
.btn { border-radius: var(--r-sm); padding: 10px 16px; font-weight: 600; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.link-accent { color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-accent:hover { text-decoration: underline; }

/* wallet menu */
.wmenu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; min-width: 230px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.wmenu-addr { padding: 8px 10px 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.wmenu-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: transparent; font-size: 14px; border-radius: var(--r-xs); color: var(--text); }
.wmenu-item:hover { background: rgba(255, 255, 255, 0.06); }
.wmenu-danger { color: var(--down); }

/* ── mobile dock ───────────────────────────────────────────────── */
.dock { display: none; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; gap: 6px; padding: 8px 10px; background: rgba(27, 27, 29, 0.92); border: 1px solid var(--line-2); border-radius: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; padding: 6px 4px 4px; font-size: 12px; color: var(--muted); position: relative; }
.dock a svg { width: 22px; height: 22px; }
.dock a.active { color: var(--text); }
.dock a.active::after { display: none; }
.dock a.dock-create .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-btn); color: var(--accent-ink); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.dock a.dock-create .ic svg { width: 20px; height: 20px; }

/* ── explore: search + create ──────────────────────────────────── */
.explore-bar { display: flex; gap: 12px; align-items: center; margin: 6px 0 22px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--muted); }
.search-box:focus-within { border-color: var(--accent-line); }
.search-box input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 14px; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: var(--muted-2); }
.explore-bar .btn-accent { height: 42px; padding: 0 16px; white-space: nowrap; }

/* paired-stocks chip row */
.strip { margin: 0 0 22px; }
.strip-in { display: flex; align-items: center; gap: 10px; }
.strip-label { font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: 0.06em; text-transform: uppercase; }
.roster-grid { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-bottom: 2px; }
.roster-grid::-webkit-scrollbar { display: none; }
.rtile { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--panel); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.rtile.live { cursor: pointer; }
.rtile.live:hover { background: var(--panel-2); border-color: var(--line); }
.rtile.soon { opacity: 0.55; }
.rtile-top { display: inline-flex; align-items: center; gap: 7px; }
.rtile-logo { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: #fff; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 8px; color: #111; }
.rtile-logo img { width: 100%; height: 100%; object-fit: cover; }
.rtile-sym { font-weight: 600; color: var(--text); }
.rtile-row { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.rtile-price { color: var(--muted); }
.rtile-chg.up { color: var(--up); } .rtile-chg.down { color: var(--down); }
.rtile-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 1px 6px; }
.rtile-state, .rtile-name, .rtile-venue { display: none; }

/* explore head + tabs */
.x-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.x-head h1 { font-size: 24px; font-weight: 600; }
.count-pill { font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: var(--pill); background: var(--panel-2); border: 1px solid var(--line-3); }
.vtabs { margin-left: auto; display: flex; gap: 2px; }
.vtabs .tab { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 8px 14px; border-radius: 22px; }
.vtabs .tab:hover { color: var(--text); }
.vtabs .tab.active { color: var(--text); background: rgba(255, 255, 255, 0.055); }

/* ── token cards ───────────────────────────────────────────────── */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 17px; }
.mk-card { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: 0 8px 21px rgba(0, 0, 0, 0.04); transition: transform 0.15s, border-color 0.15s; animation: cardIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.mk-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mk-art { position: relative; aspect-ratio: 1 / 1; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.mk-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-art .mono-ic { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); opacity: 0.9; }
.mk-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; background: rgba(11, 11, 12, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f2f1ee; font-size: 12px; }
.mk-badge i { display: none; }
.mk-badge img { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mk-body { padding: 13px 12px 12px; }
.mk-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-name b { font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-new { flex: 0 0 auto; font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 7px; }
.mk-sym { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.mk-metrics { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.mk-metrics strong { font-size: 14px; font-weight: 600; color: var(--text-2); margin-right: 4px; }
.mk-mcbar { display: inline-flex; align-items: center; gap: 6px; }
.mk-mcbar .bar { width: 48px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.mk-mcbar .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.mk-meta { display: flex; justify-content: space-between; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.mk-meta time { color: var(--accent); font-family: var(--font); }
.mk-meta .up { color: var(--up); } .mk-meta .down { color: var(--down); }
.grid-empty { color: var(--muted); font-size: 14px; padding: 24px 0; }
.load-more { display: block; margin: 26px auto 0; background: transparent; border: 0; color: var(--accent); font-size: 14px; }

/* empty board */
.board-empty { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 40px 28px; text-align: center; }
.be-title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.be-sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.be-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; margin-bottom: 26px; }
.be-step { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px; background: var(--bg-2); }
.be-step span { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.be-step b { display: block; font-size: 15px; margin-bottom: 4px; }
.be-step small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ── page heads (create, docs, analytics, my tokens) ───────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before { display: none; }
.page-title { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; color: var(--text); }
.page-title .dot { color: var(--accent); }
.page-sub { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 62ch; }

/* stepper */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 12px; margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.stepper div { display: flex; align-items: center; gap: 10px; }
.stepper div::after { content: ""; flex: 1; height: 1px; background: var(--line-3); }
.stepper div:last-child::after { display: none; }
.stepper span { font-family: var(--mono); font-size: 11px; padding: 4px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-3); color: var(--muted); }
.stepper div.on span { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.stepper div.on { color: var(--text); }

/* generic card + section cards */
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; }
.vsection { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.vs-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.vs-head.tight { margin-bottom: 0; }
.vs-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent); flex: 0 0 40px; }
.vs-ic svg { width: 18px; height: 18px; }
.vs-title { font-size: 18px; font-weight: 600; }
.vs-sub, .vsection-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.vs-num { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.vsection-head { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.vsection-head span { letter-spacing: 0; text-transform: none; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--text-2); }
.field label i { color: var(--accent); font-style: normal; }
.field label small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.form-field input, .form-field textarea, .field input, .field textarea, .devbuy-box, .prefix-input { width: 100%; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); font-size: 14px; padding: 13px 14px; outline: 0; transition: border-color 0.12s; }
.form-field input:focus, .form-field textarea:focus, .field input:focus, .field textarea:focus, .devbuy-box:focus-within, .prefix-input:focus-within { border-color: var(--accent-line); }
.form-field input::placeholder, .form-field textarea::placeholder, .field input::placeholder, .field textarea::placeholder, .prefix-input input::placeholder { color: var(--muted-2); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-field { margin-bottom: 14px; }
.l2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-row { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.prefix-input { display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px; }
.prefix-input span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prefix-input input { flex: 1; background: transparent; border: 0; outline: 0; padding: 13px 14px 13px 0; font-size: 14px; color: var(--text); min-width: 0; }
.prefix-input .cnt { margin-right: 14px; }
.vupload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; cursor: pointer; border: 1px dashed var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.02); padding: 26px 14px; color: var(--text-2); font-size: 14px; min-height: 178px; }
.vupload:hover { border-color: var(--accent-line); }
.vupload-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background-size: cover; background-position: center; margin-bottom: 4px; }
.vupload-ic.has-img svg { display: none; }
.vupload-ic.has-img { border: 1px solid var(--line-2); }
.vupload-sub { color: var(--muted); font-size: 12px; }
.vupload .hint { color: var(--accent); font-size: 13px; }
.vupload i { color: var(--accent); font-style: normal; }
.collapse-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; padding: 8px 0 0; user-select: none; }
.collapse-row small { color: var(--muted); font-size: 12px; }
.collapse-row .chev { margin-left: auto; transition: transform 0.15s; color: var(--muted); }
.collapse-row.open .chev { transform: rotate(180deg); }
.collapse-body { margin-top: 14px; }

/* stock tiles on the create page */
.pair-field { position: relative; }
.pair-select { display: none; }
.pair-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pair-item { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.02); cursor: pointer; font-size: 14px; min-width: 0; }
.pair-item:hover { border-color: var(--line); background: var(--panel-2); }
.pair-item.selected { border-color: var(--accent-line); background: var(--accent-soft); }
.pair-item b { font-weight: 600; }
.pair-item .pi-text { min-width: 0; }
.pair-item .pi-name { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-item .slogo { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #fff; display: inline-grid; place-items: center; flex: 0 0 28px; font-family: var(--mono); font-size: 9px; color: #111; }
.pair-item .slogo img { width: 100%; height: 100%; object-fit: cover; }
.pair-item .pi-right { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.pair-item .pi-right b { display: block; font-size: 13px; color: var(--text-2); font-family: var(--mono); font-weight: 500; }
.pair-item.pair-soon { opacity: 0.45; cursor: default; }
.pair-item .check { color: var(--accent); }
.trading-pair { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.trading-pair b { color: var(--accent); font-weight: 500; }
.chain-line { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--muted); }
.chain-line span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.devbuy-box { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; }
.devbuy-box input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 16px; color: var(--text); padding: 13px 0; font-family: var(--mono); min-width: 0; }
.asset-chip { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--panel-2); }
.max-chip { background: transparent; border: 1px solid var(--line-2); color: var(--accent); border-radius: 6px; font-size: 12px; padding: 4px 8px; }
.fee-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.fee-tiles div { border: 1px solid var(--line-3); border-radius: var(--r-sm); padding: 12px 14px; background: rgba(255, 255, 255, 0.02); }
.fee-tiles span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.fee-tiles b { font-size: 16px; font-weight: 500; }
.launch-row { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.launch-row .vbtn-solid { flex: 1; justify-content: space-between; border-radius: var(--r-sm); padding: 16px 20px; font-size: 15px; }
.l2-fee { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* two-column create layout */
.vcreate { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.vside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.vpreview { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.pv-art { position: relative; height: 220px; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%), var(--panel-2); display: grid; place-items: center; }
.pv-art .mk-badge { top: 12px; left: 12px; }
.l2p-img { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; color: var(--accent); background: var(--panel-3); border: 1px solid var(--line-2); background-size: cover; background-position: center; }
.l2p-img.has-img svg { display: none; }
.pv-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pv-body { padding: 18px 18px 16px; }
.pv-body #pvName { font-size: 18px; font-weight: 600; display: block; }
.vpv-sym { font-size: 13px; color: var(--muted); }
.pv-pair { float: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pv-pair b { color: var(--accent); font-weight: 500; }
.pv-desc { color: var(--muted); font-size: 14px; margin: 12px 0 14px; line-height: 1.5; }
.vpv-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line-3); }
.vpv-rows div span { display: block; font-size: 12px; color: var(--muted); }
.vpv-rows div b { font-size: 13px; font-weight: 500; }
.vpv-note { font-size: 12px; color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--line-3); }
.side-tip { display: flex; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 16px 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.side-tip .vs-ic { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.side-tip b { display: block; color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 2px; }

/* ── token page ────────────────────────────────────────────────── */
.tp-crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 4px 0 22px; }
.tp-crumb a:hover { color: var(--text); }
.tp-crumb b { color: var(--text); font-weight: 500; }
.tp-crumb .chain { margin-left: auto; }
.tp-crumb .chain { display: inline-flex; align-items: center; gap: 7px; }
.tk-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.tk-id { display: flex; align-items: center; gap: 16px; }
.tk-avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--accent); background: var(--panel-2); border: 1px solid var(--line-2); background-size: cover; background-position: center; flex: 0 0 64px; }
.tk-id h1 { font-size: 28px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; font-family: var(--mono); flex-wrap: wrap; }
.tk-sub .copy { cursor: pointer; color: var(--muted); }
.tk-sub .copy:hover { color: var(--text); }
.tk-pair { font-family: var(--font); }
.tk-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: var(--r-xs); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); }
.chip:hover { border-color: var(--line); }
.chip.accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.tk-links { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.tk-desc { color: var(--text-2); font-size: 14px; margin: 0 0 20px; max-width: 80ch; }
.tk-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.tk-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tk-right { display: flex; flex-direction: column; gap: 18px; }
.tk-panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px; }
.tk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tk-panel-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.tk-panel-title small { color: var(--muted); letter-spacing: 0.12em; font-size: 12px; }
.tp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 5px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.dot { display: none; }
.tp-chart-wrap { position: relative; height: 300px; }
.tp-chart-canvas { width: 100%; height: 100%; display: block; }
.tp-chart-halt { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 11, 12, 0.6); }
.halt-box { text-align: center; } .halt-title { font-weight: 600; font-size: 16px; } .halt-sub { color: var(--muted); font-size: 14px; }
.tk-chart-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--muted); }
.tk-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.tk-stats > div { padding: 16px 18px; border-right: 1px solid var(--line-3); }
.tk-stats > div:last-child { border-right: 0; }
.tk-stats .k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tk-stats .v { font-size: 18px; font-weight: 600; }
.tk-stats .v.up { color: var(--up); } .tk-stats .v.down { color: var(--down); }
.tk-tabs { display: flex; gap: 18px; }
.pt-tab { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.pt-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.pt-count { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.tape-head, .trade-row { display: grid; grid-template-columns: 70px 60px 1.2fr 1fr 1fr 1.1fr; gap: 10px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.tape-head { color: var(--muted); font-size: 12px; padding: 4px 6px 12px; }
.tape-head .r, .trade-row .tr-px { text-align: right; }
.trade-row:last-child { border-bottom: 0; }
.trade-row .tr-ago { color: var(--muted); }
.trade-row .tr-type { font-size: 12px; padding: 3px 8px; border-radius: 6px; width: max-content; }
.trade-row .tr-type.up { color: var(--up); background: var(--up-soft); }
.trade-row .tr-type.down { color: var(--down); background: var(--down-soft); }
.trade-row .tr-addr a { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.trade-row .tr-val, .trade-row .tr-amt { color: var(--text-2); }
.trade-row .tr-px { font-weight: 500; }
.tk-empty, .pa-desc { color: var(--muted); font-size: 14px; padding: 18px 6px; }
.holder-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.holder-rank { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.holder-addr { font-family: var(--mono); font-size: 12px; } .holder-addr.dev { color: var(--accent); }
.holder-pct { font-weight: 500; }

/* swap panel */
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-3); margin-bottom: 14px; }
.swap-tabs button { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 9px; border-radius: 9px; }
.swap-tabs button.active { background: var(--panel-3); color: var(--text); }
.swap-box { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.025); padding: 12px 14px; margin-bottom: 8px; }
.swap-box .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tk-input { display: flex; align-items: center; gap: 10px; }
.tk-input input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 26px; font-weight: 500; color: var(--text); font-family: var(--mono); padding: 0; min-width: 0; }
.tk-unit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border-radius: var(--pill); background: var(--panel-3); border: 1px solid var(--line-2); }
.tk-quick { display: flex; gap: 6px; margin: 10px 0 0; }
.tk-quick button { background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; font-size: 12px; padding: 4px 8px; }
.tk-quick button:hover { color: var(--text); border-color: var(--line); }
.swap-arrow { text-align: center; color: var(--muted); font-size: 12px; margin: -2px 0 6px; }
.tk-out { display: flex; justify-content: space-between; align-items: baseline; }
.tk-out span { font-size: 12px; color: var(--muted); }
.tk-out b { font-size: 24px; font-weight: 500; font-family: var(--mono); }
.tk-rows { display: grid; gap: 8px; margin: 12px 0 14px; font-size: 13px; }
.tk-rows div { display: flex; justify-content: space-between; color: var(--muted); }
.tk-rows div b { color: var(--text-2); font-weight: 500; }
.tk-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.tk-sell { display: none; }
.tk-meta { display: grid; gap: 10px; font-size: 13px; }
.tk-meta div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.tk-meta div b { color: var(--text-2); font-weight: 500; font-family: var(--mono); font-size: 12px; text-align: right; }
.tk-meta div b.plain { font-family: var(--font); font-size: 13px; }
.tk-meta a { color: var(--accent); }
.fee-big { font-size: 26px; font-weight: 500; font-family: var(--mono); }
.fee-big small { font-size: 12px; color: var(--muted); font-family: var(--font); margin-left: 6px; }
.fee-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pill-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.stock-card { display: flex; align-items: center; gap: 12px; }
.stock-card .slogo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; flex: 0 0 40px; font-size: 10px; color: #111; }
.stock-card .slogo img { width: 100%; height: 100%; object-fit: cover; }
.stock-card b { display: block; font-size: 15px; }
.stock-card small { color: var(--muted); font-size: 12px; }
.stock-card .px { margin-left: auto; text-align: right; }
.stock-card .px b { font-family: var(--mono); font-weight: 500; }
.stock-card .px .up { color: var(--up); } .stock-card .px .down { color: var(--down); }
.tp-back { display: none; }

/* ── analytics ─────────────────────────────────────────────────── */
.range-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); }
.range-tabs button { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 8px 16px; border-radius: 9px; }
.range-tabs button.active { background: var(--accent-btn); color: var(--accent-ink); }
.spots { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; margin-bottom: 18px; }
.spot { padding: 22px 24px; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); cursor: pointer; }
.spot:nth-child(2n) { border-right: 0; }
.spot:nth-last-child(-n+2) { border-bottom: 0; }
.spot-k { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); margin-bottom: 26px; }
.spot-k svg { width: 18px; height: 18px; color: var(--accent); }
.spot-v { font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.spot-v span { font-size: 14px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.spot-row { display: flex; gap: 22px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.spot-row div b { color: var(--text-2); font-weight: 500; margin-left: 6px; }
.an-line { display: flex; gap: 22px; font-size: 13px; color: var(--muted); margin: 0 0 22px; flex-wrap: wrap; }
.an-line b { color: var(--text-2); font-weight: 500; margin-left: 6px; }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 6px 6px 12px; border-bottom: 1px solid var(--line-3); }
.an-table td { padding: 12px 6px; border-bottom: 1px solid var(--line-3); }
.an-table tr:last-child td { border-bottom: 0; }
.an-table td.r, .an-table th.r { text-align: right; }
.an-table .tk { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.an-table .tk .mini { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); background-size: cover; background-position: center; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent); flex: 0 0 26px; overflow: hidden; }
.an-table .tk .mini img { width: 100%; height: 100%; object-fit: cover; }
.an-table .tk small { color: var(--muted); display: block; font-size: 12px; }
.an-table .up { color: var(--up); } .an-table .down { color: var(--down); }
.an-empty { color: var(--muted); font-size: 13px; padding: 14px 6px; }
.stats, .hero { display: none; }

/* ── my tokens ─────────────────────────────────────────────────── */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); margin-bottom: 18px; }
.seg-tabs button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 14px; padding: 10px 18px; border-radius: 9px; }
.seg-tabs button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.empty-card { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 56px 28px 48px; text-align: center; }
.empty-card .vs-ic { margin: 0 auto 18px; width: 52px; height: 52px; border-radius: 14px; }
.empty-card h2 { font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.empty-card p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }

/* ── docs ──────────────────────────────────────────────────────── */
.docs-layout { display: block; }
.docs-sidebar-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 6px 0 20px; }
.docs-sidebar-title svg { color: var(--accent); }
.docs-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 26px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.docs-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.docs-nav a:hover { border-color: var(--line); }
.docs-nav a.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.docs-sidebar-foot, .docs-breadcrumb { display: none; }
.docs-hero { margin: 0 0 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line-3); }
.docs-hero .link-accent { margin-top: 16px; }
.docs-content { counter-reset: docsec; max-width: 860px; }
.doc-section { padding: 34px 0; border-bottom: 1px solid var(--line-3); }
.doc-section:last-child { border-bottom: 0; }
.doc-section h1 { font-size: 30px; font-weight: 500; margin-bottom: 18px; letter-spacing: -0.02em; }
.doc-section h2 { font-size: 24px; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.doc-section h2::before { counter-increment: docsec; content: counter(docsec, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.doc-section h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: var(--text-2); }
.doc-section p, .doc-section li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.doc-section p { margin: 0 0 12px; }
.doc-section b { color: var(--text-2); font-weight: 500; }
.doc-section ul, .doc-section ol { padding-left: 1.2rem; margin: 8px 0 14px; }
.doc-section li { margin-bottom: 8px; }
.doc-section a { color: var(--accent); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 18px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-3); }
.doc-table th { color: var(--muted); font-weight: 400; font-size: 12px; }
.doc-table td { color: var(--text-2); }
.doc-table td:first-child { color: var(--text); }
.code, pre.code { font-family: var(--mono); font-size: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; color: var(--text-2); white-space: pre; margin: 10px 0 16px; line-height: 1.6; }
.doc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; margin: 18px 0; }
.doc-tiles div { padding: 16px 18px; border-right: 1px solid var(--line-3); }
.doc-tiles div:last-child { border-right: 0; }
.doc-tiles span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.doc-tiles b { display: block; font-size: 20px; font-weight: 500; margin-bottom: 2px; color: var(--text); }
.doc-tiles small { color: var(--muted); font-size: 12px; }

/* ── footer ────────────────────────────────────────────────────── */
.vfooter { max-width: 1472px; margin: 60px auto 0; padding: 26px 36px 30px; border-top: 1px solid var(--line-3); display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.vfooter-brand { font-weight: 600; font-size: 18px; color: var(--text); }
.vfooter-brand .dot { color: var(--accent); }
.vfooter-tag { color: var(--muted); }
.vfooter-tag em { font-style: normal; }
.vfooter-right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.vfooter-right a:hover { color: var(--text); }
.vfooter-right .net { display: inline-flex; align-items: center; gap: 7px; }

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wrap { padding: 18px 20px 0; }
  .vcreate { grid-template-columns: 1fr; }
  .vside { position: static; }
  .tk-main { grid-template-columns: 1fr; }
  .tk-stats { grid-template-columns: repeat(2, 1fr); }
  .tk-stats > div:nth-child(2) { border-right: 0; }
  .tk-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-3); }
  .an-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 120px; }
  .vnav { min-height: 64px; padding: 10px 14px; gap: 10px; }
  .vnav-links, .chain-pill, .vnav-x { display: none; }
  .vlogo { font-size: 22px; }
  .dock { display: flex; }
  .wrap { padding: 12px 14px 0; }
  .explore-bar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .x-head { flex-wrap: wrap; }
  .vtabs { margin-left: 0; width: 100%; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: 28px; }
  .stepper { grid-template-columns: 1fr; }
  .stepper div::after { display: none; }
  .story-row, .l2-row, .fee-tiles { grid-template-columns: 1fr; }
  .be-steps { grid-template-columns: 1fr; }
  .tape-head { display: none; }
  .trade-row { grid-template-columns: 60px 1fr 1fr; }
  .trade-row .tr-addr, .trade-row .tr-amt, .trade-row .tr-px { display: none; }
  .spots { grid-template-columns: 1fr; }
  .spot { border-right: 0; }
  .tk-head { flex-wrap: wrap; }
  .tk-actions { margin-left: 0; }
  .doc-tiles { grid-template-columns: 1fr; }
  .doc-tiles div { border-right: 0; border-bottom: 1px solid var(--line-3); }
  .vfooter { flex-wrap: wrap; padding: 22px 14px 90px; }
  .vfooter-right { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .mk-card { animation: none; } }

/* shared stock-logo bubble (chips, tiles, cards) */
.slogo { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; background: #fff; display: inline-grid; place-items: center; flex: 0 0 auto; font-family: var(--mono); font-size: 7px; color: #111; vertical-align: middle; }
.slogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip .slogo { width: 16px; height: 16px; }
.mk-metrics > span { white-space: nowrap; }
.mk-metrics small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.mk-metrics small.up { color: var(--up); } .mk-metrics small.down { color: var(--down); }
.mk-meta > span, .mk-meta time { white-space: nowrap; }
@media (max-width: 760px) {
  .mk-metrics { flex-wrap: wrap; row-gap: 2px; }
  .mk-metrics strong { font-size: 13px; }
  .mk-body { padding: 11px 10px 10px; }
}

/* token page — brew parity extras */
.tk-price-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tk-price-line b { font-size: 28px; font-weight: 500; font-family: var(--mono); letter-spacing: -0.01em; }
.tk-price-line span { font-size: 13px; }
.tk-price-line span small { color: var(--muted); font-size: 12px; margin-left: 5px; }
.tk-price-line .up { color: var(--up); } .tk-price-line .down { color: var(--down); }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line-3); }
.seg button { background: transparent; border: 0; color: var(--muted); font-size: 12px; padding: 5px 10px; border-radius: 7px; }
.seg button.active { background: var(--panel-3); color: var(--text); }
.tape-right { display: flex; align-items: center; gap: 10px; }
.tape-filter { background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; padding: 6px 10px; outline: 0; }
.card-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.card-title svg { color: var(--accent); }
.lab-sm { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tk-foot-note { font-size: 12px; color: var(--muted-2); margin: 0; line-height: 1.5; }
.coin { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel-2) center/cover; font-size: 10px; font-weight: 700; color: var(--accent); overflow: hidden; }
.coin img { width: 100%; height: 100%; object-fit: cover; }
.coin.bnb { background: #f0b90b; color: #1a1a1a; font-size: 9px; }
.tk-unit .coin { margin-right: 2px; }
.tk-tape .load-more { margin: 14px auto 0; }
.tk-stats .v { font-family: var(--mono); font-weight: 500; }

/* ── specular buttons (after reactbits' Specular Button, in CSS + a little JS) ──
   dark glass, #f5f5f5 label, 18px radius, a faint static edge stroke, and a thin white
   specular streak that runs along the edge toward the cursor and fades in as it approaches.
   app.js sets --sb-a (angle) and --sb-p (proximity 0..1) on every .sp element. */
.vbtn-solid, .btn-accent, .vbtn-outline, .btn-outline, .btn, .load-more.sp { position: relative; isolation: isolate; background: rgba(255, 255, 255, var(--sb-tint, 0.04)); color: #f5f5f5; border: 0; border-radius: 18px; font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25); transition: background 0.15s, transform 0.06s; }
.vbtn-solid, .btn-accent { --sb-tint: 0.10; font-weight: 600; }
.vbtn-solid:hover, .btn-accent:hover { background: rgba(255, 255, 255, 0.15); }
.vbtn-outline:hover, .btn-outline:hover, .btn:hover { background: rgba(255, 255, 255, 0.08); }
.vbtn-solid:disabled { background: rgba(255, 255, 255, 0.03); color: var(--muted-2); box-shadow: none; }
.vbtn-solid.is-connected { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.vbtn-lg, .launch-row .vbtn-solid { border-radius: 18px; }
.vbtn-solid::before, .btn-accent::before, .vbtn-outline::before, .btn-outline::before, .btn::before,
.vbtn-solid::after, .btn-accent::after, .vbtn-outline::after, .btn-outline::after, .btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.vbtn-solid::before, .btn-accent::before, .vbtn-outline::before, .btn-outline::before, .btn::before { background: #525252; opacity: 0.55; }
.vbtn-solid::after, .btn-accent::after, .vbtn-outline::after, .btn-outline::after, .btn::after {
  opacity: var(--sb-p, 0); transition: opacity 0.25s;
  background: conic-gradient(from calc(var(--sb-a, 0deg) - 25deg),
    transparent 0deg, rgba(255, 255, 255, 0.35) 18deg, #fff 25deg, rgba(255, 255, 255, 0.35) 32deg, transparent 50deg,
    transparent 180deg, rgba(255, 255, 255, 0.3) 198deg, #fff 205deg, rgba(255, 255, 255, 0.3) 212deg, transparent 230deg);
}
.vbtn-solid:disabled::after { opacity: 0 !important; }
.dock a.dock-create .ic { background: rgba(255, 255, 255, 0.12); color: #f5f5f5; border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.range-tabs button.active { background: rgba(255, 255, 255, 0.12); color: #f5f5f5; }
@media (prefers-reduced-motion: reduce) { .vbtn-solid::after, .btn-accent::after, .vbtn-outline::after, .btn-outline::after, .btn::after { transition: none; } }


/* BNB mark, trending row, language switcher */
.bnb { width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -3px; border-radius: 50%; display: inline-block; }
.chain-pill { gap: 7px; }
.mk-badge .bnb { width: 12px; height: 12px; }
.vs-ic .bnb { width: 16px; height: 16px; }
.trend { margin: 0 0 26px; }
.trend-head { margin-bottom: 12px; }
.trend-head h2 { font-size: 18px; font-weight: 600; }
.trend-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.trend-row::-webkit-scrollbar { display: none; }
.tr-card { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); transition: border-color 0.15s, transform 0.15s; }
.tr-card:hover { border-color: var(--line); transform: translateY(-1px); }
.tr-card .tr-img { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; color: var(--accent); flex: 0 0 40px; }
.tr-card .tr-img img { width: 100%; height: 100%; object-fit: cover; }
.tr-card b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tr-card small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-card .tr-right { margin-left: auto; text-align: right; }
.tr-card .tr-right b { color: var(--up); font-family: var(--mono); font-weight: 500; }
.lang-wrap { position: relative; }
.vnav-x.lang { width: auto; padding: 0 12px; gap: 6px; border-radius: var(--pill); font-size: 12px; }
.lang-menu { min-width: 150px; }
.lang-menu .wmenu-item.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 760px) { .vnav-x.lang { display: inline-grid; } .tr-card { min-width: 220px; } }


/* stock logos: the PNGs are transparent now — rounded squares on the panel, no white bubble */
.slogo, .rtile-logo, .pair-item .slogo, .stock-card .slogo, .an-table .tk .mini, .mk-badge img, .coin {
  background: var(--panel-3); border-radius: 30%; overflow: hidden; display: inline-grid; place-items: center; color: var(--text-2);
}
.slogo img, .rtile-logo img, .stock-card .slogo img, .an-table .tk .mini img, .coin img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.mk-badge img { width: 14px; height: 14px; object-fit: contain; padding: 1px; }
.stock-card .slogo { width: 44px; height: 44px; flex-basis: 44px; }
.pair-item .slogo { width: 32px; height: 32px; flex-basis: 32px; }
.rtile-logo { width: 24px; height: 24px; }
.rtile { padding-left: 5px; }

/* language button: a real pill, icon + label side by side */
.vnav-x.lang { display: inline-flex; align-items: center; gap: 7px; height: 40px; width: auto; padding: 0 14px 0 12px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); }
.vnav-x.lang:hover { background: var(--panel-3); }
.vnav-x.lang svg { width: 16px; height: 16px; }
.lang-menu { min-width: 170px; padding: 6px; }
.lang-menu .wmenu-item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 10px 12px; }
.lang-menu .wmenu-item.active::after { content: "\2713"; color: var(--accent); font-size: 12px; }
@media (max-width: 760px) { .vnav-x.lang { display: inline-flex; height: 36px; padding: 0 10px; } .vnav-x.lang span { display: none; } }

/* token page: brew proportions */
.tk-main { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
.tk-left, .tk-right { gap: 20px; }
.tk-panel { padding: 20px 22px; }
.tk-avatar { width: 72px; height: 72px; border-radius: 18px; flex-basis: 72px; font-size: 20px; }
.tk-id h1 { font-size: 30px; }
.tk-price-line b { font-size: 32px; }
.tp-chart-wrap { height: 320px; }
.tk-stats .v { font-size: 20px; }
.tk-stats > div { padding: 18px 20px; }
.tk-input input { font-size: 30px; }
.tk-out b { font-size: 26px; }
.swap-box { padding: 14px 16px; background: rgba(255, 255, 255, 0.03); }
.tk-trade { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--panel); }
.tape-head, .trade-row { padding: 13px 8px; }
@media (max-width: 1100px) { .tk-main { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 900px) { .tk-main { grid-template-columns: 1fr; } }

/* stock logos: circle-cropped, no square tiles */
.slogo, .rtile-logo, .pair-item .slogo, .stock-card .slogo, .an-table .tk .mini, .mk-badge img, .coin, .tr-card .tr-img, .tk-avatar, .l2p-img, .vupload-ic.has-img { border-radius: 50%; }
.slogo img, .rtile-logo img, .stock-card .slogo img, .an-table .tk .mini img, .coin img, .mk-badge img { object-fit: cover; padding: 0; border-radius: 50%; }


/* ── docs: GitBook register ─────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; padding-right: 6px; }
.docs-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin: 4px 0 14px; }
.docs-brand svg { color: var(--muted); }
.docs-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--muted); margin-bottom: 18px; }
.docs-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 13px; min-width: 0; }
.docs-nav { display: block; overflow: visible; padding: 0; margin: 0; }
.dg { margin-bottom: 18px; }
.dg-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 0 10px; margin-bottom: 6px; font-weight: 600; }
.docs-nav a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); border: 0; background: transparent; white-space: normal; line-height: 1.35; }
.docs-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 0; }
.docs-nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.07); border: 0; font-weight: 500; }
.docs-sidebar-title, .docs-hero { display: none; }
.docs-content { max-width: 760px; counter-reset: none; padding-bottom: 40px; }
.doc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 6px 0 22px; }
.doc-crumb .sep { color: var(--muted-2); }
.doc-crumb b { color: var(--text); font-weight: 500; }
.doc-section { padding: 0; border: 0; }
.doc-section h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line-3); display: block; }
.doc-section h2::before { display: none; }
.doc-section h3 { font-size: 21px; font-weight: 600; margin: 34px 0 10px; color: var(--text); letter-spacing: -0.01em; }
.doc-section p, .doc-section li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.doc-section p { margin: 0 0 16px; }
.doc-section b { color: var(--text); font-weight: 600; }
.doc-section ul, .doc-section ol { padding-left: 1.3rem; margin: 6px 0 18px; }
.doc-section li { margin-bottom: 8px; }
.doc-section li::marker { color: var(--muted); }
.doc-section a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.doc-section a:hover { text-decoration-color: var(--text); }
.doc-table { font-size: 15px; margin: 14px 0 22px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.doc-table th { background: var(--panel); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-table th, .doc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-3); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-tiles { margin: 22px 0; }
.code, pre.code { font-size: 13px; margin: 12px 0 22px; }
.doc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-3); }
.doc-pn .pn { display: block; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.doc-pn .pn:hover { border-color: var(--line); }
.doc-pn .pn small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.doc-pn .pn b { font-size: 15px; font-weight: 500; }
.doc-pn .pn.next { text-align: right; }
.docs-toc { position: sticky; top: 90px; font-size: 13px; }
.toc-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 10px; }
.docs-toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line-2); color: var(--muted); line-height: 1.35; }
.docs-toc a:hover { color: var(--text); border-left-color: var(--text); }
@media (max-width: 1100px) { .docs-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; } .docs-toc { display: none; } }
@media (max-width: 760px) {
  .docs-layout { grid-template-columns: 1fr; gap: 12px; }
  .docs-side { position: static; max-height: none; }
  .docs-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .dg { display: flex; gap: 8px; margin: 0; }
  .dg-title { display: none; }
  .docs-nav a { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line-2); background: var(--panel); }
  .doc-section h2 { font-size: 28px; }
  .doc-pn { grid-template-columns: 1fr; }
}

/* the mark: the 3D logo, no plate behind it */
.vlogo .mark { width: 40px; height: 40px; background: none; border: 0; border-radius: 0; }
.vlogo .mark img { width: 40px; height: 40px; object-fit: contain; display: block; }
.docs-brand img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 760px) { .vlogo .mark, .vlogo .mark img { width: 34px; height: 34px; } }

/* create page preview: the blacked-out mark until the creator drops their own image */
.pv-art { background: url("assets/branding/mystery.png?v=3") center / cover no-repeat, #000; height: 300px; }
.pv-art .l2p-img:not(.has-img) { display: none; }
.pv-art.has-img { background: var(--panel-2); }
.pv-art .pv-caption { text-shadow: 0 1px 12px rgba(0,0,0,0.8); }

/* the mystery mark in the create preview: floats, breathes, and a light sweeps across it */
.pv-art { background: radial-gradient(60% 55% at 50% 42%, rgba(255,255,255,0.07), rgba(0,0,0,0) 70%), #000; position: relative; overflow: hidden; }
.pv-art.has-img .pv-myst { display: none; }
.pv-myst { position: absolute; inset: 0; display: grid; place-items: center; }
.pv-myst .q { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: 260px; font-weight: 700; color: rgba(255,255,255,0.05); line-height: 1; animation: qpulse 6s ease-in-out infinite; user-select: none; }
.pv-myst img { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,255,255,0.16)); animation: mfloat 6s ease-in-out infinite; }
.pv-myst .sweep { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%); pointer-events: none;
  -webkit-mask: url(assets/branding/logo.png?v=3) center / contain no-repeat; mask: url(assets/branding/logo.png?v=3) center / contain no-repeat;
  background: linear-gradient(112deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.22) 49%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.22) 51%, rgba(255,255,255,0) 58%); background-size: 320% 100%;
  animation: msweep 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite, mfloat 6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes mfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes msweep { 0% { background-position: 120% 0; } 55%, 100% { background-position: -120% 0; } }
@keyframes qpulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pv-myst img, .pv-myst .sweep, .pv-myst .q { animation: none; } }

/* language pill: the same specular glass as every button (the edge highlight follows the cursor via --sb-a / --sb-p) */
.vnav-x.lang { position: relative; isolation: isolate; background: rgba(255, 255, 255, 0.04); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25); transition: background 0.15s; }
.vnav-x.lang:hover { background: rgba(255, 255, 255, 0.08); }
.vnav-x.lang::before, .vnav-x.lang::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.vnav-x.lang::before { background: #525252; opacity: 0.55; }
.vnav-x.lang::after {
  opacity: var(--sb-p, 0); transition: opacity 0.25s;
  background: conic-gradient(from calc(var(--sb-a, 0deg) - 25deg),
    transparent 0deg, rgba(255, 255, 255, 0.35) 18deg, #fff 25deg, rgba(255, 255, 255, 0.35) 32deg, transparent 50deg,
    transparent 180deg, rgba(255, 255, 255, 0.3) 198deg, #fff 205deg, rgba(255, 255, 255, 0.3) 212deg, transparent 230deg);
}
@media (prefers-reduced-motion: reduce) { .vnav-x.lang::after { transition: none; } }

/* Flap coins: the bonding-curve panel on the token page */
.fcurve { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin: 12px 0 10px; }
.fcurve-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6b6b6b, #f5f5f5); transition: width 0.4s; }
.fcurve-meta { font-size: 14px; color: var(--text-2); }
.fcurve-meta b { color: var(--text); }
