/* ============ tokens ============ */
:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --card: #111118;
  --card-2: #17171f;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, .64);
  --text-3: rgba(245, 245, 247, .40);
  --violet: #7b61ff;
  --violet-2: #a594ff;
  --mint: #2fe3c8;
  --pink: #ff5d8f;
  --gold: #ffc451;
  --green: #3ee08f;
  --red: #ff6464;
  --grad: linear-gradient(120deg, #7b61ff 0%, #a35cff 45%, #ff5d8f 100%);
  --grad-cool: linear-gradient(120deg, #7b61ff, #2fe3c8);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px;
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
b, strong { font-weight: 650; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ============ background ============ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
.bg i { position: absolute; border-radius: 50%; will-change: transform; }
.bg-a { width: 120vmax; height: 120vmax; left: -60vmax; top: -70vmax;
  background: radial-gradient(closest-side, rgba(123, 97, 255, .20), transparent 72%); animation: drift-a 26s ease-in-out infinite alternate; }
.bg-b { width: 110vmax; height: 110vmax; right: -65vmax; bottom: -60vmax;
  background: radial-gradient(closest-side, rgba(47, 227, 200, .09), transparent 72%); animation: drift-b 30s ease-in-out infinite alternate; }
.bg-c { width: 80vmax; height: 80vmax; right: -50vmax; top: 10vh;
  background: radial-gradient(closest-side, rgba(255, 93, 143, .07), transparent 72%); animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vw, -14vh) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============ screens & pages ============ */
.screen { position: fixed; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 112px); scrollbar-width: none; }
.screen::-webkit-scrollbar, .page-body::-webkit-scrollbar { display: none; }
.screen > *, .page-body > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.view { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.99);
  transition: opacity .28s var(--out), transform .45s var(--out), visibility 0s .28s; }
.view.active { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--out), transform .5s var(--out), visibility 0s; }
#views.covered .view, .page.covered { visibility: hidden; }

.page { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg);
  transform: translateX(104%); transition: transform .5s var(--out); box-shadow: -30px 0 60px rgba(0, 0, 0, .5); overflow: hidden; }
.page.in { transform: none; }
.page::before { content: ""; position: absolute; inset: -20% -40% auto; height: 70%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 30%, var(--acc-glow, rgba(123, 97, 255, .22)), transparent 70%); }
.page-body { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain; padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 120px); scrollbar-width: none; }
.pg-back { position: absolute; z-index: 6; left: 12px; top: calc(var(--safe-top) + 10px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(30, 30, 40, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.pg-back svg { width: 20px; height: 20px; transform: scaleX(-1); }
.page.no-cta .page-body { padding-bottom: calc(var(--safe-bottom) + 32px); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--out), transform .7s var(--out); transition-delay: var(--d, 0s); }
.rv.seen { opacity: 1; transform: none; }

/* ============ animated emoji ============ */
.ae { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; vertical-align: middle; }
.ae > i { font-style: normal; font-size: calc(var(--s) * .78); line-height: 1; opacity: 0; transition: opacity .2s; }
.ae.fb > i { opacity: 1; }
.ae > svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--out), transform .5s var(--spring); }
.ae.on > svg { opacity: 1; transform: none; }
.ae.on > i { display: none; }

