/* =====================================================================================================
   QUAYSIDE — aplikasi desk (/markets, /new, /offers, /pools, /r, /positions, /docs)
   Memakai token dari tokens.css. Struktur dari garis rambut, bukan kartu bertumpuk. Angka tabular.
   ===================================================================================================== */

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
main.wrap { min-height: calc(100vh - 220px); padding-top: 40px; padding-bottom: 96px; outline: none; }
main.wrap.q-swap { animation: q-in 0.32s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(6px); } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- bilah atas ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(5, 8, 12, 0.86); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: 0.18em; }
.brand-mark { color: #dfe4e9; }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; color: var(--mute); padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.ca-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ca-chip.live i { background: var(--up); }
.ca-chip:hover { border-color: var(--line-2); color: var(--ink); }
.x-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--mute); border: 1px solid var(--line); }
.x-link:hover { color: var(--ink); border-color: var(--line-2); }
#wallet-btn.on { font-family: var(--mono); font-size: 12px; }
#wallet-btn.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn i { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.net-banner { background: var(--accent-soft); border-top: 1px solid var(--accent-line); color: var(--warm); font-size: 13px; text-align: center; padding: 8px 16px; }
.net-banner b { color: var(--accent); font-weight: 600; }

/* ---------- kepala halaman ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head h1 { margin: 0; font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.025em; line-height: 1.05; }
.page-head p { margin: 10px 0 0; color: var(--mute); font-size: 15.5px; line-height: 1.55; max-width: 620px; }
.page-head .actions { display: flex; gap: 8px; flex-shrink: 0; }
.page-head h1 img, .page-head h1 .ph { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.page-head h1 .ph { display: grid; place-items: center; font-size: 14px; background: var(--panel-2); color: var(--mute); }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--mute); }
.crumb a:hover { color: var(--ink); }

/* ---------- pita statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.stat { padding: 18px 20px 18px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat .v { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: 15px; color: var(--mute); margin-left: 4px; }
.stat .s { display: block; color: var(--mute); font-size: 12.5px; margin-top: 4px; }
.stat .v.accent { color: var(--accent); }

/* ---------- tata letak dua kolom ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.grid > *, .form > *, .rail > * { min-width: 0; }
.rail { position: sticky; top: 88px; display: grid; gap: 16px; }
.section { margin-bottom: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.section-head h2 small { color: var(--faint); font-weight: 400; font-size: 14px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.link { color: var(--accent); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; }
.link:hover { color: var(--accent-2); }
.muted { color: var(--mute); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }

/* ---------- panel ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 500; }
.panel > p.sub { margin: 0 0 16px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.rows { margin: 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--mute); }
.rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rows dd small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }

/* ---------- tabel ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.t th { text-align: right; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { text-align: right; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t .l { text-align: left; }
.t tbody tr { transition: background 0.15s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover, .t tbody tr.sel { background: var(--panel-2); }
.t tbody tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.t th button { all: unset; cursor: pointer; }
.t th button:hover, .t th[aria-sort] button { color: var(--ink); }
.t td.two small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.t .rank { color: var(--faint); width: 32px; }
.empty-row td { text-align: center !important; color: var(--mute); padding: 40px 16px !important; }
.empty-row a, .empty-row .link { margin-left: 4px; }

.coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin img, .coin .ph { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--panel-2); object-fit: cover; }
.coin .ph { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--mute); }
.coin b { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.coin small { display: block; color: var(--faint); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; font-weight: 400; }
.tag.ask { color: var(--accent); border-color: var(--accent-line); }
.tag.bid { color: var(--up); border-color: rgba(111, 212, 160, 0.35); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.open::before { background: var(--up); }
.status.filled::before { background: var(--accent); }
.status.unfunded::before { background: var(--warn); }
.status.cancelled::before, .status.expired::before, .status.invalid::before { background: var(--down); }

/* ---------- kontrol ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; transition: border-color 0.2s; }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); }
input::placeholder { color: var(--faint); }
select { height: 40px; padding: 0 36px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa6b0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
.seg { display: inline-flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--mute); font-size: 13px; padding: 0 12px; height: 30px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; height: 36px; font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--mute); font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-size: 12.5px; color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.money { position: relative; }
.money input { width: 100%; height: 42px; padding: 0 12px 0 26px; font-variant-numeric: tabular-nums; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; cursor: pointer; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--mute); transition: transform 0.2s var(--ease), background 0.2s; }
.toggle input:checked { background: var(--accent-soft); border-color: var(--accent-line); }
.toggle input:checked::after { transform: translateX(16px); background: var(--accent); }

/* ---------- kalkulator pool (rail pasar) ---------- */
.calc .coinpick { width: 100%; }
.calc .sizes { margin: 12px 0 0; }
.calc svg.cmp { width: 100%; height: 132px; margin: 18px 0 6px; overflow: visible; }
.cmp .grid-l { stroke: var(--line); }
.cmp .q { stroke: var(--accent); stroke-width: 2; fill: none; }
.cmp .p { stroke: var(--down); stroke-width: 1.6; fill: none; stroke-dasharray: 4 4; }
.cmp .p-fill { fill: url(#poolFade); }
.cmp text { font-family: var(--mono); font-size: 10px; fill: var(--faint); letter-spacing: 0.06em; }
.cmp text.qt { fill: var(--accent); }
.cmp text.pt { fill: var(--down); }
.src { font-size: 11.5px; color: var(--faint); margin: 12px 0 14px; display: flex; gap: 6px; align-items: center; }
.src i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.src.model i { background: var(--warn); }
.panel .q-btn.block, .q-btn.block { width: 100%; }

/* ---------- formulir penawaran ---------- */
.form { display: grid; gap: 14px; }
.box { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; transition: border-color 0.2s; }
.box:focus-within { border-color: var(--accent-line); }
.box .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.box .lbl button { background: none; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; padding: 0; }
.box .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.box .big { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: 30px; font-weight: 300; letter-spacing: -0.02em; height: 44px; font-variant-numeric: tabular-nums; }
.box .big:focus { border: 0; }
.box .big[readonly] { color: var(--ink); cursor: default; }
.box .sub2 { margin-top: 4px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tok { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); flex-shrink: 0; font-weight: 600; font-size: 14px; }
.tok img, .tok .ph { width: 26px; height: 26px; border-radius: 50%; }
.tok .ph { display: grid; place-items: center; background: var(--panel-2); font-size: 10px; }
.tok-select { position: relative; }
.tok-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swap-mid { display: grid; place-items: center; margin: -10px 0; position: relative; z-index: 2; }
.swap-mid button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.swap-mid button:hover { color: var(--ink); }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-row input { flex: 1; min-width: 0; height: 44px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.price-row .step { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 18px; cursor: pointer; }
.price-row .step:hover { border-color: var(--line-2); }
.opts { border: 1px solid var(--line); border-radius: var(--r); }
.opts summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; }
.opts summary::-webkit-details-marker { display: none; }
.opts summary small { color: var(--faint); font-size: 12.5px; text-align: right; }
.opts summary svg { transition: transform 0.25s var(--ease); flex-shrink: 0; color: var(--mute); }
.opts[open] summary svg { transform: rotate(180deg); }
.opts .in { padding: 4px 16px 18px; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.opts .hint { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 0; }
.note:empty { display: none; }
.note { font-size: 12.5px; color: var(--mute); line-height: 1.55; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.note b { color: var(--ink); font-weight: 500; }
.note.warn { border-color: rgba(242, 198, 109, 0.3); color: var(--warm); }
.note.err { border-color: rgba(255, 122, 107, 0.35); color: #ffc8c0; }
.note.ok { border-color: rgba(111, 212, 160, 0.35); }

/* tangga harga: posisi harga kamu di antara harga keluar & masuk pool */
.ladder { position: relative; height: 64px; margin: 18px 4px 8px; }
.ladder .bar { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--line-2); border-radius: 2px; }
.ladder .zone { position: absolute; top: 25px; height: 4px; background: rgba(111, 212, 160, 0.35); border-radius: 2px; }
.ladder .mk { position: absolute; top: 18px; transform: translateX(-50%); display: grid; justify-items: center; }
.ladder .mk i { width: 2px; height: 18px; background: var(--mute); border-radius: 1px; }
.ladder .mk span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap; margin-top: 4px; text-transform: uppercase; }
.ladder .mk.you { top: 4px; }
.ladder .mk.you i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); margin-top: 16px; }
.ladder .mk.you span { position: absolute; top: -2px; color: var(--accent); }
.verdict { font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--up-soft); color: #bdeed3; margin-top: 8px; line-height: 1.45; }
.verdict.bad { background: var(--down-soft); color: #ffc8c0; }
.verdict.mid { background: var(--accent-soft); color: var(--warm); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 13px; color: var(--mute); line-height: 1.5; counter-increment: s; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps li b { display: block; color: var(--ink); font-weight: 500; font-size: 13.5px; margin-bottom: 2px; }
.steps li.done::before { content: "✓"; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- meter pool check ---------- */
.meter { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 10px; }
.meter i { width: 5px; height: 14px; border-radius: 1.5px; background: var(--line-2); }
.meter i.on { background: var(--warn); }
.meter.hot i.on { background: var(--down); }
.meter.calm i.on { background: var(--up); }
.summary-line { font-size: 15px; color: var(--mute); margin: 0 0 18px; }
.summary-line b { color: var(--ink); font-weight: 500; }

/* ---------- struk ---------- */
.receipt { max-width: 560px; margin: 0 auto; }
.rc { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.rc-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rc-top .brand { font-size: 11.5px; }
.rc-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--up); font-size: 13px; }
.rc-ok svg { width: 18px; height: 18px; }
.rc-hero { padding: 28px 22px 22px; }
.rc-hero .q-label { display: block; margin-bottom: 10px; }
.rc-hero .bag { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.rc-hero .for { font-size: 16px; color: var(--mute); margin-top: 8px; }
.rc-hero .for b { color: var(--accent); font-weight: 500; }
.rc-cmp { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rc-cmp div { padding: 16px 22px; }
.rc-cmp div + div { border-left: 1px solid var(--line); }
.rc-cmp b { display: block; font-size: 24px; font-weight: 400; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rc-cmp small { color: var(--mute); font-size: 12px; }
.rc .rows { padding: 6px 22px 10px; }
.rc-foot { display: flex; gap: 8px; padding: 0 22px 22px; flex-wrap: wrap; }
.rc-perf { height: 14px; background: radial-gradient(circle at 7px 0, var(--bg) 6px, transparent 6.5px) 0 0/14px 14px repeat-x; margin-top: -1px; }

/* ---------- dokumen ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc .q-label { margin-bottom: 10px; display: block; }
.toc a { font-size: 13.5px; color: var(--mute); padding: 6px 0; border-left: 1px solid var(--line); padding-left: 14px; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 720px; font-size: 15.5px; line-height: 1.7; color: #cfd6dc; }
.prose h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); margin: 56px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose code, .prose .addr { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--warm); word-break: break-all; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); padding: 10px 12px 10px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 0; vertical-align: top; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.prose .callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; color: var(--ink); margin: 18px 0; }
.trust { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 12px 0 24px; }
.trust > div { padding: 18px 20px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust h4 { margin: 0 0 10px; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.trust > div + div h4 { color: var(--mute); }
.trust ul { margin: 0; padding-left: 18px; font-size: 14px; }

/* ---------- kosong, memuat ---------- */
.empty { text-align: center; padding: 72px 20px; border: 1px solid var(--line); border-radius: var(--r); }
.empty h2 { font-weight: 400; font-size: 24px; margin: 0 0 8px; letter-spacing: -0.015em; }
.empty p { color: var(--mute); margin: 0 auto 20px; max-width: 420px; line-height: 1.55; }
.sk { display: inline-block; height: 12px; width: 60px; border-radius: 4px; background: linear-gradient(90deg, var(--panel-2), #17212f, var(--panel-2)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- jendela & notifikasi ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(2, 4, 7, 0.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: q-in 0.25s var(--ease); }
.modal h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.modal p { color: var(--mute); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-size: 14.5px; cursor: pointer; text-align: left; }
.wallet-list button:hover { border-color: var(--line-2); }
.wallet-list img { width: 28px; height: 28px; border-radius: 7px; }
.modal .close { float: right; background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 20px; line-height: 1; padding: 0; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; max-width: 380px; }
.toast { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: q-in 0.25s var(--ease); line-height: 1.45; }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--accent); }
.toast.ok i { background: var(--up); }
.toast.err i { background: var(--down); }
.toast a { color: var(--accent); }

/* ---------- kaki ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; padding-top: 36px; padding-bottom: 36px; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: var(--accent); }
.foot-brand p { color: var(--mute); margin: 0; font-size: 14px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); }
.foot-links a:hover { color: var(--ink); }
.foot-note { grid-column: 1 / -1; color: var(--faint); font-size: 12px; margin: 0; }

/* ---------- layar sedang ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; }
  .ca-chip { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 920px) {
  .nav, .top-r .x-link { display: none; }
  .menu-btn { display: flex; }
  .top.menu-open .nav { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; gap: 2px; }
  .top.menu-open .nav a { padding: 12px 8px; font-size: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .stats { --n: 3 !important; }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: none; }
}
@media (max-width: 640px) {
  main.wrap { padding-top: 28px; }
  .top-in { gap: 12px; }
  .post-btn { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .stats { --n: 2 !important; }
  .stat { padding: 14px 12px 14px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(4) { padding-left: 12px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .stat .v { font-size: 21px; }
  .t th, .t td { padding: 12px 8px; }
  .t th:first-child, .t td:first-child { padding-left: 14px; }
  .t th:last-child, .t td:last-child { padding-right: 14px; }
  .t .hide-sm { display: none; }
  .coin small { max-width: 110px; }
  .search { max-width: none; }
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .rc-hero .bag { font-size: 32px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .foot-in { grid-template-columns: 1fr; }
}
