/* REDACT: a classified case file. Paper, ink, redaction bars, red stamps. */
:root {
  --paper: #efe9dc; --paper-2: #e7e0cf; --paper-3: #ddd4c0; --card: #f6f2e8;
  --ink: #16140f; --ink-2: #4b463b; --ink-3: #7d7666; --line: #cbc1aa; --line-2: #b7ac93;
  --bar: #0e0d0b; --red: #c22a1e; --red-2: #a01f15; --up: #2d6a35; --down: #b3261e; --xmr: #e8641c;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Display', Impact, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --r: 3px; --gut: clamp(16px, 4vw, 40px); --maxw: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--bar); color: var(--paper); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.hide-sm { }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- top line + nav ---------- */
.topline { display: flex; justify-content: space-between; gap: 16px; padding: 6px var(--gut); background: var(--bar); color: var(--paper); font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.topline b { color: #fff; }
.topline #xmr-tick .up { color: #8fd49a; } .topline #xmr-tick .down { color: #f08a7f; }
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 12px var(--gut); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; }
.brand-name { font: 900 30px/1 var(--stencil); letter-spacing: .04em; }
.links { display: flex; gap: 4px; margin-left: 8px; }
.links a { text-decoration: none; padding: 7px 11px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; border-radius: var(--r); color: var(--ink-2); }
.links a:hover { color: var(--ink); background: var(--paper-2); }
.links a.on { color: var(--paper); background: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: var(--r); }
.icon-btn svg { width: 16px; height: 16px; fill: var(--ink); }
.platbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 8px var(--gut); border-bottom: 1px dashed var(--line-2); font: 500 12.5px var(--mono); background: var(--paper-2); }
.platbar code { background: var(--card); padding: 2px 6px; border: 1px solid var(--line); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; cursor: pointer; text-decoration: none; font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; transition: transform .12s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 3px 3px 0 var(--red); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-line { background: var(--card); }
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 11.5px; }
.wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
#wallet-btn.on .wdot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }

/* ---------- shared bits ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 56px 0; }
.section + .section { border-top: 1.5px solid var(--ink); }
.kicker { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--red); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
h2 { font-size: clamp(34px, 5vw, 58px); margin: 10px 0 14px; }
h3 { font-size: 24px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row-head a.more { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* redaction bar: black ink over the text, lifted on hover */
.rx { background: var(--bar); color: transparent; border-radius: 1px; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: color .25s, background .25s; }
.rx:hover, .rx.lift { color: var(--ink); background: color-mix(in srgb, var(--bar) 8%, transparent); }

/* stamp */
.stamp { display: inline-block; font: 900 15px/1 var(--stencil); letter-spacing: .12em; text-transform: uppercase; color: var(--red); border: 2.5px solid var(--red); padding: 5px 9px 4px; border-radius: 3px; transform: rotate(-4deg); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23f)'/%3E%3C/svg%3E"); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23f)'/%3E%3C/svg%3E"); }
.stamp.ink { color: var(--ink); border-color: var(--ink); }
.stamp.green { color: var(--up); border-color: var(--up); }
.stamp.sm { font-size: 11px; padding: 3px 6px 2px; border-width: 2px; }

/* file card: a folder with a tab */
.file { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 0 var(--r) var(--r) var(--r); padding: 18px; margin-top: 16px; }
.file::before { content: attr(data-tab); position: absolute; left: -1.5px; top: -24px; height: 24px; padding: 4px 12px 0; background: var(--card); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.file.dark { background: var(--bar); color: var(--paper); border-color: var(--bar); }
.file.dark::before { background: var(--bar); color: var(--paper); border-color: var(--bar); }
.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 18px; }
.label { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 2px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--card); white-space: nowrap; }
.pill.red { color: var(--red); border-color: var(--red); }
.pill.dark { background: var(--ink); color: var(--paper); }
.xmr { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--xmr); color: #fff; font: 700 .62em/1 var(--sans); vertical-align: -.2em; }
.xmr::before { content: 'ɱ'; font-size: 1.35em; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cimg { width: 40px; height: 40px; border-radius: 2px; object-fit: cover; border: 1.5px solid var(--ink); background: var(--paper-3); flex: none; filter: grayscale(.15) contrast(1.05); }
.cimg.ph { display: grid; place-items: center; font: 900 20px var(--display); }
.cimg.lg { width: 76px; height: 76px; }
.cimg.sm { width: 28px; height: 28px; }
.addr { font-family: var(--mono); font-size: 12.5px; }
.copy { cursor: pointer; border: 0; background: none; padding: 0 2px; color: var(--ink-3); display: inline-flex; vertical-align: middle; }
.copy:hover { color: var(--ink); }
.empty { padding: 34px 18px; text-align: center; color: var(--ink-3); border: 1.5px dashed var(--line-2); border-radius: var(--r); font-family: var(--mono); font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: start; }
.hero .meta-line { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(56px, 10.5vw, 148px); line-height: .84; }
.hero h1 .line { display: block; }
.hero h1 .bar-wrap { position: relative; display: inline-block; }
.hero h1 .bar-wrap .bar { position: absolute; inset: .08em -.06em .02em; background: var(--bar); transform-origin: right; animation: lift 1.1s .6s cubic-bezier(.7, 0, .2, 1) forwards; }
.hero h1 .bar-wrap .txt { color: var(--red); }
@keyframes lift { to { transform: scaleX(0); } }
.hero .sub { font: 800 clamp(24px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; margin: 22px 0 14px; }
.hero .lead { margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ca-line { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--mono); font-size: 13px; }
.hero-stamp { position: absolute; right: 2%; top: 30px; font-size: 26px; padding: 10px 16px 8px; transform: rotate(9deg); pointer-events: none; }
.memo { position: relative; transform: rotate(1.2deg); }
.memo .file { box-shadow: 6px 6px 0 var(--ink); }
.memo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.memo-row:last-child { border-bottom: 0; }
.memo-row .who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.memo-row .who b { font: 800 19px var(--display); text-transform: uppercase; }
.memo-row .who small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memo-row .num { text-align: right; font-family: var(--mono); font-size: 13px; }

/* ---------- tally (stats) ---------- */
.tally { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); }
.tally > div { padding: 18px; border-right: 1.5px solid var(--ink); }
.tally > div:last-child { border-right: 0; }
.tally b { display: block; font: 900 clamp(30px, 3.6vw, 44px)/1 var(--display); margin: 6px 0 4px; }
.tally small { color: var(--ink-3); font-size: 12.5px; }

/* ---------- coins ---------- */
.tabs { display: flex; gap: 0; flex-wrap: wrap; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; }
.tabs button { border: 0; background: var(--card); padding: 8px 13px; cursor: pointer; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; border-right: 1.5px solid var(--ink); }
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--ink); color: var(--paper); }
.ledger { width: 100%; border-collapse: collapse; background: var(--card); border: 1.5px solid var(--ink); }
.ledger th { text-align: left; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); white-space: nowrap; }
.ledger td { padding: 11px 12px; border-bottom: 1px dashed var(--line-2); vertical-align: middle; font-size: 14px; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr { cursor: pointer; transition: background .12s; }
.ledger tbody tr:hover { background: var(--paper-2); }
.ledger .r { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ledger .coin { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ledger .coin b { font: 800 18px/1 var(--display); text-transform: uppercase; }
.ledger .coin small { display: block; color: var(--ink-3); font-size: 12.5px; max-width: 22ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .case { font: 500 12px var(--mono); color: var(--ink-3); width: 1%; white-space: nowrap; }
.bar-prog { width: 80px; height: 8px; border: 1px solid var(--ink); background: var(--paper); display: inline-block; vertical-align: middle; margin-right: 6px; }
.bar-prog i { display: block; height: 100%; background: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0 12px; background: var(--card); min-width: 240px; }
.search input { border: 0; background: none; outline: 0; padding: 9px 0; width: 100%; font-family: var(--mono); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.ccard { text-decoration: none; display: block; }
.ccard .file { height: 100%; transition: transform .15s, box-shadow .15s; }
.ccard:hover .file { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.ccard .top { display: flex; gap: 12px; align-items: center; }
.ccard .top b { font: 900 24px/1 var(--display); text-transform: uppercase; }
.ccard .top small { display: block; color: var(--ink-3); }
.ccard dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.ccard dt { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ccard dd { margin: 2px 0 0; font: 600 14px var(--mono); }
.ccard .paid { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; font: 500 12.5px var(--mono); }

/* ---------- how / split ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.steps .file h3 { margin: 4px 0 10px; }
.steps .file p { margin: 0 0 14px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.split-bar { display: flex; height: 58px; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; margin: 8px 0 16px; }
.split-bar > span { display: grid; place-items: center; font: 800 18px var(--display); color: var(--paper); border-right: 1.5px solid var(--paper); min-width: 0; }
.split-bar > span:last-child { border-right: 0; }
.split-list { list-style: none; margin: 0; padding: 0; }
.split-list li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.split-list li b { font: 900 26px/1 var(--display); }
.split-list li span { color: var(--ink-2); }
.split-list li strong { color: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid var(--ink); }

/* ---------- payout receipts ---------- */
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.receipt { position: relative; background: var(--card); border: 1.5px solid var(--ink); padding: 14px 14px 12px; text-decoration: none; font-family: var(--mono); font-size: 12.5px;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.receipt .rt { display: flex; gap: 10px; align-items: center; }
.receipt .rt b { font: 800 18px var(--display); text-transform: uppercase; }
.receipt .amt { font: 900 30px/1 var(--display); margin: 12px 0 4px; }
.receipt .fp { color: var(--ink-3); word-break: break-all; margin-top: 8px; }
.receipt .stamp { position: absolute; right: 10px; top: 10px; }

/* ---------- XMR market ---------- */
.mk-coin { display: flex; gap: 10px; align-items: center; }
.mk-coin img, .mk-coin .ph { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); object-fit: cover; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; margin-bottom: 6px; }
.in { width: 100%; padding: 11px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); outline: 0; font-family: var(--mono); font-size: 14px; }
.in:focus { box-shadow: 3px 3px 0 var(--ink); }
textarea.in { min-height: 84px; resize: vertical; font-family: var(--sans); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.drop, .field > label.drop { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1.5px dashed var(--ink); border-radius: var(--r); background: var(--card); cursor: pointer; }
.drop.over { background: var(--paper-2); }
.drop .pv { width: 84px; height: 84px; border: 1.5px solid var(--ink); background: var(--paper-3); display: grid; place-items: center; overflow: hidden; flex: none; font: 900 13px var(--mono); color: var(--ink-3); }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 20px; height: 20px; border: 2px solid var(--ink); flex: none; margin-top: 1px; display: grid; place-items: center; font: 900 16px/1 var(--display); }
.opt.on { background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); }
.opt.on .box::before { content: '✕'; color: var(--red); }
.opt b { display: block; font: 800 18px/1.1 var(--display); text-transform: uppercase; }
.opt small { color: var(--ink-2); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.presets button { border: 1.5px solid var(--ink); background: var(--card); border-radius: var(--r); padding: 5px 10px; cursor: pointer; font: 500 12px var(--mono); }
.presets button:hover { background: var(--paper-2); }
.tin { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); }
.tin input { flex: 1; border: 0; outline: 0; background: none; padding: 12px; font: 600 18px var(--mono); min-width: 0; }
.tin span, .tin select { padding: 0 12px; font: 600 13px var(--mono); border: 0; background: none; border-left: 1.5px solid var(--ink); align-self: stretch; display: flex; align-items: center; }
.review dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 14px 0; font-size: 14px; }
.review dt { color: var(--ink-2); }
.review dd { margin: 0; text-align: right; font: 600 13px var(--mono); }
.preview-coin { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.preview-coin b { font: 900 30px/1 var(--display); text-transform: uppercase; word-break: break-word; }
.fine { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.notice { padding: 12px 14px; border-left: 4px solid var(--red); background: var(--card); font-size: 13.5px; }

/* ---------- coin page ---------- */
.coin-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 34px 0 20px; }
.coin-head h1 { font-size: clamp(42px, 6vw, 76px); }
.coin-head .sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.coin-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; padding-bottom: 60px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--card); margin-bottom: 16px; }
.kpis > div { padding: 12px 14px; border-right: 1.5px solid var(--ink); }
.kpis > div:last-child { border-right: 0; }
.kpis b { display: block; font: 900 26px/1.05 var(--display); margin-top: 4px; }
.chart-box { position: relative; height: 340px; border: 1.5px solid var(--ink); background: var(--card); }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-box .wait { position: absolute; inset: 0; display: grid; place-items: center; font: 500 13px var(--mono); color: var(--ink-3); }
.trade-box .side { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.trade-box .side button { border: 0; padding: 10px; cursor: pointer; background: var(--card); font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.trade-box .side button.on.buy { background: var(--ink); color: var(--paper); }
.trade-box .side button.on.sell { background: var(--red); color: #fff; }
.quote { font: 500 12.5px var(--mono); color: var(--ink-2); margin: 10px 0 12px; min-height: 36px; }
.bal { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--ink-3); margin: 8px 0 0; }
.bal button { border: 0; background: none; cursor: pointer; font: inherit; text-decoration: underline; color: var(--ink-2); padding: 0; }
.sh-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.sh-row:last-child { border-bottom: 0; }
.sh-row b { font-family: var(--mono); }
.list-mini .lm { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font: 500 12.5px var(--mono); }
.list-mini .lm:last-child { border-bottom: 0; }
.side-tag { font: 700 11px var(--mono); padding: 2px 6px; border: 1.5px solid; text-transform: uppercase; }
.side-tag.buy { color: var(--up); } .side-tag.sell { color: var(--down); }
.tabs-line { display: flex; gap: 18px; border-bottom: 1.5px solid var(--ink); margin: 26px 0 10px; }
.tabs-line button { border: 0; background: none; padding: 8px 0; cursor: pointer; font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs-line button.on { color: var(--ink); border-color: var(--red); }

/* ---------- docs ---------- */
.doc { max-width: 820px; }
.doc h2 { margin-top: 44px; font-size: 40px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.faq details { border-bottom: 1.5px solid var(--ink); padding: 14px 0; }
.faq summary { cursor: pointer; font: 800 22px var(--display); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-family: var(--mono); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin: 10px 0 0; max-width: 70ch; }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(14, 13, 11, .55); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(460px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 8px 8px 0 var(--ink); }
.modal-card h3 { margin-bottom: 8px; font-size: 30px; }
.stack-btns { display: grid; gap: 10px; margin-top: 16px; }
.wallet-opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); cursor: pointer; text-decoration: none; font: 600 14px var(--mono); }
.wallet-opt:hover { background: var(--paper-2); }
.keybox { font: 500 12px var(--mono); word-break: break-all; padding: 10px; border: 1.5px dashed var(--ink); background: var(--card); margin: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: var(--r); font: 500 13px var(--mono); transition: .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { border-top: 1.5px solid var(--ink); padding: 26px var(--gut) 90px; font-size: 12.5px; color: var(--ink-3); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 10px; font-family: var(--mono); }
.foot-row nav { display: flex; gap: 16px; }
.foot p { max-width: 100ch; margin: 0; }
.mnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links a { padding: 7px 7px; font-size: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tally { grid-template-columns: repeat(3, 1fr); }
  .tally > div:nth-child(3) { border-right: 0; }
  .tally > div:nth-child(n+4) { border-top: 1.5px solid var(--ink); }
}
@media (max-width: 900px) {
  .links { display: none; }
  .hero-grid, .split, .form-grid, .coin-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
  .memo { transform: none; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1.5px solid var(--ink); }
  .mnav a { text-align: center; padding: 13px 4px; text-decoration: none; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
  .mnav a.on { background: var(--paper-2); }
  .mnav a.mnav-go { background: var(--ink); color: var(--paper); }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topline { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .tally { grid-template-columns: 1fr 1fr; }
  .tally > div { border-right: 1.5px solid var(--ink) !important; border-top: 1.5px solid var(--ink); }
  .tally > div:nth-child(-n+2) { border-top: 0; }
  .tally > div:nth-child(2n) { border-right: 0 !important; }
  .tally > div:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(2) { border-right: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
  .two, .three { grid-template-columns: 1fr; }
  .ledger .hide-col { display: none; }
  .search { min-width: 0; width: 100%; }
  .brand-name { font-size: 26px; }
  .section { padding: 40px 0; }
  .chart-box { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .hero h1 .bar-wrap .bar { display: none; } }
.tally b .xmr, .kpis b .xmr, .receipt .amt .xmr, h2 .xmr { font-size: .5em; vertical-align: .3em; }

/* live tape */
.tape { overflow: hidden; white-space: nowrap; background: var(--paper-2); border-bottom: 1px dashed var(--line-2); font: 500 12px var(--mono); }
.tape-track { display: inline-flex; align-items: center; gap: 16px; padding: 6px 0; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape a { text-decoration: none; }
.tape i { font-style: normal; color: var(--line-2); }
.tape .tb { color: var(--up); font-weight: 600; } .tape .ts { color: var(--down); font-weight: 600; } .tape .tp { color: var(--red); font-weight: 700; }
.tape .xmr { font-size: .9em; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* vault meter */
.meter { position: relative; height: 16px; border: 1.5px solid var(--ink); background: var(--paper); }
.meter i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, #3a362d 6px 12px); }
.meter span { position: absolute; right: 4px; top: -20px; font: 500 11px var(--mono); color: var(--ink-3); }
.coin-head .sub .btn { margin-left: 4px; }
/* grids never get wider than the screen, whatever their content */
.hero-grid > *, .coin-grid > *, .form-grid > *, .split > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid, .split, .form-grid, .coin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .kpis b { font-size: 21px; }
  .kpis > div { padding: 10px; min-width: 0; }
  .tally b { font-size: 28px; }
  .coin-head h1 { font-size: 40px; }
}
