/* LibChain Hub (hub.libchain.tech). A dark app shell in the LibChain hero palette:
   ink panels, one holo accent, Unbounded for figures and headings, Geist for text. */
@font-face { font-family: 'Unbounded'; src: url('/assets/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #121318;
  --panel-2: #181a20;
  --panel-3: #20222a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f4f1;
  --mute: rgba(244, 244, 241, 0.62);
  --dim: rgba(244, 244, 241, 0.4);
  --ok: #3ddc97;
  --bad: #ff7a6b;
  --warn: #f0c987;
  --teal: #49c9b8;
  --peri: #7f9cff;
  --orchid: #d38af2;
  --holo: linear-gradient(100deg, var(--teal), var(--peri) 50%, var(--orchid));
  --display: 'Unbounded', 'Geist', system-ui, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --side: 264px;
  --top: 68px;
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Pinch-zoom stays; double-tap zoom (and its tap delay) goes. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 2px; border-radius: 10px; }
::selection { background: rgba(127, 156, 255, 0.35); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.holo { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mute { color: var(--mute); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ambient light behind everything */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow::before, .glow::after { content: ''; position: absolute; width: 60vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: 0.16; animation: float 26s ease-in-out infinite alternate; }
.glow::before { background: var(--peri); top: -30vmax; right: -16vmax; }
.glow::after { background: var(--teal); bottom: -34vmax; left: 6vmax; animation-duration: 32s; opacity: 0.11; }
@keyframes float { to { transform: translate(-10vmax, 8vmax) scale(1.1); } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 500; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--ease), background-color 0.2s, opacity 0.2s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--holo); opacity: 0; transition: opacity 0.3s; }
.btn:hover:not(:disabled)::before { opacity: 1; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; }
.btn.ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost::before { display: none; }
.btn.ghost:hover:not(:disabled) { background: var(--panel-3); }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; border-radius: 16px; }
.btn.sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--mute); transition: background-color 0.2s, color 0.2s; flex: none; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.icon-btn[data-done] { color: var(--ok); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- shell */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(11, 12, 15, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--display); letter-spacing: -0.03em; }
.mark { width: 26px; height: 26px; background: currentColor; -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; transition: transform 1.2s var(--ease); }
.logo:hover .mark { transform: rotate(144deg); }
.logo .tag { font: 500 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--panel-3); color: var(--mute); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.net { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--mute); }
.net b { color: var(--text); font-weight: 500; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.live { background: var(--ok); }
.dot.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; }
.dot.beat::after { animation: beat 1.2s var(--ease); }
@keyframes beat { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }
.acct { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 6px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.2s; }
.acct:hover { background: var(--panel-3); }
.acct .av { width: 32px; height: 32px; }
.acct span { font: 500 13.5px/1 var(--mono); }
.acct.watch { box-shadow: inset 0 0 0 1px rgba(240, 201, 135, 0.35); }
.burger { display: none; }

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); padding: 22px 16px 20px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; border-right: 1px solid var(--line); }
.side h6 { margin: 0 0 8px 12px; font: 500 12px/1 var(--sans); color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--mute); font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.side nav a:hover { background: var(--panel-2); color: var(--text); }
.side nav a.on { background: var(--text); color: var(--bg); }
.side nav a .soon, .side nav a .ext { margin-left: auto; }
.soon { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--panel-3); color: var(--mute); }
.side nav a.on .soon { background: rgba(0, 0, 0, 0.08); color: var(--bg); }
.side .ext { width: 14px; height: 14px; opacity: 0.6; }
.side-foot { margin-top: auto; padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--mute); }
.side-foot b { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; margin-bottom: 4px; }

