/* SilentXMR: direction A (dark, Monero orange). Tokens first; pages use only tokens. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #0E0F11; --card: #16181B; --field: #0F1113; --chip: #22252A; --chip-hover: #2A2E34;
  --text: #ECECEA; --muted: #8E929A; --line: #24272C; --line-strong: #33373D;
  --accent: #F26822; --accent-hover: #FF7A35; --accent-text: #FF8A4C; --on-accent: #160A03;
  --live: #3DDC97; --down: #FF6B6B; --warn-bg: #2A1F12; --warn-text: #FFC37A;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ── Header / footer ── */
.site-nav { display: flex; align-items: center; gap: 20px; height: 60px; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo .mark svg { width: 15px; height: 15px; }
.logo em { font-style: normal; color: var(--accent-text); }
.nav-links { display: none; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-price { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--text) !important; }
.nav-price img { width: 16px; height: 16px; }
.nav-cta { margin-left: auto; font-size: 13px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text); white-space: nowrap; }
.nav-cta:hover { background: var(--chip); text-decoration: none; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 36px; font-size: 13px; color: var(--muted); }
.site-foot .row { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }
.site-foot .note { margin: 14px 0 0; font-size: 12px; max-width: 720px; }

/* ── Type ── */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
.h-sec { font-size: 22px; margin: 0 0 6px; }
.sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ── Hero ── */
.hero { display: grid; gap: 24px; padding: 28px 0 32px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; padding: 64px 0 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot.off { background: var(--muted); }
.hero h1 { font-size: 34px; margin: 0 0 14px; letter-spacing: -0.03em; }
@media (min-width: 720px) { .hero h1 { font-size: 50px; } }
.hero h1 .xmr { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text); white-space: nowrap; }
.hero h1 .xmr img { width: 0.88em; height: 0.88em; }
.lede { font-size: 15px; color: var(--muted); margin: 0 0 18px; max-width: 480px; }
@media (min-width: 720px) { .lede { font-size: 17px; } }
.coinrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.coinrow .stack { display: flex; }
.coinrow .stack img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -6px; }
.coinrow .stack img:first-child { margin-left: 0; }
.coinrow .big { width: 28px; height: 28px; }
.points { display: none; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
@media (min-width: 960px) { .points { display: grid; } }
.points li { display: flex; gap: 10px; align-items: flex-start; }
.points svg { flex: none; margin-top: 3px; color: var(--accent-text); }

/* ── Swap card ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
@media (min-width: 720px) { .card { padding: 20px; } }
.field { background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.field:focus-within { border-color: var(--line-strong); }
.field .grow { flex: 1; min-width: 0; }
.field label, .field .lbl { font-size: 12px; color: var(--muted); display: block; margin-bottom: 2px; }
.amt { width: 100%; background: none; border: 0; outline: none; padding: 0; font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.amt::placeholder { color: var(--muted); }
.amt[readonly] { cursor: default; }
.usd { font-size: 12px; color: var(--muted); font-family: var(--mono); margin-top: 2px; min-height: 18px; }
.coin-btn { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--chip); border: 0; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.coin-btn:hover { background: var(--chip-hover); }
.coin-btn[disabled] { cursor: default; background: var(--chip); }
.coin-btn img { width: 22px; height: 22px; }
.coin-btn .net { font-size: 11px; color: var(--muted); font-weight: 400; }
.coin-btn .chev { color: var(--muted); font-size: 11px; }
.coin-btn[disabled] .chev { display: none; }
.flip { display: grid; place-items: center; margin: -6px auto; position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer; }
.flip:hover { color: var(--text); }
.rate { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin: 14px 2px 14px; font-family: var(--mono); flex-wrap: wrap; }
.rate b { color: var(--text); font-weight: 500; }
.addr { position: relative; margin-bottom: 14px; }
.addr img { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; }
.addr input { width: 100%; font-size: 13px; font-family: var(--mono); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 38px; outline: none; }
.addr input:focus { border-color: var(--line-strong); }
.addr input::placeholder { color: var(--muted); }
.btn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--chip); border: 0; font-size: 13px; cursor: pointer; color: var(--text); }
.btn-ghost:hover { background: var(--chip-hover); text-decoration: none; }
.err { color: var(--down); font-size: 13px; margin: 10px 2px 0; min-height: 0; }
.err:empty { display: none; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ── Coin picker (dialog) ── */
dialog.picker { width: min(420px, calc(100vw - 24px)); max-height: min(560px, 86vh); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--card); color: var(--text); }
dialog.picker::backdrop { background: rgba(0, 0, 0, .6); }
@media (max-width: 600px) { dialog.picker { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; border-bottom: 0; } }
.picker header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.picker header h2 { font-size: 16px; margin: 0; }
.picker .x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.picker ul { list-style: none; margin: 0; padding: 4px 8px 12px; }
.picker li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; }
.picker li button:hover, .picker li button[aria-selected="true"] { background: var(--chip); }
.picker li img { width: 30px; height: 30px; flex: none; }
.picker .nm { font-weight: 500; font-size: 15px; }
.picker .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.picker .tag { margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--muted); white-space: nowrap; }

