@font-face { font-family: Geologica; src: url(/fonts/geologica.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #000; --p1: #0b0c0e; --p2: #141519; --p3: #1d1e23;
  --tx: #f3f3f4; --tx2: #9a9aa3; --tx3: #63636c;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.14);
  --up: #2dbd85; --dn: #f2555a; --up-bg: rgba(45,189,133,.12); --dn-bg: rgba(242,85,90,.12);
  --ease: cubic-bezier(.16,1,.3,1);
  --top: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 14px/1.45 Geologica, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx2); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
.up { color: var(--up); } .dn { color: var(--dn); }
.demo { font-size: 10px; color: var(--tx3); border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; font-weight: 400; letter-spacing: 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 28px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.nav { display: flex; gap: 20px; }
.nav a, .nav button { font-size: 13px; color: var(--tx2); padding: 4px 0; transition: color .25s var(--ease); }
.nav a:hover, .nav button:hover, .nav a.on { color: var(--tx); }
.top-paste { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--p1); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px 0 12px; height: 34px; width: 320px; color: var(--tx3); transition: border-color .25s var(--ease); }
.top-paste:focus-within { border-color: var(--line2); }
.top-paste input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--tx); font-size: 13px; }
.top-paste input::placeholder { color: var(--tx3); }
kbd { font: 500 11px Geologica, sans-serif; color: var(--tx3); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--tx); color: #000; font-weight: 500; font-size: 13px; transition: opacity .2s, background .25s var(--ease); white-space: nowrap; }
.btn:hover:not(:disabled) { background: #fff; }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn.ghost { background: var(--p2); color: var(--tx); border: 1px solid var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--p3); }
.btn.buy { background: var(--up); color: #00160d; }
.btn.buy:hover:not(:disabled) { background: #36cf93; }
.btn.sell { background: var(--dn); color: #1d0002; }
.btn.sell:hover:not(:disabled) { background: #ff6a6e; }

/* token + coin images */
.ti, .ci { position: relative; display: inline-flex; flex: none; width: var(--s); height: var(--s); }
.ti > img:first-child, .ci img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--p3); }
.ci img { border-radius: 28%; }
.ti i, .ci i { position: absolute; inset: 0; border-radius: 50%; background: var(--p3); color: var(--tx2); font-style: normal; font-weight: 600; font-size: calc(var(--s) * .38); display: flex; align-items: center; justify-content: center; z-index: -1; }
.ci i { border-radius: 28%; }
.ti > i:first-child { z-index: 0; }
.ci { isolation: isolate; }
.ci img { position: relative; z-index: 1; }
.ti .badge { position: absolute; right: -3px; bottom: -3px; width: 46%; height: 46%; border-radius: 50%; border: 2px solid var(--p1); background: var(--p1); }
.stack { display: inline-flex; align-items: center; }
.stack .ti + .ti { margin-left: -6px; }
.stack .ti > img:first-child { box-shadow: 0 0 0 2px var(--bg); }
.stack .ti .badge { display: none; }

/* ---------- markets (home) ---------- */
.mk { max-width: 1320px; margin: 0 auto; padding: 0 16px 64px; }
.mk-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding: 48px 0 40px; align-items: center; }
.mk-top h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.035em; font-weight: 600; max-width: 640px; }
.mk-top .lede { color: var(--tx2); font-size: 16px; max-width: 540px; margin: 16px 0 0; }
.paste { display: flex; gap: 8px; margin: 28px 0 0; max-width: 560px; }
.paste input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line2); background: var(--p1); border-radius: 8px; outline: 0; padding: 0 14px; font-size: 14px; transition: border-color .25s var(--ease); }
.paste input:focus { border-color: rgba(255,255,255,.3); }
.paste input::placeholder { color: var(--tx3); }
.paste .btn { height: 46px; padding: 0 20px; font-size: 14px; }
.pays { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--tx3); font-size: 12px; }
.pays .stack .ti + .ti { margin-left: -5px; }