main { min-width: 0; padding: 32px clamp(16px, 3vw, 40px) 64px; }
.page { max-width: 1160px; margin: 0 auto; animation: page-in 0.6s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.page-h h1 { margin: 0; font: 500 clamp(28px, 3.2vw, 38px)/1.05 var(--display); letter-spacing: -0.04em; }
.page-h p { margin: 8px 0 0; color: var(--mute); max-width: 60ch; }

/* ---------- cards */
.card { position: relative; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { margin: 0; font: 500 18px/1.2 var(--display); letter-spacing: -0.02em; }
.card-h a { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; }
.card-h a:hover { color: var(--text); }
.label { color: var(--mute); font-size: 13px; }
.stack { display: grid; gap: 16px; }
.cols-2 { display: grid; gap: 16px; }
.cols-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cols-2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols-2.even { grid-template-columns: 1fr 1fr; } .cols-2.wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.stat b { display: block; margin-top: 8px; font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.04em; }
.stat small { display: block; margin-top: 6px; color: var(--dim); font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--panel-3); color: var(--mute); white-space: nowrap; }
.badge.ok { color: var(--ok); background: rgba(61, 220, 151, 0.1); }
.badge.warn { color: var(--warn); background: rgba(240, 201, 135, 0.1); }
.badge.bad { color: var(--bad); background: rgba(255, 122, 107, 0.1); }

/* balance hero */
.hero-card { overflow: hidden; isolation: isolate; padding: 26px; min-height: 260px; display: flex; flex-direction: column; }
.hero-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 100% 0%, rgba(127, 156, 255, 0.32), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(73, 201, 184, 0.22), transparent 60%), radial-gradient(40% 60% at 70% 100%, rgba(211, 138, 242, 0.18), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: scale(1.15) translate(-4%, 3%); } }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.big { margin: 18px 0 6px; font: 500 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.big small { font-size: 0.4em; margin-left: 0.25em; color: var(--mute); letter-spacing: -0.02em; }
.split { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--mute); font-size: 14px; }
.split b { color: var(--text); font-weight: 500; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 24px; }
.act { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.act i { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.2s, transform 0.3s var(--ease); }
.act:hover:not(:disabled) i { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.act:disabled { opacity: 0.4; }

/* address card */
.addr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.addr-row:first-of-type { border-top: 0; }
.addr-row label { display: block; color: var(--dim); font-size: 12px; margin-bottom: 4px; }
.addr-row .v { font: 500 13.5px/1.5 var(--mono); word-break: break-all; }
.addr-row .btns { display: flex; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.who .av { width: 48px; height: 48px; }
.who b { display: block; font-weight: 500; }
.who small { color: var(--mute); font-size: 13px; }
.av { border-radius: 30%; overflow: hidden; background: var(--panel-3); flex: none; }
.av svg { width: 100%; height: 100%; display: block; }

/* tables / lists */
.list { display: grid; }
.li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-3); font: 600 12px/1 var(--display); letter-spacing: -0.02em; }
.li .ic.coin { background: var(--text); color: var(--bg); }
.li .ic.coin i { width: 22px; height: 22px; background: var(--bg); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; }
.li .ic.in { background: rgba(61, 220, 151, 0.12); color: var(--ok); }
.li .ic.out { background: rgba(127, 156, 255, 0.12); color: var(--peri); }
.li .ic.fail { background: rgba(255, 122, 107, 0.12); color: var(--bad); }
.li b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li small { display: block; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .r { text-align: right; }
.li .r b { font-variant-numeric: tabular-nums; }
.li .share { height: 3px; border-radius: 3px; background: var(--panel-3); margin-top: 8px; overflow: hidden; width: 100%; max-width: 220px; }
.li .share i { display: block; height: 100%; background: var(--holo); transform-origin: left; transition: transform 0.9s var(--ease); }
a.li:hover { background: rgba(255, 255, 255, 0.02); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--mute); }
.empty b { color: var(--text); font-weight: 500; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* connect empty state */
.hello { display: grid; justify-items: center; text-align: center; padding: clamp(40px, 8vh, 96px) 16px; }
.hello h1 { margin: 26px 0 8px; font: 500 clamp(26px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -0.04em; }
.hello p { margin: 0 0 24px; color: var(--mute); max-width: 46ch; }
.stackart { position: relative; width: 180px; height: 130px; }
.stackart i { position: absolute; left: 20px; width: 140px; height: 88px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0, 0, 0, 0.6); animation: deal 4s var(--ease) infinite; }
.stackart i:nth-child(1) { top: 0; background: linear-gradient(135deg, var(--teal), var(--peri)); transform: rotate(-10deg); animation-delay: 0s; }
.stackart i:nth-child(2) { top: 18px; background: linear-gradient(135deg, var(--peri), var(--orchid)); transform: rotate(6deg); animation-delay: 0.15s; }
.stackart i:nth-child(3) { top: 38px; background: var(--panel-3); display: grid; place-items: center; animation-delay: 0.3s; }
.stackart i:nth-child(3)::after { content: ''; width: 34px; height: 34px; background: var(--text); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; }
@keyframes deal { 50% { translate: 0 -6px; } }
.lookup { display: flex; gap: 8px; width: min(100%, 520px); margin-top: 28px; }
.or { margin-top: 30px; color: var(--dim); font-size: 13px; }

/* inputs */
.field { display: grid; gap: 8px; }
.field > span { color: var(--mute); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); outline: none; transition: border-color 0.2s, background-color 0.2s; }
.input:focus { border-color: var(--peri); background: var(--panel-3); }
.input.mono { font-family: var(--mono); font-size: 14px; }
.hint { font-size: 13px; color: var(--mute); min-height: 1.5em; overflow-wrap: anywhere; }
.hint.bad { color: var(--bad); }
.hint.ok { color: var(--ok); }

/* amount boxes (wrap + send) */
.box { border-radius: 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 16px 14px; }
.box .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; }
.box .amt { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: 500 clamp(26px, 3vw, 34px)/1.2 var(--display); letter-spacing: -0.04em; padding: 0; }
.box input::placeholder { color: var(--dim); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--panel-3); font-weight: 500; flex: none; }
.chip .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--text); }
.chip .ic i { width: 16px; height: 16px; background: var(--bg); -webkit-mask: url('/assets/wheel.png') center / contain no-repeat; mask: url('/assets/wheel.png') center / contain no-repeat; }
.chip .ic.w { background: var(--holo); }
.max { color: var(--peri); font-weight: 500; font-size: 13px; }
.max:hover { color: var(--text); }
.flip { display: grid; place-items: center; height: 0; position: relative; z-index: 1; }
.flip button { width: 44px; height: 44px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 4px var(--panel), inset 0 0 0 1px var(--line-2); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.flip button:hover { transform: rotate(180deg); }
.kv { display: grid; gap: 0; margin-top: 14px; }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 2px; font-size: 14px; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.seg button { padding: 8px 18px; border-radius: 10px; font-weight: 500; color: var(--mute); transition: background-color 0.25s, color 0.25s; }
.seg button[aria-selected='true'] { background: var(--text); color: var(--bg); }
.status { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); display: flex; align-items: center; gap: 12px; font-size: 14px; overflow-wrap: anywhere; }
.status[hidden] { display: none; }
.status.ok { color: var(--ok); background: rgba(61, 220, 151, 0.08); }
.status.bad { color: var(--bad); background: rgba(255, 122, 107, 0.08); }
.status a { text-decoration: underline; text-underline-offset: 3px; }
.meter { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--holo); transform-origin: left; transition: transform 1s var(--ease); }

