:root {
  --bg: #050b1f;
  --bg2: #0a1534;
  --glass: rgba(14, 26, 62, 0.62);
  --glass2: rgba(20, 36, 84, 0.55);
  --line: rgba(130, 170, 255, 0.14);
  --line2: rgba(130, 170, 255, 0.28);
  --text: #e8eeff;
  --muted: #8c9cc4;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --grad2: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #22d3ee 100%);
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1100px 600px at 15% -5%, #12245a 0%, transparent 60%),
              radial-gradient(900px 600px at 95% 10%, #0b3550 0%, transparent 55%),
              radial-gradient(800px 500px at 50% 110%, #1e1450 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.testnet-bar, .strip, main, footer { position: relative; z-index: 1; }
a { color: var(--cyan); text-decoration: none; }
button { font-family: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* testnet bar */
.testnet-bar {
  text-align: center; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; color: #a5f3fc; background: linear-gradient(90deg, transparent, rgba(34,211,238,.12), transparent);
  border-bottom: 1px solid var(--line);
}
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 6px; box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 28px; position: sticky; top: 0; z-index: 20;
  background: rgba(5, 11, 31, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(34,211,238,.45)); }
.word { display: flex; gap: 6px; font-size: 19px; letter-spacing: .14em; }
.word b { color: #fff; font-weight: 800; }
.word i { font-style: normal; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  background: none; border: 0; padding: 9px 14px; border-radius: 12px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.on { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.soon { cursor: default; opacity: .6; }
.nav-link em { font-style: normal; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 6px; background: rgba(139,92,246,.25); color: #c4b5fd; letter-spacing: .06em; }
.caret { font-size: 10px; }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; margin-top: 6px;
  background: #0c1838; border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 60px -10px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--text); }
.menu a:hover { background: rgba(59,130,246,.12); }
.menu .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--cyan); font-size: 17px; }
.menu small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.right { display: flex; align-items: center; gap: 10px; }
.chain {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 12px; background: rgba(240,185,11,.1); border: 1px solid rgba(240,185,11,.3); color: #fcd34d;
}
.chain.bad { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.4); color: var(--red); cursor: pointer; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.connect {
  border: 0; cursor: pointer; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 12px;
  background: var(--grad); color: #04121f; box-shadow: 0 6px 24px -8px rgba(34,211,238,.6);
}
.connect.acct { background: var(--glass2); color: #fff; border: 1px solid var(--line2); box-shadow: none; }

/* stats strip */
.strip {
  max-width: 1180px; margin: 22px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.strip > div { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); }
.strip small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.strip b { display: block; font-size: 22px; margin: 4px 0 2px; }
.strip b.ok { color: var(--green); }
.strip em { font-style: normal; font-size: 12px; color: var(--muted); }

main { max-width: 1180px; margin: 20px auto 30px; padding: 0 20px; }
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.04);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head h2 { margin: 0; font-size: 20px; }
.card-head small { display: block; margin-top: 3px; font-size: 13px; }

/* trade grid */
.trade-grid { display: grid; grid-template-columns: 1fr 440px; gap: 20px; align-items: start; }
.swap-card { position: relative; overflow: hidden; }
.swap-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r); padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34,211,238,.6), transparent 35%, transparent 65%, rgba(139,92,246,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.head-btns { display: flex; gap: 4px; }
.ibtn { background: rgba(255,255,255,.04); border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 11px; cursor: pointer; color: var(--muted); font-size: 16px; }
.ibtn:hover { color: #fff; border-color: var(--line2); }
.ibtn.spin { animation: spin .8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.tbox { background: rgba(3, 8, 26, .55); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: border-color .2s; }
.tbox:focus-within { border-color: rgba(34,211,238,.5); }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.trow + .trow { margin-top: 10px; }
.amt { background: transparent; border: 0; outline: none; color: #fff; font-size: 30px; font-weight: 600; text-align: right; width: 100%; min-width: 0; font-family: inherit; }
.amt.full { text-align: left; margin-top: 8px; }
.amt::placeholder { color: rgba(140,156,196,.5); }
.tok-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px 6px 6px;
  font-weight: 700; font-size: 16px;
}
.tok-btn:hover { background: rgba(59,130,246,.18); }
.tok-btn::after { content: "▾"; font-size: 11px; color: var(--muted); }
.ticon {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 13px; color: #fff; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 14px -2px var(--c); overflow: hidden;
}
.ticon img { width: 100%; height: 100%; object-fit: cover; }
.ticon.sm { width: 22px; height: 22px; font-size: 10px; }
.quick { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.quick.wide { justify-content: flex-start; flex-wrap: wrap; }
.quick button, .quick input {
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: #93c5fd;
  border-radius: 9px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.quick button:hover, .quick button.sel { background: var(--grad); color: #04121f; border-color: transparent; }
.quick input { width: 96px; cursor: text; outline: none; }
.flip {
  display: grid; place-items: center; margin: -10px auto; position: relative; z-index: 2;
  width: 42px; height: 42px; border-radius: 14px; cursor: pointer; font-size: 18px; font-weight: 800;
  background: #0d1a3f; border: 4px solid #0a1430; color: var(--cyan); transition: transform .25s;
}
.flip:hover { transform: rotate(180deg); background: var(--grad); color: #04121f; }
.rate-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 14px 2px 0; color: var(--muted); }
.slip-pill { padding: 3px 8px; border-radius: 8px; background: rgba(139,92,246,.15); color: #c4b5fd; font-weight: 600; font-size: 12px; cursor: pointer; }

.cta {
  width: 100%; margin-top: 16px; border: 0; cursor: pointer; padding: 17px; border-radius: 16px;
  font-size: 17px; font-weight: 800; letter-spacing: .02em; color: #04121f; background: var(--grad2);
  box-shadow: 0 12px 30px -12px rgba(34,211,238,.7); transition: transform .1s, filter .2s;
}
.cta:hover:not(:disabled) { filter: brightness(1.1); }
.cta:active:not(:disabled) { transform: scale(.99); }
.cta:disabled { background: rgba(255,255,255,.06); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.cta.warn:not(:disabled) { background: linear-gradient(135deg, #f87171, #fb923c); }
.cta.ghost:not(:disabled) { background: transparent; color: var(--cyan); border: 1.5px solid rgba(34,211,238,.5); box-shadow: none; }

.details { margin-top: 14px; font-size: 13px; background: rgba(3,8,26,.4); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.details:empty { display: none; }
.details > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.details span { color: var(--muted); }
.details b { font-weight: 600; text-align: right; }
.route { color: var(--cyan); }
.impact-low { color: var(--green); } .impact-mid { color: var(--amber); } .impact-high { color: var(--red); }

.shield { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sh-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 9px 12px; border-radius: 12px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); color: #a7f3d0; }
.sh-row.info { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.25); color: #ddd6fe; }
.sh-row a { margin-left: auto; font-weight: 700; white-space: nowrap; }
.sh-ico { font-size: 15px; }

/* chart */
.chart-card { min-height: 100%; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pair-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.icons { display: inline-flex; } .icons .ticon + .ticon { margin-left: -8px; }
.chart-tabs { display: flex; gap: 4px; background: rgba(3,8,26,.5); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.chart-tabs button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chart-tabs button.sel { background: rgba(59,130,246,.25); color: #fff; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; flex-wrap: wrap; }
.price-line b { font-size: 34px; letter-spacing: -.01em; }
.price-line span { color: var(--muted); font-weight: 600; }
.chg { padding: 2px 8px; border-radius: 8px; font-size: 13px; font-weight: 700 !important; }
.chg.up { background: rgba(52,211,153,.15); color: var(--green) !important; }
.chg.down { background: rgba(248,113,113,.15); color: var(--red) !important; }
.chart-wrap { position: relative; flex: 1; min-height: 300px; margin-top: 12px; }
#chart { width: 100%; height: 100%; position: absolute; inset: 0; }
.chart-tip { position: absolute; pointer-events: none; background: #0c1838; border: 1px solid var(--line2); padding: 6px 10px; border-radius: 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); }

/* trades */
.trades { margin-top: 20px; }
.table { font-size: 13.5px; }
.tr { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 110px; gap: 10px; padding: 11px 6px; border-bottom: 1px solid var(--line); align-items: center; }
.tr.h { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tr:last-child { border-bottom: 0; }
.buy { color: var(--green); font-weight: 700; } .sell { color: var(--red); font-weight: 700; }
.empty { color: var(--muted); padding: 24px; text-align: center; font-size: 14px; }

/* liquidity */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pool-pick { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pp { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 14px; cursor: pointer; background: rgba(3,8,26,.45); border: 1px solid var(--line); font-weight: 700; }
.pp.sel { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
.tk { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.plus { text-align: center; color: var(--cyan); font-size: 20px; font-weight: 800; margin: 6px 0; }
.note { font-size: 12.5px; color: var(--muted); margin: 12px 2px 0; line-height: 1.5; }
.lbl { font-size: 13px; color: var(--muted); display: block; margin: 14px 0 4px; }
.position .pos-card { background: rgba(3,8,26,.45); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.position .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.position .row:last-child { border-bottom: 0; }
.position .row span { color: var(--muted); }
.share-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; margin: 10px 0 4px; }
.share-bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.remove { margin-top: 16px; }
.rm-head { display: flex; justify-content: space-between; align-items: baseline; }
.rm-head b { font-size: 32px; }
input[type=range] { width: 100%; accent-color: var(--cyan); margin: 10px 0; }

/* pools */
.pool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pool { background: rgba(3,8,26,.45); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: border-color .2s, transform .2s; }
.pool:hover { border-color: var(--line2); transform: translateY(-2px); }
.pool h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.pool .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.pool .row span { color: var(--muted); }
.pool .acts { display: flex; gap: 8px; margin-top: 12px; }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: #fff; }
.btn-sm:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm.pri { background: var(--grad); color: #04121f; border-color: transparent; }
.btn-sm:disabled { opacity: .45; cursor: not-allowed; }

/* faucet */
.faucet { max-width: 640px; margin: 0 auto; }
.faucet-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.faucet-hero h2 { margin: 0 0 4px; }
.faucet-hero p { margin: 0; }
.drop { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); flex-shrink: 0; }
.faucet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.f-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(3,8,26,.45); border: 1px solid var(--line); }
.f-txt { flex: 1; } .f-txt b { display: block; } .f-txt small { font-size: 12.5px; }
.f-acts { display: flex; gap: 6px; }

/* footer */
footer { max-width: 1180px; margin: 10px auto 40px; padding: 0 20px 70px; text-align: center; font-size: 14px; }
.f-brand { display: flex; gap: 6px; justify-content: center; letter-spacing: .1em; margin-bottom: 12px; }
.f-brand b { color: #fff; } .f-brand i { font-style: normal; font-weight: 800; color: var(--cyan); }
.f-brand .muted { letter-spacing: normal; }
.contracts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.contracts a { font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); }
.contracts a:hover { color: var(--cyan); border-color: var(--line2); }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2,6,20,.7); backdrop-filter: blur(6px); }
.sheet { width: 100%; max-width: 420px; max-height: 85vh; overflow: auto; background: #0b1735; border: 1px solid var(--line2); border-radius: 24px; padding: 20px; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8); animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 18px; }
.x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.search { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(3,8,26,.6); color: #fff; font-size: 15px; outline: none; font-family: inherit; }
.search:focus { border-color: var(--cyan); }
.common { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.common button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); cursor: pointer; font-weight: 700; font-size: 13px; }
.tok-list { border-top: 1px solid var(--line); padding-top: 6px; }
.tl { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; cursor: pointer; }
.tl:hover { background: rgba(59,130,246,.12); }
.tl.dis { opacity: .4; pointer-events: none; }
.tl .nm { flex: 1; } .tl .nm b { display: block; } .tl .nm small { color: var(--muted); }
.tl .bl { font-weight: 600; }
.sheet-foot { text-align: center; margin-top: 10px; }
.small-sheet { max-width: 380px; }
.tx-sheet { text-align: center; }
.tx-sheet p { font-size: 15px; margin: 6px 0 14px; }
.orbit { position: relative; width: 84px; height: 84px; margin: 6px auto 14px; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); animation: spin 1.2s linear infinite; }
.orbit span:nth-child(2) { inset: 12px; border-top-color: var(--blue); animation-duration: 1.8s; animation-direction: reverse; }
.orbit span:nth-child(3) { inset: 26px; border-top-color: var(--violet); animation-duration: .9s; }
.orbit.done span { animation: none; border-color: var(--green); }
.orbit.fail span { animation: none; border-color: var(--red); }
.steps { text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.step { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(3,8,26,.5); border: 1px solid var(--line); font-size: 14px; }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.08); }
.step.active i { background: var(--blue); } .step.ok i { background: var(--green); color: #04121f; } .step.err i { background: var(--red); }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: 360px; }
.toast { background: #0c1838; border: 1px solid var(--line2); border-left: 3px solid var(--cyan); color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); animation: pop .2s; }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); }

/* mobile */
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .trade-grid, .two { grid-template-columns: 1fr; }
  .swap-card { order: -1; }
  .chart-wrap { min-height: 240px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav, .chain { display: none; }
  .top { padding: 12px 16px; }
  .word { font-size: 16px; }
  .strip, main, footer { padding-left: 14px; padding-right: 14px; }
  .glass { padding: 16px; }
  .amt { font-size: 24px; }
  .tr { grid-template-columns: 60px 1fr 1fr 70px; font-size: 12.5px; }
  .tr .hide-m { display: none; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(5,11,31,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav button { flex: 1; background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; cursor: pointer; }
  .bottom-nav button span { font-size: 18px; }
  .bottom-nav button.on { color: var(--cyan); }
  #toasts { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