.inflow { border: 1px solid var(--line); border-radius: 10px; background: var(--p1); overflow: hidden; }
.inflow-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.inflow-head h2 { font-size: 13px; font-weight: 500; color: var(--tx2); letter-spacing: 0; }
.inflow-head b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.flow-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 110px 64px; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; }
.flow-row + .flow-row { border-top: 1px solid var(--line); }
.flow-row .bar { height: 4px; border-radius: 2px; background: var(--p3); overflow: hidden; }
.flow-row .bar i { display: block; height: 100%; background: var(--tx2); border-radius: 2px; transition: width .6s var(--ease); }
.flow-row b { font-weight: 500; text-align: right; }

.tbl-head { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; }
.tbl-head h2 { font-size: 16px; }
.tbl-head .tabs { margin-left: auto; }
.tbl { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--p1); }
.tr { display: grid; grid-template-columns: 34px minmax(180px, 2.2fr) 1fr .7fr .7fr 1fr 1fr 1fr 1.1fr 112px; align-items: center; gap: 12px; padding: 0 16px; height: 58px; font-size: 13px; }
.tr + .tr { border-top: 1px solid var(--line); }
a.tr { transition: background .2s; }
a.tr:hover { background: var(--p2); }
.tr.th { height: 38px; font-size: 12px; color: var(--tx3); background: var(--bg); }
.tr > :nth-child(n+3) { text-align: right; }
.tr .rank { color: var(--tx3); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who span { min-width: 0; }
.who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who em { display: block; font-style: normal; color: var(--tx3); font-size: 12px; }
.tr .via { display: flex; justify-content: flex-end; }
.tr .go { justify-self: end; height: 30px; padding: 0 12px; font-size: 12px; }
.sk { background: linear-gradient(90deg, var(--p2) 25%, var(--p3) 50%, var(--p2) 75%); background-size: 200% 100%; animation: sh 1.4s linear infinite; border-radius: 6px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- terminal (coin page) ---------- */
.term { display: grid; grid-template-columns: minmax(0, 1fr) 384px; grid-template-rows: auto minmax(360px, 1fr) 300px; height: calc(100vh - var(--top)); min-height: 720px; }
.cbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cbar::-webkit-scrollbar { display: none; }
.cid { display: flex; align-items: center; gap: 10px; flex: none; }
.cid h1 { font-size: 17px; letter-spacing: -.01em; }
.cid .nm { color: var(--tx2); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.ca { display: inline-flex; align-items: center; gap: 4px; color: var(--tx3); font-size: 12px; transition: color .2s; }
.ca:hover { color: var(--tx); }
.venue { color: var(--tx3); font-size: 12px; }
.px { flex: none; }
.px b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.px span { font-size: 12px; }
.st { flex: none; font-size: 12px; }
.st > span { display: block; color: var(--tx3); white-space: nowrap; }
.st b { font-weight: 500; font-size: 13px; }
.cbar .share-btn { margin-left: auto; flex: none; height: 32px; font-size: 12px; }

.chartbox { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-height: 0; border-bottom: 1px solid var(--line); }
.ctool { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ctool button { height: 26px; padding: 0 9px; border-radius: 6px; color: var(--tx2); transition: color .2s, background .2s; }
.ctool button:hover { color: var(--tx); }
.ctool button.on { color: var(--tx); background: var(--p2); }
.ctool .sep { width: 1px; height: 16px; background: var(--line2); margin: 0 8px; }
.ctool .flowt { display: inline-flex; align-items: center; gap: 6px; }
.ctool .flowt .stack .ti > img:first-child { box-shadow: 0 0 0 2px var(--bg); }
.ctool .src { margin-left: auto; color: var(--tx3); }
.ctool .src a { color: var(--tx2); }
.ctool .src a:hover { color: var(--tx); }
.chart-wrap { position: relative; flex: 1; min-height: 0; }
.chart { position: absolute; inset: 0; }
.legend { position: absolute; left: 12px; top: 8px; z-index: 3; font-size: 12px; color: var(--tx2); display: flex; gap: 10px; pointer-events: none; }
.legend b { font-weight: 500; color: var(--tx); }
.chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tx3); font-size: 13px; z-index: 2; }
.marks { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.mark { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; }
.mark .ti > img:first-child { box-shadow: 0 0 0 2px #000; }
.mark::after { content: ''; width: 1px; height: 8px; background: rgba(255,255,255,.35); }
.mark .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--p3); border: 1px solid var(--line2); border-radius: 6px; padding: 6px 8px; font-size: 11px; color: var(--tx); opacity: 0; pointer-events: none; transition: opacity .2s; }
.mark:hover .tip { opacity: 1; }

.lower { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); height: 38px; align-items: stretch; flex: none; }
.tabs button { font-size: 12px; color: var(--tx2); position: relative; transition: color .2s; }
.tabs button::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--tx); transition: left .35s var(--ease), right .35s var(--ease); }
.tabs button:hover, .tabs button.on { color: var(--tx); }
.tabs button.on::after { left: 0; right: 0; }
.tabs.inline { border: 0; height: 30px; padding: 0; }
.pane { flex: 1; overflow: auto; min-height: 0; }
.trow { display: grid; grid-template-columns: 70px 56px 1fr 1fr 1fr 120px; gap: 12px; align-items: center; padding: 0 16px; height: 32px; font-size: 12px; }
.trow > :nth-child(n+3) { text-align: right; }
.trow.th { color: var(--tx3); position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.trow .t { color: var(--tx3); }
.trow a { color: var(--tx3); transition: color .2s; }
.trow a:hover { color: var(--tx); }
.orow { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) 1fr 1fr 130px; gap: 12px; align-items: center; padding: 0 16px; height: 48px; font-size: 12px; }
.orow + .orow { border-top: 1px solid var(--line); }
.orow > :nth-child(n+3) { text-align: right; }
.orow .paid { display: flex; align-items: center; gap: 10px; min-width: 0; }
.orow .paid b { display: block; font-weight: 500; font-size: 13px; }
.orow .paid em, .orow em { display: block; font-style: normal; color: var(--tx3); }
.orow .stt { justify-self: end; font-size: 11px; color: var(--up); }
.orow .stt.live { color: var(--tx2); }
.sharep { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; padding: 16px; }
.sharep h3 { font-size: 15px; }
.sharep p { color: var(--tx2); font-size: 13px; margin: 6px 0 14px; max-width: 460px; }
.link-row { display: flex; gap: 8px; }
.link-box { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 12px; background: var(--p1); border: 1px solid var(--line); border-radius: 8px; color: var(--tx2); font-size: 13px; }
.link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- ticket ---------- */
.ticket { grid-column: 2; grid-row: 2 / 4; border-left: 1px solid var(--line); overflow-y: auto; padding: 12px 14px 16px; background: var(--p1); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { height: 32px; border-radius: 6px; font-weight: 500; font-size: 13px; color: var(--tx2); transition: background .25s var(--ease), color .25s; }
.seg button.on { background: var(--p3); color: var(--tx); }
.seg button.on[data-side="buy"] { background: var(--up-bg); color: var(--up); }
.seg button.on[data-side="sell"] { background: var(--dn-bg); color: var(--dn); }
.seg.small button { height: 28px; font-size: 12px; }
.field { margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; transition: border-color .25s var(--ease); }
.field:focus-within { border-color: var(--line2); }
.field label { display: block; font-size: 12px; color: var(--tx3); margin-bottom: 6px; }
.field-row { display: flex; align-items: center; gap: 10px; }
.tok-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 8px; background: var(--p2); border: 1px solid var(--line); flex: none; transition: border-color .2s; }
.tok-btn:not(.static):hover { border-color: var(--line2); }
.tok-btn b { display: block; font-size: 13px; font-weight: 500; line-height: 1.2; }
.tok-btn em { display: block; font-style: normal; font-size: 11px; color: var(--tx3); line-height: 1.2; text-align: left; }
.tok-btn svg { color: var(--tx3); }
.amount { flex: 1; min-width: 0; text-align: right; background: none; border: 0; outline: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.amount.out { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dim { color: var(--tx3); }
.field-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.chips { display: flex; gap: 4px; }
.chips button { height: 22px; padding: 0 7px; border-radius: 5px; background: var(--p2); color: var(--tx2); font-size: 11px; transition: color .2s, background .2s; }
.chips button:hover { color: var(--tx); background: var(--p3); }
.route { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; color: var(--tx3); font-size: 11px; }
.route > i { width: 10px; height: 1px; background: var(--line2); }
.route span { margin-left: 4px; }
.err { color: var(--dn); font-size: 12px; margin: 10px 2px 0; }
.facts { margin: 12px 0 0; display: grid; gap: 6px; font-size: 12px; }
.facts div { display: flex; justify-content: space-between; }
.facts dt { color: var(--tx2); }
.facts dd { margin: 0; }
.facts .sub dt, .facts .sub dd { color: var(--tx3); font-size: 11px; }
.facts .sub dt { padding-left: 10px; }
.dest { padding-bottom: 12px; }
.dest .seg { margin-bottom: 8px; }
.dest p { margin: 0; }
.addr { width: 100%; height: 36px; background: var(--p1); border: 1px solid var(--line); border-radius: 6px; outline: 0; padding: 0 10px; font-size: 12px; }
.addr:focus { border-color: var(--line2); }
.cta { width: 100%; height: 44px; margin-top: 12px; font-size: 14px; }
.fine { color: var(--tx3); font-size: 11px; text-align: center; margin: 10px 0 0; }
.dep-head { display: flex; align-items: center; gap: 8px; }
.dep-head h3 { font-size: 15px; flex: 1; }
.back { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--tx2); }
.back:hover { background: var(--p2); color: var(--tx); }
.mock { font-size: 10px; color: var(--tx3); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; }
.qr-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.qr { position: relative; background: #fff; border-radius: 8px; padding: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
.qr span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #000; background: rgba(255,255,255,.7); border-radius: 8px; }
.dep-info label { font-size: 12px; color: var(--tx3); }
.dep-addr { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 6px 0; word-break: break-all; }
.dep-info p { margin: 0; }
.stepper { list-style: none; padding: 0; margin: 16px 0 0; }
.stepper li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.stepper li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 1px; background: var(--line2); }
.stepper li.done:not(:last-child)::before { background: var(--up); }
.dot { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line2); color: var(--tx3); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.active .dot { border-color: var(--tx); color: var(--tx); }
.done .dot { background: var(--up); border-color: var(--up); color: #00160d; }
.lbl { color: var(--tx3); font-size: 13px; padding-top: 2px; }
.active .lbl, .done .lbl { color: var(--tx); }
.lbl em { display: block; font-style: normal; font-size: 11px; color: var(--tx3); margin-top: 2px; }
.delivered { border: 1px solid rgba(45,189,133,.3); background: var(--up-bg); border-radius: 8px; padding: 12px; }
.delivered b { display: block; font-size: 18px; font-weight: 500; color: var(--up); }
.delivered span { font-size: 12px; color: var(--tx2); }
.receipt { margin: 14px 0 0; display: grid; gap: 6px; font-size: 12px; }
.receipt div { display: flex; justify-content: space-between; }
.receipt dt { color: var(--tx2); }
.receipt dd { margin: 0; }

/* ---------- drawer, picker, toast, token ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--p1); border-left: 1px solid var(--line2); z-index: 41; padding: 20px 22px; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-head h2 { font-size: 17px; }
.x { font-size: 24px; line-height: 1; color: var(--tx2); width: 32px; height: 32px; border-radius: 6px; }
.x:hover { background: var(--p2); color: var(--tx); }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 14px; }
.how-steps li { counter-increment: s; position: relative; padding: 0 0 14px 34px; color: var(--tx2); font-size: 13px; }
.how-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); color: var(--tx); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.how-steps b { color: var(--tx); font-weight: 500; }
.drawer h3 { font-size: 13px; margin: 20px 0 8px; }
.how-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.how-table th { text-align: left; color: var(--tx3); font-weight: 400; padding: 6px 0; border-bottom: 1px solid var(--line); }
.how-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.modal { position: fixed; inset: 0; z-index: 42; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(440px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--p1); border: 1px solid var(--line2); border-radius: 12px; padding: 16px; transform: translateY(8px); transition: transform .35s var(--ease); }
.modal.open .modal-card { transform: none; }
.search { height: 38px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; outline: 0; padding: 0 12px; font-size: 13px; }
.search:focus { border-color: var(--line2); }
.chain-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; flex: none; }
.chain-row button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; color: var(--tx2); white-space: nowrap; }
.chain-row button:first-child { padding: 0 10px; }
.chain-row button img { width: 16px; height: 16px; border-radius: 50%; }
.chain-row button.on { border-color: var(--tx); color: var(--tx); }
.tok-list { overflow-y: auto; min-height: 0; margin: 0 -8px; }
.tok-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: left; }
.tok-row:hover:not(:disabled) { background: var(--p2); }
.tok-row:disabled { opacity: .4; cursor: not-allowed; }
.tok-row > span:nth-child(2) { flex: 1; }
.tok-row b { display: block; font-weight: 500; }
.tok-row em { display: block; font-style: normal; color: var(--tx3); font-size: 12px; }
.tok-row .num { font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--tx); color: #000; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.token-page { max-width: 560px; margin: 0 auto; padding: 72px 16px; }
.token-page img { border-radius: 50%; }
.token-page h1 { font-size: 36px; margin: 18px 0 8px; }
.token-page .lede { color: var(--tx2); font-size: 15px; margin: 0 0 24px; }
.token-card { border: 1px solid var(--line); border-radius: 10px; background: var(--p1); }
.token-card .kv { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13px; }
.token-card .kv + .kv { border-top: 1px solid var(--line); }
.token-card .kv span { color: var(--tx2); }
.token-card .kv b { font-weight: 500; }


/* $ALLIN balance in the ticket */
.connect { height: 34px; gap: 6px; flex: none; }
.connect.on { color: var(--tx); }
.xlink { width: 34px; height: 34px; padding: 0; flex: none; margin-right: -18px; color: var(--tx2); }
.xlink:hover { color: var(--tx); }
.topup-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 8px; font-size: 12px; color: var(--tx2); }
.topup-bar b { color: var(--tx); font-weight: 500; }
.topup-bar button { color: var(--tx2); font-size: 12px; }
.topup-bar button:hover { color: var(--tx); }
.hint button { color: var(--tx2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.hint button:hover { color: var(--tx); }
.bal { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 0 2px; font-size: 12px; }
.bal span, .bal em { color: var(--tx3); font-style: normal; }
.bal b { font-weight: 500; font-size: 13px; }
.bal button { margin-left: auto; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--p2); border: 1px solid var(--line); font-size: 11px; transition: border-color .2s; align-self: center; }
.bal button:hover { border-color: var(--line2); }
.hint { font-size: 12px; color: var(--tx3); text-align: center; margin: 10px 0 0; }
.done-card { margin-top: 10px; text-align: center; padding: 20px 12px; border: 1px solid rgba(45,189,133,.3); background: var(--up-bg); border-radius: 10px; }
.done-card.sold { border-color: rgba(242,85,90,.3); background: var(--dn-bg); }
.tick { width: 34px; height: 34px; border-radius: 50%; background: var(--up); color: #00160d; display: inline-flex; align-items: center; justify-content: center; }
.sold .tick { background: var(--dn); color: #1d0002; }
.done-card h3 { font-size: 16px; margin: 10px 0 4px; }
.done-card p { font-size: 12px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tr { grid-template-columns: 28px minmax(150px, 2fr) 1fr .7fr 1fr 1fr 104px; }
  .tr .h-m { display: none; }
}
@media (max-width: 900px) {
  .top { gap: 14px; }
  .nav { display: none; }
  .top-paste { width: auto; flex: 1; min-width: 0; }
  .top-paste kbd { display: none; }
  .connect { height: 34px; padding: 0 10px; }
  .xlink { margin-right: -6px; }
  .mk-top { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 28px; }
  .mk-top h1 { font-size: 34px; }
  .tr { grid-template-columns: minmax(0, 1fr) auto auto; height: 60px; }
  .tr .h-s, .tr .rank { display: none; }
  .term { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .chartbox { height: 380px; flex: none; }
  .ticket { border-left: 0; border-bottom: 1px solid var(--line); order: 3; overflow: visible; }
  .lower { order: 4; height: auto; }
  .pane { max-height: 460px; }
  .trow { grid-template-columns: 54px 44px 1fr 1fr; }
  .trow .h-s { display: none; }
  .orow { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .orow .h-s { display: none; }
  .sharep { grid-template-columns: 1fr; }
  .cbar { gap: 20px; }
  .ctool .src { display: none; }
  .flow-row { grid-template-columns: 22px minmax(0, 1fr) 72px 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.dep-intro { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.dep-intro b { display: block; font-weight: 500; font-size: 13px; }
.dep-intro p { margin: 4px 0 0; font-size: 12px; color: var(--tx2); }
