:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-hover: #f2f2f3;
  --card: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #3d3d44;
  --muted: #6e6e80;
  --faint: #9a9aa6;
  --line: #e5e5e5;
  --line-2: #ececf1;
  --primary: #0d0d0d;
  --on-primary: #ffffff;
  --green: #10a37f;
  --green-bg: #e7f6f1;
  --amber: #b7791f;
  --amber-bg: #fdf4e3;
  --red: #d93f3f;
  --red-bg: #fdecec;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .04), 0 24px 60px rgba(0, 0, 0, .10);
  --r: 16px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --bg-soft: #171717;
    --bg-hover: #1f1f1f;
    --card: #141414;
    --ink: #ececec;
    --ink-2: #c5c5d2;
    --muted: #9b9ba7;
    --faint: #6e6e7a;
    --line: #2a2a2a;
    --line-2: #222;
    --primary: #ececec;
    --on-primary: #0d0d0d;
    --green: #19c37d;
    --green-bg: rgba(25, 195, 125, .12);
    --amber: #e2a33b;
    --amber-bg: rgba(226, 163, 59, .12);
    --red: #ef6b6b;
    --red-bg: rgba(239, 107, 107, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.brand img { border-radius: 7px; }
@media (prefers-color-scheme: dark) { .brand img, .foot-brand img { outline: 1px solid #333; } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--bg-hover); }
.nav a.on { color: var(--ink); background: var(--bg-soft); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wallet-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column; z-index: 30;
}
.menu a, .menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--bg-hover); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: .86; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- chips / dots ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px;
  border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-soft); color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.chip.green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.chip.amber { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.chip.red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.addr {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px;
  padding: 2px 8px; border-radius: 7px; background: var(--bg-soft); color: var(--ink-2);
}
a.addr:hover { background: var(--bg-hover); color: var(--ink); }
.tk { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.hero h1 .fade { color: var(--faint); }
.hero .lede { max-width: 580px; margin: 22px auto 0; font-size: 18px; color: var(--muted); line-height: 1.55; }

.search { max-width: 640px; margin: 40px auto 0; text-align: left; }
.search-box {
  display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); box-shadow: var(--shadow-lg); }
.search-box .dollar { font-family: var(--mono); font-size: 22px; color: var(--faint); font-weight: 600; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 48px;
  font-family: var(--mono); font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
}
.search-box input::placeholder { text-transform: none; font-family: Inter, sans-serif; font-weight: 400; font-size: 18px; color: var(--faint); letter-spacing: 0; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary); display: grid; place-items: center; transition: opacity .15s;
}
.round-btn:disabled { opacity: .2; cursor: default; }
.search-hints { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.search-hints button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: var(--mono); }
.search-hints button:hover { color: var(--ink); background: var(--bg-hover); }

.result {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; animation: rise .25s ease-out;
}
.result .r-main { flex: 1; min-width: 0; }
.result .r-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result .r-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.result .r-actions { display: flex; gap: 8px; flex: none; }
.result.skeleton { height: 86px; background: linear-gradient(90deg, var(--bg-soft), var(--bg-hover), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin: 56px 0 0; overflow: hidden; }
.stat { padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 26px; }
.sec-head p { color: var(--muted); margin-top: 4px; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.card-pad { padding: 20px; }
.link { color: var(--muted); font-size: 14px; font-weight: 500; }
.link:hover { color: var(--ink); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 11px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: var(--bg-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .rank { color: var(--faint); width: 36px; font-variant-numeric: tabular-nums; }
.table .tk { font-size: 15px; }
.coin-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.coin-cell img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--bg-soft); flex: none; }
.coin-cell .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.coin-cell .sb { font-size: 12.5px; color: var(--muted); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty h4 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.more { display: flex; justify-content: center; padding: 16px; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 6px 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 11px 20px; }
.feed li.fresh { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--green-bg); } to { background: transparent; } }
.feed img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); flex: none; }
.feed .f-main { flex: 1; min-width: 0; font-size: 14px; }
.feed .f-main .l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .f-main .l2 { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .when { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; letter-spacing: .01em; }
.tag.claim { background: var(--green-bg); color: var(--green); }
.tag.copy { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.live .dot { color: var(--faint); }
.live.on .dot { color: var(--green); animation: pulse 1.8s infinite; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }
.step h3 { font-size: 18px; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.flow { margin-top: 20px; padding: 26px; border-radius: var(--r); background: var(--bg-soft); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.flow .node { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.flow .node .k { font-size: 12px; color: var(--muted); }
.flow .node .v { font-weight: 600; margin-top: 2px; }
.flow .arr { color: var(--faint); font-size: 18px; text-align: center; }
.flow .arr small { display: block; font-size: 11px; color: var(--green); font-weight: 600; }

/* ---------- page headers ---------- */
.page-head { padding: 56px 0 28px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--ink); }
.page-head h1 { font-size: 40px; letter-spacing: -0.035em; }
.page-head .sub { color: var(--muted); margin-top: 8px; font-size: 16px; max-width: 640px; }
.big-tk { font-family: var(--mono); font-size: clamp(44px, 8vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.big-tk .d { color: var(--faint); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.owner-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 28px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.kpi .k { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.kpi.accent { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.kpi.accent .k, .kpi.accent .v small { color: color-mix(in srgb, var(--on-primary) 65%, transparent); }

.orig { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.orig img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--bg-soft); }
.orig .o-main { flex: 1; min-width: 0; }
.orig .o-main .nm { font-weight: 600; font-size: 16px; }
.orig .o-main .sb { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.field-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: 260px; }
.field-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 14px; }
.field-search svg { color: var(--faint); flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 20px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.fld > span em { font-style: normal; color: var(--faint); font-weight: 400; }
.inp {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  outline: 0; font-size: 15px; transition: border-color .15s, box-shadow .15s; width: 100%;
}
textarea.inp { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 7%, transparent); }
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap .pre { position: absolute; left: 14px; font-family: var(--mono); color: var(--faint); font-weight: 600; pointer-events: none; }
.inp-wrap .suf { position: absolute; right: 14px; color: var(--muted); font-size: 14px; pointer-events: none; }
.inp.tkin { padding-left: 30px; font-family: var(--mono); font-weight: 600; text-transform: uppercase; }
.inp.solin { padding-right: 52px; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); min-height: 20px; display: flex; align-items: center; gap: 7px; }
.hint.green { color: var(--green); }
.hint.amber { color: var(--amber); }
.hint.red { color: var(--red); }
.presets { display: flex; gap: 6px; }
.presets button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.presets button:hover { background: var(--bg-hover); }
.drop {
  display: flex; align-items: center; gap: 18px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 16px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--muted); background: var(--bg-soft); }
.drop .thumb { width: 84px; height: 84px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--faint); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .dt { font-weight: 500; }
.drop .ds { font-size: 13px; color: var(--muted); margin-top: 2px; }
details.more-fields summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more-fields summary::-webkit-details-marker { display: none; }
details.more-fields summary::before { content: '+'; font-size: 16px; width: 16px; }
details.more-fields[open] summary::before { content: '−'; }
details.more-fields .row3 { margin-top: 14px; }

.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.preview-card { padding: 22px; }
.preview-card .pc-top { display: flex; gap: 14px; align-items: center; }
.preview-card .pc-img { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); overflow: hidden; flex: none; }
.preview-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.preview-card .pc-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-card .pc-tk { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.route { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.route .rt-k { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.route .rt-line { display: flex; align-items: center; gap: 10px; }
.route .rt-pct { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.route .rt-to { font-size: 14px; }
.route .rt-to b { display: block; font-weight: 600; }
.route p { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-soft); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--green); border-radius: 99px; }
.cost { font-size: 13.5px; }
.cost div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.cost div b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.cost div.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 600; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); display: flex; gap: 10px; align-items: center; }
.form-status.err { background: var(--red-bg); color: var(--red); }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg-soft); font-size: 14px; animation: rise .2s ease-out; }
.notice .n-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.notice .n-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.notice p { margin-top: 6px; color: var(--ink-2); line-height: 1.55; }
.notice p a { text-decoration: underline; text-underline-offset: 2px; }
.notice p b { font-weight: 600; color: var(--ink); }
.notice .n-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.notice.amber { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.notice.amber .n-title { color: var(--amber); }
.notice.amber .n-title::before { background: var(--amber); }

/* ---------- how / faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 680px; }
.cta { margin: 72px 0 0; padding: 44px; border-radius: 24px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 30px; letter-spacing: -0.03em; }
.cta p { opacity: .65; margin-top: 6px; }
.cta .btn { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
.cta .btn:hover { opacity: .9; background: var(--on-primary); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 32px 24px 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.03em; }
.foot-brand img { border-radius: 5px; }
.foot p { color: var(--faint); font-size: 13px; max-width: 620px; }
.foot nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }

/* ---------- modal / toast ---------- */
#modal-layer:empty { display: none; }
#modal-layer { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .4); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; animation: pop .18s ease-out; border: 1px solid var(--line); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.modal h3 { font-size: 20px; }
.modal .m-body { margin-top: 10px; color: var(--muted); font-size: 14.5px; display: flex; flex-direction: column; gap: 12px; }
.modal .m-body b { color: var(--ink); font-weight: 600; }
.modal .m-foot { display: flex; gap: 8px; margin-top: 24px; flex-direction: column; }
.modal .m-art { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; margin-bottom: 16px; }
.modal .m-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: var(--green-bg); color: var(--green); }
.summary-box { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.summary-box div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.summary-box div + div { border-top: 1px solid var(--line-2); }
.summary-box div span:first-child { color: var(--muted); }
.summary-box div span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; }
.wallet-row:hover { background: var(--bg-hover); }
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: rise .2s;
}
#toast.err { background: var(--red); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cols, .launch { grid-template-columns: 1fr; }
  .side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow .arr { transform: rotate(90deg); }
  .flow .arr small { transform: rotate(-90deg); }
}
@media (max-width: 720px) {
  .wrap, .top-in, .foot-in { padding-left: 16px; padding-right: 16px; }
  .top-in { gap: 12px; }
  .nav { display: none; }
  .hide-sm { display: none; }
  .hero { padding: 56px 0 24px; }
  .hero .lede { font-size: 16px; }
  .search-box { padding-left: 16px; }
  .search-box input { font-size: 19px; }
  .result { flex-direction: column; align-items: stretch; }
  .result .r-actions { flex-wrap: wrap; }
  .result .r-actions .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .table th, .table td { padding-left: 14px; padding-right: 14px; }
  .table .hide-sm { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 16px; }
  .page-head h1 { font-size: 32px; }
  .cta { padding: 28px; }
  .field-search { min-width: 0; flex: 1; }
  .card { overflow-x: auto; }
}
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; text-align: center; font-size: 12px; padding: 8px 0; color: var(--muted); font-weight: 500; border-radius: 10px; }
  .bottom-nav a.on { color: var(--ink); background: var(--bg-soft); }
  body { padding-bottom: 64px; }
  #toast { bottom: 84px; }
}
