:root {
  --bg: #000;
  --surface: #0d0d0e;
  --surface-2: #161618;
  --line: #242427;
  --text: #f6f6f7;
  --muted: #86868e;
  --pink: #ff37c7;
  --pink-hover: #ff5fd3;
  --pink-soft: #ff7ed9;
  --bad: #ff6b6b;
  --warn: #f5b84a;
  --ok: #7ee0a1;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ui: var(--sans);
  --r-box: 24px;
  --r-card: 18px;
  --r-btn: 20px;
  --r-pill: 999px;
  --r-sm: 12px;
}

/* ───────── token page: terminal / classified look ───────── */
html[data-mode="token"] {
  --ui: var(--mono);
  --line: #2b1b26;
  --surface: #09070a;
  --surface-2: #130d12;
  --muted: #8a7f87;
  --r-box: 4px;
  --r-card: 4px;
  --r-btn: 3px;
  --r-pill: 3px;
  --r-sm: 3px;
}

* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.45 var(--ui);
  background: #000; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
/* hide until the mode is decided, so the wrong page never flashes */
html:not([data-mode]) main, html:not([data-mode]) .nav { visibility: hidden; }
.mono, code { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
html[data-mode="product"] [data-show="token"] { display: none !important; }
html[data-mode="token"] [data-show="product"] { display: none !important; }

/* film grain (product) / scanlines + vignette (token) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html[data-mode="token"] body::before { display: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
}
html[data-mode="token"] body::after { opacity: 1; }

/* product: dark-glass bubbles that light up around the cursor */
.orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 38%), #000 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 100%);
  mask-image: radial-gradient(circle 300px at var(--mx, 50%) var(--my, 38%), #000 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 100%);
}
html[data-mode="token"] .orbs { display: none; }
.orb { position: absolute; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(var(--dx, 24px), var(--dy, -30px), 0) scale(1.06); }
}

/* token: hex rain */
.rain { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .32; display: none; }
html[data-mode="token"] .rain { display: block; }

/* mode-change overlay */
.enter {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #000; pointer-events: none; opacity: 0;
}
.enter span { color: var(--pink); font-size: clamp(15px, 3.4vw, 26px); letter-spacing: .32em; text-shadow: 0 0 18px rgba(255, 55, 199, .7); }
.enter.go { animation: enterflash var(--enter-ms, 720ms) steps(1, end) forwards; }
.enter.go span { animation: glitchtxt .18s steps(2, end) 4; }
@keyframes enterflash {
  0%, 68% { opacity: 1; } 84% { opacity: .45; } 100% { opacity: 0; }
}
@keyframes glitchtxt {
  0% { transform: translateX(0); } 50% { transform: translateX(-4px); clip-path: inset(0 0 45% 0); } 100% { transform: translateX(3px); }
}

