/* Moca Radar dark theme (from the "Radar Launch Redesign" canvas). Launch uses it first; other pages can follow. */
:root {
  --bg: #0D0F12; --surface: #14171C; --surface-2: #1A1E24; --field: #0F1215; --soft: #111418;
  --line: #1F242B; --line-2: #262B33; --line-3: #3A404A;
  --ink: #ECEAE5; --ink-strong: #F4F2EE; --muted: #8E95A0; --faint: #5F6671; --chip: #B9BEC7;
  --accent: #6FD3B0; --accent-ink: #0D0F12; --accent-soft: #16201D;
  --warn: #E7A94B; --warn-line: #6B5530; --warn-ink: #C9A46A; --bad: #EC7A6C;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-logo: "Unbounded", "Geist", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
button, input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); }

/* Header */
.topbar { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { max-width: 1312px; margin: 0 auto; min-height: 72px; padding: 12px 24px; display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.brand b { font: 700 16px var(--f-logo); letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.net-chip { display: flex; align-items: center; gap: 8px; font: 12px var(--f-mono); color: var(--muted); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.net-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wallet-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 13px var(--f-mono); cursor: pointer; }
.wallet-btn:hover { border-color: var(--line-3); }
.wallet-btn .dot { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #3B4250); }
@media (max-width: 760px) {
  .topbar-in { padding: 12px 16px; gap: 12px; }
  .nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
  .nav a { text-align: center; padding: 9px 0; font-size: 13px; }
  .net-chip { display: none; }
  .wallet-btn { height: 44px; }
}

/* Page frame */
.page { max-width: 1312px; margin: 0 auto; padding: 48px 24px 56px; display: grid; gap: 32px; }
@media (max-width: 760px) { .page { padding: 28px 16px 32px; gap: 20px; } }
.eyebrow { font: 500 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-strong); text-wrap: balance; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
.lede { margin: 0; font-size: 16px; color: var(--muted); max-width: 60ch; }

/* Surfaces and controls */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 14px var(--f-body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--line-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.field-label .aux { font: 12px var(--f-mono); color: var(--faint); }
.input { height: 46px; width: 100%; padding: 0 14px; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-size: 15px; }
.input:focus { outline: none; border-color: var(--accent); }
.input-wrap { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; }
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: 500 15px var(--f-mono); outline: none; }
.input-wrap .unit { font-size: 13px; color: var(--faint); }
.chip-btn { height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 12px var(--f-mono); cursor: pointer; }
.chip-btn:hover { color: var(--ink); }
.chip-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.help { font-size: 12px; color: var(--faint); }
input[type=range] { width: 100%; margin: 0; accent-color: var(--accent); }
.status { font: 13px var(--f-mono); color: var(--muted); min-height: 1.4em; overflow-wrap: anywhere; }
.status.err { color: var(--bad); }
.status.good { color: var(--accent); }
.status a { color: var(--accent); }
.pill { display: inline-flex; white-space: nowrap; font: 500 11px var(--f-mono); letter-spacing: 0.04em; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.burn { color: var(--accent); border-color: var(--accent); }
.pill.lock { color: var(--warn); border-color: var(--warn-line); }
.soon { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font: 13px var(--f-mono); color: var(--muted); }
.wallets { display: grid; gap: 8px; }
.wallets .k { font-size: 13px; color: var(--muted); }
.wallet-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-list button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.wallet-list img { width: 20px; height: 20px; border-radius: 4px; }
.footer { border-top: 1px solid var(--line); }
.footer-in { max-width: 1312px; margin: 0 auto; padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.footer a { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
