:root {
  --bg: #0b0b10;
  --panel: #15151d;
  --panel-2: #1d1d28;
  --line: #2e2d3b;
  --text: #f2f3f8;
  --muted: #a7a9b8;
  --accent: #cf274d;
  --accent-2: #6a8bff;
  --gold: #e4bb58;
  --ok: #4dca8f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; }
button { border: 0; border-radius: 16px; padding: 14px 16px; background: var(--accent); color: #fff; font-weight: 700; }
button.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button.small { padding: 10px 12px; border-radius: 12px; font-size: 13px; }
input, textarea, select { width: 100%; background: #101018; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
textarea { min-height: 110px; resize: vertical; }
.app-shell { max-width: 820px; margin: 0 auto; padding: 18px 16px 96px; }
.topbar { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.topbar h1 { margin: 0; font-size: 28px; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 1.8px; margin-bottom: 4px; }
.card { background: linear-gradient(180deg, var(--panel), #111119); border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.wallet-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.wallet-item { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; justify-content: space-between; }
.wallet-item span { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 12px; }
.one-gap { gap: 12px; }
.section-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.stat-row:last-child { border-bottom: 0; }
.log-box, .list-box { display: grid; gap: 10px; }
.log-line, .list-item, .notice-card, .rate-card, .slot-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.slot-grid { display: grid; gap: 10px; }
.slot-card .slot-top, .list-item .row-top, .notice-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.muted { color: var(--muted); }
.tiny { color: var(--muted); font-size: 12px; }
.bottom-tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(8,8,12,.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.06); }
.bottom-tabs button { background: #161622; border: 1px solid var(--line); padding: 12px 8px; font-size: 13px; }
.bottom-tabs button.active { background: var(--accent); }
.action-stack { display: grid; gap: 10px; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; background: rgba(106,139,255,.15); color: #c6d2ff; border: 1px solid rgba(106,139,255,.28); }
.tag.gold { background: rgba(228,187,88,.13); color: #f0d48d; border-color: rgba(228,187,88,.25); }
.tag.ok { background: rgba(77,202,143,.14); color: #9be0bd; border-color: rgba(77,202,143,.3); }
.row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.reward-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sticky-top { position: sticky; top: 10px; z-index: 3; }
#toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: #111; color: #fff; border: 1px solid var(--line); padding: 12px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s ease; }
#toast.show { opacity: 1; }
@media (min-width: 760px) {
  .wallet-panel { grid-template-columns: repeat(4, 1fr); }
  .grid.two { grid-template-columns: 1.1fr .9fr; }
}
