/* ───────────────── Tokens ───────────────── */
:root {
  --primary: #E8162F;
  --primary-2: #B70F27;
  --gold: #F4B73A;
  --gold-2: #E79A1F;
  --green: #2BD07A;

  --bg: #160407;
  --bg-top: #3B0A13;
  --surface: #1A0709;
  --surface-2: #231013;
  --surface-3: #2E1418;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #FFFFFF;
  --text-2: #B9A5A8;
  --text-3: #8B7477;
  --nav-bg: #120305;
  --overlay: rgba(6, 0, 1, .66);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-red: 0 14px 36px rgba(232, 22, 47, .32);
  --skeleton: rgba(255, 255, 255, .06);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 11px;
  --gutter: 16px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #FFF5F6;
  --bg-top: #FFD9DE;
  --surface: #FFFFFF;
  --surface-2: #FBEEF0;
  --surface-3: #F5E1E4;
  --border: rgba(80, 10, 20, .08);
  --border-strong: rgba(80, 10, 20, .14);
  --text: #23090D;
  --text-2: #75585C;
  --text-3: #9C8285;
  --nav-bg: #FFFFFF;
  --overlay: rgba(40, 5, 10, .38);
  --shadow: 0 8px 24px rgba(120, 20, 35, .10);
  --skeleton: rgba(80, 10, 20, .07);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(120% 55% at 50% -8%, var(--bg-top) 0%, transparent 62%),
    radial-gradient(90% 40% at 100% 60%, rgba(150, 10, 30, .14) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
input, textarea, button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: var(--primary); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; flex: none; }
.ico-xs { width: 15px; height: 15px; flex: none; }

/* ───────────────── Shell ───────────────── */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.page { padding: 12px var(--gutter) calc(var(--nav-h) + var(--safe-b) + 28px); animation: pageIn .32s cubic-bezier(.2, .8, .2, 1); }
.page.sub { padding-bottom: calc(var(--safe-b) + 120px); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Header */
.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3);
  display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; overflow: hidden; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.greet small { display: block; color: var(--text-2); font-size: 13.5px; font-weight: 400; }
.greet b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.3px; margin-top: 1px; }
.icon-btn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(0, 0, 0, .38); border: 1px solid var(--border); color: var(--text); transition: transform .15s; }
:root[data-theme="light"] .icon-btn { background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Generic card */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); }
:root[data-theme="light"] .card { box-shadow: var(--shadow); }
.pressable { transition: transform .15s ease, filter .15s; }
.pressable:active { transform: scale(.975); filter: brightness(1.1); }
.stack > * + * { margin-top: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 12px; }
.section-title h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.section-title .link { color: var(--text-2); font-size: 14px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43,208,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,208,122,.5); } 70% { box-shadow: 0 0 0 8px rgba(43,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(43,208,122,0); } }

