@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/unbounded-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/onest-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --ink: #120F2A;
  --ink-2: #1C1842;
  --ink-3: #28225A;
  --line: rgba(205, 196, 255, .11);
  --text: #F3F0FF;
  --muted: #A29CCB;
  --faint: #6F6A9A;
  --gold: #FFC233;
  --gold-hi: #FFE27A;
  --gold-lo: #FF8A1F;
  --violet: #B79CFF;
  --steam: #7CC7F2;
  --ok: #5EE3A1;
  --bad: #FF7D86;
  --warn: #FFB65C;

  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(120, 92, 255, .22), transparent 60%),
    radial-gradient(1.2px 1.2px at 12% 14%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 32% 6%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.4px 1.4px at 74% 22%, rgba(255,226,122,.55), transparent 60%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 6% 46%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.2px 1.2px at 56% 34%, rgba(255,255,255,.28), transparent 60%),
    var(--ink);
}

.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.bad-text { color: var(--bad); }

.view {
  max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-top) + 14px) var(--gutter) calc(var(--safe-bottom) + 32px);
  min-height: 100vh;
}
body.has-tabs .view { padding-bottom: calc(var(--safe-bottom) + 96px); }
.view:has(.cta-bar) { padding-bottom: calc(var(--safe-bottom) + 168px); }
.view.enter > * { animation: enter .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

.screen { display: flex; flex-direction: column; gap: 16px; }
.screen-loading { display: grid; place-items: center; min-height: 40vh; }

.title { font: 600 24px/1.15 var(--display); letter-spacing: -.01em; margin: 4px 0 0; }
.title.center { margin-top: 8px; }
.title-premium { color: #E3D8FF; }
.title-steam { color: #D6EEFC; }
.lead { margin: -6px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.lead.center { margin-left: auto; margin-right: auto; }
.sub { font: 600 15px/1.2 var(--body); margin: 8px 0 -4px; color: var(--muted); }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--faint); max-width: 52ch; }

.home-head { display: flex; align-items: center; justify-content: space-between; }
.me-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.04); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--muted); flex: none; }
.icon-btn:active { background: rgba(255,255,255,.06); }

.balance { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin: 18px 0 20px; }
.balance-main { min-width: 0; }
.balance-main small { font-size: 13px; }
.balance-sum { font: 600 44px/1.05 var(--display); letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; }
.topup-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gold-hi); font-weight: 600; }
.topup-btn small { font-size: 12px; }
.topup-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #F5A524); color: #261700; box-shadow: 0 6px 18px rgba(255,170,40,.28); }
.topup-btn:active .topup-ic { transform: scale(.94); }