/* faucet art */
.dropart { position: relative; width: 120px; height: 120px; margin: 8px auto 18px; display: grid; place-items: center; }
.dropart svg { position: relative; z-index: 1; width: 48px; height: 48px; animation: bob 3s ease-in-out infinite; }
.dropart i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--peri); opacity: 0; animation: ripple 3s var(--ease) infinite; }
.dropart i:nth-child(2) { animation-delay: 1s; } .dropart i:nth-child(3) { animation-delay: 2s; }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* live blocks */
.blk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.blk-row:first-child { border-top: 0; }
.blk-row .n { font: 500 14px/1 var(--display); letter-spacing: -0.02em; }
.blk-row.enter { animation: row-in 0.8s var(--ease); }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); background: rgba(127, 156, 255, 0.12); } }

/* coming soon */
.soon-art { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); margin: 0 auto 20px; }
.soon-art svg { width: 40px; height: 40px; }

/* ---------- dialogs */
dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 26px; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.8); overflow: auto; }
dialog::backdrop { background: rgba(5, 6, 8, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg-in 0.45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }
.dlg-h h2 { margin: 0; font: 500 19px/1.2 var(--display); letter-spacing: -0.02em; }
.dlg-b { padding: 18px 24px 24px; display: grid; gap: 16px; }
.wallets { display: grid; gap: 8px; }
.wallet-opt { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background-color 0.2s; }
.wallet-opt:hover { background: var(--panel-3); }
.wallet-opt img, .wallet-opt .ph { width: 40px; height: 40px; border-radius: 12px; }
.wallet-opt .ph { display: grid; place-items: center; background: var(--panel-3); }
.wallet-opt b { display: block; font-weight: 500; }
.wallet-opt small { color: var(--mute); font-size: 13px; }
.qr { width: 220px; height: 220px; margin: 4px auto 0; padding: 14px; border-radius: 22px; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.review { display: grid; gap: 10px; }
.review .amount { text-align: center; padding: 8px 0 4px; }
.review .amount small { display: block; color: var(--mute); }
.review .amount b { font: 500 36px/1.1 var(--display); letter-spacing: -0.04em; }
.party { padding: 14px 16px; border-radius: 16px; background: var(--panel-2); }
.party label { display: block; color: var(--dim); font-size: 12px; margin-bottom: 4px; }
.party .v { font: 500 13.5px/1.5 var(--mono); word-break: break-all; }
.party small { display: block; margin-top: 4px; font: 12.5px/1.4 var(--mono); color: var(--mute); word-break: break-all; }
.assets-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.assets-pick button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 14px; }
.assets-pick button[aria-pressed='true'] { background: var(--text); color: var(--bg); }

/* account popover */
.pop { position: fixed; z-index: 60; top: calc(var(--top) - 4px); right: 16px; width: min(340px, calc(100vw - 24px)); padding: 10px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.7); display: grid; gap: 2px; animation: dlg-in 0.35s var(--ease); }
.pop[hidden] { display: none; }
.pop .head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop .head small { display: block; color: var(--mute); font-size: 12.5px; }
.pop .head span { display: block; margin-top: 4px; font: 500 12.5px/1.5 var(--mono); word-break: break-all; }
.pop button, .pop a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--mute); text-align: left; }
.pop button:hover, .pop a:hover { background: var(--panel-2); color: var(--text); }