/* ============ common ============ */
.tap { transition: transform .35s var(--spring); }
.tap:active { transform: scale(.97); }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 4px 12px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sec small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--text-3); letter-spacing: 0; }
.sec.sm { margin-top: 20px; font-size: 13px; color: var(--text-2); }
.title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 14px 4px 4px; }
.lead { color: var(--text-2); margin: 0 4px; line-height: 1.45; }
.muted { color: var(--text-2); }
.hint { color: var(--text-3); font-size: 12.5px; line-height: 1.45; text-align: center; margin-top: 14px; }
.cur { font-family: var(--font); font-weight: 600; opacity: .7; margin-left: .12em; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.badge.grad { background: var(--grad); box-shadow: 0 6px 18px -6px rgba(163, 92, 255, .8); }
.badge.glass { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.badge.gold { background: var(--gold); color: #241800; }
.badge.ok { background: rgba(62, 224, 143, .14); color: var(--green); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px;
  border-radius: 18px; font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), opacity .2s, filter .2s; }
.btn:active { transform: scale(.965); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--grad); box-shadow: 0 14px 34px -12px rgba(140, 90, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); animation: shine 3.6s ease-in-out infinite; }
.btn.glass { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.btn.white { background: #fff; color: #0a0a10; }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 40px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
.btn + .btn.block { margin-top: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading > * { opacity: 0; }
.btn.loading::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes shine { 0%, 50% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.card { position: relative; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  border: 1px solid var(--line); padding: 18px; }

/* ============ hero (balance) ============ */
.hero { position: relative; border-radius: 30px; overflow: hidden; isolation: isolate; min-height: 214px; padding: 18px 20px 20px;
  display: flex; flex-direction: column; background: #130f24;
  box-shadow: 0 24px 60px -24px rgba(123, 97, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .09); }
.hero-aur { position: absolute; inset: -45%; z-index: -3; filter: blur(22px) saturate(135%);
  background:
    radial-gradient(32% 38% at 22% 30%, rgba(123, 97, 255, .95), transparent 70%),
    radial-gradient(30% 36% at 78% 22%, rgba(255, 93, 143, .70), transparent 70%),
    radial-gradient(36% 42% at 72% 82%, rgba(47, 227, 200, .55), transparent 70%),
    radial-gradient(30% 30% at 26% 86%, rgba(255, 196, 81, .35), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: rotate(22deg) scale(1.12) translate(3%, 2%); } 100% { transform: rotate(-14deg) scale(1.05) translate(-3%, -2%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(8, 7, 14, .05) 0%, rgba(8, 7, 14, .55) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px; -webkit-mask-image: radial-gradient(80% 70% at 85% 30%, #000, transparent 70%); mask-image: radial-gradient(80% 70% at 85% 30%, #000, transparent 70%); }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 18px #fff; }
.hero-emoji { position: absolute; right: 10px; top: 50px; z-index: 0; filter: drop-shadow(0 16px 30px rgba(20, 8, 60, .6)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.hero-bot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cap { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bal { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; margin-top: 4px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.bal .cur { font-size: .62em; }
.plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #0b0b12; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .14); }
.plus svg { width: 22px; height: 22px; }

.ava { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--grad); font-family: var(--display); font-weight: 700; color: #fff; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hava { padding: 2px; border-radius: 50%; background: rgba(255, 255, 255, .22); }

/* ============ featured product ============ */
.feat { position: relative; display: block; width: 100%; margin-top: 14px; border-radius: 28px; padding: 18px 18px 18px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--acc, #7b61ff) 34%, transparent), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(47, 227, 200, .12), transparent 60%),
    #0e0e16; }
.feat::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(123, 97, 255, .1) 0deg, #8b73ff 70deg, #ff5d8f 130deg, rgba(47, 227, 200, .9) 210deg, rgba(123, 97, 255, .1) 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 7s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --ang: 360deg; } }
.feat-grid { position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 80% at 90% 10%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 90% 10%, #000, transparent 75%); }
.feat-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-right: 96px; }
.feat-emoji { position: absolute; right: 10px; top: 8px; z-index: 1; filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--acc, #7b61ff) 55%, transparent)); animation: bob 6s ease-in-out infinite; }
.feat-title { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.12; letter-spacing: -.02em; margin-top: 16px; padding-right: 92px;
  background: linear-gradient(180deg, #fff 30%, #cfc6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-sub { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.marq { position: relative; margin: 16px -18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq-track { display: flex; gap: 8px; width: max-content; padding: 0 18px; animation: marq 38s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 8px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--line); font-size: 13px; font-weight: 550; }
.feat-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.price { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.price small { font-family: var(--font); font-size: 13px; font-weight: 550; color: var(--text-2); letter-spacing: 0; }
.price .cur { font-size: .7em; }
.has-access { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: 0; }
.has-access svg { width: 18px; height: 18px; }

/* ============ product grid ============ */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; min-height: 178px; padding: 16px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.pcard::before { content: ""; position: absolute; width: 140px; height: 140px; left: -30px; top: -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc, #7b61ff) 38%, transparent), transparent); }
.pcard .tag { position: absolute; top: 12px; right: 12px; height: 24px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 750; letter-spacing: .08em; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.pcard h3 { margin-top: auto; padding-top: 14px; font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.pc-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.pc-meta svg { width: 14px; height: 14px; }
.pc-meta.on { color: var(--green); }
.pc-line { position: relative; height: 3px; margin-top: 12px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pc-line i { position: absolute; inset: 0; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc, #7b61ff) 90%, #fff), transparent); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ============ tabbar ============ */
.tabbar { position: fixed; z-index: 10; left: 50%; bottom: calc(var(--safe-bottom) + 12px); width: min(calc(100% - 32px), 400px); height: 66px;
  transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 34px;
  background: rgba(22, 22, 30, .66); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .5s var(--out), opacity .3s; }
.tabbar.hide { transform: translate(-50%, 150%); opacity: 0; }
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .55s var(--spring); }
.tabbar button { position: relative; z-index: 1; display: grid; place-items: center; color: var(--text-3); transition: color .25s; }
.tabbar button.on { color: var(--text); }
.tabbar button svg { width: 25px; height: 25px; transition: transform .45s var(--spring); }
.tabbar button.on svg { transform: scale(1.08); }

/* ============ product page ============ */
.p-hero { text-align: center; padding-top: 6px; }
.p-stage { position: relative; width: 250px; height: 214px; margin: 0 auto; }
.p-halo { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc, #7b61ff) 70%, transparent), transparent); filter: blur(10px); animation: pulse 4.5s ease-in-out infinite; }
.p-ring { position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; margin: -88px 0 0 -88px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .14); animation: spin 40s linear infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }
.p-main { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .5)); }
.orb { position: absolute; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.orb:nth-child(4) { left: 0; top: 26px; transform: rotate(-10deg); }
.orb:nth-child(5) { right: 4px; top: 4px; animation-delay: -2s; }
.orb:nth-child(6) { right: -4px; bottom: 24px; animation-delay: -4s; }
.orb:nth-child(7) { left: 14px; bottom: 0; animation-delay: -5.5s; }
@keyframes float { 50% { translate: 0 -10px; } }
.p-hero .badge { margin-top: 6px; }
.p-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -.025em; margin-top: 14px;
  background: linear-gradient(180deg, #fff 35%, #cfc6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-sub { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 10px auto 0; max-width: 360px; }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills .chip { height: 38px; }

.access { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 14px 14px 16px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(62, 224, 143, .14), rgba(62, 224, 143, .04)); border: 1px solid rgba(62, 224, 143, .25); }
.access .a-t { flex: 1; min-width: 0; }
.access b { display: block; font-size: 15px; }
.access span { font-size: 13px; color: var(--text-2); }

.topic { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.topic + .topic { margin-top: 8px; }
.t-ic { position: relative; flex: none; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .055); }
.t-n { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--display); font-size: 10px; font-weight: 700; background: #1d1b2b; border: 1px solid var(--line-2); color: var(--violet-2); }
.topic b { display: block; font-size: 15.5px; margin-top: 3px; }
.topic p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.45; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; display: block; width: 100%; padding: 16px 16px 15px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, .035); border: 1.5px solid var(--line-2); transition: background .25s, border-color .25s, transform .35s var(--spring); }
.plan.on { border-color: transparent; background: linear-gradient(#15121f, #15121f) padding-box, var(--grad) border-box;
  box-shadow: 0 14px 34px -16px rgba(140, 90, 255, .8); }
.plan .pl-t { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.plan .pl-p { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin-top: 8px; }
.plan .pl-p .cur { font-size: .68em; }
.plan .pl-n { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.plan .badge { position: absolute; top: -11px; right: 12px; height: 22px; font-size: 9.5px; }
.radio { position: absolute; top: 15px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: all .25s; }
.plan.on .radio { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 4px #7b61ff; }

.faq-item { border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); overflow: hidden; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px; font-weight: 600; font-size: 15px; text-align: left; }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform .4s var(--spring); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 16px 16px; color: var(--text-2); font-size: 14px; line-height: 1.55; }

.cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 26px 16px calc(var(--safe-bottom) + 14px);
  background: linear-gradient(to top, var(--bg) 55%, rgba(7, 7, 11, 0)); }
.cta-in { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 auto; padding: 8px 8px 8px 18px; border-radius: 24px;
  background: rgba(24, 24, 33, .82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cta-p { flex: 1; min-width: 0; }
.cta-p b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.cta-p span { font-size: 12.5px; color: var(--text-2); }
.cta .btn { min-width: 150px; }

/* ============ sheets ============ */
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(3, 3, 6, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--out); }
.sheet-bg.in { opacity: 1; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100%, 540px); max-height: 90vh; overflow-y: auto; scrollbar-width: none;
  padding: 10px 18px calc(var(--safe-bottom) + 20px); border-radius: 30px 30px 0 0; background: #111118;
  border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  transform: translate(-50%, 105%); transition: transform .55s var(--out); }
.sheet.in { transform: translate(-50%, 0); }
.sheet.drag { transition: none; }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(123, 97, 255, .16), transparent); }
.grab { width: 42px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .18); margin: 0 auto 16px; }
.sh-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-align: center; }
.sh-sub { color: var(--text-2); text-align: center; margin-top: 8px; line-height: 1.45; font-size: 14px; }

.ps-head { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ps-head .ps-t { flex: 1; min-width: 0; }
.ps-head b { display: block; font-size: 16px; }
.ps-head span { font-size: 13px; color: var(--text-2); }
.ps-head .ps-p { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.note { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4;
  background: rgba(255, 196, 81, .08); border: 1px solid rgba(255, 196, 81, .2); color: #ffe2a3; }

.method { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: transform .35s var(--spring), background .2s; }
.method + .method { margin-top: 10px; }
.method:active { transform: scale(.98); background: rgba(255, 255, 255, .07); }
.m-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .06); }
.m-t { flex: 1; min-width: 0; }
.m-t b { display: block; font-size: 15.5px; }
.m-t small { font-size: 12.5px; color: var(--text-2); }
.m-a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.m-go { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.method.loading { pointer-events: none; }
.method.loading .m-go { border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .7s linear infinite; }
.method.loading .m-go path { display: none; }
.method.best { background: linear-gradient(rgba(25, 21, 38, .96), rgba(25, 21, 38, .96)) padding-box, var(--grad) border-box; border-color: transparent; }

.amt { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.amt input { width: 6ch; min-width: 2ch; background: none; border: 0; outline: 0; text-align: right; font-family: var(--display); font-weight: 700;
  font-size: 48px; letter-spacing: -.03em; caret-color: var(--violet-2); }
.amt span { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--text-3); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: all .2s; }
.chips button.on { background: #fff; color: #0b0b12; border-color: #fff; }

.wait { text-align: center; padding: 6px 0 2px; }
.wait-stage { position: relative; width: 120px; height: 120px; margin: 4px auto 14px; display: grid; place-items: center; }
.wait-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .06); border-top-color: var(--violet-2); animation: spin 1.1s linear infinite; }

/* ============ overlay success ============ */
.success { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(60% 50% at 50% 40%, rgba(123, 97, 255, .35), transparent 70%), rgba(7, 7, 11, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; transition: opacity .4s var(--out); }
.success.in { opacity: 1; }
.success .box { width: min(100%, 360px); transform: scale(.88) translateY(20px); transition: transform .7s var(--spring); }
.success.in .box { transform: none; }
.success h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-top: 8px; }
.success p { color: var(--text-2); margin: 10px 0 24px; line-height: 1.5; }
canvas.confetti { position: fixed; inset: 0; z-index: 55; pointer-events: none; width: 100%; height: 100%; }

/* ============ orders ============ */
.sub { padding: 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.sub + .sub { margin-top: 12px; }
.sub-top { display: flex; align-items: center; gap: 14px; }
.sub-top .s-t { flex: 1; min-width: 0; }
.sub-top b { display: block; font-size: 16.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status.on { color: var(--green); }
.status.on::before { background: var(--green); box-shadow: 0 0 0 4px rgba(62, 224, 143, .18); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(62, 224, 143, 0); } }
.bar { position: relative; height: 6px; margin-top: 16px; border-radius: 9px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); }
.bar.forever i { width: 100%; background: linear-gradient(90deg, #7b61ff, #2fe3c8, #ff5d8f, #7b61ff); background-size: 300% 100%; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: 300% 0; } }
.sub-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.sub-act { display: flex; gap: 10px; margin-top: 16px; }
.sub-act .btn { flex: 1; height: 48px; font-size: 15px; padding: 0 12px; }

.empty { text-align: center; padding: 34px 24px 28px; margin-top: 14px; border-radius: 28px; border: 1px dashed var(--line-2); }
.empty h3 { font-family: var(--display); font-size: 18px; margin-top: 10px; }
.empty p { color: var(--text-2); margin: 8px 0 20px; line-height: 1.45; font-size: 14px; }

.list { border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.r-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .06); }
.r-t { flex: 1; min-width: 0; }
.r-t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-t small { font-size: 12.5px; color: var(--text-3); }
.r-a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.r-a.plus { color: var(--green); }
.row > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }

/* ============ info ============ */
.info-hero { text-align: center; padding: 18px 8px 4px; }
.info-hero h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin-top: 8px; }
.info-hero p { color: var(--text-2); margin-top: 10px; line-height: 1.55; }
.steps { position: relative; }
.step { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.step + .step { margin-top: 10px; }
.step b { display: block; font-size: 15.5px; }
.step p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.step .t-ic { width: 54px; height: 54px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.links .btn { height: 52px; font-size: 15px; }

/* ============ profile ============ */
.prof { text-align: center; padding-top: 14px; }
.prof .ava { margin: 0 auto; font-size: 30px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(123, 97, 255, .55), 0 20px 50px -10px rgba(123, 97, 255, .6); }
.prof h1 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin-top: 16px; }
.prof p { color: var(--text-3); margin-top: 4px; font-size: 14px; }
.balrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 16px 16px 16px 20px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(123, 97, 255, .2), rgba(255, 93, 143, .1)); border: 1px solid rgba(165, 148, 255, .25); }
.balrow .cap { color: var(--text-2); }
.balrow .v { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.ref { position: relative; margin-top: 12px; padding: 20px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 80% at 100% 0%, rgba(47, 227, 200, .2), transparent 65%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); }
.ref-e { position: absolute; right: 8px; top: 6px; z-index: -1; }
.ref h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; padding-right: 80px; }
.ref > p { color: var(--text-2); margin-top: 8px; font-size: 14px; line-height: 1.45; padding-right: 60px; }
.ref-link { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ref-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--text-2); }
.ref-link .btn { height: 38px; padding: 0 12px; border-radius: 12px; font-size: 13.5px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ref-stats div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.ref-stats b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.ref-stats small { font-size: 12px; color: var(--text-3); }
.foot { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 22px; }

/* ============ admin ============ */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tile small { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }
.tile b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin-top: 6px; }
.tile.wide { grid-column: span 2; background: linear-gradient(120deg, rgba(123, 97, 255, .2), rgba(47, 227, 200, .08)); }

/* ============ skeleton, toast, misc ============ */
.sk { border-radius: 26px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .085) 50%, rgba(255, 255, 255, .04) 70%);
  background-size: 250% 100%; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-top) + 10px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 99px;
  background: rgba(32, 32, 44, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translate(-50%, calc(-100% - var(--safe-top) - 20px)); transition: transform .5s var(--spring); pointer-events: none; }
.toast.in { transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 100, 100, .35); }
.center-msg { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-msg h2 { font-family: var(--display); font-size: 22px; margin-top: 12px; }
.center-msg p { color: var(--text-2); margin: 10px 0 22px; line-height: 1.5; }

@media (max-width: 360px) {
  .bal { font-size: 40px; }
  .feat-title { font-size: 21px; }
  .p-title { font-size: 25px; }
  .plan .pl-p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