/* ───────────────── Home: balance hero ───────────────── */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 16px 16px;
  background: radial-gradient(130% 120% at 0% 0%, #F2263C 0%, #D9142C 45%, #B50F27 100%);
  box-shadow: var(--shadow-red); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.hero .label { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .82; }
.hero .bal { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.hero .bal { white-space: nowrap; }
.hero .bal b { font-size: 38px; font-weight: 900; letter-spacing: -1px; line-height: 1.05; }
.hero .bal span { font-size: 16px; font-weight: 600; opacity: .95; }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.hero-actions { display: flex; gap: 8px; flex: none; }
.btn-white { height: 44px; padding: 0 18px; border-radius: 13px; background: #fff; color: var(--primary); font-weight: 700;
  font-size: 16px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.btn-ghost-w { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; }
.stars-strip { position: relative; z-index: 1; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 15px; background: rgba(60, 0, 8, .28); border: 1px solid rgba(255,255,255,.16); }
.star-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #FFD15C, #F2AE2E); color: #2B1500; }
.stars-strip .k { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .82; }
.stars-strip .v { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.stars-strip .v b { font-size: 21px; font-weight: 900; }
.stars-strip .note { font-size: 13.5px; opacity: .95; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Shortcut tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.tile { padding: 14px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 20px; }
.tile .t-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.tile b { font-size: 15.5px; font-weight: 700; }
.t-gold { background: rgba(244, 183, 58, .14); color: var(--gold); }
.t-red { background: rgba(232, 22, 47, .16); color: #FF3B52; }

/* Promo rows */
.promo { display: flex; align-items: center; gap: 13px; padding: 14px 14px; margin-top: 12px; }
.promo .p-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.p-ico.solid { background: linear-gradient(180deg, #FF3A50, #DB1630); color: #fff; box-shadow: 0 6px 16px rgba(232,22,47,.35); }
.p-ico.soft { background: rgba(232, 22, 47, .14); color: #FF4258; }
.promo b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.promo small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.promo.red-edge { border-color: rgba(232, 22, 47, .26); background: linear-gradient(90deg, rgba(232,22,47,.06), transparent), var(--surface); }
.pill-green { padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--green);
  background: rgba(43, 208, 122, .12); border: 1px solid rgba(43, 208, 122, .28); flex: none; }

/* Recent purchases */
.feed-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; }
.feed-item b { font-size: 15.5px; font-weight: 700; display: block; }
.feed-item .sub { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.feed-item .when { text-align: right; flex: none; }
.feed-item .when b { font-size: 14px; color: var(--text-2); }
.feed-item .when small { font-size: 12px; color: var(--text-3); }

/* ───────────────── Shop ───────────────── */
.page-title { font-size: 28px; font-weight: 900; letter-spacing: -.8px; margin: 2px 0 6px; }
.page-sub { color: var(--text-2); font-size: 14.5px; margin: 0 0 18px; }
.shop-stars { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 18px 22px; min-height: 196px;
  background: linear-gradient(135deg, #F7B53B 0%, #F2A42C 55%, #E89422 100%); color: #3A2100; }
.shop-stars .rings { position: absolute; right: -70px; top: -40px; width: 290px; height: 290px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22); }
.shop-stars .rings::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); }
.shop-stars .big-star { position: absolute; right: 26px; top: 50%; transform: translateY(-46%) rotate(-8deg); width: 112px; height: 112px;
  color: #FFF4D0; filter: drop-shadow(0 8px 16px rgba(150, 80, 0, .25)); animation: float 4s ease-in-out infinite; }
.shop-stars .spark { position: absolute; color: #FFF0C2; }
@keyframes float { 50% { transform: translateY(-52%) rotate(-3deg); } }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px;
  font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.badge.amber { background: rgba(120, 60, 0, .18); color: #4A2800; }
.badge.rose { background: rgba(255,255,255,.18); color: #fff; }
.badge.slate { background: rgba(255,255,255,.12); color: #E8E8EC; }
.shop-stars h2 { margin: 14px 0 0; font-size: 25px; font-weight: 900; letter-spacing: -.6px; position: relative; }
.shop-stars .price { font-size: 30px; font-weight: 900; letter-spacing: -.8px; margin-top: 4px; position: relative; }
.shop-stars .price small { font-size: 15px; font-weight: 700; opacity: .75; }
.shop-stars svg.ico-xs { color: #5A3300 !important; opacity: .75; }
.shop-stars .range { font-size: 14px; font-weight: 600; margin-top: 6px; opacity: .85; position: relative; display: flex; align-items: center; gap: 4px; }
.go { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.go.amber { right: 18px; top: 18px; background: rgba(150, 80, 0, .2); color: #3A2100; }
.go.rose { right: 14px; bottom: 14px; background: rgba(255,255,255,.2); color: #fff; width: 42px; height: 42px; }
.go.slate { right: 14px; bottom: 14px; background: rgba(255,255,255,.12); color: #fff; width: 42px; height: 42px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.shop-card { position: relative; overflow: hidden; border-radius: 24px; padding: 16px 14px 16px; min-height: 196px;
  display: flex; flex-direction: column; justify-content: flex-end; }
.shop-card h2 { margin: 8px 0 2px; font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.shop-card p { margin: 0; font-size: 13.5px; font-weight: 600; opacity: .9; padding-right: 48px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card.premium p { padding-right: 0; }
.shop-card.gifts p, .shop-card.uc p { white-space: normal; }
.shop-card.gifts { background: linear-gradient(180deg, #E61B33 0%, #C8122A 100%); color: #fff; }
.shop-card.premium { background: linear-gradient(180deg, #24262C 0%, #16171B 100%); color: #fff; border: 1px solid rgba(255,255,255,.06); }
.shop-card.uc { background: linear-gradient(160deg, #3A2A12 0%, #1E160B 100%); color: #fff; border: 1px solid rgba(244,183,58,.18); }
.shop-card.services { background: linear-gradient(160deg, #13324A 0%, #0D1C2A 100%); color: #fff; border: 1px solid rgba(80,170,255,.16); }
.emoji-stack { position: absolute; top: 10px; right: 6px; width: 150px; height: 90px; }
.emoji-stack span { position: absolute; width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 32px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); box-shadow: 0 6px 14px rgba(80,0,10,.25); }
.emoji-stack span:nth-child(1) { left: 0; top: 4px; transform: rotate(-8deg); }
.emoji-stack span:nth-child(2) { left: 44px; top: 18px; z-index: 2; background: rgba(255,255,255,.28); }
.emoji-stack span:nth-child(3) { left: 88px; top: 2px; transform: rotate(9deg); }
.gem { position: absolute; top: 8px; right: -4px; width: 74px; height: 74px; color: #FF3A55; transform: rotate(12deg); }
.chips { display: flex; gap: 5px; margin-top: 10px; padding-right: 50px; }
.chip { min-width: 30px; height: 28px; padding: 0 7px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.1); }
.shop-card .corner-emoji { position: absolute; top: 14px; right: 14px; font-size: 52px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }

/* ───────────────── Profile ───────────────── */
.profile-card { padding: 24px 16px 16px; text-align: center; }
.big-avatar { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; padding: 4px; background: linear-gradient(180deg, rgba(232,22,47,.6), rgba(232,22,47,.15)); }
.big-avatar .avatar { width: 100%; height: 100%; font-size: 34px; border: 3px solid var(--surface); }
.profile-card h2 { margin: 16px 0 2px; font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.profile-card .uname { color: var(--text-2); font-size: 15px; }
.id-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); font-size: 14px; }
.id-chip b { color: var(--text); font-weight: 700; letter-spacing: .3px; }
.bal-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 14px 14px 14px 16px;
  border-radius: 18px; background: var(--surface-2); text-align: left; }
.bal-row small { color: var(--text-2); font-size: 13.5px; }
.bal-row b { display: block; font-size: 22px; font-weight: 900; margin-top: 2px; }
.btn { height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: transform .15s, filter .15s, opacity .15s; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-red { background: linear-gradient(180deg, #F11F37, #DC132C); color: #fff; box-shadow: 0 8px 20px rgba(232,22,47,.28); }
.btn-gold { background: linear-gradient(180deg, #F8C247, #EFAE30); color: #2B1500; }
.btn-soft { background: var(--surface-3); color: var(--text); }
.btn-block { width: 100%; height: 54px; font-size: 17px; border-radius: 16px; }
.stars-card { margin-top: 12px; padding: 16px 14px; border-radius: 22px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(90deg, rgba(244,183,58,.16), rgba(244,183,58,.05)); border: 1px solid rgba(244,183,58,.32); }
.stars-card .s-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold);
  background: rgba(244,183,58,.12); border: 1px solid rgba(244,183,58,.4); flex: none; }
.stars-card .k { font-size: 14px; color: var(--text-2); }
.stars-card .v { font-size: 22px; font-weight: 900; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.stars-card small { color: var(--text-2); font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { padding: 14px; border-radius: 20px; }
.stat .s-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.stat b { display: block; font-size: 22px; font-weight: 900; margin-top: 16px; }
.stat small { color: var(--text-2); font-size: 14px; }
.menu { margin-top: 12px; overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; width: 100%; text-align: left; }
.menu-item + .menu-item { border-top: 1px solid var(--border); }
.menu-item .m-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.menu-item b { font-size: 16px; font-weight: 700; flex: 1; }
.menu-item .val { color: var(--text-2); font-size: 14px; }

/* ───────────────── Forms & product pages ───────────────── */
.sub-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.sub-head h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.back { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin: 0 4px 7px; font-weight: 500; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 16px; background: var(--surface);
  border: 1.5px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: rgba(232,22,47,.6); box-shadow: 0 0 0 4px rgba(232,22,47,.12); }
.input-wrap.ok { border-color: rgba(43,208,122,.55); }
.input-wrap.bad { border-color: rgba(255,80,90,.75); }
.input-wrap input, textarea.input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; user-select: text; }
textarea.input { width: 100%; min-height: 90px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); resize: vertical; font-size: 15px; outline: 0; }
.input-wrap .pre { color: var(--text-3); font-weight: 700; }
.hint { font-size: 13px; color: var(--text-3); margin: 7px 4px 0; display: flex; align-items: center; gap: 6px; min-height: 18px; }
.hint.ok { color: var(--green); }
.hint.bad { color: #FF6470; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.preset { height: 46px; border-radius: 13px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all .15s; }
.preset.on { border-color: var(--gold); background: rgba(244,183,58,.12); color: var(--gold); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; padding: 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--border); text-align: left; transition: all .15s; }
.opt.on { border-color: var(--primary); background: rgba(232,22,47,.08); box-shadow: 0 0 0 4px rgba(232,22,47,.1); }
.opt.off { opacity: .45; }
.opt .o-emoji { font-size: 34px; line-height: 1; }
.opt b { display: block; font-size: 17px; font-weight: 800; margin-top: 8px; }
.opt small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.opt .o-price { font-weight: 800; font-size: 15px; margin-top: 10px; }
.opt .o-stars { font-size: 12.5px; color: var(--gold); font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 3px; }
.opt .tag { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(232,22,47,.18); color: #FF5266; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gift-grid .opt { padding: 12px 8px; text-align: center; }
.gift-grid .opt b { font-size: 13.5px; margin-top: 6px; }
.gift-grid .o-stars { justify-content: center; }
.seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-top: 14px; }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(20px); }

/* Sticky checkout */
.checkout { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, var(--bg) 26%); }
.checkout-inner { max-width: 528px; margin: 0 auto; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; }
.sum-row small { color: var(--text-2); font-size: 14px; }
.sum-row b { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.sum-row .after { color: var(--text-3); font-size: 12.5px; text-align: right; }

/* Lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-item .l-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; font-size: 19px; }
.list-item b { font-size: 15px; font-weight: 700; display: block; }
.list-item small { color: var(--text-3); font-size: 12.5px; }
.list-item .amt { font-weight: 800; font-size: 15px; text-align: right; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-top: 3px; }
.st-completed, .st-approved { color: var(--green); background: rgba(43,208,122,.12); }
.st-processing, .st-created, .st-pending { color: var(--gold); background: rgba(244,183,58,.12); }
.st-failed, .st-refunded, .st-cancelled, .st-rejected { color: #FF6470; background: rgba(255,80,90,.12); }
.empty { text-align: center; padding: 44px 20px; color: var(--text-2); }
.empty .e-ico { font-size: 44px; margin-bottom: 10px; }

/* Card for deposits */
.pay-card { position: relative; overflow: hidden; padding: 18px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3A1018 0%, #1C0709 70%); border: 1px solid rgba(255,255,255,.08); }
.pay-card .brand { font-weight: 800; letter-spacing: .5px; font-size: 14px; opacity: .8; }
.pay-card .number { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.pay-card .holder { opacity: .75; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }

.upload { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--border-strong); background: var(--surface); width: 100%; text-align: left; }
.upload.has { border-style: solid; border-color: rgba(43,208,122,.5); }
.upload img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }

/* Earn */
.ref-hero { padding: 20px 16px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, rgba(232,22,47,.35), transparent 60%), var(--surface); border: 1px solid rgba(232,22,47,.25); }
.ref-hero h2 { margin: 10px 0 4px; font-size: 22px; font-weight: 900; letter-spacing: -.4px; }
.ref-hero p { margin: 0; color: var(--text-2); font-size: 14px; }
.link-box { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.link-box span { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mini-stats div { padding: 12px 8px; text-align: center; border-radius: 16px; }
.mini-stats b { display: block; font-size: 20px; font-weight: 900; }
.mini-stats small { color: var(--text-2); font-size: 12.5px; }
.gw-card { padding: 16px; border-radius: 22px; }
.gw-card .g-top { display: flex; gap: 12px; align-items: center; }
.gw-card .g-emoji { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 30px; background: rgba(232,22,47,.12); flex: none; }
.gw-card img.g-img { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.gw-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gw-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 10px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.countdown { font-variant-numeric: tabular-nums; }
.fair { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; color: var(--text-3); user-select: text; }

/* ───────────────── Bottom nav ───────────────── */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--nav-bg); border-top: 1px solid var(--border);
  padding-bottom: var(--safe-b); }
.nav-inner { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3);
  font-size: 13px; font-weight: 600; position: relative; transition: color .15s; }
.nav a svg { width: 25px; height: 25px; }
.nav a.on { color: #FF2E46; }
.nav a .dot { position: absolute; top: 12px; left: calc(50% + 10px); width: 7px; height: 7px; border-radius: 50%; background: #FF2E46; }

/* ───────────────── Overlays ───────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease; backdrop-filter: blur(2px); }
.sheet-wrap.center { align-items: center; padding: 20px; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 10px var(--gutter) calc(20px + var(--safe-b)); animation: up .32s cubic-bezier(.2, .9, .2, 1); border: 1px solid var(--border); border-bottom: 0; }
.sheet-wrap.center .sheet { border-radius: 24px; max-width: 380px; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); padding: 22px 18px 18px; border-bottom: 1px solid var(--border); }
.grabber { width: 40px; height: 5px; border-radius: 999px; background: var(--border-strong); margin: 2px auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; letter-spacing: -.3px; }
.sheet p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet .actions .btn { flex: 1; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.kv span:first-child { color: var(--text-2); }
.kv span:last-child { font-weight: 700; text-align: right; word-break: break-word; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

.toasts { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 420px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 16px;
  background: #2A0E12; color: #fff; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 14.5px; font-weight: 500;
  animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.2); }
.toast.out { animation: toastOut .25s ease forwards; }
.toast.success .t-i { color: var(--green); }
.toast.error .t-i { color: #FF5A68; }
.toast.info .t-i { color: var(--gold); }
@keyframes toastIn { from { transform: translateY(-20px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-16px); opacity: 0; } }

/* Skeleton */
.sk { background: var(--skeleton); border-radius: 12px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Full-screen states */
.screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; text-align: center; }
.screen .logo { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 42px; margin-bottom: 18px;
  background: linear-gradient(180deg, #F2263C, #B50F27); box-shadow: var(--shadow-red); overflow: hidden; }
.screen .logo img { width: 100%; height: 100%; object-fit: cover; }
.screen h1 { margin: 0 0 8px; font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.screen p { margin: 0 0 22px; color: var(--text-2); font-size: 15px; max-width: 320px; }
.lang-list { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.lang-btn { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px; border-radius: 18px; font-size: 17px; font-weight: 700; text-align: left; }
.lang-btn .flag { font-size: 26px; }
.lang-btn.on { border-color: var(--primary); background: rgba(232,22,47,.08); }
.ch-list { width: 100%; max-width: 380px; display: grid; gap: 10px; margin-bottom: 16px; }
.footer-note { text-align: center; color: var(--text-3); font-size: 12.5px; margin-top: 28px; }

@media (min-width: 480px) { .tile b { font-size: 16px; } }
.btn-white.compact { padding: 0; width: 44px; justify-content: center; }
.btn-white.compact span { display: none; }
@media (max-width: 360px) {
  .shop-card h2 { font-size: 19px; }
  .stars-strip .note { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
