:root {
  --bg: #0b1020; --panel: #141b2e; --panel-2: #1b2440; --line: #2a3556;
  --text: #e8ecf6; --muted: #93a0c0; --accent: #5b8cff; --ok: #43d39e; --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh; padding-bottom: 110px;
}
header { padding: 18px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,16,32,.85); backdrop-filter: blur(8px); }
header h1 { margin: 0; font-size: 18px; }
header .ctx { color: var(--muted); font-size: 13px; margin-top: 4px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
input, select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 12px; border-radius: 10px; font-size: 15px; margin-top: 8px; }
button.btn { background: var(--accent); color: #fff; border: 0; padding: 13px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; }
button.add { width: auto; padding: 8px 14px; border-radius: 999px; }
.item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .name { font-weight: 600; }
.item .price { color: var(--muted); font-size: 13px; }
.cartbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel-2); border-top: 1px solid var(--line); padding: 14px 16px; }
.cartbar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.cartbar .total { flex: 1; font-weight: 700; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bignum { font-size: 40px; font-weight: 800; letter-spacing: 2px; }
.token { font-family: ui-monospace, monospace; word-break: break-all; background: var(--panel-2); padding: 10px; border-radius: 8px; }
.hidden { display: none; }
.qty { display: flex; gap: 8px; align-items: center; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 16px; cursor: pointer; }
