/* anyin — layout concept: a centred "stage". One luminous task card floats on a deep teal-black field,
   everything around it recedes. Committed single dark look (a trading tool lives at night).
   Mint accent marks only one thing: where the money goes. */
:root {
  color-scheme: dark;
  --bg: #030405;
  --bg-2: #07080B;
  --surface: #0A0B0F;
  --surface-2: #101217;
  --surface-3: #171A21;
  --ink: #EEF3FA;
  --ink-2: #A3ADBD;
  --ink-3: #6A7384;
  --line: #1A1E26;
  --line-2: #252A35;
  --accent: #50D2C1;
  --accent-2: #2DB3A2;
  --accent-ink: #03201C;
  --accent-soft: #0D2926;
  --grad: linear-gradient(120deg, #8DEBDF 0%, #50D2C1 50%, #2DB3A2 100%);
  --ok: #45D69A;
  --warn: #F2B866;
  --warn-soft: #221B10;
  --danger: #FF8E8E;
  --danger-soft: #2A1418;
  --focus: #50D2C1;
  --skel: #15181F;
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 70px -28px rgba(0,0,0,.9);
  --f-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(80, 210, 193, .10), transparent 70%),
    radial-gradient(800px 500px at 100% 0%, rgba(80, 210, 193, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; margin: 0; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(80, 210, 193, .3); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.linkish { font-size: 13px; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(80,210,193,.4); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: currentColor; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(3, 4, 5, .78); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 28px; height: 28px; color: var(--ink); }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand span { font-size: 13px; color: var(--ink-2); font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line-2); }
.brand.small svg { width: 22px; height: 22px; }
.brand.small b { font-size: 17px; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ghost-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.ghost-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(80,210,193,.45); background: rgba(80,210,193,.08); color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 500; transition: background .15s; }
.wallet-chip:hover { background: rgba(80,210,193,.14); }
.wallet-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.wallet-chip.on { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); font-family: var(--f-mono); font-weight: 400; }
.wallet-chip.on .dot { width: 18px; height: 18px; opacity: 1; background: conic-gradient(from 120deg, #8DEBDF, #2DB3A2, #1E5F57, #8DEBDF); }
.demo-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.demo-toggle i { width: 30px; height: 18px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; }
.demo-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: transform .2s var(--ease), background .2s; }
.demo-toggle[aria-checked="true"] { color: var(--warn); border-color: rgba(242,184,102,.4); }
.demo-toggle[aria-checked="true"] i { background: rgba(242,184,102,.25); }
.demo-toggle[aria-checked="true"] i::after { transform: translateX(12px); background: var(--warn); }

.demo-banner { border-bottom: 1px solid rgba(242,184,102,.18); background: linear-gradient(90deg, rgba(242,184,102,.08), rgba(242,184,102,.03)); }
.demo-banner-in { max-width: 1200px; margin: 0 auto; padding: 9px 24px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--warn); }
.demo-banner-in > span:nth-child(2) { flex: 1; min-width: 0; }
.demo-banner b { font-weight: 600; }
.demo-banner .linkish { color: var(--warn); text-decoration-color: rgba(242,184,102,.4); flex-shrink: 0; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(242,184,102,.15); flex-shrink: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; padding-block: 0 80px; }

/* ---------- swap page ---------- */
.swap-hero { text-align: center; padding-block: 64px 36px; display: grid; justify-items: center; gap: 18px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: 13px; color: var(--ink-2); }
.eyebrow-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(80,210,193,.15); }
.swap-hero h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
.swap-hero h1 em { font-style: normal; background: linear-gradient(100deg, #A6F2E8, #50D2C1 50%, #2DB3A2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swap-hero > p { font-size: 17px; color: var(--ink-2); max-width: 44em; }
.chain-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; margin-top: 4px; }
.chain-strip-l { font-size: 12px; color: var(--ink-3); margin-right: 4px; letter-spacing: .04em; }
.chain-strip button { font-size: 13px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chain-strip button:hover { border-color: rgba(80,210,193,.5); color: var(--ink); background: rgba(80,210,193,.06); }

.stage { position: relative; display: grid; justify-items: center; padding-bottom: 24px; }
.stage-glow { position: absolute; top: 40px; left: 50%; width: min(760px, 100%); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(80,210,193,.16), rgba(80,210,193,.06) 55%, transparent); filter: blur(30px); pointer-events: none; }
#swapRoot { position: relative; width: 100%; max-width: 500px; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow), 0 40px 100px -40px rgba(0,0,0,.8); }
.swap-card { padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); }
.leg { padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.leg-from:focus-within { border-color: rgba(80,210,193,.35); box-shadow: 0 0 0 4px rgba(80,210,193,.06); }
.leg-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.leg-label .bal { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.leg-row { display: flex; align-items: center; gap: 12px; }
.asset-btn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); cursor: pointer; flex-shrink: 0; max-width: 62%; transition: border-color .15s, transform .1s; color: var(--ink); }
.asset-btn:hover { border-color: var(--ink-3); }
.asset-btn:active { transform: scale(.98); }
.asset-btn .txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.asset-btn .sym { font-weight: 600; font-size: 16px; line-height: 1.25; }
.asset-btn .chain { font-size: 12px; color: var(--ink-3); line-height: 1.2; }
.asset-btn .caret { color: var(--ink-3); }
.asset-btn.empty { padding-left: 16px; background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.asset-btn.empty { padding: 11px 14px 11px 18px; }
.asset-btn.empty .sym { font-size: 15px; }
.asset-btn.empty .chain { display: none; }
.asset-btn.empty .chain, .asset-btn.empty .caret { color: rgba(4,17,31,.7); }
.amount-in { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; font-family: var(--f-display); font-size: 40px; font-weight: 500; letter-spacing: -.02em; text-align: right; outline: none; font-variant-numeric: tabular-nums; padding: 0; color: var(--ink); }
.amount-in::placeholder { color: var(--surface-3); }
.amount-in.err { color: var(--danger); }
.leg-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); min-height: 20px; font-variant-numeric: tabular-nums; }
.max-btn { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(80,210,193,.5); color: var(--accent); background: transparent; cursor: pointer; }
.max-btn:hover { background: rgba(80,210,193,.1); }

.flow { height: 8px; position: relative; z-index: 2; }
.flow-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); box-shadow: 0 0 0 6px var(--surface); }
.flow-badge svg { width: 16px; height: 16px; }
.flow.busy .flow-badge { color: var(--accent); border-color: rgba(80,210,193,.5); }
.flow.busy .flow-badge svg { animation: nudge 1s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(3px); opacity: 1; } }

