/* v2 components. Colours, fonts, radius come from theme.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre, .num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .88em; background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
pre { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
sub.z { font-size: .72em; vertical-align: -.25em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
.hide { display: none !important; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.up { color: var(--up); } .dn { color: var(--dn); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
::selection { background: rgba(255, 255, 255, .18); }
/* themed scrollbars (owner rule: no stock scrollbars) */
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; } }   /* Firefox only: Chrome then keeps the themed ::-webkit-scrollbar (larpcheck 11-24) */
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: rgba(9, 9, 11, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font); letter-spacing: -.02em; flex: none; }
.mark img, .mark svg { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 2px; }
.nav a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.nav a.on { color: var(--ink); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.t-ca-btn { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--r-sm); font: 500 12.5px/1 var(--mono); color: var(--ink); }
.t-ca-btn:hover { border-color: var(--line-3); }
.t-ca-btn .ca-v { color: var(--ink-2); }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink-2); background: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-3); }
.icon-btn svg { width: 15px; height: 15px; }
.link-btn .av { width: 20px; height: 20px; border-radius: 50%; }
.wallet-btn .w-ic { display: none; }
.burger { display: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 15px; height: 1.5px; background: var(--ink); position: relative; content: ''; border-radius: 2px; }
.burger span::before { position: absolute; top: -5px; } .burger span::after { position: absolute; top: 5px; }
.sheet { display: none; }
@media (max-width: 959px) {
  .nav, .hdr-r .link-btn { display: none; }
  .burger { display: inline-flex; }
  .sheet { position: fixed; inset: var(--hdr) 0 auto 0; z-index: 49; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .sheet.on { display: grid; }
  .sheet a { height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-weight: 500; }
}
@media (max-width: 719px) {
  .hdr-in { gap: 12px; }
  .hdr-r { gap: 6px; }
  .hdr-r .wallet-btn { width: 34px; padding: 0; justify-content: center; } .wallet-btn .w-ic { display: block; } .wallet-btn .w-lbl { display: none; }
  .wallet-btn.on { width: auto; padding: 0 10px; } .wallet-btn.on .w-ic { display: none; }
  .t-ca-btn { padding: 0 9px; gap: 6px; font-size: 11px; }
}
@media (max-width: 374px) { .t-ca-btn svg { display: none; } .mark b { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 500 14px/1 var(--font); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--line-3); background: var(--bg-3); }
.btn-x { background: var(--ink); color: var(--bg); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off { opacity: .4; pointer-events: none; }
.arrow::after { content: '→'; font-family: var(--font); }

/* ---------- text bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.lbl { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding: 96px 0 0; }
.sec-h { max-width: 720px; margin-bottom: 40px; }
.sec-h h2 { font-size: var(--h2); margin-top: 14px; }
.sec-h p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.sec-h.row { max-width: none; display: flex; align-items: flex-end; gap: 24px; }
.sec-h.row > div { max-width: 720px; }
.sec-h.row .more { margin-left: auto; }
@media (max-width: 719px) { .sec { padding-top: 64px; } .sec-h { margin-bottom: 28px; } .sec-h.row { flex-wrap: wrap; } .sec-h.row .more { margin-left: 0; } }

/* ---------- cards, pills ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { font-size: 15px; letter-spacing: -.01em; }
.card-h .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-b { padding: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg-3); font: 500 12px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.plain::before { display: none; }
.s-live, .s-partial { color: var(--up); border-color: rgba(34, 197, 94, .3); background: var(--up-soft); }
.s-filled { color: var(--ink); border-color: var(--line-3); background: var(--bg-4); }
.s-sign, .s-link { color: var(--warn); border-color: rgba(245, 158, 11, .3); background: var(--warn-soft); }
.s-expired, .s-cancelled { color: var(--ink-3); }
.s-refused { color: var(--dn); border-color: rgba(239, 68, 68, .3); background: var(--dn-soft); }
.k-pill { font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; height: 22px; padding: 0 8px; border-radius: 6px; }
.k-pill::before { display: none; }

/* ---------- coin cell ---------- */
.coin { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.coin img, .coin .ph { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--bg-4); }
.coin .ph { display: inline-grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--ink-2); }
.coin b { font-weight: 600; }
.coin span.nm { color: var(--ink-3); font-size: 13px; }
a.coin:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { height: 40px; padding: 0 14px; text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl td.num, .tbl .num { font-family: var(--mono); font-size: 13px; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover td { background: rgba(255, 255, 255, .02); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.sx { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-3); }
.sx:hover { color: var(--ink); background: var(--bg-3); }
.sx svg { width: 13px; height: 13px; }
.hlink { color: var(--ink); font-weight: 500; }
.hlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.addr { font: 400 13px var(--mono); color: var(--ink-2); }
.addr:hover { color: var(--ink); }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--bg-4); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }

/* ---------- X posts (the thread) ---------- */
.tw { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
.tw + .tw { border-top: 1px solid var(--line); }
.tw .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-4); display: grid; place-items: center; font: 600 15px/1 var(--font); color: var(--ink-2); overflow: hidden; }
.tw .av img { width: 100%; height: 100%; object-fit: cover; }
.tw-h { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.tw-h b { font-weight: 600; }
.tw-h .h, .tw-h .t { color: var(--ink-3); }
.tw-h .vf { width: 15px; height: 15px; color: var(--x-blue); flex: none; }
.tw-h .xl { margin-left: auto; color: var(--ink-3); display: inline-flex; }
.tw-h .xl:hover { color: var(--ink); }
.tw-h .xl svg { width: 14px; height: 14px; }
.tw-b { margin-top: 4px; font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.tw-b .mention, .tw-b .cash { color: var(--x-blue); }
.tw-card { margin-top: 12px; }

/* the bot's reply card (the picture the bot attaches + the Blink buttons under it) */
.bc { border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.bc-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.bc-top .coin img, .bc-top .coin .ph { width: 36px; height: 36px; }
.bc-top .k { margin-left: auto; flex: none; }
.bc-top > .coin { flex: none; }
.bc-mid { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.bc-mid .v { margin-top: 6px; font: 600 20px/1 var(--mono); letter-spacing: -.02em; }
.bc-mid .v small { font: 400 12px var(--mono); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.bc-cmp { margin: 0 18px; padding: 12px 0 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.bc-cmp .rw { display: grid; grid-template-columns: 92px minmax(0, 1fr) 72px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.bc-cmp .bar { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; }
.bc-cmp .bar i { display: block; height: 100%; border-radius: 6px; }
.bc-cmp .rw.pool .bar i { background: var(--dn); }
.bc-cmp .rw.us .bar i { background: var(--up); }
.bc-cmp .rw b { font: 600 13px var(--mono); text-align: right; }
.bc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 18px; }
.bc-act .btn { height: 38px; border-radius: 10px; }
.bc-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.input { height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none; }
.input:focus { border-color: var(--line-3); }
select.input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- key/value lists ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); }
.kv dt, .kv dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-size: 14px; }
.kv dd { text-align: right; font: 500 14px var(--mono); min-width: 0; overflow-wrap: anywhere; }
.kv dd small { display: block; margin-top: 3px; font: 400 12px var(--font); color: var(--ink-3); }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-weight: 500; font-size: 14px; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.ftr { margin-top: 120px; border-top: 1px solid var(--line); }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 48px; }
.ftr p { margin-top: 14px; color: var(--ink-2); font-size: 14px; max-width: 40ch; }
.ftr h4 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--ink-2); font-size: 14px; }
.ftr ul a:hover { color: var(--ink); }
.ftr-b { border-top: 1px solid var(--line); }
.ftr-b .wrap { height: 56px; display: flex; align-items: center; gap: 16px; color: var(--ink-3); font-size: 13px; }
.ftr-b .wrap > :last-child { margin-left: auto; }
@media (max-width: 859px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > div:first-child { grid-column: 1 / -1; } .ftr { margin-top: 80px; } }
@media (max-width: 479px) { .ftr-b .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; } .ftr-b .wrap > :last-child { margin-left: 0; } }

/* ---------- page shell (inner pages) ---------- */
.pg { padding-top: 48px; }
.pg-h { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pg-h h1 { font-size: clamp(30px, 3.4vw, 44px); }
.pg-h p { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.pg-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 719px) { .pg { padding-top: 32px; } .pg-h .r { margin-left: 0; } }

/* ---------- stats row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.stats > div { padding: 20px 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .v { font: 600 26px/1 var(--mono); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats .v small { font: 400 13px var(--mono); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
@media (max-width: 859px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } .stats .v { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } html { scroll-behavior: auto; } }
/* lead 11-24: wallet flags next to a seller / buyer (core.js flagChips) */
.flag { display: inline-block; margin-left: 6px; padding: 0 5px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); font: 600 10px/14px var(--font); letter-spacing: .04em; color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
.flag.dev { color: #f2b54a; border-color: rgba(242, 181, 74, .45); background: rgba(242, 181, 74, .08); }