/* ── Deposit / order view ── */
.order { display: none; }
.order.on { display: block; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.order-head h2 { font-size: 18px; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--text); }
.pill .dot { background: var(--warn-text); }
.pill.received .dot { background: #6FB7FF; }
.pill.sent .dot { background: var(--live); }
.pill.cancelled .dot { background: var(--down); }
.kv { display: grid; gap: 10px; margin: 0 0 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); word-break: break-all; }
.dep { display: grid; gap: 14px; grid-template-columns: 1fr; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
@media (min-width: 480px) { .dep { grid-template-columns: 132px 1fr; align-items: center; } }
.qr { width: 132px; height: 132px; background: #fff; border-radius: 10px; padding: 6px; justify-self: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.dep .send { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.dep .send b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 15px; }
.dep .address { font-family: var(--mono); font-size: 13px; word-break: break-all; margin: 0 0 10px; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }
.steps-list { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.steps-list li { margin-bottom: 4px; }

/* ── Sections ── */
.section { border-top: 1px solid var(--line); padding: 36px 0 12px; }
.grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pair { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 16px; display: flex; text-decoration: none; align-items: center; gap: 12px; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
.pair:hover { border-color: var(--line-strong); text-decoration: none; }
.pair .ics { display: flex; align-items: center; flex: none; }
.pair .ics img:first-child { width: 28px; height: 28px; }
.pair .ics img + img { margin-left: -8px; border-radius: 50%; border: 2px solid var(--card); width: 32px; height: 32px; }
.pair .t { font-weight: 600; font-size: 15px; }
.pair .r { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.pair .go { margin-left: auto; color: var(--accent-text); font-size: 18px; }

.price-box { margin: 20px 0 0; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px; display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: center; color: var(--text); }
.price-box:hover { text-decoration: none; border-color: var(--line-strong); }
@media (min-width: 720px) { .price-box { grid-template-columns: auto 1fr auto; padding: 22px; } }
.price-box > img { width: 48px; height: 48px; }
.price-box .k { font-size: 13px; color: var(--muted); }
.price-box .v { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.price-box .fx { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
@media (min-width: 720px) { .price-box .fx { grid-column: auto; justify-content: flex-end; } }
.price-box .fx span { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--chip); }
.price-box .go { font-size: 13px; color: var(--accent-text); margin-top: 2px; }

.how { display: grid; gap: 22px; grid-template-columns: 1fr; padding: 4px 0 8px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.how .n { font-family: var(--mono); font-size: 12px; color: var(--accent-text); margin-bottom: 6px; }
.how h3 { font-size: 16px; margin: 0 0 6px; }
.how p { font-size: 14px; color: var(--muted); margin: 0; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ── Price page ── */
.ph { display: flex; align-items: center; gap: 14px; margin: 28px 0 6px; }
.ph img { width: 44px; height: 44px; }
.ph h1 { font-size: 26px; margin: 0; }
@media (min-width: 720px) { .ph h1 { font-size: 32px; } }
.big-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.big-price .v { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 720px) { .big-price .v { font-size: 52px; } }
.chg { font-family: var(--mono); font-size: 15px; }
.chg.up { color: var(--live); } .chg.down { color: var(--down); }
.stamp { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.spark { width: 100%; height: 120px; display: block; margin: 8px 0 18px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 26px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--mono); font-size: 17px; font-weight: 500; margin-top: 2px; }
.conv { display: grid; gap: 10px; }
.conv .field select { background: var(--chip); border: 0; border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.price-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .price-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; } }

/* ── Track / admin ── */
.narrow { max-width: 620px; margin: 0 auto; padding-top: 32px; }
.inline-form { display: flex; gap: 8px; margin: 12px 0 18px; }
.inline-form input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 14px; outline: none; text-transform: uppercase; }
.inline-form .btn { width: auto; padding: 12px 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12px; }
.tbl td.mono { word-break: break-all; }
.tbl-wrap { overflow-x: auto; }
[hidden] { display: none !important; }
.pair .t, .pair .r { display: block; }
.order-head h2 .mono { font-size: 15px; }

/* ── Live rate badge ── */
.live-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 16px 8px 12px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.live-badge .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live-badge[data-state="live"] .pulse { background: var(--live); }
.live-badge[data-state="live"] .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; animation: lb-ping 2s ease-out infinite; }
.live-badge[data-state="down"] .pulse { background: var(--down); }
.live-badge .lb-label { color: var(--text); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 11px; }
.live-badge[data-state="live"] .lb-label { color: var(--live); }
.live-badge .lb-sep { width: 1px; height: 14px; background: var(--line-strong); }
.live-badge .lb-src { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.live-badge .lb-src svg { color: var(--accent-text); }
.live-badge .lb-ago { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 4.5em; }
.live-badge .lb-ago:empty { display: none; }
@keyframes lb-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-badge .pulse::after { animation: none; } }

/* ── Converter and pair pages ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.intro { color: var(--muted); font-size: 15px; max-width: 640px; margin: 0 0 8px; }
.cur-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--line-strong); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text); flex: none; overflow: hidden; }
.tables2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tables2 { grid-template-columns: 1fr 1fr; } }
.conv-tbl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.conv-tbl th, .conv-tbl td { padding: 10px 14px; font-size: 14px; }
.conv-tbl td { font-family: var(--mono); }
.conv-tbl td:last-child, .conv-tbl th:last-child { text-align: right; }
.conv-tbl tr:last-child td { border-bottom: 0; }
.conv-tbl.wide { width: 100%; }
.conv-tbl.wide td:nth-child(2) { text-align: right; }
.two-col { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two-col p { color: var(--muted); font-size: 15px; }
.facts { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.chips a:hover { border-color: var(--line-strong); text-decoration: none; }
.pair-icons { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 20px; }
.pair-icons img { width: 44px; height: 44px; }
.pair-facts { max-width: 460px; margin-top: 4px; }
.notes .note-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.note-card h3 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.note-card p { margin: 0; color: var(--muted); font-size: 14px; }
.conv-tbl td.up { color: var(--live); } .conv-tbl td.down { color: var(--down); }
.conv-tbl.wide td:nth-child(3), .conv-tbl.wide th:nth-child(3) { text-align: right; }