/* header */
.nav {
  position: relative; z-index: 5; display: grid; grid-template-columns: 1fr minmax(220px, 320px) 1fr;
  align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid transparent;
}
html[data-mode="token"] .nav { border-bottom-color: rgba(255, 55, 199, .22); background: rgba(0, 0, 0, .55); }
.nav-l { display: flex; align-items: center; gap: 22px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-weight: 650; font-size: 18px; white-space: nowrap; }
html[data-mode="token"] .brand span { letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.nav nav { display: flex; gap: 4px; }
.navlink {
  background: none; border: 0; color: var(--muted); font: 500 16px var(--ui);
  padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer;
}
html[data-mode="token"] .navlink { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.navlink:hover, .navlink.on { color: var(--text); }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 42px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(10, 10, 11, .75); backdrop-filter: blur(6px);
}
.search:focus-within { border-color: #4a4a50; }
html[data-mode="token"] .search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255, 55, 199, .35); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 14px var(--mono); }
.search input::placeholder { color: var(--muted); font-family: var(--ui); }
.search kbd { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; background: var(--surface); }
.nav-r { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(10, 10, 11, .75); }
.seg button { background: none; border: 0; color: var(--muted); font: 500 13px var(--ui); padding: 6px 13px; border-radius: var(--r-pill); cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); }
html[data-mode="token"] .seg button.on { background: rgba(255, 55, 199, .16); color: var(--pink); }
.connect {
  height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 55, 199, .14); color: var(--pink); font: 600 14px var(--ui);
}
.connect:hover { background: rgba(255, 55, 199, .26); }
.connect.on { background: var(--surface-2); color: var(--text); font-family: var(--mono); font-size: 13px; padding-left: 14px; }
.connect.on::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-right: 9px; vertical-align: -4px; background: conic-gradient(#b6ff3b, #3be07a, #b6ff3b); }

.sess {
  display: none; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid rgba(255, 55, 199, .45);
  border-radius: 3px; color: var(--pink); font-size: 11.5px; letter-spacing: .14em; white-space: nowrap;
}
html[data-mode="token"] .sess { display: inline-flex; }
.sess i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: blink 1.1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* layout */
main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 34px 16px 80px; }
.hero { display: flex; flex-direction: column; align-items: center; }
#bars { width: 440px; max-width: 100%; height: auto; aspect-ratio: 440 / 130; margin-bottom: 6px; }
h1 {
  margin: 0 0 28px; text-align: center; font: 500 clamp(36px, 6.2vw, 66px)/1.04 var(--sans);
  letter-spacing: -0.025em; white-space: pre-line;
}
html[data-mode="token"] h1 {
  font: 600 clamp(18px, 3.2vw, 30px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px;
}
html[data-mode="token"] h1::after { content: "▌"; color: var(--pink); margin-left: .25em; animation: blink 1s steps(2, end) infinite; }
.sub { margin: -10px 0 26px; color: var(--muted); font-size: 13px; text-align: center; letter-spacing: .04em; }
.stage { width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
html[data-mode="token"] .stage { max-width: 980px; }
html[data-mode="token"] .tokeninfo { flex: 1 1 0; min-width: 0; }

/* huge glitching ticker (token) */
.tk-ticker {
  position: relative; font-weight: 800; font-size: clamp(84px, 17vw, 200px); line-height: .88; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--pink); text-shadow: 0 0 40px rgba(255, 55, 199, .35);
  user-select: none; margin-bottom: 4px;
}
.tk-ticker::before, .tk-ticker::after {
  content: attr(data-glitch); position: absolute; inset: 0; -webkit-text-stroke: 1.5px; overflow: hidden;
}
.tk-ticker::before { color: transparent; -webkit-text-stroke-color: #4ee3ff; transform: translateX(-3px); clip-path: inset(0 0 62% 0); animation: gl1 3.6s steps(1, end) infinite; }
.tk-ticker::after { color: transparent; -webkit-text-stroke-color: #fff; transform: translateX(3px); clip-path: inset(58% 0 0 0); animation: gl2 4.4s steps(1, end) infinite; }
@keyframes gl1 { 0%, 86%, 100% { opacity: 0; } 87% { opacity: .9; transform: translateX(-6px); clip-path: inset(10% 0 55% 0); } 90% { opacity: .9; transform: translateX(4px); clip-path: inset(48% 0 20% 0); } 93% { opacity: 0; } }
@keyframes gl2 { 0%, 70%, 100% { opacity: 0; } 71% { opacity: .8; transform: translateX(5px); clip-path: inset(62% 0 8% 0); } 74% { opacity: .8; transform: translateX(-4px); clip-path: inset(22% 0 52% 0); } 77% { opacity: 0; } }

/* product chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -8px 0 30px; }
.chips-row span {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: #c9c9cf; background: rgba(8, 8, 9, .7);
}
.chips-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* card */
.card { position: relative; width: 100%; max-width: 464px; flex: 0 0 auto; }
html[data-mode="token"] .card::before, html[data-mode="token"] .card::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2; border: 2px solid var(--pink);
}
html[data-mode="token"] .card::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
html[data-mode="token"] .card::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.gear {
  position: absolute; top: -34px; right: 4px; background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 4px; border-radius: 8px; display: grid; place-items: center;
}
.gear:hover { color: var(--text); }
.settings {
  display: grid; gap: 8px; margin: 0 0 10px; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); font-size: 13px; color: var(--muted);
}
.settings label { display: flex; justify-content: space-between; align-items: center; }
.settings input {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text);
  text-align: right; font: 13px var(--mono); outline: none; padding: 2px 0;
}