/* banners and toasts */
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin-bottom: 18px; border-radius: 16px; background: rgba(240, 201, 135, 0.08); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(240, 201, 135, 0.2); font-size: 14px; }
.banner[hidden] { display: none; }
.toasts { position: fixed; z-index: 80; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border-radius: 16px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0, 0, 0, 0.7); font-size: 14px; animation: dlg-in 0.4s var(--ease); overflow-wrap: anywhere; }
.toast.ok { color: var(--ok); } .toast.bad { color: var(--bad); }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile */
.tabbar, .scrim { display: none; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); height: 100%; padding-top: 20px; background: var(--bg); transform: translateX(-100%); transition: transform 0.45s var(--ease); }
  .side.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(5, 6, 8, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
  .scrim.open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
  .burger { display: grid; }
  main { padding-bottom: 110px; }
  .tabbar {
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 22px;
    background: rgba(18, 19, 24, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 16px; color: var(--mute); font-size: 11.5px; font-weight: 500; }
  .tabbar a.on { background: var(--text); color: var(--bg); }
  .toasts { bottom: 96px; }
}
@media (max-width: 640px) {
  .top { padding: 0 12px; gap: 8px; }
  .net { display: none; }
  .logo .tag { display: none; }
  .acct span { display: none; }
  .acct { padding: 0 6px; }
  .card { padding: 18px; }
  .hero-card { padding: 20px; }
  .acts { gap: 6px; }
  .act i { width: 48px; height: 48px; }
  .lookup { flex-direction: column; }
  .li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; }
  .li .ic { width: 36px; height: 36px; }
  dialog { border-radius: 24px; }
  .dlg-b { padding: 16px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