.leg-to.ready { border-color: rgba(80,210,193,.28); background: linear-gradient(180deg, rgba(80,210,193,.05), transparent 60%), var(--surface-2); }
.dest { display: flex; align-items: center; gap: 12px; }
.dest-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(140deg, rgba(80,210,193,.25), rgba(80,210,193,.12)); border: 1px solid rgba(80,210,193,.3); display: grid; place-items: center; flex-shrink: 0; }
.dest-mark svg { width: 22px; height: 22px; }
.dest-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.chip { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip.fixed { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-3); background: transparent; border: 1px solid var(--line-2); }
.est { margin-left: auto; text-align: right; flex-shrink: 0; }
.est-v { font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.est-min { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.est-v.skel, .skel-line { color: transparent; border-radius: 8px; background: linear-gradient(90deg, var(--skel) 0%, var(--surface-3) 50%, var(--skel) 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.est-v.skel { min-width: 110px; display: inline-block; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.est-v.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(5px); opacity: .3; } to { transform: none; opacity: 1; } }

.addr-sec { padding: 18px 12px 4px; }
.field-label { font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.input { width: 100%; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-family: var(--f-mono); font-size: 14px; outline: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: rgba(80,210,193,.6); box-shadow: 0 0 0 4px rgba(80,210,193,.08); }
.input.bad { border-color: var(--danger); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 84px; }
.input-tools { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; align-items: center; }
.input-ok { color: var(--accent); display: inline-flex; }
.paste-btn { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink-2); cursor: pointer; }
.paste-btn:hover { color: var(--ink); }
.help { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.caution { font-size: 13px; color: var(--warn); background: var(--warn-soft); border: 1px solid rgba(242,184,102,.16); border-radius: var(--r-sm); padding: 9px 12px; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.caution svg { flex-shrink: 0; margin-top: 3px; }
.addr-show { font-family: var(--f-mono); font-size: 14px; letter-spacing: .02em; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); display: flex; flex-wrap: wrap; gap: 2px 9px; }
.addr-show span { white-space: nowrap; }
.addr-show i { font-style: normal; color: var(--ink-2); }
.addr-show b { font-weight: 600; color: var(--accent); }
.confirm { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.confirm input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; border-radius: 6px; border: 1.5px solid var(--ink-3); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.confirm input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.confirm input:checked { background: var(--accent); border-color: var(--accent); }
.confirm input:checked::after { opacity: 1; }
.confirm.checked { border-color: rgba(80,210,193,.5); background: rgba(80,210,193,.06); }
.confirm:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.subfield { margin-top: 16px; }
.refund-auto { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.refund-auto svg { color: var(--accent); flex-shrink: 0; }
.refund-auto .mono { color: var(--ink); }

.fees { margin: 12px 4px 0; border-top: 1px solid var(--line); }
.fees-sum { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 10px; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-2); border-radius: 10px; text-align: left; }
.fees-sum:hover { background: rgba(255,255,255,.02); }
.fees-sum .r { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.fees-sum svg { transition: transform .2s var(--ease); }
.fees[data-open="true"] .fees-sum svg { transform: rotate(180deg); }
.fees .details { margin: 0 10px 8px; display: none; }
.fees[data-open="true"] .details { display: block; }
.details { font-size: 13px; }
.details .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.details .row dt { color: var(--ink-3); flex-shrink: 0; }
.details .row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.fresh { font-size: 11.5px; color: var(--ink-3); }
.tag-note { font-size: 11px; color: var(--warn); border: 1px solid rgba(242,184,102,.45); border-radius: 5px; padding: 0 5px; margin-left: 6px; white-space: nowrap; font-weight: 500; }
.src { font-size: 11.5px; color: var(--ink-3); }

.cta-zone { padding: 2px 4px 6px; background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.cta-hint { text-align: center; font-size: 13px; color: var(--ink-2); min-height: 20px; margin: 8px 0 10px; }
.cta-hint.err { color: var(--danger); }
.btn-primary { width: 100%; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; background: var(--grad); color: var(--accent-ink); font-size: 17px; font-weight: 600; letter-spacing: .02em; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 30px -10px rgba(80,210,193,.55); transition: filter .15s, transform .1s, box-shadow .15s; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 36px -10px rgba(80,210,193,.7); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: var(--surface-3); color: var(--ink-3); box-shadow: none; cursor: not-allowed; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-3); cursor: pointer; font-size: 14px; color: var(--ink); white-space: nowrap; }
.btn-ghost:hover { border-color: var(--ink-3); }
.footnote { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.footnote svg { color: var(--accent); flex-shrink: 0; }

/* how / facts / faq */
.sec-title { font-size: 22px; text-align: center; margin-bottom: 24px; }
.how { padding-block: 64px 24px; }
.how-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1040px; position: relative; }
.how-steps::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(80,210,193,.6)); }
.how-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.how-steps i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 600; color: var(--ink-2); margin-bottom: 8px; position: relative; }
.how-steps li.goal i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(80,210,193,.12); }
.how-steps b { font-size: 15px; }
.how-steps span { font-size: 13px; color: var(--ink-2); max-width: 22em; }
.facts { margin: 48px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.015); overflow: hidden; }
.facts > div { padding: 26px 24px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts b { font-family: var(--f-display); font-size: 38px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts b small { font-size: 15px; letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.facts span { font-size: 13px; color: var(--ink-2); }
.facts-src { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.faq { padding-top: 72px; max-width: 1040px; margin: 0 auto; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 2px; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 300; font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { font-size: 14px; color: var(--ink-2); padding: 0 2px 18px; }

.site-foot { border-top: 1px solid var(--line); }
.site-foot-in { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- wallet menu / chooser / popup ---------- */
.wallet-wrap { position: relative; flex-shrink: 0; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 4px; z-index: 30; animation: drop-in .16s var(--ease); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wm-acct { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); display: grid; gap: 2px; }
.wm-acct .k { font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }
.wm-acct .mono { font-size: 12px; word-break: break-all; }
.wm-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 14px; text-align: left; color: var(--ink); }
.wm-item:hover { background: var(--surface-3); }
.wm-item.danger { color: var(--danger); }

.wallet-options { padding: 10px; display: grid; gap: 6px; }
.wopt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.wopt:hover:not(:disabled) { border-color: rgba(80,210,193,.5); background: var(--surface-3); }
.wopt:disabled { opacity: .5; cursor: not-allowed; }
.wopt .wi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.wopt b { display: block; font-size: 15px; font-weight: 600; }
.wopt small { font-size: 12px; color: var(--ink-3); }
.wopt .st { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.wopt .st.ok { background: var(--accent-soft); color: var(--accent); }

.modal.modal-pop { place-items: start end; padding: 76px 24px 24px; background: rgba(0, 0, 0, .45); }
.wpop { width: min(360px, 100%); background: #F6F7FC; color: #12132A; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); overflow: hidden; animation: sheet-in .22s var(--ease); font-size: 14px; }
.wpop-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #E8EAF5; font-size: 12px; color: #4E5378; }
.wpop-top b { color: #12132A; font-weight: 600; }
.wpop-sim { font-size: 11px; color: #8A5300; background: #FBEFD8; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.wpop-body { padding: 18px 18px 6px; display: grid; gap: 14px; }
.wpop-origin { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: #ECEEF8; width: fit-content; font-size: 13px; color: #3A3F66; }
.wpop-origin svg { width: 18px; height: 18px; color: #12132A; }
.wpop h3 { font-size: 19px; color: #12132A; }
.wpop-rows { border: 1px solid #DCDFF0; border-radius: 12px; overflow: hidden; }
.wpop-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid #E4E7F3; font-size: 13px; }
.wpop-rows div:first-child { border-top: 0; }
.wpop-rows span { color: #5E6388; flex-shrink: 0; }
.wpop-rows b { font-weight: 500; text-align: right; word-break: break-all; font-family: var(--f-mono); font-size: 12.5px; color: #12132A; }
.wpop-note { font-size: 12px; color: #5E6388; }
.wpop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px 18px; }
.wpop-actions button { height: 44px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 14px; }
.wpop-no { border: 1px solid #C9CDE6; background: #fff; color: #12132A; }
.wpop-yes { border: 0; background: #12132A; color: #fff; }
.wpop-yes:hover { background: #26284A; }

/* toasts */
.toast-zone { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast { pointer-events: auto; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink); padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: toast-in .22s var(--ease); }
.toast svg { color: var(--accent); flex-shrink: 0; }
.toast.err { border-color: rgba(255,142,127,.4); color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* records drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.drawer-panel { width: min(420px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--line-2); padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; animation: slide-in .24s var(--ease); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 20px; }
.drawer-tools { display: flex; gap: 6px; align-items: center; }
.drawer-sub { font-size: 13px; color: var(--ink-3); margin: 4px 0 16px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn.busy svg { animation: spin .8s linear infinite; }
.records { display: grid; gap: 8px; }
.rec { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; text-align: left; cursor: pointer; color: var(--ink); transition: border-color .15s; }
.rec:hover { border-color: var(--line-2); }
.rec .st { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); align-self: center; }
.rec .st.ok { background: var(--accent-soft); color: var(--accent); }
.rec .st.bad { background: var(--danger-soft); color: var(--danger); }
.empty { font-size: 13px; color: var(--ink-3); padding: 24px 0; text-align: center; }

/* ---------- order tracking ---------- */
.order { padding: 24px; animation: pop .3s var(--ease); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.order-head h2 { font-size: 22px; }
.order-meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; margin-top: 4px; }
.order-meta .copy-id { display: inline-flex; gap: 5px; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); font-family: var(--f-mono); font-size: 12px; }
.order-meta .copy-id:hover { color: var(--ink); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 22px; }
.prog i { height: 4px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.prog i.done { background: var(--grad); }
.prog i.active::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 999px; animation: slide 1.4s var(--ease) infinite; }
.prog i.fail { background: var(--danger); }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--surface-3); border-radius: 2px; }
.step.done:not(:last-child)::after { background: rgba(80,210,193,.5); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--ink-3); font-size: 13px; font-weight: 600; position: relative; }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop .3s var(--ease); }
.step.active .step-dot { border-color: var(--accent); color: var(--accent); }
.step.active .step-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.6s ease-out infinite; }
.step.fail .step-dot { border-color: var(--danger); color: var(--danger); }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.step-title { font-weight: 600; line-height: 32px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.step:not(.done):not(.active) .step-title { color: var(--ink-3); }
.step-time { font-size: 12px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.step-body { font-size: 13px; color: var(--ink-2); display: grid; gap: 10px; }
.step:not(.active) .step-body .only-active { display: none; }
.deposit-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 12px; color: var(--ink); }
.deposit-grid { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: start; }
.qr { width: 136px; height: 136px; padding: 9px; background: #fff; border-radius: 12px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-cap { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.kv { display: grid; gap: 3px; }
.kv .k { font-size: 12px; color: var(--ink-3); }
.kv .v { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.kv .v .mono { word-break: break-all; font-size: 14px; }
.copy { flex-shrink: 0; display: inline-flex; gap: 4px; align-items: center; font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.copy:hover { border-color: var(--ink-3); }
.copy.ok { border-color: var(--accent); color: var(--accent); }
.inline-row { display: flex; gap: 8px; }
.inline-row .input { flex: 1; min-width: 0; }
.notice { font-size: 13px; border-radius: var(--r-sm); padding: 11px 14px; background: var(--surface-2); color: var(--ink-2); margin-bottom: 16px; }
.notice.bad { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,142,127,.2); }
.order-actions { margin-top: 6px; display: grid; gap: 10px; }
.order-actions .cta-hint { margin: 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 4px auto 14px; animation: pop .4s var(--ease); box-shadow: 0 0 0 10px rgba(80,210,193,.1), 0 0 60px rgba(80,210,193,.4); }
.done-mark svg { width: 30px; height: 30px; }
.done-sum { text-align: center; margin-bottom: 24px; }
.done-sum b { font-family: var(--f-display); font-size: 34px; font-weight: 500; letter-spacing: -.02em; display: block; font-variant-numeric: tabular-nums; }
.demo-flag { font-size: 12px; color: var(--warn); background: var(--warn-soft); border: 1px solid rgba(242,184,102,.16); padding: 7px 12px; border-radius: 10px; margin-bottom: 16px; }
.leave-note { font-size: 12px; color: var(--ink-3); text-align: center; }
.demo-act { justify-self: start; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px dashed rgba(242,184,102,.6); background: transparent; color: var(--warn); cursor: pointer; }
.demo-act:hover { background: rgba(242,184,102,.08); }

/* ---------- picker ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); }
.sheet { width: min(480px, 100%); max-height: min(660px, 90vh); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 40px 100px -30px rgba(0,0,0,.9); border: 1px solid var(--line-2); overflow: hidden; animation: sheet-in .2s var(--ease); }
.sheet-sm { width: min(420px, 100%); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.sheet-head { padding: 18px 18px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.sheet-head .top { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h3 { font-size: 18px; }
.x { border: 0; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink-3); padding: 4px 6px; border-radius: 8px; }
.x:hover { color: var(--ink); background: var(--surface-3); }
.search { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); outline: none; width: 100%; color: var(--ink); }
.search::placeholder { color: var(--ink-3); }
.search:focus { border-color: rgba(80,210,193,.6); }
.chain-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chain-chips button { flex-shrink: 0; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--ink-2); }
.chain-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.coin-list { overflow-y: auto; padding: 6px; flex: 1; }
.coin { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; color: var(--ink); }
.coin.kbd { background: var(--surface-3); }
.coin .nm { font-weight: 600; }
.coin.sel .nm::after { content: "已选"; margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--accent); }
.coin .full { font-size: 12px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .meta { text-align: right; font-size: 12px; color: var(--ink-2); }
.coin .pay { display: block; }
.coin mark { background: rgba(80,210,193,.22); color: inherit; border-radius: 3px; padding: 0 1px; }
.pay-tag { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: var(--ink-3); margin-top: 3px; }
.pay-tag.direct { background: var(--accent-soft); color: var(--accent); }
.coin .bal-r { display: block; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; position: relative; flex-shrink: 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.av.sm { font-size: 10px; letter-spacing: -.02em; }
.av img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.asset-btn .av { width: 32px; height: 32px; font-size: 11px; }
.list-note { font-size: 12px; color: var(--ink-3); padding: 8px 12px; }
.group-l { font-size: 12px; color: var(--ink-3); padding: 12px 12px 4px; }
.recent { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 6px 4px; }
.recent-l { font-size: 12px; color: var(--ink-3); width: 100%; padding-left: 6px; }
.recent button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 13px; color: var(--ink); }
.recent button .av { width: 24px; height: 24px; font-size: 9px; }
.recent button small { color: var(--ink-3); }

/* ---------- content pages ---------- */
.page-hero { padding-block: 64px 40px; display: grid; gap: 18px; }
.page-hero > * { min-width: 0; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 24ch; letter-spacing: -.03em; }
.page-hero p.lead { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-solid { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: var(--grad); color: var(--accent-ink); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; background: rgba(255,255,255,.02); }
.btn-line:hover { border-color: var(--ink-3); }
section.block { padding-block: 44px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
section.block > * { min-width: 0; }
section.block > h2 { font-size: 26px; }
section.block > p.sub { color: var(--ink-2); max-width: 64ch; margin-top: -10px; }
.prose { max-width: 68ch; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.term { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.term dt { font-weight: 600; margin-bottom: 6px; }
.term dd { margin: 0; font-size: 14px; color: var(--ink-2); }
.compare-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.compare-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.compare-toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); font-weight: 500; }
.diagram-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; overflow-x: auto; }
.diagram-wrap svg { display: block; width: 100%; min-width: 640px; height: auto; }
.diagram-caption { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); align-items: center; }
.diagram-caption b { color: var(--ink); font-variant-numeric: tabular-nums; }
.d-node rect { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.d-node.wallet rect { fill: var(--surface-3); }
.d-node.api rect { fill: var(--accent-soft); stroke: var(--accent); }
.d-node.goal rect { stroke: var(--accent); stroke-width: 2; }
.d-node.out rect { fill: var(--warn-soft); stroke: var(--warn); stroke-dasharray: 5 4; }
.d-node text { fill: var(--ink); font-family: var(--f-body); font-size: 14px; }
.d-node text.s { fill: var(--ink-2); font-size: 12px; }
.d-edge { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.d-edge.hot { stroke: var(--accent); stroke-width: 2.2; }
.d-zone { fill: none; stroke: var(--ink-3); stroke-dasharray: 4 5; stroke-width: 1.2; }
.d-zone-l { fill: var(--ink-3); font-size: 12px; font-family: var(--f-body); }
.d-zone-out { fill: var(--warn); font-size: 12px; font-family: var(--f-body); }
.d-x { stroke: var(--danger); stroke-width: 2.4; stroke-linecap: round; }
.d-token { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(80,210,193,.8)); }
.d-step { fill: var(--ink-3); font-size: 11px; font-family: var(--f-mono); }
.isnot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.isnot > div { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.isnot .yes { border-color: rgba(80,210,193,.3); }
.isnot h3 { font-size: 16px; margin-bottom: 10px; }
.isnot ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.isnot .yes h3 { color: var(--accent); }
.isnot .no h3 { color: var(--ink-2); }
.untouched { display: flex; flex-wrap: wrap; gap: 8px; }
.untouched span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.howto li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; font-family: var(--f-display); }
.howto b { display: block; }
.howto span { color: var(--ink-2); font-size: 14px; }
pre.code { margin: 0; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: var(--ink); }
.code .c { color: var(--ink-3); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact > div { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.contact h3 { font-size: 16px; }

.brand-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-block: 56px 40px; }
.brand-name { font-family: var(--f-display); font-size: clamp(64px, 10vw, 120px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.brand-name small { font-family: var(--f-body); font-size: .4em; font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-left: .3em; }
.pron { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.why { display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.why b { color: var(--ink); }
.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logo-tile { border-radius: var(--r-md); border: 1px solid var(--line); padding: 28px 20px; display: grid; place-items: center; min-height: 170px; position: relative; }
.logo-tile.light { background: #F4F7FB; }
.logo-tile.dark { background: #030405; }
.logo-tile img { max-height: 76px; }
.logo-tile .cap { position: absolute; left: 14px; bottom: 10px; font-size: 11px; font-family: var(--f-mono); }
.logo-tile.light .cap { color: #5E6388; }
.logo-tile.dark .cap { color: #A5A9CF; }
.icon-row { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; padding: 28px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.icon-row figure { margin: 0; display: grid; gap: 8px; justify-items: center; font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 76px; }
.swatch div { padding: 10px 12px; font-size: 13px; }
.swatch code { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.statement { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; max-width: 34ch; font-weight: 400; }
.type-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.type-spec > div { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.type-spec .big { font-size: 32px; line-height: 1.2; margin-bottom: 6px; }

.arch-svg { width: 100%; min-width: 760px; height: auto; display: block; }
.arch-svg .box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.5; }
.arch-svg .box.us { fill: var(--accent-soft); stroke: var(--accent); }
.arch-svg .box.ext { fill: var(--surface-3); }
.arch-svg text { fill: var(--ink); font-family: var(--f-body); font-size: 13px; }
.arch-svg text.s { fill: var(--ink-2); font-size: 11.5px; }
.arch-svg text.t { font-weight: 600; font-size: 14px; }
.arch-svg .ln { stroke: var(--ink-3); stroke-width: 1.4; fill: none; }
.arch-svg .ln.hot { stroke: var(--accent); stroke-width: 2; }
.arch-svg .lbl { fill: var(--ink-2); font-size: 11px; font-family: var(--f-mono); }
.arch-svg .zone { fill: none; stroke: var(--ink-3); stroke-dasharray: 4 5; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 500; color: var(--ink-3); font-size: 13px; background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-family: var(--f-mono); font-size: 12.5px; color: var(--accent); }
.risks { display: grid; gap: 10px; }
.risk { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.risk .lv { font-size: 12px; padding: 2px 9px; border-radius: 999px; align-self: start; white-space: nowrap; }
.risk .lv.hi { background: var(--danger-soft); color: var(--danger); }
.risk .lv.md { background: var(--warn-soft); color: var(--warn); }
.risk .lv.lo { background: var(--surface-3); color: var(--ink-2); }
.risk b { display: block; }
.risk span { color: var(--ink-2); font-size: 14px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.principles > div { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.principles b { display: block; margin-bottom: 6px; }
.principles span { font-size: 14px; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { justify-content: flex-start; }
  .ghost-pill span { display: none; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .how-steps::before { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .brand-hero { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .brand span { display: none; }
  .top-actions { margin-left: auto; }
  .demo-toggle span { display: none; }
  .demo-banner-in { padding: 8px 16px; flex-wrap: wrap; }
  .wrap { padding-inline: 16px; padding-block: 0 56px; }
  .swap-hero { padding-block: 36px 24px; gap: 14px; }
  .swap-hero > p { font-size: 15px; }
  .chain-strip button:nth-of-type(n+4):not([data-quick-chain="全部"]) { display: none; }
  .amount-in { font-size: 32px; }
  .est-v { font-size: 24px; }
  .cta-zone { position: sticky; bottom: 0; z-index: 5; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -16px 24px -16px rgba(0,0,0,.8); }
  .deposit-grid { grid-template-columns: 1fr; justify-items: start; }
  .how { padding-top: 48px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; column-gap: 14px; }
  .how-steps li i { grid-row: span 2; margin: 0; }
  .facts > div { padding: 20px 16px; }
  .facts b { font-size: 30px; }
  .faq-grid { grid-template-columns: 1fr; }
  .isnot, .logo-grid { grid-template-columns: 1fr; }
  .order { padding: 18px; }
  .modal.modal-pop { place-items: end center; padding: 16px; }
  .wallet-menu { position: fixed; left: 16px; right: 16px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 64px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 680px) { .swap-hero > p br { display: none; } }

/* ===== v4: wide two-column task card, violet-blue system ===== */
.swap-hero { padding-block: 52px 30px; gap: 16px; }
.swap-hero h1 { font-size: clamp(30px, 4.4vw, 52px); }
.stage-glow { width: min(1100px, 100%); height: 560px; background: radial-gradient(closest-side, rgba(80,210,193,.22), rgba(80,210,193,.08) 55%, transparent); }
#swapRoot.is-form { max-width: 980px; }
#swapRoot.is-order { max-width: 620px; }
.swap-card { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0; padding: 10px; }
.swap-left { display: grid; align-content: start; }
.swap-right { padding: 14px 16px 8px 26px; display: flex; flex-direction: column; min-width: 0; }
.leg { padding: 22px 22px 20px; }
.leg-label { font-size: 13px; }
.amount-in { font-size: 46px; }
.est-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.est-row .est-v { font-size: 34px; }
.leg-to.ready { border-color: rgba(80,210,193,.35); background: linear-gradient(180deg, rgba(80,210,193,.08), transparent 70%), var(--surface-2); }
.dest-mark { background: linear-gradient(140deg, rgba(80,210,193,.35), rgba(80,210,193,.18)); border-color: rgba(80,210,193,.4); }
.addr-block { display: grid; }
.addr-show { font-size: 12.5px; letter-spacing: 0; gap: 2px 6px; }
.addr-empty { display: flex; gap: 10px; align-items: center; padding: 16px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; }
.addr-empty svg { color: var(--accent); flex-shrink: 0; }
.warn-inline { display: inline-flex; gap: 5px; align-items: center; color: var(--warn); margin-left: 2px; }
.warn-inline svg { flex-shrink: 0; }
.help { line-height: 1.7; }
.fees { margin: 14px 0 0; border-top: 1px solid var(--line); }
.fees-sum { padding: 13px 2px; }
.fees .details { margin: 0 2px 10px; }
.cta-zone { margin-top: auto; padding: 8px 0 6px; background: transparent; border-radius: 0; }
.cta-hint { margin: 10px 0 2px; font-size: 12.5px; color: var(--ink-3); }
.btn-primary { height: 60px; border-radius: 16px; color: var(--accent-ink); text-shadow: none; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 34px -12px rgba(80,210,193,.7); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -12px rgba(80,210,193,.85); }
.asset-btn.empty { color: var(--accent-ink); }
.confirm input::after { border-color: var(--accent-ink); }
.confirm input:checked { background: var(--accent); }
.step.done .step-dot, .done-mark, .how-steps li.goal i { background: var(--grad); border-color: transparent; }
.done-mark { box-shadow: 0 0 0 10px rgba(80,210,193,.12), 0 0 70px rgba(80,210,193,.5); }
.wallet-chip { color: var(--accent); }
.eyebrow-pill i { background: var(--accent); }
.tbl code { color: var(--accent); }
@media (max-width: 860px) {
  #swapRoot.is-form { max-width: 520px; }
  .swap-card { grid-template-columns: minmax(0, 1fr); }
  .swap-right { padding: 18px 10px 4px; }
  .amount-in { font-size: 36px; }
  .est-row .est-v { font-size: 28px; }
}
@media (max-width: 680px) {
  .cta-zone { position: static; margin: 6px 0 0; padding: 8px 0 4px; box-shadow: none; background: transparent; }
}

/* ===== v5: pale-blue accent, deeper black, material texture ===== */
body { background:
    radial-gradient(1100px 520px at 50% -180px, rgba(80,210,193,.09), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(80,210,193,.05), transparent 70%),
    var(--bg); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.topbar, main, .site-foot, .demo-banner { position: relative; z-index: 1; }
.topbar { z-index: 20; }
.stage-glow { background: radial-gradient(closest-side, rgba(80,210,193,.13), rgba(80,210,193,.04) 55%, transparent); }
.card { background:
    linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.012) 18%, rgba(255,255,255,0) 40%),
    var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px rgba(0,0,0,.6), 0 40px 90px -30px rgba(0,0,0,.95); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(190,255,245,.18), rgba(255,255,255,.03) 35%, rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card { position: relative; }
.leg { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--surface-2); border-color: rgba(255,255,255,.04); }
.leg-to.ready { border-color: rgba(80,210,193,.3); background: linear-gradient(180deg, rgba(80,210,193,.07), transparent 70%), var(--surface-2); }
.dest-mark { background: linear-gradient(140deg, rgba(80,210,193,.25), rgba(80,210,193,.08)); border-color: rgba(80,210,193,.35); }
.input, .addr-show, .search { background: #050608; }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 -1px 0 rgba(0,0,0,.2) inset, 0 14px 34px -14px rgba(80,210,193,.6); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 18px 40px -14px rgba(80,210,193,.75); }
.btn-primary:disabled { background: var(--surface-3); color: var(--ink-3); }
.done-mark { box-shadow: 0 0 0 10px rgba(80,210,193,.1), 0 0 70px rgba(80,210,193,.4); }
.how-steps::before { background: linear-gradient(90deg, var(--line-2), rgba(80,210,193,.55)); }
.facts, .term, .isnot > div, .contact > div, .risk, .principles > div, .type-spec > div, .swatch, .icon-row, .diagram-wrap, .tbl-wrap, .rec, .wopt { border-color: rgba(255,255,255,.06); }
.sheet, .drawer-panel, .wallet-menu { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 30%), var(--surface); border-color: rgba(255,255,255,.08); }

/* ===== v6: single-purpose deposit homepage (HyperLiquid green accent) ===== */
.swap-hero { padding-block: 56px 26px; gap: 14px; }
.swap-hero h1 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -.03em; }
.swap-hero > p { max-width: 40em; font-size: 16.5px; }
.demo-banner-in { padding-block: 6px; font-size: 12.5px; }

/* chain coverage band */
.chain-band-wrap { position: relative; max-width: 1080px; margin: 0 auto 30px; }
.chain-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 4px 2px; }
.cb-item { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .15s, transform .12s, background .15s; }
.cb-item:hover { border-color: rgba(80,210,193,.55); transform: translateY(-1px); }
.cb-item .ic { width: 26px; height: 26px; }
.cb-item.hot { border-color: rgba(80,210,193,.6); box-shadow: 0 0 0 3px rgba(80,210,193,.08), 0 8px 24px -12px rgba(80,210,193,.5); }
.cb-badge { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 10px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); letter-spacing: .02em; }
.cb-more { border-style: dashed; color: var(--ink-2); padding-left: 15px; }
.cb-plus { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--accent); }

/* icons */
.ic { position: relative; display: inline-grid; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--surface-2); }
.ic-chain { border-radius: 9px; }
.ic-xs { width: 16px; height: 16px; }
.ic-sm { width: 22px; height: 22px; }
.ic-md, .ic-lg { width: 38px; height: 38px; }
.hl-logo { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* deposit card */
#swapRoot.is-form { max-width: 500px; }
#swapRoot.is-order { max-width: 600px; }
.dep-card { padding: 24px; display: grid; gap: 20px; }
.f-sec { display: grid; gap: 8px; }
.f-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.f-label label { color: var(--ink-2); }
.f-label .bal { font-weight: 400; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.asset-sel { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 66px; border-radius: 16px; border: 1px solid var(--line-2); background: #050608; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s; }
.asset-sel:hover { border-color: rgba(80,210,193,.5); }
.asset-sel .as-txt { display: grid; min-width: 0; flex: 1; }
.asset-sel .as-txt b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.asset-sel .as-txt small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-sel .chev { color: var(--ink-3); flex-shrink: 0; }
.asset-sel.empty { border-style: dashed; border-color: rgba(80,210,193,.45); }
.asset-sel.empty .as-txt b { color: var(--accent); }
.as-empty-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.chain-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.amt-box { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: #050608; transition: border-color .15s, box-shadow .15s; }
.amt-box:focus-within { border-color: rgba(80,210,193,.6); box-shadow: 0 0 0 4px rgba(80,210,193,.08); }
.amt-box .amount-in { font-size: 38px; text-align: left; }
.amt-sym { font-size: 15px; color: var(--ink-3); font-weight: 500; flex-shrink: 0; }
.est-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 2px 0; }
.est-l { font-size: 13px; color: var(--ink-2); }
.est-r { display: inline-flex; align-items: baseline; gap: 6px; }
.est-line .est-v { font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.est-line .est-v.muted-v { color: var(--ink-3); }
.est-u { font-size: 13px; color: var(--ink-2); }
.est-r .tag-note { align-self: center; }
.meta-line { font-size: 12px; color: var(--ink-3); padding: 0 2px; font-variant-numeric: tabular-nums; }
.f-addr .help { margin-top: 0; font-size: 12.5px; }
.warn-line { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--warn); }
.warn-line svg { flex-shrink: 0; }
.dest-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.dep-card .btn-primary { height: 58px; font-size: 18px; letter-spacing: .04em; margin-top: -4px; }
.dep-card .cta-hint { margin: -10px 0 0; }

/* order view: HyperLiquid logo next to the destination step */
.t-hl { display: inline-flex; align-items: center; gap: 7px; }

/* picker */
.sheet-picker { width: min(600px, 100%); max-height: min(760px, 92vh); }
.picker-body { overflow-y: auto; flex: 1; display: grid; align-content: start; }
.chain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 14px 16px 6px; }
.cg-item { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px 9px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 12px; cursor: pointer; text-align: center; line-height: 1.25; }
.cg-item:hover { color: var(--ink); border-color: var(--ink-3); }
.cg-item[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: rgba(80,210,193,.08); }
.cg-item.hot { border-color: rgba(80,210,193,.5); }
.cg-item .cb-badge { top: -7px; right: -4px; }
.cg-all { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--surface-3); color: var(--ink); }
.cg-more { border-style: dashed; }
.cg-more .cb-plus { font-size: 15px; line-height: 22px; }
.recent-row { padding: 8px 16px 2px; display: grid; gap: 6px; min-width: 0; }
.recent-row .recent-l { font-size: 12px; color: var(--ink-3); padding: 0; width: auto; }
.recent-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.recent-scroll button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 13px; cursor: pointer; }
.recent-scroll small { color: var(--ink-3); font-size: 11px; }
.coin-list { padding: 8px 8px 12px; overflow: visible; }
.crow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.crow:hover, .crow:focus-visible { background: var(--surface-2); }
.crow.open { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(80,210,193,.35); }
.crow-t { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.crow-t b { font-size: 15px; }
.crow-t span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; }
.cbadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 11.5px; cursor: pointer; }
.cbadge:hover { border-color: var(--accent); color: var(--ink); }
.cbadge.sel { border-color: var(--accent); color: var(--accent); }
.crow.open .cbadge { padding: 4px 10px 4px 4px; font-size: 12.5px; border-color: rgba(80,210,193,.4); color: var(--ink); }
.pick-net { font-size: 12px; color: var(--accent); margin-right: 2px; }
.crow-n { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* confirm dialog */
.sheet-confirm { width: min(460px, 100%); max-height: min(720px, 94vh); }
.cf-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.cf-head h3 { font-size: 19px; }
.cf-body { padding: 8px 20px 4px; display: grid; gap: 14px; overflow-y: auto; }
.cf-rows { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.cf-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.cf-rows > div:first-child { border-top: 0; }
.cf-rows span { color: var(--ink-3); flex-shrink: 0; }
.cf-rows b { font-weight: 500; text-align: right; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cf-target { display: grid; gap: 8px; }
.cf-tl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cf-sec { display: grid; gap: 8px; }
.cf-sec .help { margin-top: 0; font-size: 12.5px; }
.cf-body .confirm { margin-top: 0; }
.cf-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.cf-foot { padding: 12px 20px 20px; display: grid; gap: 8px; }
.cf-foot .cta-hint { margin: 0; }

@media (max-width: 680px) {
  .swap-hero { padding-block: 32px 18px; }
  .swap-hero h1 { font-size: 30px; }
  .swap-hero > p { font-size: 14.5px; }
  .chain-band-wrap { margin: 0 -16px 22px; }
  .chain-band { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
  .chain-band::-webkit-scrollbar { display: none; }
  .cb-item { flex-shrink: 0; }
  .dep-card { padding: 18px; gap: 18px; }
  .amt-box .amount-in { font-size: 30px; }
  .chain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
  .modal.modal-confirm { padding: 0; place-items: stretch; }
  .modal-confirm .sheet-confirm { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .modal-confirm .cf-body { flex: 1; }
  .modal-confirm .cf-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
  .modal { padding: 0; place-items: end stretch; }
  .sheet-picker { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chain-band-wrap { max-width: 1200px; }
.chain-band { gap: 8px; }
.cb-item { padding: 7px 13px 7px 7px; gap: 8px; font-size: 13.5px; }
.cb-item .ic { width: 24px; height: 24px; }
.chain-grid.all { max-height: 248px; overflow-y: auto; }
.cg-item { padding: 9px 6px 8px; }
.chain-band { gap: 6px; }
.cb-item { padding: 6px 11px 6px 6px; gap: 7px; }

/* ===== v7: hero breathing room, HL badge, asset-first picker ===== */
.swap-hero { padding-block: 112px 28px; gap: 16px; }
.hl-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.hl-badge img { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.chain-band-wrap { margin-bottom: 34px; }

.max-btn:disabled { border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; background: transparent; }
.tag-note.xs { font-size: 10px; padding: 0 4px; margin-left: 5px; border-radius: 4px; vertical-align: 1px; }

/* chain filter: one scrollable row of compact chips */
.chip-bar-wrap { position: relative; margin: 0 -18px; }
.chip-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 18px 4px; scroll-padding-inline: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
.chip-bar::-webkit-scrollbar { display: none; }
.chip-f { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.chip-f:hover { color: var(--ink); border-color: var(--ink-3); }
.chip-f.hot { color: var(--ink); }
.chip-f[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: rgba(80,210,193,.1); }
.fire { font-size: 11px; line-height: 1; }
.filter-tag { display: flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 4px 3px 11px; border-radius: 999px; background: rgba(80,210,193,.1); border: 1px solid rgba(80,210,193,.35); font-size: 12.5px; color: var(--ink-2); }
.filter-tag b { color: var(--ink); font-weight: 600; }
.ft-x { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.ft-x:hover { background: rgba(255,255,255,.08); color: var(--ink); }

/* recent: quiet single row */
.recent-row { padding: 10px 16px 0; display: flex; align-items: center; gap: 10px; }
.recent-row .recent-l { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; }
.recent-scroll { gap: 5px; min-width: 0; flex: 1; }
.recent-scroll button { padding: 2px 9px 2px 3px; font-size: 12px; gap: 5px; border-color: var(--line); background: transparent; color: var(--ink-2); }
.recent-scroll button:hover { color: var(--ink); border-color: var(--line-2); }
.recent-scroll small { font-size: 10.5px; }

/* asset list */
.coin-list { padding: 6px 8px 14px; }
.cgroup { border-radius: 14px; }
.cgroup.open { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(80,210,193,.3); margin: 4px 0; }
.crow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.crow:hover, .crow:focus-visible { background: var(--surface-2); }
.cgroup.open .crow:hover { background: transparent; }
.crow.sel { box-shadow: inset 0 0 0 1px rgba(80,210,193,.45); }
.crow-main { display: grid; min-width: 0; }
.crow-main b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.crow-main small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-r { display: grid; justify-items: end; gap: 2px; }
.crow-bal { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.crow-more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--accent); }
.crow-more svg { transform: rotate(-90deg); transition: transform .2s var(--ease); }
.cgroup.open .crow-more svg { transform: rotate(0deg); }
.csubs { display: grid; padding: 0 8px 8px 58px; gap: 2px; }
.csub { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font-size: 13.5px; text-align: left; cursor: pointer; }
.csub:hover, .csub:focus-visible { background: rgba(80,210,193,.08); }
.csub.sel { background: rgba(80,210,193,.12); }
.csub .crow-bal { font-size: 13px; color: var(--ink-2); }
.coin-list mark { background: rgba(80,210,193,.22); color: inherit; border-radius: 3px; padding: 0 1px; }

@media (max-width: 680px) {
  .swap-hero { padding-block: 64px 20px; }
  .hl-badge { font-size: 13px; }
  .modal.modal-picker { padding: 0; place-items: stretch; }
  .modal-picker .sheet-picker { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .chip-bar-wrap { margin: 0 -18px; }
  .csubs { padding-left: 50px; }
}
.sheet-head > * { min-width: 0; }
.hl-badge { gap: 10px; padding: 6px 18px 6px 6px; font-size: 16px; font-weight: 600; }
.hl-badge img { width: 36px; height: 36px; }
@media (max-width: 680px) { .hl-badge { font-size: 14.5px; padding: 5px 14px 5px 5px; } .hl-badge img { width: 30px; height: 30px; } }

/* ===== v8: roomier hero + picker, network second-level view, scrollable chip bar ===== */
.swap-hero { padding-block: 120px 40px; gap: 22px; }
.hl-badge { gap: 12px; padding: 7px 22px 7px 7px; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.hl-badge img { width: 52px; height: 52px; }
.swap-hero h1 { margin-top: 4px; }
.swap-hero > p { margin-top: -4px; }
.chain-band-wrap { margin-bottom: 44px; }
.chain-band { gap: 10px; }
.cb-item { padding: 8px 15px 8px 8px; gap: 9px; }
.dep-card { padding: 28px; gap: 24px; }

/* picker shell */
.sheet-picker { width: min(520px, 100%); max-height: min(780px, 92vh); position: relative; }
.pv { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pv-net { animation: pv-in .2s var(--ease); }
.pv-assets:not([hidden]) { animation: pv-back .18s var(--ease); }
@keyframes pv-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pv-back { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.sheet-picker .sheet-head { padding: 20px 20px 14px; gap: 14px; }
.sheet-picker .search { height: 46px; }

/* chip bar with edge arrows */
.chip-bar-wrap { position: relative; margin: 0 -20px; }
.chip-bar { gap: 8px; padding: 2px 20px 4px; scroll-padding-inline: 20px; cursor: grab; user-select: none; }
.chip-bar.dragging { cursor: grabbing; }
.chip-bar.dragging .chip-f { pointer-events: none; }
.chip-bar-wrap.at-start .chip-bar { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); }
.chip-bar-wrap.at-end .chip-bar { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 100%); }
.chip-bar-wrap:not(.at-start):not(.at-end) .chip-bar { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.chip-f { height: 32px; padding: 0 14px; font-size: 13px; }
.chip-nav { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.chip-nav:hover { border-color: var(--accent); }
.chip-nav.prev { left: 10px; } .chip-nav.prev svg { transform: rotate(90deg); }
.chip-nav.next { right: 10px; } .chip-nav.next svg { transform: rotate(-90deg); }
.filter-tag { margin-top: -2px; }

/* asset list: more air */
.picker-body { padding-bottom: 8px; }
.recent-row { padding: 14px 20px 4px; gap: 12px; }
.recent-scroll { gap: 8px; }
.recent-scroll button { padding: 3px 11px 3px 4px; }
.coin-list { padding: 8px 10px 16px; display: grid; gap: 2px; }
.list-note { padding: 8px 12px 6px; }
.crow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 13px 12px; border-radius: 14px; }
.crow .ic-md { width: 40px; height: 40px; }
.crow-main { gap: 2px; }
.crow-main b { font-size: 15.5px; }
.crow-main small { font-size: 12.5px; }
.crow-r { gap: 4px; }
.crow-more { gap: 3px; padding: 2px 4px 2px 8px; border-radius: 999px; background: rgba(80,210,193,.08); }
.crow-more svg { transform: rotate(-90deg); }

/* network second-level view */
.net-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; padding: 18px 16px 10px; }
.net-head h3 { font-size: 17px; text-align: center; }
.net-head .icon-btn svg { transform: rotate(90deg); }
.net-asset { display: flex; align-items: center; gap: 12px; margin: 6px 20px 0; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.net-asset b { display: block; font-size: 16px; }
.net-asset small { font-size: 12.5px; color: var(--ink-3); }
.net-tip { display: flex; gap: 7px; align-items: flex-start; margin: 14px 22px 6px; font-size: 12.5px; color: var(--warn); line-height: 1.6; }
.net-tip svg { flex-shrink: 0; margin-top: 3px; }
.net-list { overflow-y: auto; padding: 6px 10px 18px; display: grid; gap: 2px; }
.net-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 12px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.net-row .ic-md { width: 40px; height: 40px; }
.net-row:hover, .net-row:focus-visible { background: var(--surface-2); }
.net-row.sel { box-shadow: inset 0 0 0 1px rgba(80,210,193,.5); }
.net-main b { display: block; font-size: 15px; }
.net-main small { font-size: 12px; color: var(--ink-3); }
.net-r { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.net-r svg { transform: rotate(-90deg); }

@media (max-width: 680px) {
  .swap-hero { padding-block: 72px 24px; gap: 16px; }
  .hl-badge { font-size: 16px; padding: 6px 16px 6px 6px; }
  .hl-badge img { width: 42px; height: 42px; }
  .chain-band-wrap { margin-bottom: 28px; }
  .dep-card { padding: 20px; gap: 20px; }
  .chip-nav { display: none !important; }
  .sheet-picker .sheet-head { padding: 16px 16px 12px; }
  .chip-bar-wrap { margin: 0 -16px; }
  .chip-bar { padding-inline: 16px; }
}
.chip-bar-wrap:not(.at-start) .chip-bar { padding-left: 48px; scroll-padding-left: 48px; }
.chip-bar-wrap:not(.at-end) .chip-bar { padding-right: 48px; }
@media (max-width: 680px) { .chip-bar-wrap:not(.at-start) .chip-bar, .chip-bar-wrap:not(.at-end) .chip-bar { padding-inline: 16px; } }
.page-hero h1 em { font-style: normal; color: var(--accent); }

/* ===== v10: picker = network column + asset list (desktop), chips + "更多" network screen (phone) ===== */
/* dark, thin scrollbars everywhere (no white system bars) */
* { scrollbar-width: thin; scrollbar-color: #2B313D transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2B313D; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3A4250; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

.sheet-picker { width: min(800px, 100%); height: min(680px, 90vh); max-height: none; }
.pv { min-height: 0; }
.pv-assets .sheet-head { border-bottom: 0; padding: 20px 22px 16px; }
.picker-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); }
.chain-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.cs-head { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; padding: 14px 16px 8px; }
.cs-search { padding: 0 12px 8px; }
.cs-search input { width: 100%; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #050608; color: var(--ink); font-size: 13px; outline: none; }
.cs-search input:focus { border-color: rgba(80,210,193,.6); }
.cs-list { flex: 1; overflow-y: auto; padding: 2px 8px 14px; display: grid; gap: 2px; align-content: start; }
.cs-item, .ch-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 13.5px; text-align: left; cursor: pointer; }
.cs-item:hover, .ch-item:hover { background: var(--surface-2); color: var(--ink); }
.cs-item[aria-pressed="true"], .ch-item[aria-pressed="true"] { background: rgba(80,210,193,.1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(80,210,193,.45); }
.cs-item.hot, .ch-item.hot { color: var(--ink); }
.cs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-all { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--ink); flex-shrink: 0; }
.picker-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.picker-right .picker-body { flex: 1; min-height: 0; overflow-y: auto; }
.chip-row, .picker-right .filter-tag { display: none !important; }
.recent-row { padding: 14px 18px 4px; }

/* phone */
.ch-search { padding: 4px 16px 10px; }
.ch-list { flex: 1; overflow-y: auto; padding: 4px 10px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 2px; align-content: start; }
.ch-item { padding: 13px 12px; font-size: 15px; gap: 12px; }
.ch-item .ic-sm, .ch-item .cs-all { width: 28px; height: 28px; }
.chip-more { color: var(--accent); border-color: rgba(80,210,193,.4); gap: 4px; }
.chip-more svg { transform: rotate(-90deg); }
@media (max-width: 720px) {
  .modal.modal-picker { padding: 0; place-items: stretch; }
  .modal-picker .sheet-picker { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
  .pv-assets .sheet-head { padding: 16px 16px 12px; }
  .picker-main { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .chain-side { display: none; }
  .chip-row { display: flex !important; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 12px; border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row .chip-f { flex-shrink: 0; }
  .picker-right .filter-tag:not([hidden]) { display: flex !important; margin: 10px 16px 0; }
  .recent-row { padding: 12px 16px 2px; }
  .coin-list { padding: 6px 6px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .net-list { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  .chip-row { -webkit-mask-image: none; mask-image: none; padding-right: 0; }
  .chip-row .chip-more { position: sticky; right: 0; z-index: 1; margin-left: auto; height: 32px; padding: 0 14px 0 12px; border-radius: 999px 0 0 999px; border-right: 0;
    background: var(--surface); box-shadow: -18px 0 14px -4px var(--surface); }
}
@media (max-width: 360px) { .search { font-size: 13px; padding-inline: 12px; } }

/* ===================== v11: inline HL logo, address block, marquee, error state ===================== */
.hl-badge, .chain-band-wrap { display: none !important; }
.hl-inline { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; vertical-align: baseline; }
.hl-inline img { width: .92em; height: .92em; border-radius: 50%; border: 1px solid rgba(80,210,193,.28); box-shadow: 0 0 0 4px rgba(80,210,193,.05), 0 0 26px -4px rgba(80,210,193,.45); transform: translateY(.06em); flex-shrink: 0; }

/* address block inside the card */
.lbl-hl { display: inline-flex; align-items: center; gap: 7px; }
.lbl-hl .hl-logo { width: 16px; height: 16px; border-radius: 50%; }
.addr-ro { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); }
.addr-copy { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: 15px; text-align: left; }
.addr-copy .mono { font-family: var(--f-mono); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.addr-copy svg { color: var(--ink-3); flex-shrink: 0; }
.addr-copy:hover svg { color: var(--accent); }
.addr-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.pay-req { margin-top: 6px; }
.f-addr .confirm { margin-top: 14px; }
.btn-ghost.sm { padding: 6px 12px; font-size: 13px; margin-left: auto; }
.input.sm { padding: 9px 12px; font-size: 13px; }

/* backend unreachable */
.err-card { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 44px 28px; }
.err-card h2 { font-size: 20px; font-weight: 600; }
.err-card .muted { max-width: 42ch; font-size: 14px; word-break: break-word; }
.err-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.err-card .btn-primary { width: auto; min-width: 140px; margin-top: 6px; }

/* txid: de-emphasised */
.txid-mini { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.txid-mini summary { cursor: pointer; list-style: none; display: inline-block; }
.txid-mini summary::-webkit-details-marker { display: none; }
.txid-mini summary:hover { color: var(--ink-2); }
.txid-mini .inline-row { display: flex; gap: 8px; margin-top: 8px; }
.txid-mini .input { flex: 1; min-width: 0; }

/* chain marquee */
.marquee { position: relative; overflow: hidden; margin: 56px auto 8px; max-width: 1080px; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq var(--mq-dur, 60s) linear infinite; }
.mq-half { display: flex; gap: 10px; padding-right: 10px; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track, .marquee.paused .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; white-space: nowrap; cursor: pointer; opacity: .45; transition: opacity .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.mq-item:hover, .mq-item:focus-visible { opacity: 1; color: var(--ink); border-color: rgba(80,210,193,.4); }
.mq-more { padding-left: 14px; }
.mq-more b { color: var(--accent); font-weight: 600; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mq-half[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
  .marquee { margin-top: 36px; }
  .mq-item { font-size: 12px; padding: 6px 12px 6px 7px; }
  .addr-ro { padding: 11px 12px; }
  .addr-copy { font-size: 14px; }
  .err-card { padding: 34px 20px; }
}
@media (max-width: 640px) {
  .swap-hero h1 .hl-inline { display: flex; justify-content: center; margin-top: 4px; }
}
/* v11.1: fill the viewport so the footer sits at the bottom instead of leaving a blank band below it */
main.wrap { min-height: calc(100vh - 64px - 68px); min-height: calc(100dvh - 64px - 68px); display: flex; flex-direction: column; }
main.wrap > .page:not([hidden]) { flex: 1 0 auto; }
#page-swap:not([hidden]) { display: flex; flex-direction: column; }
#page-swap .marquee { margin-top: auto; padding-top: 56px; margin-bottom: 0; }
@media (max-width: 640px) { #page-swap .marquee { padding-top: 36px; } }
.btn-primary.nudge { animation: nudge .5s var(--ease); }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#page-swap > * { min-width: 0; } #page-swap .marquee { width: 100%; max-width: 1080px; align-self: center; }
#page-swap:not([hidden]) { justify-content: center; }
#page-swap .marquee { margin-top: 56px; padding-top: 8px; }
@media (max-width: 640px) { #page-swap .marquee { margin-top: 36px; padding-top: 8px; } }
main.wrap { overflow: clip; }
.swap-hero { padding-block: 64px 36px; }
@media (max-width: 640px) { .swap-hero { padding-block: 40px 20px; } }
/* v11.2: marquee pinned to the bottom of the page, just above the footer */
#page-swap:not([hidden]) { justify-content: flex-start; }
#page-swap .marquee { margin-top: auto; padding-top: 56px; margin-bottom: 0; }
main.wrap:has(#page-swap:not([hidden])) { padding-bottom: 28px; }
.swap-hero { padding-block: 88px 36px; }
@media (max-width: 640px) {
  #page-swap .marquee { padding-top: 36px; }
  main.wrap:has(#page-swap:not([hidden])) { padding-bottom: 20px; }
  .swap-hero { padding-block: 40px 20px; }
}
.sandbox-bar { text-align: center; font-size: 12.5px; padding: 8px 16px; color: var(--warn); background: var(--warn-soft); border-bottom: 1px solid rgba(242,184,102,.18); }
.prog { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* ===================== v12: wallet chooser ===================== */
.sheet-wallet { width: min(440px, 100%); max-height: min(720px, 92vh); }
.wp-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-wallet .wallet-options { padding: 6px 14px 16px; display: block; overflow-y: auto; flex: 1; min-height: 0; }
.wgroup { padding-top: 12px; }
.wgroup + .wgroup { margin-top: 6px; border-top: 1px solid var(--line); }
.wg-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; flex-wrap: wrap; }
.wg-head b { font-size: 13px; font-weight: 600; color: var(--ink); }
.wg-head span { font-size: 12px; color: var(--ink-3); }
.wopt { width: 100%; text-decoration: none; margin-bottom: 6px; grid-template-columns: 40px minmax(0, 1fr) auto; background: var(--surface-2); }
.wopt .wi { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; background: var(--surface-3); }
.wopt .wi img { width: 40px; height: 40px; display: block; object-fit: cover; }
.wi-gen { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); }
.wopt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wopt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wopt .wr { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.wopt .st { display: inline-flex; align-items: center; gap: 4px; }
.wopt .chev-r { transform: rotate(-90deg); color: var(--ink-3); }
.wopt.installed, .wopt.connected { border-color: rgba(80,210,193,.28); }
.wopt.installed:hover { border-color: rgba(80,210,193,.6); background: #0f1d1b; }
.wopt.connected { background: #0c1a18; cursor: default; }
.wopt.missing { opacity: .6; border-style: dashed; }
.wopt.missing .wi img { filter: grayscale(.85); }
.wopt.missing:hover { opacity: .9; border-color: var(--ink-3); }
.wopt .st.get { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.wopt.disabled, .wopt:disabled { opacity: .45; cursor: not-allowed; }
.wopt.disabled .wi img { filter: grayscale(1); }
.wopt.disabled small { color: var(--warn); }
.back-btn { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.back-btn svg { transform: rotate(90deg); }
.back-btn:hover { color: var(--ink); background: var(--surface-3); }
#wpWc .sheet-head .top { gap: 8px; }
#wpWc .sheet-head h3 { flex: 1; }
.wc-body { padding: 8px 20px 22px; display: grid; justify-items: center; gap: 12px; overflow-y: auto; }
.wc-qr { background: #fff; padding: 14px; border-radius: 16px; width: 248px; max-width: 100%; }
.wc-qr svg { display: block; width: 100%; height: auto; }
.wc-tip { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.wc-tip.sm { font-size: 12px; color: var(--ink-3); }
.wc-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.wc-app { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; text-decoration: none; text-align: center; }
.wc-app img { border-radius: 10px; }
.wc-app:hover { border-color: rgba(80,210,193,.5); color: var(--ink); }
.wc-loading { display: flex; gap: 10px; align-items: center; padding: 60px 0; color: var(--ink-2); font-size: 14px; }
.wc-err { color: var(--danger); font-size: 14px; text-align: center; margin: 30px 0 4px; }
.wm-acct .k { display: inline-flex; align-items: center; }
.wm-acct .k img { border-radius: 4px; margin-right: 6px; }

/* H5: full-screen wallet chooser */
@media (max-width: 640px) {
  .modal-wallet { padding: 0; place-items: stretch; }
  .modal-wallet .sheet-wallet { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-wallet .sheet-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
.wallet-chip .dot.has-ic { width: 18px; height: 18px; background: none; box-shadow: none; border-radius: 5px; overflow: hidden; } .wallet-chip .dot.has-ic img { width: 18px; height: 18px; display: block; }
.ic-chain, .ic-chain img { border-radius: 50%; }

/* ===================== v13: my deposits list + order detail ===================== */
.drawer-panel { width: min(460px, 100%); }
.dv[hidden] { display: none !important; }
#dvDetail .drawer-head { gap: 8px; }
#dvDetail .drawer-head h3 { flex: 1; font-size: 18px; }
.records { display: grid; gap: 8px; }
.rec { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic main right" "ic date right"; align-items: center; gap: 2px 12px; padding: 13px 14px; }
.rec:hover { border-color: rgba(80,210,193,.35); background: var(--surface-3); }
.rec > .ic { grid-area: ic; }
.rec-main { grid-area: main; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rec-main b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.rec-chain { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-date { grid-area: date; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rec-right { grid-area: right; display: grid; justify-items: end; gap: 4px; }
.rec-right small { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill-done { background: var(--accent-soft); color: var(--accent); }
.pill-run, .pill-action { background: rgba(80,210,193,.06); color: #9fe9df; border-color: rgba(80,210,193,.25); }
.pill-run::before, .pill-action::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: breathe 1.6s ease-in-out infinite; }
.pill-pending { background: var(--warn-soft); color: var(--warn); }
.pill-fail { background: var(--danger-soft); color: var(--danger); }
.rec-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 12px; color: var(--ink-2); font-size: 14px; }
.rec-empty p { margin: 0; }
.rec-empty-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rec-skel { height: 66px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2), var(--skel), var(--surface-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

.od-loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 80px 0; color: var(--ink-2); font-size: 14px; }
.od-status { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 8px 22px; }
.od-status h3 { font-size: 22px; font-weight: 600; margin: 6px 0 0; }
.od-status p { margin: 0; font-size: 13.5px; color: var(--ink-2); max-width: 34ch; line-height: 1.6; }
.od-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.st-done .od-ic { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px rgba(80,210,193,.1), 0 0 40px -6px rgba(80,210,193,.6); }
.st-fail .od-ic { background: var(--danger-soft); color: var(--danger); box-shadow: 0 0 0 8px rgba(255,142,142,.06); }
.st-fail h3 { color: var(--danger); }
.st-pending .od-ic { background: var(--warn-soft); color: var(--warn); }
.st-run .od-ic, .st-action .od-ic { background: rgba(80,210,193,.08); }
.od-pulse { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; }
.od-pulse::before, .od-pulse::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(80,210,193,.5); animation: od-ring 2s ease-out infinite; }
.od-pulse::after { animation-delay: 1s; }
@keyframes od-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes breathe { 50% { opacity: .35; } }

.od-flow { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); align-items: stretch; gap: 6px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); }
.of-side { display: grid; gap: 6px; align-content: start; min-width: 0; }
.of-k { font-size: 12px; color: var(--ink-3); }
.of-amt { display: flex; align-items: center; gap: 7px; min-width: 0; }
.of-amt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-amt .hl-logo { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.of-chain { font-size: 12px; color: var(--ink-2); }
.of-addr { display: grid; gap: 3px; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.of-arrow { display: grid; place-items: center; color: var(--ink-3); }
.of-arrow svg { transform: rotate(-90deg); }
.cp { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink-2); border-radius: 8px; padding: 3px 8px; font: 12px var(--f-mono); cursor: pointer; max-width: 100%; justify-self: start; }
.cp:hover { color: var(--ink); border-color: var(--ink-3); }
.cp svg { flex-shrink: 0; }
.od-info { margin: 14px 0 0; display: grid; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.od-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.od-row + .od-row { border-top: 1px solid var(--line); }
.od-row dt { color: var(--ink-3); white-space: nowrap; }
.od-row dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-align: right; flex-wrap: wrap; justify-content: flex-end; }
.tx-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-size: 13px; }
.tx-link:hover { text-decoration: underline; }
.od-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--ink-3); margin: 14px 2px 0; }
.od-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; animation: breathe 1.6s ease-in-out infinite; }
#odBody .btn-primary { width: 100%; margin-top: 16px; }
.od-support { display: flex; justify-content: center; width: 100%; margin-top: 16px; text-decoration: none; }
@media (max-width: 640px) {
  .drawer-panel { width: 100%; border-left: 0; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .od-flow { grid-template-columns: minmax(0, 1fr); }
  .of-arrow { height: 18px; }
  .of-arrow svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .od-pulse::before, .od-pulse::after, .pill-run::before, .od-live { animation: none; } }
.of-none { color: var(--ink-3); font-weight: 500 !important; }
.wsub { font-size: 11.5px; color: var(--ink-3); padding: 6px 4px 6px; letter-spacing: .02em; }
.wnone { margin: 0 0 6px; padding: 12px; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); text-align: center; }
.wc-apps { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }

/* v13.1: full, grouped address with highlighted head/tail */
.pa { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .55em; row-gap: 2px; font-family: var(--f-mono); font-size: 14px; letter-spacing: .02em; color: var(--ink-2); word-break: break-all; }
.pa-hl { color: var(--accent); font-weight: 600; }
.pa-g { color: var(--ink-2); }
.addr-copy { align-items: center; }
.addr-copy .pa { flex: 1; min-width: 0; }
.addr-pretty { display: block; width: 100%; text-align: left; cursor: text; padding: 12px 84px 12px 14px; min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); line-height: 1.55; }
.addr-pretty:hover { border-color: var(--ink-3); }
.addr-pretty[hidden] { display: none !important; }
.input.as-pretty { display: none; }
.input-wrap:has(.addr-pretty:not([hidden])) .input-tools { top: 24px; }
@media (max-width: 640px) { .pa { font-size: 13px; column-gap: .45em; } .addr-pretty { padding-right: 78px; } }
.f-addr .f-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.f-addr .f-label .linkish { font-size: 13px; flex-shrink: 0; }
.pa { font-size: 13.5px; column-gap: .42em; letter-spacing: 0; }
.addr-pretty { padding-right: 44px; }
.input-wrap:has(.addr-pretty:not([hidden])) .paste-btn { display: none; }
@media (max-width: 640px) { .pa { font-size: 13px; } .addr-pretty { padding-right: 40px; } }
.pa { font-size: 13px; column-gap: .34em; }
/* no paste button: only the ✓ remains on the right */
#destInput { padding-right: 40px; }
#destInput::placeholder, #destEditInput::placeholder { font-family: var(--f-body); color: var(--ink-3); }

/* v15: wallet picker chain tabs */
.wp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 2px -2px 0; padding: 2px; }
.wp-tabs::-webkit-scrollbar { display: none; }
.wp-tab { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.wp-tab:hover { color: var(--ink); border-color: var(--ink-3); }
.wp-tab.on { color: var(--ink); border-color: rgba(80,210,193,.55); background: var(--accent-soft); }
.wp-tab .ic { width: 16px; height: 16px; }
.wp-tabs { flex-wrap: wrap; overflow: visible; }
.od-fee dd { flex-direction: column; align-items: flex-end; gap: 2px; } .od-fee dd span { white-space: nowrap; }

/* ===== v1.5: language switch + info tooltips ===== */
.lang-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font: 600 12.5px/1 var(--f-body); letter-spacing: .02em; }
.lang-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tip-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 0 0 3px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: help; vertical-align: -4px; }
.tip-i:hover, .tip-i:focus-visible { color: var(--accent); outline: none; }
.fee-k { display: inline-flex; align-items: center; }
.od-fee dt { display: inline-flex; align-items: center; }
.tip-float { position: fixed; z-index: 200; max-width: min(300px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; background: #1B1F27; border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgba(0,0,0,.55); color: var(--ink-2); font-size: 12px; line-height: 1.55; pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.tip-float b { color: var(--ink); font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.tip-float::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: #1B1F27; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tip-float.below::after { bottom: auto; top: -5px; border: 0; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.tip-float[hidden] { display: none; }
:root[lang="en"] .coin.sel .nm::after { content: "Selected"; }
@media (max-width: 680px) { .lang-btn { min-width: 38px; height: 32px; padding: 0 9px; } }
:root[lang="en"] .d-node text { font-size: 13px; letter-spacing: -.01em; }
:root[lang="en"] .d-node text.s { font-size: 11px; }
:root[lang="en"] .arch-svg text.t { font-size: 12.5px; letter-spacing: -.01em; }
:root[lang="en"] .arch-svg text.s { font-size: 10.5px; }
@media (max-width: 420px) {
  .topbar-in { gap: 8px; }
  .top-actions { gap: 6px; }
  .wallet-chip { padding-inline: 11px; }
  .top-actions .ghost-pill { padding-inline: 10px; }
  .brand b { font-size: 18px; }
}

/* ===== v1.6: success page actions ===== */
.done-actions { display: flex; gap: 10px; align-items: stretch; }
.done-actions[hidden] { display: none; }
.done-actions .btn-trade { flex: 2 1 0; width: auto; text-decoration: none; }
.done-actions .btn-again { flex: 1 1 0; height: auto; min-height: 58px; padding: 0 18px; border-radius: 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); background: transparent; }
.done-actions .btn-again:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 680px) {
  .done-actions { flex-direction: column; }
  .done-actions .btn-trade, .done-actions .btn-again { flex: none; width: 100%; }
  .done-actions .btn-again { min-height: 50px; }
}
#odBody .btn-trade { text-decoration: none; }