.box { border-radius: var(--r-box); padding: 16px 18px 14px; min-height: 118px; }
.box.sell { background: rgba(6, 6, 7, .88); border: 1px solid var(--line); }
.box.buy { background: var(--surface); border: 1px solid #19191c; }
html[data-mode="token"] .box.buy { border-color: rgba(255, 55, 199, .3); }
.lbl { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
html[data-mode="token"] .lbl { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.big {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text);
  font: 500 40px/1.2 var(--ui); padding: 0;
}
.big::placeholder { color: #55555c; }
.dim { color: #55555c; }
.addr { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 14px var(--mono); padding: 10px 0; }
.addr::placeholder { color: #55555c; font-family: var(--ui); }
.tokpill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill); font-weight: 600; font-size: 16px; white-space: nowrap;
}
.coin { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #4c6fff; font-size: 15px; }
.pickpill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 16px; border: 0;
  border-radius: var(--r-pill); background: var(--pink); color: #fff; font: 600 16px var(--ui); cursor: pointer; white-space: nowrap;
}
.pickpill:hover { background: var(--pink-hover); }
.pickpill.chosen { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
html[data-mode="token"] .pickpill.chosen { border-color: rgba(255, 55, 199, .5); color: var(--pink); }
.pickpill.chosen:hover { background: #222226; }
.pickpill:disabled { cursor: default; }
.subrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13px; min-height: 26px; }

.flipwrap { position: relative; height: 0; z-index: 2; }
.flip {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  background: #000; border: 4px solid #000; outline: 1px solid var(--line); border-radius: 14px; color: var(--text);
}
html[data-mode="token"] .flip { border-radius: 3px; outline-color: rgba(255, 55, 199, .45); color: var(--pink); }
.box.buy { margin-top: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #0a0a0b; color: var(--text); font: 12px var(--ui); cursor: pointer;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.danger i { background: var(--bad); } .chip.danger { border-color: #5a2a2a; }
.chip.warning i { background: var(--warn); } .chip.warning { border-color: #5a4a22; }
.chip.noflags i { background: var(--ok); } .chip.noflags { border-color: #25503a; }

.stealth-row { display: flex; align-items: center; gap: 14px; margin: 14px 4px 6px; }
.stealth-row b { display: block; font-size: 14px; font-weight: 600; }
.stealth-row small { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #2e2e33; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--pink); box-shadow: 0 0 14px rgba(255, 55, 199, .55); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
html[data-mode="token"] .switch span, html[data-mode="token"] .switch span::after { border-radius: 3px; }

.keys { margin: 4px 4px 0; padding: 10px 14px; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 118px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 12px; color: var(--muted); }
.kv code { color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order .kv { grid-template-columns: 118px 1fr; }
.mini { background: #1f1f23; color: var(--text); border: 0; border-radius: 8px; padding: 4px 9px; font: 12px var(--ui); cursor: pointer; }
.mini:hover { background: #2a2a2f; }
html[data-mode="token"] .mini { border-radius: 3px; }

/* addresses stay blurred until hover / focus: shoulder-surfing guard */
.reveal { filter: blur(5px); transition: filter .18s; cursor: pointer; outline: none; }
.reveal:hover, .reveal:focus { filter: none; }

.cta {
  display: block; width: 100%; height: 56px; margin-top: 10px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  background: var(--pink); color: #fff; font: 600 17px var(--ui); transition: background .15s, box-shadow .15s;
  box-shadow: 0 0 26px rgba(255, 55, 199, .35); animation: pulse 2.6s ease-in-out infinite;
}
html[data-mode="token"] .cta { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.cta:hover:not(:disabled) { background: var(--pink-hover); box-shadow: 0 0 40px rgba(255, 55, 199, .6); }
.cta:disabled { background: var(--surface-2); color: #6d6d74; cursor: not-allowed; box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 44px rgba(255, 55, 199, .55); } }
.note { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: #14110a; border: 1px solid #4a3b18; color: var(--warn); font-size: 12.5px; }
.note.bad { background: #160c0c; border-color: #5a2a2a; color: var(--bad); }

/* exposure list */
.expo { list-style: none; margin: 12px 4px 0; padding: 0; display: grid; gap: 0; font-size: 12.5px; }
.expo li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #1c1c1f; color: var(--muted); }
.expo li:last-child { border-bottom: 0; }
.expo em { font-style: normal; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.expo em::before { content: "● "; }
.expo .vis { color: var(--warn); }
.expo .hid { color: var(--ok); }

.order { margin-top: 12px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--r-card); background: rgba(6, 6, 7, .7); }
.order-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.muted-sm { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.blurb { max-width: 420px; margin: 26px 0 0; text-align: center; color: #b2b2b9; font-size: 16px; line-height: 1.5; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* scan results */
.scan-out { margin-top: 12px; }
.scan-sum { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-list li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; font-size: 13.5px; padding: 9px 12px; background: var(--surface); border-radius: var(--r-sm); border: 1px solid #19191c; }
.scan-list li i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.scan-list li.high i { background: var(--bad); } .scan-list li.medium i { background: var(--warn); }
.scan-list li.low i { background: #6ea8ff; }
.scan-list small { display: block; color: var(--muted); font-size: 11px; }
.scan-src { margin-top: 10px; font-size: 11.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.scan-src .ok { color: var(--ok); } .scan-src .no { color: var(--bad); }
.scan-disc { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* token page: dossier */
.tokeninfo {
  padding: 20px 22px; background: rgba(5, 4, 6, .82); border: 1px solid rgba(255, 55, 199, .28);
  border-radius: var(--r-card); backdrop-filter: blur(6px);
}
.tk-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tk-coin { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #fff, #cfcfd6); color: #111; font: 700 20px var(--sans); }
html[data-mode="token"] .tk-coin { border-radius: 3px; }
img.tk-coin { display: block; object-fit: cover; background: #000; border: 1px solid var(--line); }
.xlink { color: var(--pink-soft); border-bottom: 1px solid rgba(255, 126, 217, .35); }
.xlink:hover { color: #fff; border-bottom-color: #fff; }
.tk-name { font-weight: 600; font-size: 18px; line-height: 1.1; }
.tk-sym { color: var(--muted); font-size: 12.5px; }
.tk-badge { margin-left: auto; padding: 3px 10px; border: 1px solid #4a3b18; background: #14110a; color: var(--warn); border-radius: var(--r-pill); font-size: 12px; }
.facts { margin: 0 0 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #261a22; font-size: 13.5px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
html[data-mode="token"] .facts dt::before { content: "> "; color: var(--pink); }
.facts dd { margin: 0; text-align: right; }

/* flow diagram */
.flow { width: 100%; max-width: 920px; margin-top: 110px; }
.flow h2, .trust h2 { font: 600 24px var(--ui); margin: 0 0 22px; }
html[data-mode="token"] .flow h2, html[data-mode="token"] .trust h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .16em; color: var(--pink); }
html[data-mode="token"] .flow h2::before, html[data-mode="token"] .trust h2::before { content: "// "; }
.track { display: flex; align-items: stretch; gap: 0; }
.node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(8, 8, 9, .8); color: #d9d9de;
}
.node svg { color: var(--muted); }
.node b { font-size: 15px; color: var(--text); }
.node small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.node.hot { border-color: rgba(255, 55, 199, .55); box-shadow: 0 0 30px rgba(255, 55, 199, .16); }
.node.hot svg { color: var(--pink); }
.wire { flex: 0 0 56px; position: relative; align-self: center; height: 2px; background: repeating-linear-gradient(90deg, #2d2d33 0 4px, transparent 4px 8px); }
.wire i { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); opacity: 0; animation: travel 2.4s linear infinite; }
.wire i:nth-child(2) { animation-delay: .8s; } .wire i:nth-child(3) { animation-delay: 1.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.flow-cols h3, .trust h3 { font: 600 12px var(--mono); color: var(--pink-soft); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.flow-cols p { margin: 0; color: #b2b2b9; font-size: 14.5px; line-height: 1.55; }

/* trust */
.trust { width: 100%; max-width: 760px; margin-top: 100px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.trust ul { margin: 0; padding-left: 18px; color: #c4c4cb; font-size: 14.5px; display: grid; gap: 8px; }
.trust .muted-sm { margin-top: 18px; }

/* token picker */
.overlay { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.sheet { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: 16px; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet input { width: 100%; height: 46px; padding: 0 14px; background: #000; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font: 14px var(--mono); outline: none; }
.sheet input:focus { border-color: #55555c; }
.list { margin-top: 12px; display: grid; gap: 6px; }
.trow { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 15px; }
.trow small { display: block; color: var(--muted); font-size: 12px; }
.trow em { font-style: normal; color: var(--warn); font-size: 12px; }
.trow:disabled { cursor: not-allowed; opacity: .75; }
.sheet .muted-sm { margin-top: 10px; min-height: 18px; }

@media (max-width: 900px) {
  .nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 12px 14px; }
  .nav-l { flex: 1 1 auto; flex-wrap: wrap; gap: 6px 14px; }
  .navlink { padding: 6px 8px; font-size: 15px; }
  .nav-r { flex: 1 1 100%; justify-content: space-between; flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: 3; }
  html[data-mode="token"] .stage { flex-direction: column-reverse; align-items: center; }
  html[data-mode="token"] .tokeninfo { width: 100%; max-width: 464px; flex: 0 0 auto; }
  .cols, .flow-cols { grid-template-columns: 1fr; }
  h1 { margin-bottom: 22px; }
  .big { font-size: 32px; }
  .kv { grid-template-columns: 92px 1fr auto; }
  .order .kv { grid-template-columns: 92px 1fr; }
  .track { flex-direction: column; }
  .wire { flex: 0 0 38px; width: 2px; height: auto; align-self: center; background: repeating-linear-gradient(180deg, #2d2d33 0 4px, transparent 4px 8px); }
  .wire i { left: -2px; top: 0; animation-name: travelv; }
  @keyframes travelv { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .wire i, .cta, .sess i, .tk-ticker::before, .tk-ticker::after, html[data-mode="token"] h1::after { animation: none !important; }
  .wire i { display: none; }
  .rain { display: none !important; }
  .enter.go { animation-duration: 1ms; }
  .cta, .switch span, .switch span::after, .reveal { transition: none; }
}

.fine.pow { margin-top: 18px; color: #c9c9cf; font-size: 13.5px; letter-spacing: .02em; }
.fine.pow span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; letter-spacing: 0; }

/* pay from / receive at */
.payfrom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.payfrom select {
  flex: 1; max-width: 270px; min-width: 0; height: 38px; padding: 0 10px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm); font: 13px var(--ui); outline: none;
}
.payfrom select:focus { border-color: var(--pink); }

/* wallets page */
.wblock { margin-top: 10px; }
.restore { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-card); display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.restore input { height: 40px; padding: 0 12px; background: #000; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-size: 12px; outline: none; }
.restore input:focus { border-color: var(--pink); }
.restore .mini { justify-self: start; }
.restore .mini:disabled { opacity: .4; cursor: not-allowed; }
.wlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wrow { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.whead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.whead code { font-size: 12px; color: var(--text); }
.wtags { display: inline-flex; gap: 6px; margin-left: auto; }
.wtags i { font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border: 1px solid rgba(255, 55, 199, .5); color: var(--pink); border-radius: var(--r-pill); }
.wacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wkey { margin-top: 8px; padding: 8px 10px; border: 1px solid #4a3b18; background: #14110a; border-radius: var(--r-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wkey code { flex: 1 1 100%; word-break: break-all; font-size: 11.5px; color: var(--warn); }
.wkey p { flex: 1 1 100%; margin: 2px 0 0; }
.wadd { display: block; width: 100%; margin-top: 8px; height: 40px; border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: var(--r-card); cursor: pointer; font: 13px var(--ui); }
.wadd:hover { color: var(--text); border-color: #55555c; }
#w-backup { margin-top: 12px; }
#w-backup .kv { grid-template-columns: 100px 1fr auto; }
