/* Frostberry Creators - shared styles (from the Claude Design handoff) */
:root {
  --bg: #0E1220; --card: #151A2B; --raised: #1B2238; --text: #EAF3FF; --text2: #B7C2DD; --muted: #8B95B5; --faint: #6F7896;
  --ice: #84DDFF; --berry: #FF5FA2; --green: #99E687; --gold: #FAC05A; --red: #FB3B64;
  --line: rgba(132,221,255,0.10); --line2: rgba(132,221,255,0.16); --rowline: rgba(132,221,255,0.06);
  --display: 'Bricolage Grotesque', sans-serif; --mono: 'Geist Mono', monospace;
}
html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; border-radius: 0 !important; }
body {
  min-height: 100vh; font-family: 'Geist', system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 520px at 88% -8%, rgba(132,221,255,0.10), transparent 62%), radial-gradient(700px 420px at -8% 108%, rgba(255,95,162,0.06), transparent 60%), var(--bg);
  background-attachment: fixed;
}
a { color: var(--ice); text-decoration: none; }
a:hover { color: #B5ECFF; text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
@keyframes fbFade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes fbShimmer { 0% { background-position: -400px 0 } 100% { background-position: 400px 0 } }

/* ---------- type ---------- */
.h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 36px); letter-spacing: -0.02em; line-height: 1; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.sub { font-size: 14px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.green { color: var(--green); }
.ice { color: var(--ice); }
.faint { color: var(--faint); }
.strike { text-decoration: line-through; }

/* ---------- layout ---------- */
.col { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g14 { gap: 14px; } .g16 { gap: 16px; } .g20 { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.split > * { flex: 1 1 360px; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- cards ---------- */
.card { background: rgba(21,26,43,0.85); border: 1px solid var(--line); overflow: hidden; }
.card-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.card-pad { padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.empty { padding: 28px 20px; font-size: 14px; color: var(--muted); text-align: center; }
.empty.big { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-title { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); }
.empty-text { font-size: 14px; color: var(--muted); max-width: 360px; text-wrap: pretty; }

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.hl { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(132,221,255,0.16), rgba(21,26,43,0.94) 65%); border: 1px solid rgba(132,221,255,0.45); box-shadow: 0 10px 40px rgba(132,221,255,0.14); }
.hl-top { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hl-label { font-size: 13px; font-weight: 700; color: var(--ice); }
.hl-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 24px rgba(132,221,255,0.45); }
.hl-cap { font-size: 12px; color: var(--text2); }
.hl-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line2); }
.hl-split > div { padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.hl-split > div:first-child { border-right: 1px solid var(--line2); }
.act { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; background: rgba(21,26,43,0.85); border: 1px solid var(--line); }
.act-head { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.act-body { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; }
.act-body > div { flex: 1 1 150px; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.act-body > div:last-child { border-right: none; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-num { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-mid { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { height: 40px; padding: 0 16px; border: none; background: var(--ice); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: 0 6px 22px rgba(132,221,255,0.3); transition: transform .12s, filter .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: 0.45; }
.btn.flat { box-shadow: none; }
.btn.green { background: var(--green); box-shadow: none; }
.btn.red { background: var(--red); color: #fff; box-shadow: none; }
.btn-2 { height: 40px; padding: 0 14px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .12s, transform .12s; }
.btn-2:hover:not(:disabled) { border-color: rgba(132,221,255,0.45); transform: translateY(-1px); }
.btn-2:disabled { opacity: 0.4; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12px; }
.btn-ice { border: 1px solid rgba(132,221,255,0.4); background: rgba(132,221,255,0.10); color: var(--ice); font-weight: 700; }
.btn-ice:hover:not(:disabled) { background: rgba(132,221,255,0.2); }
.btn-danger { border: 1px solid rgba(251,59,100,0.35); background: transparent; color: #FF7C98; }
.btn-enable { border: 1px solid rgba(153,230,135,0.35); background: transparent; color: var(--green); }
.btn-gold { height: 40px; padding: 0 14px; border: 1px solid rgba(250,192,90,0.35); background: rgba(250,192,90,0.10); color: var(--gold); font-size: 13px; font-weight: 700; }
.btn-gold:hover { background: rgba(250,192,90,0.18); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- range / segmented ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(21,26,43,0.85); border: 1px solid rgba(132,221,255,0.12); }
.tabs button { height: 34px; padding: 0 14px; border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tabs button.on { background: var(--ice); color: var(--bg); }
.seg { display: grid; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid rgba(132,221,255,0.12); }
.seg button { height: 36px; border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 700; }
.seg button.on { background: var(--ice); color: var(--bg); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2); }
.input { height: 46px; padding: 0 14px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; outline: none; width: 100%; }
.input:focus, .affix:focus-within { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(132,221,255,0.18); }
.input.mono { font-family: var(--mono); font-size: 14px; font-weight: 600; }
select.input { padding: 0 12px; }
.affix { display: flex; align-items: center; height: 46px; border: 1px solid var(--line2); background: var(--bg); padding: 0 14px; gap: 6px; overflow: hidden; }
.affix input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; outline: none; padding: 0; }
.affix span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.switch { position: relative; width: 48px; height: 28px; border: none; background: #2A3350; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.switch.on { background: var(--ice); }
.switch.on::after { left: 23px; }
.note { padding: 12px 14px; font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.note.gold { background: rgba(250,192,90,0.08); border: 1px solid rgba(250,192,90,0.25); color: #F3DDB0; }
.note.ice { background: rgba(132,221,255,0.06); border: 1px solid rgba(132,221,255,0.18); color: var(--text2); }
.error { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(251,59,100,0.12); border: 1px solid rgba(251,59,100,0.35); color: #FF8AA5; font-size: 13px; font-weight: 600; }
.error::before { content: '!'; width: 18px; height: 18px; background: var(--red); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.secret { display: flex; align-items: stretch; height: 44px; border: 1px solid rgba(132,221,255,0.22); background: var(--bg); overflow: hidden; }
.secret span { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 13px; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret button { padding: 0 12px; border: none; border-left: 1px solid rgba(132,221,255,0.14); background: transparent; color: var(--text2); font-size: 12px; font-weight: 600; }
.secret button.copy { background: rgba(132,221,255,0.10); color: var(--ice); font-weight: 700; min-width: 68px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.pill.sm { height: 20px; padding: 0 8px; font-size: 10px; letter-spacing: 0.05em; }
.pill.active { background: rgba(153,230,135,0.14); color: var(--green); }
.pill.disabled { background: rgba(139,149,181,0.16); color: var(--muted); }
.pill.owner { background: rgba(250,192,90,0.14); color: var(--gold); }
.pill.creator { background: rgba(132,221,255,0.12); color: var(--ice); }
.pill.refunded { background: rgba(251,59,100,0.14); color: #FF7C98; }
.pill.custom { height: 18px; padding: 0 6px; font-size: 10px; background: rgba(255,95,162,0.14); color: #FF8FC0; }
.pill.invited { background: rgba(250,192,90,0.10); color: var(--gold); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: var(--raised); color: var(--text2); font-family: var(--mono); font-size: 11px; font-weight: 600; }

/* ---------- tables & lists ---------- */
.scroll-x { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 10px 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--rowline); }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tbody tr:hover { background: rgba(132,221,255,0.05); }
.tbl .r { text-align: right; }
.tbl .nw { white-space: nowrap; }
.tbl .dim { color: var(--muted); }
.who { display: flex; align-items: center; gap: 10px; }
.who.btnlike { border: none; background: transparent; color: inherit; padding: 0; text-align: left; }
.who.btnlike:hover span { color: var(--ice); }
.head { image-rendering: pixelated; background: var(--raised); flex-shrink: 0; display: block; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--rowline); }
.list-row.tall { padding: 12px 20px; justify-content: space-between; }
.list-row.btnlike { border: none; border-bottom: 1px solid var(--rowline); background: transparent; color: inherit; text-align: left; width: 100%; }
.list-row.btnlike:hover { background: rgba(132,221,255,0.05); }
.list-row .t1 { font-weight: 600; font-size: 14px; }
.list-row .t2 { font-size: 12px; color: var(--muted); }
.list.scroll { max-height: 340px; overflow-y: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; }
.pager button { height: 34px; padding: 0 12px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 13px; font-weight: 600; }
.pager button:disabled { opacity: 0.4; }

/* ---------- chart ---------- */
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.readout { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.readout .a { color: var(--text); font-weight: 600; }
.readout .b { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.readout .c { color: #FF8FC0; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); align-items: center; max-width: 520px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; display: inline-block; }
.legend i.line { width: 14px; height: 2px; }
.chart { position: relative; height: 220px; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid div { border-top: 1px dashed var(--line); }
.chart-grid div:last-child { border-top: 1px solid var(--line2); }
.chart-max { position: absolute; left: 0; top: -2px; transform: translateY(-100%); font-family: var(--mono); font-size: 11px; color: var(--faint); }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.bars > div { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: crosshair; }
.bar { width: 100%; min-height: 2px; background: linear-gradient(180deg, #84DDFF, rgba(132,221,255,0.28)); transition: height .3s ease; }
.hov .bar { background: linear-gradient(180deg, #C4F0FF, #84DDFF); box-shadow: 0 0 18px rgba(132,221,255,0.55); }
.stack { display: flex; flex-direction: column-reverse; gap: 1px; overflow: hidden; transition: height .3s ease; }
.stack div { min-height: 0; }
.bars > div.hov:has(.stack) { background: rgba(132,221,255,0.07); }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ---------- modal / confirm / toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(6,9,18,0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scrim.top { z-index: 60; background: rgba(6,9,18,0.7); }
.modal { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid rgba(132,221,255,0.2); padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 64px rgba(0,0,0,0.6); animation: fbFade .18s ease; }
.modal-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.x { width: 32px; height: 32px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 17px; line-height: 1; flex-shrink: 0; }
.confirm { max-width: 400px; border-color: rgba(251,59,100,0.3); gap: 14px; }
.confirm p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text2); text-wrap: pretty; }
.toast { position: fixed; right: 16px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(21,26,43,0.96); backdrop-filter: blur(12px); border: 1px solid rgba(153,230,135,0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.5); font-size: 14px; font-weight: 600; animation: fbFade .2s ease; max-width: calc(100vw - 32px); }
.toast i { width: 20px; height: 20px; background: var(--green); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-style: normal; flex-shrink: 0; }
.toast.err { border-color: rgba(251,59,100,0.45); }
.toast.err i { background: var(--red); }
.skel { background: linear-gradient(90deg, #171D30 0%, #232B45 50%, #171D30 100%); background-size: 800px 100%; animation: fbShimmer 1.3s linear infinite; }

/* ---------- login ---------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-brand img { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 10px 30px rgba(132,221,255,0.25)); }
.badge-ice { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; background: rgba(132,221,255,0.10); border: 1px solid rgba(132,221,255,0.25); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ice); }
.glass { background: rgba(21,26,43,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(132,221,255,0.12); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.glass .btn { height: 48px; margin-top: 4px; font-size: 15px; box-shadow: 0 6px 22px rgba(132,221,255,0.35); }
.foot { text-align: center; font-size: 12px; color: var(--faint); }

/* ---------- creator page ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(14,18,32,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ice); }
.tag-gold { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: rgba(250,192,90,0.14); color: var(--gold); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-out { height: 38px; padding: 0 14px; border: 1px solid var(--line2); background: rgba(21,26,43,0.8); color: var(--text); font-size: 13px; font-weight: 600; transition: border-color .12s; }
.btn-out:hover { border-color: rgba(132,221,255,0.45); }
.cmain { max-width: 1200px; margin: 0 auto; padding: 28px 20px 96px; display: flex; flex-direction: column; gap: 20px; }
.hello { font-size: 13px; font-weight: 600; color: var(--muted); }
.cname { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.addr { display: flex; align-items: stretch; height: 40px; border: 1px solid rgba(132,221,255,0.22); background: rgba(14,18,32,0.6); overflow: hidden; max-width: 100%; }
.addr > span:first-child { display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-right: 1px solid rgba(132,221,255,0.14); flex-shrink: 0; }
.addr > span.v { display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.addr button { padding: 0 14px; border: none; border-left: 1px solid rgba(132,221,255,0.14); background: rgba(132,221,255,0.10); color: var(--ice); font-size: 13px; font-weight: 700; flex-shrink: 0; min-width: 74px; }
.addr button:hover { background: rgba(132,221,255,0.2); }
.deal { max-width: 460px; padding: 0; gap: 0; }
.deal-head { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.deal-pct { padding: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: linear-gradient(160deg, rgba(250,192,90,0.10), transparent 70%); border-bottom: 1px solid var(--line); }
.deal-pct b { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--gold); }
.deal-pct span { font-size: 14px; color: var(--text2); }
.deal ul { list-style: none; margin: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.deal li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.deal li::before { content: '✓'; width: 20px; height: 20px; background: rgba(153,230,135,0.16); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.deal-foot { padding: 14px 22px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- owner shell ---------- */
.shell { min-height: 100vh; display: flex; }
.side { width: 236px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--line); background: rgba(14,18,32,0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.side-brand img { width: 38px; height: 38px; object-fit: contain; }
.side-brand b { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; display: block; }
.side-brand small { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: none; background: transparent; color: var(--text2); font-size: 14px; font-weight: 600; text-align: left; }
.nav button:hover { color: var(--text); }
.nav button.on { background: rgba(132,221,255,0.12); color: var(--ice); }
.nav button span { flex: 1; }
.nav .badge { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; background: var(--berry); color: var(--bg); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; background: rgba(21,26,43,0.85); border: 1px solid var(--line); }
.me button { border: none; background: transparent; color: var(--text2); font-size: 12px; font-weight: 600; padding: 0; }
.me button:hover { color: var(--text); text-decoration: underline; }
.mtop { display: none; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(14,18,32,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mtop button { border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; }
.bnav { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; grid-template-columns: repeat(6, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(14,18,32,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(132,221,255,0.12); }
.bnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; border: none; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; }
.bnav button.on { color: var(--ice); }
.bnav .dot { position: absolute; top: 4px; right: calc(50% - 18px); width: 8px; height: 8px; background: var(--berry); }
.omain { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 32px 64px; display: flex; flex-direction: column; gap: 20px; }
.ocol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.owed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.owed-card { background: rgba(21,26,43,0.85); border: 1px solid rgba(132,221,255,0.18); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.owed-card .amt { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 20px rgba(132,221,255,0.35); }
.set-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid rgba(132,221,255,0.08); }
.set-hook { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-bottom: 1px solid rgba(132,221,255,0.08); }
.set-hook b { font-weight: 700; font-size: 15px; }
.set-hook small { font-size: 13px; color: var(--muted); }
.set-row > div:first-child { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.set-row b { font-weight: 700; font-size: 15px; }
.set-row small { font-size: 13px; color: var(--muted); }
.top-rank { width: 22px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--faint); }
.top-rank.first { color: var(--gold); }
@media (max-width: 819px) {
  .side { display: none; }
  .mtop { display: flex; }
  .bnav { display: grid; }
  .omain { padding: 20px 16px 96px; }
  .toast { bottom: 84px; }
}