.hero-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 22px 20px 20px; margin-bottom: 12px; min-height: 196px;
  background:
    radial-gradient(70% 90% at 92% 8%, rgba(255, 194, 51, .32), transparent 62%),
    linear-gradient(150deg, #2D2468 0%, #1E1948 55%, #171338 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .16);
}
.hero-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #FFF3C4; opacity: .5; z-index: -1; }
.hero-sky i:nth-child(1) { top: 18%; left: 52%; } .hero-sky i:nth-child(2) { top: 64%; left: 78%; opacity: .3; }
.hero-sky i:nth-child(3) { top: 30%; left: 66%; width: 3px; height: 3px; } .hero-sky i:nth-child(4) { top: 80%; left: 58%; opacity: .25; }
.hero-sky i:nth-child(5) { top: 12%; left: 30%; opacity: .2; } .hero-sky i:nth-child(6) { top: 48%; left: 90%; opacity: .4; }
.hero-sky i:nth-child(7) { top: 72%; left: 40%; opacity: .18; } .hero-sky i:nth-child(8) { top: 40%; left: 46%; opacity: .25; }
.hero-sky i:nth-child(9) { top: 8%; left: 74%; opacity: .45; } .hero-sky i:nth-child(10) { top: 56%; left: 64%; opacity: .2; }
.hero-sky i:nth-child(n+11) { top: 88%; left: 86%; opacity: .2; }
.hero-star { position: absolute; right: 14px; top: 14px; transform: rotate(12deg); filter: drop-shadow(0 6px 24px rgba(255, 170, 40, .55)); }
.hero-copy { max-width: 64%; }
.hero-copy h1 { font: 600 22px/1.1 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.hero-copy p { margin: 0; color: #CFC8F2; font-size: 14px; }
.hero-cta {
  display: inline-flex; margin-top: 20px; padding: 11px 18px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #F7A928); color: #2A1A00; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 170, 40, .3);
}
.hero-tile:active { transform: scale(.99); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 22px; min-height: 124px; }
.tile b { font: 600 16px/1.2 var(--display); margin-top: auto; }
.tile small { color: var(--muted); font-size: 13px; }
.tile-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 14px; }
.tile-premium { background: linear-gradient(160deg, #2E2366, #221B4D); box-shadow: inset 0 0 0 1px rgba(183,156,255,.16); }
.tile-premium .tile-ic { background: rgba(183,156,255,.16); color: var(--violet); }
.tile-steam { background: linear-gradient(160deg, #1D2A55, #1A1E47); box-shadow: inset 0 0 0 1px rgba(124,199,242,.14); }
.tile-steam .tile-ic { background: rgba(124,199,242,.14); color: var(--steam); }
.tile:active, .row-link:active, .ticket-link:active { transform: scale(.985); }

.block { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; }
.block-head h2 { font: 600 17px/1.2 var(--body); margin: 0; }
.block-head a { color: var(--gold); font-weight: 600; font-size: 14px; }
.rows { display: flex; flex-direction: column; border-radius: 18px; background: var(--ink-2); overflow: hidden; }
.rows:empty { display: none; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; width: 100%; text-align: left; min-height: 64px;
}
.rows > .row + .row { border-top: 1px solid var(--line); }
.row-link { background: var(--ink-2); border-radius: 18px; }
.rows .row-link { border-radius: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small, .row-end small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small.faint { color: var(--faint); font-size: 12px; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }

.oi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); flex: none; }
.oi-stars { background: rgba(255,194,51,.12); }
.oi-premium { background: rgba(183,156,255,.15); color: var(--violet); }
.oi-steam { background: rgba(124,199,242,.13); color: var(--steam); }
.oi-check, .oi-wallet { background: rgba(255,194,51,.12); color: var(--gold); }
.oi-ton { background: rgba(124,199,242,.13); color: var(--steam); }
.oi-cryptobot { background: rgba(94,227,161,.12); color: var(--ok); }
.oi-aaio, .oi-platega_card { background: rgba(183,156,255,.15); color: var(--violet); }
.oi-platega_sbp { background: rgba(94,227,161,.12); color: var(--ok); }
.oi-admin { background: rgba(255,125,134,.12); color: var(--bad); }

.pill { display: inline-block; font-size: 12px !important; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted) !important; }
.pill.ok { background: rgba(94,227,161,.13); color: var(--ok) !important; }
.pill.bad { background: rgba(255,125,134,.14); color: var(--bad) !important; }
.pill.wait { background: rgba(255,194,51,.13); color: var(--gold) !important; }
.pill.warn { background: rgba(255,182,92,.14); color: var(--warn) !important; }

.empty { color: var(--faint); margin: 0; padding: 18px; border-radius: 18px; border: 1px dashed var(--line); text-align: center; font-size: 14px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; color: var(--muted); text-align: center; }
.empty-state p { margin: 0; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.screen .notice { margin-bottom: 0; }
.notice .ic { width: 20px; height: 20px; margin-top: 1px; }
.notice.warn { background: rgba(255,182,92,.1); color: #FFD7A6; }
.notice.bad { background: rgba(255,125,134,.1); color: #FFC2C7; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--ink-2); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg button { padding: 10px 6px; border-radius: 12px; font-weight: 600; color: var(--muted); font-size: 14px; transition: background .18s, color .18s; }
.seg button.on { background: var(--ink-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

.recipient { display: flex; flex-direction: column; gap: 10px; }
.recipient-body { display: flex; flex-direction: column; gap: 10px; }
.who-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--ink-2); }
.who-card > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.who-card b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-card small { color: var(--muted); font-size: 13px; }
.who-card.ghost { color: var(--muted); }
.ok-ic { color: var(--ok); }

.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-radius: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,194,51,.7); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0; font-size: 16px; }
.field input::placeholder, .textarea::placeholder { color: var(--faint); }
.at-field .at { color: var(--muted); font-weight: 600; font-size: 17px; }
.field-label { font-weight: 600; font-size: 14px; color: var(--muted); margin: 6px 0 -8px; }
.big-field input { font: 600 22px/1 var(--display); }
.textarea { width: 100%; border: 0; outline: 0; border-radius: 16px; padding: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); resize: vertical; font-size: 15px; }
.textarea:focus { box-shadow: inset 0 0 0 1.5px rgba(255,194,51,.7); }
.textarea.mono { font: 12px/1.45 ui-monospace, Menlo, monospace; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.chip.on { background: rgba(255,194,51,.14); box-shadow: inset 0 0 0 1px rgba(255,194,51,.55); color: var(--gold-hi); }

.amount-field { display: flex; align-items: baseline; gap: 4px; padding: 6px 0 0; font: 600 48px/1 var(--display); }
.amount-field span { color: var(--muted); }
.amount-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; letter-spacing: -.02em; padding: 0; }
.receive { margin: -6px 0 0; font-size: 15px; }
.receive b { color: var(--steam); }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; }
.stepper .icon-btn { width: 52px; height: 52px; border-radius: 16px; background: var(--ink-2); color: var(--text); }
.stepper input { width: 100%; min-width: 0; text-align: center; border: 0; outline: 0; height: 52px; border-radius: 16px; background: var(--ink-2); font: 600 20px/1 var(--display); }

.dial-block { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.qty-line { display: flex; align-items: center; justify-content: center; gap: 10px; }
.qty-star { flex: none; }
.qty-measure { position: absolute; visibility: hidden; white-space: pre; font: 700 56px/1 var(--display); letter-spacing: -.035em; }
.qty-input {
  width: 3em; max-width: 78%;
  border: 0; outline: 0; background: transparent; padding: 0; text-align: left;
  font: 700 56px/1 var(--display); letter-spacing: -.035em;
  background: linear-gradient(180deg, #FFF4C8, var(--gold) 70%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  caret-color: var(--gold);
}
.qty-input:focus { border-radius: 8px; box-shadow: 0 2px 0 rgba(255,194,51,.5); }
.qty-price { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -4px; }
.qty-price span { font: 600 20px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.qty-price small { font-size: 13px; }

.dial {
  position: relative; height: 74px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory; touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.dial::-webkit-scrollbar { display: none; }
.dial-track { display: flex; align-items: flex-start; height: 100%; padding: 0 calc(50% - 7px); width: max-content; }
.tk { position: relative; flex: none; width: 14px; height: 100%; scroll-snap-align: center; }
.tk::before { content: ''; position: absolute; left: 6px; top: 10px; width: 2px; height: 18px; border-radius: 2px; background: rgba(205,196,255,.28); transition: background .15s, height .15s; }
.tk.mj::before { height: 28px; top: 6px; background: rgba(205,196,255,.55); }
.tk.near::before { background: rgba(255,214,110,.75); }
.tk em { position: absolute; top: 44px; left: 7px; transform: translateX(-50%); font: 500 11px/1 var(--display); font-style: normal; color: var(--faint); white-space: nowrap; }
.dial-wrap { position: relative; margin: 4px calc(-1 * var(--gutter)) 0; }
.dial-needle { position: absolute; left: calc(50% - 2px); top: 2px; width: 4px; height: 38px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 14px rgba(255,194,51,.8); pointer-events: none; }

.plans, .methods { display: flex; flex-direction: column; gap: 10px; }
.plan, .method {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 16px; border-radius: 18px; background: var(--ink-2); text-align: left; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .18s, background .18s;
}
.method { grid-template-columns: auto 1fr auto; padding: 12px 16px 12px 12px; }
.plan-dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); flex: none; transition: box-shadow .18s; }
.method .plan-dot { order: 3; }
.plan.on { background: #241C55; box-shadow: inset 0 0 0 1.5px rgba(183,156,255,.7); }
.plan.on .plan-dot { box-shadow: inset 0 0 0 7px var(--violet); }
.method.on { box-shadow: inset 0 0 0 1.5px rgba(255,194,51,.65); }
.method.on .plan-dot { box-shadow: inset 0 0 0 7px var(--gold); }
.plan-main { display: flex; flex-direction: column; }
.plan-main b { font-weight: 600; font-size: 16px; }
.plan-main small { color: var(--muted); font-size: 13px; }
.plan-price { font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; font-weight: 700; color: var(--violet); padding: 3px 8px; border-radius: 999px; background: rgba(183,156,255,.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 700; font-size: 15px; text-align: center;
  transition: transform .12s, opacity .18s, filter .18s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .ic { width: 20px; height: 20px; }
.btn-lg { min-height: 56px; width: 100%; font-size: 16px; border-radius: 18px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #F5A524); color: #261700; box-shadow: 0 8px 24px rgba(255,170,40,.22), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-violet { background: linear-gradient(180deg, #CDB8FF, #A788FF); color: #1C1240; box-shadow: 0 8px 24px rgba(160,130,255,.22); }
.btn-steam { background: linear-gradient(180deg, #A6DBF8, #6DBDEB); color: #0B2233; box-shadow: 0 8px 24px rgba(110,190,235,.2); }
.btn-soft { background: rgba(255,194,51,.12); color: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--muted); min-height: 44px; width: 100%; }
.btn-danger { background: #FF6B76; color: #2B0005; }
.btn-danger-ghost { background: rgba(255,125,134,.09); color: var(--bad); }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(38,23,0,.35); border-top-color: #261700; animation: spin .8s linear infinite; }
.btn-ghost.busy::after, .btn-soft.busy::after { border-color: rgba(255,255,255,.2); border-top-color: var(--text); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-hi); font-weight: 600; }
.link-btn .ic { width: 16px; height: 16px; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px var(--gutter) calc(var(--safe-bottom) + 14px);
  background: linear-gradient(180deg, rgba(18,15,42,0), rgba(18,15,42,.92) 26%, var(--ink) 60%);
}
.cta-bar > * { max-width: 528px; }
.cta-note { color: var(--faint); font-size: 13px; margin: 0; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto;
  padding: 8px 8px calc(var(--safe-bottom) + 8px);
  background: rgba(20, 17, 46, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--faint); font-size: 11px; font-weight: 600; border-radius: 12px; }
.tab.on { color: var(--gold); }

.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 4, 20, .6); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 10px var(--gutter) calc(var(--safe-bottom) + 16px); border-radius: 26px 26px 0 0;
  background: #1D1946; box-shadow: 0 -10px 40px rgba(0,0,0,.4); transform: translateY(104%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-height: 88vh; overflow-y: auto;
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 0 auto 4px; }
.sheet-title { font: 600 19px/1.2 var(--display); margin: 0; }
.sheet-text { margin: 0; color: var(--muted); }
.sheet-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.sheet-actions .btn-gold, .sheet-actions .btn-danger { min-height: 54px; }

.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 60; max-width: calc(100% - 32px);
  transform: translate(-50%, -150%); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
  background: #2C2665; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: #5A1F33; color: #FFD5D9; }
.toast.ok { background: #1D4A3C; color: #CFF8E4; }

.card { border-radius: 20px; background: var(--ink-2); padding: 4px 16px; }
.summary { margin: 0; display: flex; flex-direction: column; }
.summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; align-items: center; }
.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.sheet .summary { background: var(--ink); border-radius: 18px; padding: 2px 14px; }

.pay-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--ink-2); }
.pay-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'l b' 'v b'; column-gap: 8px; padding: 12px 8px 12px 16px; align-items: center; }
.pay-line + .pay-line { border-top: 1px solid var(--line); }
.pay-line small { grid-area: l; color: var(--muted); font-size: 13px; }
.pay-line code, .pay-line b { grid-area: v; }
.pay-line .icon-btn { grid-area: b; color: var(--gold); }
.pay-line.big b { font: 600 26px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.pay-line.must small { color: var(--warn); font-weight: 600; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.waiting b { color: var(--text); font-variant-numeric: tabular-nums; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255,194,51,.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,194,51,0); } 100% { box-shadow: 0 0 0 0 rgba(255,194,51,0); } }

.order-screen { padding-top: 12px; }
.orbit { position: relative; width: 148px; height: 148px; margin: 4px auto 0; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255,194,51,.35); animation: spin 14s linear infinite; }
.orbit-ring.r2 { inset: 22px; border-style: solid; border-color: rgba(183,156,255,.18); animation-duration: 9s; animation-direction: reverse; }
.orbit-core { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3A2F80, #211B52); box-shadow: 0 0 40px rgba(255,194,51,.25); }
.orbit-core .oi { background: none; width: auto; height: auto; }
.orbit-core .gold-star { width: 40px; height: 40px; }
.orbit-core > .ic { width: 34px; height: 34px; }
.orbit-dot { position: absolute; inset: 0; animation: spin 2.4s linear infinite; }
.orbit-dot::before { content: ''; position: absolute; top: -4px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 14px var(--gold); }
.orbit.done .orbit-ring, .orbit.bad .orbit-ring, .orbit.still .orbit-ring { animation: none; }
.orbit.done .orbit-dot, .orbit.bad .orbit-dot, .orbit.still .orbit-dot { display: none; }
.orbit.done .orbit-core { background: radial-gradient(circle at 35% 30%, #2C7A5A, #18473A); color: var(--ok); box-shadow: 0 0 50px rgba(94,227,161,.3); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.orbit.done .orbit-ring { border-color: rgba(94,227,161,.35); }
.orbit.bad .orbit-core { background: radial-gradient(circle at 35% 30%, #7A2C43, #47182A); color: var(--bad); box-shadow: none; }
.orbit.bad .orbit-ring { border-color: rgba(255,125,134,.3); }
@keyframes pop { from { transform: scale(.6); } }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--faint); font-weight: 500; }
.steps li + li::before { content: ''; position: absolute; left: 11px; top: -9px; height: 18px; width: 2px; background: var(--line); }
.steps li.ok { color: var(--text); }
.steps li.ok + li::before { background: rgba(94,227,161,.5); }
.steps li.active { color: var(--gold-hi); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.step-dot .ic { width: 14px; height: 14px; }
.steps li.ok .step-dot { background: rgba(94,227,161,.16); color: var(--ok); box-shadow: none; }
.steps li.active .step-dot { box-shadow: inset 0 0 0 2px var(--gold); }
.steps li.active .step-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }

.result { padding-top: 10vh; align-items: center; text-align: center; }
.result-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; }
.result-mark .ic { width: 38px; height: 38px; }
.result-mark.ok { background: rgba(94,227,161,.15); color: var(--ok); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.result-mark.bad { background: rgba(255,125,134,.13); color: var(--bad); }

.tickets { display: flex; flex-direction: column; gap: 10px; }
.ticket {
  --notch: radial-gradient(circle at 0 50%, transparent 9px, #000 9.5px);
  display: grid; grid-template-columns: 112px 1fr; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #2C2465, #1F1A4A);
}
.ticket::after { content: ''; position: absolute; left: 111px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(255,214,110,.22); }
.ticket-l { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 8px; background: rgba(255,194,51,.08); }
.ticket-l b { font: 700 20px/1 var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ticket-l small { color: var(--muted); font-size: 12px; }
.ticket-r { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px 14px 20px; }
.ticket-r b { font-weight: 600; font-size: 16px; }
.ticket-r small { color: var(--muted); font-size: 13px; }
.ticket-big { grid-template-columns: 140px 1fr; }
.ticket-big::after { left: 139px; }
.ticket-big .ticket-l { padding: 24px 8px; }
.ticket-big .ticket-l b { font-size: 28px; }
.bar { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }

.gift { padding-top: 6vh; align-items: center; text-align: center; }
.gift-star { display: grid; place-items: center; margin: 8px auto 0; filter: drop-shadow(0 10px 40px rgba(255,170,40,.55)); animation: float 4s ease-in-out infinite; }
.gift-star.small { margin-top: 6vh; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }

.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .title { margin: 0; }
.profile-head p { margin: 2px 0 0; }
.avatar { position: relative; display: inline-grid; border-radius: 50%; overflow: hidden; flex: none; }
.avatar img, .avatar b { grid-area: 1 / 1; width: 100%; height: 100%; }
.avatar img { object-fit: cover; z-index: 1; }
.avatar b { display: grid; place-items: center; font: 600 15px/1 var(--display); color: #fff; background: linear-gradient(150deg, hsl(var(--h) 55% 52%), hsl(calc(var(--h) + 40) 55% 36%)); }
.ref { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; }
.ref h2 { font: 600 18px/1.2 var(--display); margin: 0; }
.ref p { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-stats div { background: var(--ink); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.ref-stats b { font: 600 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.ref-stats small { color: var(--muted); font-size: 13px; }
.ref .pay-line { background: var(--ink); border-radius: 14px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--ink-2); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { font: 600 20px/1.15 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat em { font-style: normal; color: var(--faint); font-size: 12px; }
.stat-hero { grid-column: span 2; background: linear-gradient(150deg, #2D2468, #1E1948); }
.stat-hero b { font-size: 30px; color: var(--gold-hi); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.span-2 { grid-column: span 2; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--ink-2); text-align: left; width: 100%; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
[aria-checked="true"] .switch { background: var(--ok); }
[aria-checked="true"] .switch::after { transform: translateX(20px); }
.form { display: flex; flex-direction: column; gap: 14px; }
.file-pick { display: block; cursor: pointer; }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick span { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); }
.file-pick input:focus-visible + span { outline: 2px solid var(--gold); }
.progress-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.progress-card small { color: var(--muted); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 22px; height: 22px; border-width: 2.5px; margin: 9px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orbit-dot { display: none; }
}
@media (max-width: 360px) {
  .balance-sum { font-size: 34px; }
  .qty-input, .qty-measure { font-size: 46px; }
  .hero-copy { max-width: 70%; }
}

.row-link .row-main small, .toggle-row .row-main small { white-space: normal; }
.stat:nth-child(even):last-child { grid-column: span 2; }

.topbar {
  position: sticky; top: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-top) + 6px) calc(var(--gutter) - 8px) 6px;
  background: linear-gradient(180deg, var(--ink) 70%, rgba(18,15,42,0));
}
body.has-topbar .view { padding-top: 4px; }
.back-btn { display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px 8px 6px; border-radius: 12px; color: var(--gold-hi); font-weight: 600; font-size: 15px; }
.back-btn .ic { width: 22px; height: 22px; }
.back-btn:active { background: rgba(255,255,255,.06); }

.flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); font-weight: 600; font-size: 13px; color: var(--text); }
.lang-btn:active { background: rgba(255,255,255,.1); }
.flag-wrap { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.05); }
.lang-opt { grid-template-columns: auto 1fr auto; }

.buys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--ink-2); min-width: 0; }
.buy-tile small { color: var(--muted); font-size: 13px; }
.buy-tile b { font: 600 18px/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 2px; }
.buy-tile em { font-style: normal; color: var(--faint); font-size: 12px; }
.bt-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.bt-ic .ic { width: 20px; height: 20px; }
.bt-stars .bt-ic { background: rgba(255,194,51,.12); }
.bt-premium .bt-ic { background: rgba(183,156,255,.15); color: var(--violet); }
.bt-steam .bt-ic { background: rgba(124,199,242,.13); color: var(--steam); }
.bt-checks .bt-ic { background: rgba(255,194,51,.12); color: var(--gold); }

.seg-3 { grid-template-columns: repeat(3, 1fr); }
.dash #dash-body { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.delta { font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.delta span { color: var(--faint); font-weight: 400; }
.chart-card { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chart-head h2 { font: 600 15px/1.2 var(--body); margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .chart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ax-grid { stroke: rgba(205,196,255,.08); stroke-width: 1; }
.ax-base { stroke: rgba(205,196,255,.22); stroke-width: 1; }
.ax-label { fill: var(--faint); font: 500 10.5px var(--body); font-variant-numeric: tabular-nums; }
.hover-band { fill: rgba(255,255,255,.05); rx: 4; }
.bar-col { transition: opacity .15s; }
.bar-col.dim { opacity: .45; }
.crosshair { stroke: rgba(205,196,255,.35); stroke-width: 1; stroke-dasharray: 3 3; }
.hover-dot { stroke: var(--ink-2); stroke-width: 2; }
.chart-tip {
  position: absolute; top: 0; z-index: 5; pointer-events: none;
  min-width: 150px; padding: 8px 10px; border-radius: 12px; background: #2C2665; box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 3px; font-size: 12px;
}
.chart-tip b { font-size: 12px; color: var(--text); margin-bottom: 2px; }
.chart-tip span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chart-tip em { font-style: normal; margin-left: auto; padding-left: 10px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip .tip-total { border-top: 1px solid var(--line); padding-top: 3px; margin-top: 2px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13px; }
.hbar-label { color: var(--muted); }
.hbar-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar-track { grid-column: span 2; height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 8px; }
.dash-split { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .dash-split { grid-template-columns: 1fr 1fr; } }
.status-list { display: flex; flex-wrap: wrap; gap: 8px; }
.status-list .pill { font-size: 13px !important; padding: 5px 10px; }
.rows.flat { background: transparent; }
.rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,194,51,.12); color: var(--gold-hi); font: 600 13px var(--display); }
.table-wrap { max-height: 280px; overflow: auto; border-radius: 12px; background: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { text-align: left; color: var(--muted); }
.data-table th { position: sticky; top: 0; background: var(--ink); color: var(--muted); font-weight: 600; }
.buy-tile b .unit { font: 500 13px/1 var(--body); color: var(--muted); }
.result-mark:not(.ok):not(.bad) { background: rgba(255,194,51,.12); color: var(--gold); }
.result-mark .ic { width: 38px; height: 38px; }
.method .row-main small { white-space: normal; }

.pay-sys { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.pay-sys .notice { margin: 0; }
.pay-sys-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.pay-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.pay-row.col .hint { margin: 0; }
.pay-sub { font: 600 14px/1.2 var(--body); color: var(--muted); margin: 4px 0 -2px; }
.pm-list { display: flex; flex-direction: column; border-radius: 14px; background: var(--ink); overflow: hidden; }
.pm-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; }
.pm-row + .pm-row { border-top: 1px solid var(--line); }
.pm-row.off .row-main { opacity: .5; }
.fee-field { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 38px; border-radius: 12px; background: var(--ink-3); }
.pm-row .fee-field { background: var(--ink-2); }
.fee-field input { width: 44px; border: 0; outline: 0; background: transparent; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fee-field span { color: var(--muted); }
.fee-field:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,194,51,.7); }
.switch-btn { display: inline-flex; padding: 2px; border-radius: 999px; }
.oi-platega, .oi-pm10, .oi-pm11 { background: rgba(183,156,255,.15); color: var(--violet); }
.oi-pm2 { background: rgba(94,227,161,.12); color: var(--ok); }
.oi-pm12, .oi-pm13 { background: rgba(124,199,242,.13); color: var(--steam); }
.pay-sys-head .row-main small { white-space: normal; }
