/* Личный кабинет WHY PAY — по макету «WhyPay Кабинет.dc.html» (Claude Design).
   Цвета, радиусы, длительности и кривые — переменные; анимации — только transform и opacity. */
:root {
  --bg-top: #15262D; --bg-bottom: #0D1424; --mint: #41F0C9; --mint-dark: #32C29F; --mint-light: #57F3CE; --on-mint: #081E1B;
  --text: #F2F6F9; --text-2: #A0B7BF; --text-3: #7A929A;
  --glass: rgba(44,64,71,.58); --glass-2: rgba(44,64,71,.34); --panel: #172830;
  --stroke: rgba(255,255,255,.09); --stroke-hi: rgba(255,255,255,.22); --line: #3A5461;
  --warn: #FFB45C; --danger: #FF6B70; --mint-soft: rgba(65,240,201,.14); --warn-soft: rgba(255,180,92,.14); --danger-soft: rgba(255,107,112,.13);
  --r-card: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --font-head: 'Manrope', system-ui, sans-serif; --font-body: 'Golos Text', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --shadow-card: 0 24px 60px -28px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
  --glow-mint: 0 8px 28px -8px rgba(65,240,201,.5), inset 0 1px 0 rgba(255,255,255,.5);
  --dur-fast: 180ms; --dur: 380ms; --dur-slow: 640ms;
  --ease-out: cubic-bezier(.22,1,.36,1); --ease-spring: cubic-bezier(.34,1.26,.64,1);
}
html, body { margin: 0; height: 100%; background: #070B13; color: var(--text); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); overflow: hidden; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-light); }
input::placeholder { color: #6F8890; }
button, input { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
[hidden] { display: none !important; }
.material-symbols-rounded { font-size: 24px; line-height: 1; user-select: none; }
.fill { font-variation-settings: 'FILL' 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

/* ---------- анимации (из макета) ---------- */
@keyframes wpFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wpFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes wpScaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wpScaleOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.97); } }
@keyframes wpSheetUp { 0% { transform: translateY(100%); } 72% { transform: translateY(-1.2%); } 100% { transform: translateY(0); } }
@keyframes wpSheetDown { from { transform: translateY(0); } to { transform: translateY(110%); } }
@keyframes wpPing { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.7); opacity: 0; } }
@keyframes wpShine { 0% { transform: translateX(-160%) skewX(-18deg); } 14%, 100% { transform: translateX(380%) skewX(-18deg); } }
@keyframes wpSegOn { from { opacity: 0; transform: scaleX(.5); } to { opacity: 1; transform: none; } }
@keyframes wpDrawRing { from { stroke-dashoffset: 117; } to { stroke-dashoffset: 0; } }
@keyframes wpDrawCircle { from { stroke-dashoffset: 227; } to { stroke-dashoffset: 0; } }
@keyframes wpDrawCheck { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes wpBolt { 0% { opacity: 0; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes wpBoltGlow { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: .9; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes wpBreathA { 0%, 100% { transform: translate(0,0) scale(1); opacity: .75; } 50% { transform: translate(-5%,4%) scale(1.14); opacity: 1; } }
@keyframes wpBreathB { 0%, 100% { transform: translate(0,0) scale(1.06); opacity: .65; } 50% { transform: translate(4%,-5%) scale(.94); opacity: 1; } }
@keyframes wpWave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes wpShakeA { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes wpShakeB { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes wpPop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 60% { opacity: 1; transform: translateY(-2px) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes wpToast { from { opacity: 0; transform: translate(-50%,16px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes wpShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes wpBurst { 0% { opacity: 0; transform: translateY(-30px) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-92px) scale(.3); } }
@keyframes wpDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wpWait { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes wpRowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wpRowOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(28px); } }
@keyframes wpSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- кадр и фон ---------- */
.frame { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(160deg, var(--bg-top) 0%, #111C29 45%, var(--bg-bottom) 100%); }
.glows { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; }
.glow.g1 { right: -18%; top: -28%; width: 70%; height: 75%; background: radial-gradient(closest-side, rgba(62,66,101,.85), rgba(62,66,101,0)); animation: wpBreathA 32s ease-in-out infinite; }
.glow.g2 { right: -12%; bottom: -30%; width: 65%; height: 70%; background: radial-gradient(closest-side, rgba(40,30,90,.7), rgba(20,17,46,0)); animation: wpBreathB 26s ease-in-out infinite; }
.glow.g3 { left: -20%; top: -20%; width: 60%; height: 60%; background: radial-gradient(closest-side, rgba(40,90,95,.35), rgba(21,38,45,0)); animation: wpBreathB 38s ease-in-out infinite; }

/* ---------- логотип ---------- */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { position: relative; flex: none; width: 46px; height: 46px; }
.logo-mark svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.logo-mark circle { animation: wpDrawRing 1.1s var(--ease-out) .1s both; }
.logo-bolt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px !important; color: var(--mint); font-variation-settings: 'FILL' 1; animation: wpBolt .6s var(--ease-out) .9s both; }
.logo-glow { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(65,240,201,.55), rgba(65,240,201,0)); opacity: 0; animation: wpBoltGlow .9s var(--ease-out) 1s both; }
.logo-word { font: 800 19px/1 var(--font-head); letter-spacing: .16em; color: #D5DFE4; }
.logo.md { gap: 11px; } .logo.md .logo-mark { width: 38px; height: 38px; } .logo.md .logo-bolt { font-size: 22px !important; animation-delay: .8s; } .logo.md .logo-word { font-size: 16px; } .logo.md circle { animation-delay: 0s; }
.logo.sm { gap: 9px; } .logo.sm .logo-mark { width: 34px; height: 34px; } .logo.sm .logo-bolt { font-size: 20px !important; animation-delay: .8s; } .logo.sm .logo-word { font-size: 14px; } .logo.sm circle { animation-delay: 0s; }

/* ---------- общие блоки ---------- */
.card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 700 16px var(--font-head); color: var(--text); text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:hover { text-decoration: none; }
.btn-mint { background: linear-gradient(180deg, var(--mint-light), var(--mint) 50%, var(--mint-dark)); color: var(--on-mint); box-shadow: var(--glow-mint); overflow: hidden; }
.btn-mint:hover { color: var(--on-mint); }
.btn-mint:disabled { opacity: .6; }
.btn-soft { background: rgba(255,255,255,.1); }
.btn-soft:hover { background: rgba(255,255,255,.14); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--stroke-hi); color: var(--text); }
.btn-danger-ghost { background: none; border: 1px solid var(--line); color: var(--danger); height: 48px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn .material-symbols-rounded { font-size: 21px; }
.shine { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
  transform: translateX(-160%) skewX(-18deg); animation: wpShine 5.5s var(--ease-out) 1.4s infinite; pointer-events: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--text-2); font: 500 14px var(--font-body); }
.link-btn:hover { color: var(--mint); }
.input { width: 100%; height: 52px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(8,14,24,.45); color: var(--text);
  font: 500 16px var(--font-body); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(65,240,201,.12); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font: 500 13px var(--font-body); color: var(--text-2); }
.err-line { font: 500 14px/1.4 var(--font-body); color: var(--danger); animation: wpSlideDown var(--dur-fast) var(--ease-out) both; }
.ok-line { display: flex; align-items: center; gap: 8px; font: 600 14px var(--font-body); color: var(--mint); animation: wpSlideDown var(--dur) var(--ease-out) both; }
.ok-line .material-symbols-rounded { font-size: 18px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: wpDot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.dots.gray i { background: var(--text-2); }
.hr { height: 1px; background: var(--stroke); }

/* ---------- вход ---------- */
.auth { position: absolute; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 36px 16px 24px; }
.auth-col { margin: auto 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.auth-card { width: 100%; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; animation: wpScaleIn var(--dur) var(--ease-out) both; }
.auth-card.center { padding: 32px 24px 24px; align-items: center; gap: 20px; text-align: center; }
.auth-title { display: flex; flex-direction: column; gap: 8px; }
.auth-title b { font: 800 24px/1.15 var(--font-head); }
.auth-title span { font: 400 15px/1.45 var(--font-body); color: var(--text-2); text-wrap: pretty; }
.copyright { margin-top: 28px; font: 400 12px var(--font-body); color: var(--text-3); text-align: center; }
.toggle-row { display: flex; align-items: center; gap: 16px; }
.toggle-row .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.toggle-row .t b { font: 800 22px/1.1 var(--font-head); }
.tg-labels { position: relative; height: 18px; font: 500 14px/18px var(--font-body); }
.tg-on-label, .tg-off-label { position: absolute; left: 0; top: 0; white-space: nowrap; }
.tg-on-label { display: flex; align-items: center; gap: 8px; color: var(--mint); opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease-out) .15s, transform var(--dur) var(--ease-out) .15s; }
.tg-on-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.tg-off-label { color: var(--text-2); transition: opacity var(--dur-fast); }
.on .tg-on-label { opacity: 1; transform: none; }
.on .tg-off-label { opacity: 0; }
.toggle { position: relative; flex: none; width: 84px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.toggle .tg-glow { position: absolute; inset: -16px; border-radius: 999px; background: radial-gradient(closest-side, rgba(65,240,201,.5), rgba(65,240,201,0)); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.toggle .tg-fill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(180deg, #86F7DD, var(--mint) 55%, var(--mint-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.toggle .tg-knob { position: absolute; top: 4px; left: 4px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E7EEF1 60%, #C7D2D7); box-shadow: 0 4px 10px rgba(0,0,0,.35); transition: transform var(--dur-slow) var(--ease-spring); }
.toggle.on .tg-glow, .toggle.on .tg-fill { opacity: 1; }
.toggle.on .tg-knob { transform: translateX(38px); }
.toggle.big { width: 128px; height: 68px; }
.toggle.big .tg-glow { inset: -22px; }
.toggle.big .tg-knob { top: 5px; left: 5px; width: 58px; height: 58px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.toggle.big.on .tg-knob { transform: translateX(60px); }
.seg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(8,14,24,.45); border: 1px solid var(--stroke); }
.seg-tabs .hl { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform var(--dur) var(--ease-spring); }
.seg-tabs.second .hl { transform: translateX(100%); }
.seg-tabs button { position: relative; height: 40px; border: 0; background: none; color: var(--text-2); font: 700 15px var(--font-head); transition: color var(--dur-fast); }
.seg-tabs button.on { color: var(--text); }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--text-3); font: 500 13px var(--font-body); }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }
.tg-send { transform: rotate(-30deg) translateY(-1px); }
.waves { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.waves .w { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--mint); opacity: 0; animation: wpWave 2.4s var(--ease-out) infinite; }
.waves .w:nth-child(2) { animation-delay: .8s; } .waves .w:nth-child(3) { animation-delay: 1.6s; }
.waves .core { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(65,240,201,.35); display: flex; align-items: center; justify-content: center; }
.waves .core .material-symbols-rounded { font-size: 36px; color: var(--mint); transform: rotate(-30deg) translate(2px,-2px); font-variation-settings: 'FILL' 1; }
.check-anim circle { animation: wpDrawCircle .6s var(--ease-out) both; }
.check-anim polyline { animation: wpDrawCheck .4s var(--ease-out) .45s both; }
.check-anim { animation: wpScaleIn var(--dur) var(--ease-out) both; }
.code-chars { display: flex; gap: 8px; }
.code-chars span { width: 44px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(8,14,24,.5); border: 1px solid var(--line); font: 500 26px var(--font-mono); color: var(--text); animation: wpPop .45s var(--ease-out) both; }
.status-line { display: flex; align-items: center; gap: 10px; font: 500 14px var(--font-body); color: var(--text-2); }
.status-line.done { color: var(--mint); }
.otp { position: relative; display: flex; gap: 8px; }
.otp.shake-a { animation: wpShakeA .45s var(--ease-out); } .otp.shake-b { animation: wpShakeB .45s var(--ease-out); }
.otp-box { width: 46px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(8,14,24,.5); border: 1.5px solid var(--stroke); font: 800 28px var(--font-head); transition: border-color var(--dur-fast); }
.otp-box.filled { border-color: var(--line); } .otp-box.cur { border-color: var(--mint); }
.otp-box span { animation: wpPop .38s var(--ease-out) both; }
.otp input { position: absolute; inset: 0; opacity: 0; font-size: 16px; cursor: text; width: 100%; height: 100%; border: 0; }
.code-input { font: 800 24px var(--font-head); letter-spacing: .45em; height: 56px; }

/* ---------- кабинет: каркас ---------- */
.app { position: absolute; inset: 0; display: flex; }
.side { flex: none; width: 248px; display: flex; flex-direction: column; gap: 30px; padding: 26px 16px 20px; border-right: 1px solid rgba(255,255,255,.05); position: relative; z-index: 1; }
.side .logo { padding: 0 8px; }
.side-nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.side-nav .hl { position: absolute; left: 0; right: 0; top: 0; height: 48px; border-radius: 16px; background: rgba(65,240,201,.1); box-shadow: inset 0 0 0 1px rgba(65,240,201,.22); transition: transform var(--dur) var(--ease-spring); }
.nav-btn { position: relative; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 16px; background: none; color: var(--text-2);
  font: 600 15px var(--font-head); text-align: left; transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.nav-btn:hover { color: var(--text); } .nav-btn:active { transform: scale(.97); }
.nav-btn.on { color: var(--mint); }
.nav-btn .material-symbols-rounded { font-size: 22px; }
.nav-btn.on .material-symbols-rounded, .tab-btn.on .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
.army-mini { margin-top: auto; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(65,240,201,.12), rgba(62,66,101,.25)); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 10px; }
.army-mini .k { font: 800 12px var(--font-head); letter-spacing: .14em; color: var(--mint); }
.army-mini .t { font: 500 14px/1.4 var(--font-body); color: var(--text); }
.army-mini a, .army-mini button { height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 600 13px var(--font-head); transition: transform var(--dur-fast); }
.army-mini a:active, .army-mini button:active { transform: scale(.97); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { flex: none; height: 76px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 32px; }
.top-m { flex: none; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.bal-pill { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); overflow: hidden; }
.bal-flash { position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(65,240,201,.35), rgba(65,240,201,0)); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); pointer-events: none; }
.flash .bal-flash { opacity: 1; }
.bal-pill > .material-symbols-rounded { position: relative; font-size: 20px; color: var(--text-2); }
.bal-amount { position: relative; font: 800 16px var(--font-head); min-width: 54px; color: var(--text); transition: color var(--dur); font-variant-numeric: tabular-nums; }
.flash .bal-amount, .flash.bal-pill-m { color: var(--mint); }
.bal-add { position: relative; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--mint); color: var(--on-mint); font: 700 13px var(--font-head); transition: transform var(--dur-fast); }
.bal-add:active { transform: scale(.96); }
.user-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--text); max-width: 260px; }
.user-btn:hover { background: rgba(255,255,255,.05); }
.user-btn > span:last-child { font: 600 14px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, #2E4B55, #22303F); display: flex; align-items: center; justify-content: center; font: 800 14px var(--font-head); color: var(--mint); }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--stroke); border-radius: 50%; background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast); }
.icon-btn:hover { color: var(--text); } .icon-btn:active { transform: scale(.94); }
.icon-btn .material-symbols-rounded { font-size: 20px; }
.bal-pill-m { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); overflow: hidden; transition: color var(--dur); }
.bal-pill-m .amt { position: relative; font: 800 15px var(--font-head); font-variant-numeric: tabular-nums; }
.bal-pill-m .plus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--on-mint); display: flex; align-items: center; justify-content: center; }
.bal-pill-m .plus .material-symbols-rounded { font-size: 20px; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 32px 32px; -webkit-overflow-scrolling: touch; }
.mobile .scroll { padding: 4px 16px 112px; }
.content { max-width: 1200px; margin: 0 auto; }
.section { display: flex; flex-direction: column; gap: 20px; animation: wpFadeUp var(--dur) var(--ease-out) both; }
.h1 { margin: 0; font: 800 30px/1.1 var(--font-head); }
.sub { font: 500 14px/1.45 var(--font-body); color: var(--text-2); text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 4px; }
.head.lg { gap: 6px; }
.back { align-self: flex-start; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; border: 0; background: none; padding: 0; color: var(--text-2); font: 500 14px var(--font-body); }
.back:hover { color: var(--mint); } .back .material-symbols-rounded { font-size: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.grid-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 68px; padding: 6px; border-radius: 24px; background: rgba(19,31,39,.94); border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); z-index: 5; padding-bottom: 6px; }
.tabbar .hl { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 18px; background: rgba(65,240,201,.12); transition: transform var(--dur) var(--ease-spring); }
.tab-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--text-2);
  font: 600 11px var(--font-body); transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.tab-btn:active { transform: scale(.94); } .tab-btn.on { color: var(--mint); }
.foot { margin-top: 56px; padding: 24px 0 8px; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 14px var(--font-body); }
.foot nav a { color: var(--text-2); } .foot nav a:hover { color: var(--mint); }
.foot > span { font: 400 12px var(--font-body); color: var(--text-3); }

/* ---------- скелетоны ---------- */
.skel { position: relative; overflow: hidden; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,0) 70%); transform: translateX(-100%); animation: wpShimmer 1.3s linear infinite; }
.skel-card { height: 340px; border-radius: var(--r-card); background: var(--glass-2); border: 1px solid var(--stroke); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.skel-card:nth-child(2)::after { animation-delay: .15s; }
.sk { display: block; border-radius: 8px; background: rgba(255,255,255,.06); }
.sk.dim { background: rgba(255,255,255,.04); }

/* ---------- карточка ключа ---------- */
.key-wrap { animation: wpFadeUp var(--dur) var(--ease-out) both; }
.key-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .key-card:hover { transform: translateY(-3px); border-color: var(--stroke-hi); } }
.key-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.key-head .n { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.key-name { font: 800 25px/1 var(--font-head); letter-spacing: .01em; }
.key-sub { font: 500 13px var(--font-body); color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font: 600 14px var(--font-body); white-space: nowrap; flex: none; }
.pill .dot { position: relative; width: 8px; height: 8px; }
.pill .dot i { position: absolute; inset: 0; border-radius: 50%; background: currentColor; }
.pill .dot i + i { opacity: 0; animation: wpPing 2.6s var(--ease-out) infinite; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-warn .dot i + i { animation-duration: 1.2s; }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-danger .dot i + i { display: none; }
.days-row { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 76px; height: 76px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ring .num b { font: 800 24px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.ring .num span { font: 500 11px var(--font-body); color: var(--text-2); }
.days-row .t { display: flex; flex-direction: column; gap: 4px; }
.days-row .t b { font: 700 18px var(--font-head); }
.days-row .t span { font: 500 14px var(--font-body); color: var(--text-2); }
.ar-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
  color: var(--text); text-align: left; transition: border-color var(--dur) var(--ease-out), background var(--dur), transform var(--dur-fast); }
.ar-row:active { transform: scale(.98); }
.ar-row.on { border-color: rgba(65,240,201,.3); background: rgba(65,240,201,.06); }
.ar-row > .material-symbols-rounded { font-size: 22px; color: var(--text-2); transition: color var(--dur), transform var(--dur-slow) var(--ease-out); }
.ar-row.on > .material-symbols-rounded { color: var(--mint); transform: rotate(180deg); }
.ar-row .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-row .t b { font: 700 15px var(--font-head); }
.ar-row .t span { font: 500 12px/1.35 var(--font-body); color: var(--text-3); }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.switch::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(180deg, #86F7DD, var(--mint) 55%, var(--mint-dark));
  box-shadow: 0 0 14px -2px rgba(65,240,201,.6); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E7EEF1 60%, #C7D2D7);
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform var(--dur) var(--ease-spring); }
.on > .switch::before { opacity: 1; }
.on > .switch i { transform: translateX(18px); }
.expired-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--danger-soft); }
.expired-box > .material-symbols-rounded { font-size: 22px; color: var(--danger); }
.expired-box .t { display: flex; flex-direction: column; gap: 4px; }
.expired-box b { font: 700 15px var(--font-head); }
.expired-box .t span { font: 400 14px/1.4 var(--font-body); color: var(--text-2); }
.meter { display: flex; flex-direction: column; gap: 10px; }
.meter-head { display: flex; justify-content: space-between; font: 500 15px var(--font-body); color: var(--text-2); }
.meter-head b { font: 700 15px var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint-dark), var(--mint)); transform-origin: left; }
.info-chip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.04); font: 500 13px var(--font-body); color: var(--text-2); }
.info-chip .material-symbols-rounded { font-size: 18px; }
.segs { display: flex; gap: 6px; }
.seg { position: relative; flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.seg i { position: absolute; inset: 0; border-radius: 999px; background: var(--mint); transform-origin: left; animation: wpSegOn var(--dur) var(--ease-out) both; }
.key-main { display: flex; gap: 10px; }
.key-main .btn-mint { flex: 1; }
.key-main .btn-ghost { padding: 0 20px; gap: 6px; }
.key-main .btn-ghost .material-symbols-rounded { font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(255,255,255,.03);
  color: var(--text-2); font: 500 13px var(--font-body); transition: transform var(--dur-fast), color var(--dur-fast); }
.chip:hover { color: var(--text); } .chip:active { transform: scale(.96); }
.chip .material-symbols-rounded { font-size: 17px; }
.chip .ok { color: var(--mint); animation: wpPop .35s var(--ease-out) both; }
.free-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 1px solid rgba(65,240,201,.3); border-radius: var(--r-md);
  background: var(--mint-soft); color: var(--mint); font: 700 15px var(--font-head); text-align: left; transition: transform var(--dur-fast); }
.free-cta:active { transform: scale(.98); } .free-cta .material-symbols-rounded { font-size: 20px; }
.buy-tile { min-height: 180px; border-radius: var(--r-card); border: 1.5px dashed rgba(160,183,191,.28); background: rgba(255,255,255,.015); color: var(--text-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font: 700 16px var(--font-head); animation: wpFadeUp var(--dur) var(--ease-out) both; transition: border-color var(--dur-fast), color var(--dur-fast); }
.buy-tile:hover { border-color: rgba(65,240,201,.55); color: var(--mint); }
.buy-tile .material-symbols-rounded { font-size: 30px; }
.empty-card { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; animation: wpScaleIn var(--dur) var(--ease-out) both; }
.empty-card .tg-on-label { position: static; transition-delay: .2s; font-size: 15px; }
.empty-card .t { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.empty-card .t b { font: 800 24px/1.2 var(--font-head); }
.empty-card .t span { font: 400 15px/1.45 var(--font-body); color: var(--text-2); }

/* ---------- покупка ---------- */
.buy-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,1fr); gap: 20px; align-items: start; }
.mobile .buy-grid { grid-template-columns: minmax(0,1fr); }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.box { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.box-t { font: 700 17px var(--font-head); }
.tariffs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tariffs .hl { position: absolute; top: 0; left: 0; bottom: 0; width: calc((100% - 20px) / 3); border-radius: 20px; border: 2px solid var(--mint);
  box-shadow: 0 0 0 4px rgba(65,240,201,.1), 0 12px 30px -10px rgba(65,240,201,.45); pointer-events: none; transition: transform var(--dur) var(--ease-spring); z-index: 2; }
.t-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 16px 14px; border-radius: 20px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03);
  color: var(--text); text-align: left; transition: transform var(--dur) var(--ease-spring), background var(--dur); }
.t-opt:active { transform: scale(.96); } .t-opt.sel { background: rgba(65,240,201,.06); }
.t-opt b { font: 800 15px var(--font-head); letter-spacing: .02em; }
.t-opt .d { font: 500 12px var(--font-body); color: var(--text-2); }
.t-opt .p { margin-top: 10px; font: 800 20px var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-opt .m { font: 500 12px var(--font-body); color: var(--text-3); }
.renew-card { padding: 20px 22px; display: flex; align-items: center; gap: 14px; }
.renew-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--mint-soft); display: flex; align-items: center; justify-content: center; color: var(--mint); flex: none; }
.renew-card .t { display: flex; flex-direction: column; gap: 3px; }
.renew-card b { font: 800 18px var(--font-head); } .renew-card .t span { font: 500 13px var(--font-body); color: var(--text-2); }
.radio-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--text); text-align: left;
  transition: border-color var(--dur) var(--ease-out), background var(--dur), transform var(--dur) var(--ease-spring); }
.radio-opt:active { transform: scale(.98); }
.radio-opt.sel { border-color: var(--mint); background: rgba(65,240,201,.07); }
.radio { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border-color var(--dur-fast); }
.radio i { position: absolute; inset: 3px; border-radius: 50%; background: var(--mint); transform: scale(0); transition: transform var(--dur) var(--ease-spring); }
.sel .radio { border-color: var(--mint); } .sel .radio i { transform: scale(1); }
.radio-opt .t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.radio-opt .t b { font: 800 17px var(--font-head); } .radio-opt .t span { font: 500 13px var(--font-body); color: var(--text-2); }
.radio-opt .s { font: 700 14px var(--font-head); color: var(--mint); text-align: right; }
.periods { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 4px; border-radius: 18px; background: rgba(8,14,24,.45); border: 1px solid var(--stroke); }
.periods .hl { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 14px; background: rgba(65,240,201,.13); box-shadow: inset 0 0 0 1.5px var(--mint); transition: transform var(--dur) var(--ease-spring); }
.p-btn { position: relative; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--text-2);
  font: 700 15px var(--font-head); transition: color var(--dur-fast), transform var(--dur-fast); }
.p-btn:active { transform: scale(.95); } .p-btn.sel { color: var(--mint); }
.p-btn .l { display: flex; align-items: center; gap: 2px; }
.p-btn .fire { font-size: 16px; color: #FF9A5C; font-variation-settings: 'FILL' 1; }
.p-btn .tag { font: 700 11px var(--font-body); color: var(--mint); }
.p-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.p-foot > span:first-child { font: 500 13px var(--font-body); color: var(--text-3); }
.saving { font: 700 14px var(--font-head); color: var(--mint); animation: wpSlideDown var(--dur) var(--ease-out) both; }
.promo-row { display: flex; gap: 10px; }
.promo-row .input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: 600 15px var(--font-body); text-transform: uppercase; }
.promo-row .btn { height: 48px; padding: 0 18px; font-size: 14px; }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--mint-soft); animation: wpPop .4s var(--ease-out) both; }
.promo-on b { display: flex; align-items: center; gap: 8px; font: 700 15px var(--font-head); color: var(--mint); }
.promo-on .material-symbols-rounded { font-size: 20px; }
.promo-on > span { font: 500 13px var(--font-body); color: var(--text-2); }
.sum { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sum-rows { display: flex; flex-direction: column; gap: 10px; font: 500 15px var(--font-body); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row > span:first-child { color: var(--text-2); } .sum-row > span:last-child { font-weight: 600; }
.sum-row.minus > span:last-child { color: var(--mint); }
.sum-row.anim { animation: wpSlideDown var(--dur) var(--ease-out) both; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total > span:first-child { font: 600 15px var(--font-body); color: var(--text-2); }
.total b { font: 800 32px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.bal-note { margin-top: -6px; font: 500 13px var(--font-body); color: var(--text-3); text-align: right; }
.methods { display: flex; flex-direction: column; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--stroke); background: rgba(255,255,255,.02); color: var(--text); text-align: left;
  transition: border-color var(--dur) var(--ease-out), background var(--dur), transform var(--dur-fast); }
.method:active:not(:disabled) { transform: scale(.98); }
.method.sel { border-color: var(--mint); background: rgba(65,240,201,.07); }
.method:disabled { opacity: .45; }
.method > .material-symbols-rounded { font-size: 22px; color: var(--text-2); }
.method .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.method .t b { font: 700 15px var(--font-head); } .method .t span { font: 500 12px var(--font-body); color: var(--text-3); }
.method .radio { width: 20px; height: 20px; }
.pay-btn { height: 56px; font: 800 17px var(--font-head); }
.consent { font: 400 12px/1.5 var(--font-body); color: var(--text-3); text-align: center; text-wrap: pretty; }

/* ---------- баланс и история ---------- */
.bal-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.bal-big { font: 800 46px/1 var(--font-head); font-variant-numeric: tabular-nums; color: var(--text); transition: color var(--dur); }
.flash .bal-big { color: var(--mint); }
.bonus-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font: 600 13px var(--font-body); animation: wpPop .4s var(--ease-out) both; }
.bonus-chip .material-symbols-rounded { font-size: 16px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.quick button { height: 44px; border-radius: 14px; border: 1.5px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--text); font: 700 14px var(--font-head); white-space: nowrap;
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-spring); }
.quick button:active { transform: scale(.95); }
.quick button.sel { border-color: var(--mint); color: var(--mint); background: rgba(65,240,201,.08); }
.amount-in { position: relative; display: flex; align-items: center; }
.amount-in .input { padding: 0 44px 0 18px; font: 700 18px var(--font-head); }
.amount-in span { position: absolute; right: 18px; font: 700 18px var(--font-head); color: var(--text-3); }
.hist { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.hist .box-t { margin-bottom: 8px; }
.hist-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.05); animation: wpFadeUp var(--dur) var(--ease-out) both; }
.hist-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.hist-ic .material-symbols-rounded { font-size: 20px; }
.hist-row .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hist-row .t b { font: 600 15px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .t span { font: 500 13px var(--font-body); color: var(--text-3); }
.hist-row .a { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hist-row .a b { font: 700 15px var(--font-head); white-space: nowrap; }
.hist-row .a span { font: 600 12px var(--font-body); }
.st-paid { color: var(--mint); } .st-pending { color: var(--warn); } .st-failed { color: var(--danger); }
.hist-skel { display: flex; flex-direction: column; gap: 18px; padding: 8px 0; }
.hist-skel > div { display: flex; gap: 14px; align-items: center; }
.empty-line { padding: 16px 0; font: 500 14px var(--font-body); color: var(--text-3); }

/* ---------- поддержка ---------- */
.chat-card { display: flex; flex-direction: column; overflow: hidden; height: min(640px, calc(100dvh - 250px)); min-height: 420px; }
.mobile .chat-card { height: calc(100dvh - 290px); min-height: 380px; }
.chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.chat-ava { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #2E4B55, #1E2B3A); display: flex; align-items: center; justify-content: center; color: var(--mint); }
.chat-ava .material-symbols-rounded { font-size: 22px; font-variation-settings: 'FILL' 1; }
.chat-ava i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid #22343C; }
.chat-ava i.night { background: var(--warn); }
.chat-head .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-head .t b { font: 700 16px var(--font-head); } .chat-head .t span { font: 500 13px var(--font-body); color: var(--text-2); }
.chat-head a { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--stroke); border-radius: 999px; font: 600 13px var(--font-body); color: var(--text-2); white-space: nowrap; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 4px; animation: wpRowIn var(--dur) var(--ease-out) both; }
.msg.op { align-self: flex-start; } .msg.me { align-self: flex-end; align-items: flex-end; }
.msg .b { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: rgba(255,255,255,.07); font: 400 15px/1.45 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me .b { border-radius: 20px 20px 6px 20px; background: rgba(65,240,201,.16); padding: 12px 16px; }
.msg time { padding: 0 6px; font: 500 11px var(--font-body); color: var(--text-3); }
.msg-sys { align-self: center; padding: 8px 14px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font: 500 13px var(--font-body); animation: wpRowIn var(--dur) var(--ease-out) both; text-align: center; }
.chat-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--stroke); }
.chat-bar .input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; font: 400 15px var(--font-body); }
.send-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text-3); display: flex; align-items: center; justify-content: center; flex: none;
  transition: background var(--dur-fast), transform var(--dur-fast); }
.send-btn.ready { background: var(--mint); color: var(--on-mint); }
.send-btn:active { transform: scale(.92); }
.send-btn .material-symbols-rounded { font-size: 22px; }

/* ---------- профиль ---------- */
.prof { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.prof-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.prof-head b { font: 800 22px var(--font-head); overflow-wrap: anywhere; }
.prof-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.05); }
.prof-row > .material-symbols-rounded { font-size: 22px; color: var(--text-2); }
.prof-row .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-row .t small { font: 500 13px var(--font-body); color: var(--text-3); }
.prof-row .t b { font: 600 15px var(--font-body); overflow-wrap: anywhere; }
.prof-row .t b.muted { color: var(--text-2); }
.prof-row .t span { font: 500 14px var(--font-body); color: var(--text-2); }
.prof-row .done { font: 600 13px var(--font-body); color: var(--mint); }
.mini-btn { flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 700 13px var(--font-head); transition: transform var(--dur-fast); }
.mini-btn.mint { border: 0; background: var(--mint); color: var(--on-mint); }
.mini-btn:active { transform: scale(.96); }
.army-card { padding: 26px; background: linear-gradient(150deg, rgba(65,240,201,.14), rgba(62,66,101,.35)); display: flex; flex-direction: column; gap: 14px; }
.army-card .k { font: 800 13px var(--font-head); letter-spacing: .16em; color: var(--mint); }
.army-card b { font: 800 24px/1.25 var(--font-head); text-wrap: pretty; }
.army-card .btn { align-self: flex-start; height: 50px; font-size: 15px; }

/* ---------- пригласить (WHY PAY ARMY) ---------- */
.inv-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.inv-card .link-box > span { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-actions .btn { flex: 1 1 150px; height: 48px; }
.inv-sep { height: 1px; margin: 4px 0; background: rgba(255,255,255,.06); }
.inv-small { font: 500 13px/1.45 var(--font-body); color: var(--text-2); }
.inv-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.inv-stat { min-width: 0; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 4px; animation: wpFadeUp var(--dur) var(--ease-out) both; }
.inv-stat b { font: 800 22px/1.1 var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-stat span { font: 500 13px/1.3 var(--font-body); color: var(--text-3); }
.inv-stat.mint b { color: var(--mint); }
.inv-level { display: flex; flex-direction: column; gap: 4px; font: 500 14px/1.45 var(--font-body); color: var(--text-2); }
.inv-level b { color: var(--text); font-weight: 600; }
.inv-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--mint-soft); font: 500 14px/1.45 var(--font-body); color: var(--text); }
.inv-out span { flex: 1 1 200px; }
.inv-out .btn { flex: none; height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- модалки и шторки ---------- */
.ov { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; }
.mobile .ov { align-items: flex-end; }
.ov-back { position: absolute; inset: 0; background: rgba(4,8,14,.68); animation: wpFade var(--dur) var(--ease-out) both; }
.ov.closing .ov-back { animation: wpFadeOut 240ms var(--ease-out) both; }
.ov-wrap { position: relative; width: min(580px, calc(100% - 48px)); max-height: calc(100% - 56px); display: flex; flex-direction: column; }
.mobile .ov-wrap { width: 100%; max-height: 92%; }
.ov-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r-card);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05); padding: 28px; animation: wpScaleIn var(--dur) var(--ease-out) both; }
.ov.closing .ov-panel { animation: wpScaleOut 220ms var(--ease-out) both; }
.mobile .ov-panel { border-radius: 28px 28px 0 0; padding: 6px 20px calc(28px + env(safe-area-inset-bottom)); animation: wpSheetUp 460ms var(--ease-out) both; }
.mobile .ov.closing .ov-panel { animation: wpSheetDown 260ms var(--ease-out) both; }
.grab { display: flex; justify-content: center; padding: 8px 0 14px; cursor: grab; touch-action: none; }
.grab span { width: 40px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); }
.ov-body { display: flex; flex-direction: column; gap: 18px; }
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ov-head .t { display: flex; flex-direction: column; gap: 4px; }
.ov-head b { font: 800 24px var(--font-head); } .ov-head .t span { font: 500 14px var(--font-body); color: var(--text-2); }
.close-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.close-btn .material-symbols-rounded { font-size: 20px; }
.plats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: none; }
.plat { flex: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--text-2);
  font: 600 14px var(--font-body); white-space: nowrap; transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur) var(--ease-spring); }
.plat:active { transform: scale(.95); }
.plat.sel { border-color: var(--mint); color: var(--mint); background: rgba(65,240,201,.08); }
.plat .material-symbols-rounded { font-size: 18px; }
.app-box { padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 14px; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(160deg, #2E4B55, #1B2734); display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-head); color: var(--mint); flex: none; }
.app-id .t { display: flex; flex-direction: column; gap: 2px; }
.app-id b { font: 800 18px var(--font-head); } .app-id .t span { font: 500 13px var(--font-body); color: var(--text-2); }
.app-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.app-btns .btn { height: 50px; font-size: 15px; }
.app-btns .btn-mint { flex: 1 1 220px; } .app-btns .btn-ghost { flex: 1 1 160px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font: 400 14px/1.45 var(--font-body); color: var(--text-2); }
.steps li { display: flex; gap: 12px; }
.steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: flex; align-items: center; justify-content: center; font: 800 12px var(--font-head); font-style: normal; }
.tip { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); font: 500 13px/1.45 var(--font-body); color: #FFD7A8; animation: wpSlideDown var(--dur) var(--ease-out) both; }
.tip .material-symbols-rounded { font-size: 18px; color: var(--warn); }
.qr-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.qr { flex: none; padding: 12px; border-radius: 20px; background: #F2F6F9; animation: wpScaleIn var(--dur) var(--ease-out) .12s both; }
.qr svg { display: block; width: 150px; height: 150px; }
.qr-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qr-side > span { font: 500 13px var(--font-body); color: var(--text-2); }
.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r-md); background: rgba(8,14,24,.5); border: 1px solid var(--line); }
.link-box > span { flex: 1; min-width: 0; font: 500 13px var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--text); font: 600 13px var(--font-body); transition: transform var(--dur-fast); }
.copy-btn:active { transform: scale(.95); }
.copy-btn .material-symbols-rounded { font-size: 17px; }
.copy-btn .ok { color: var(--mint); animation: wpPop .35s var(--ease-out) both; }
.dev-count { font: 800 34px/1 var(--font-head); }
.dev-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.05); animation: wpRowIn var(--dur) var(--ease-out) both; }
.dev-row.out { animation: wpRowOut 260ms var(--ease-out) both; }
.dev-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.dev-ic .material-symbols-rounded { font-size: 22px; }
.dev-row .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-row .t b { font: 600 15px var(--font-body); } .dev-row .t span { font: 500 13px var(--font-body); color: var(--text-3); }
.dev-row button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 600 13px var(--font-body); transition: transform var(--dur-fast), border-color var(--dur-fast); flex: none; }
.dev-row button:hover { border-color: var(--danger); } .dev-row button:active { transform: scale(.95); }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 10px 0 4px; }
.center-col > b { font: 800 26px var(--font-head); }
.center-col > p { margin: 0; max-width: 400px; font: 500 15px/1.45 var(--font-body); color: var(--text-2); text-wrap: pretty; }
.confirm-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--warn-soft); display: flex; align-items: center; justify-content: center; color: var(--warn); }
.confirm-ic .material-symbols-rounded { font-size: 30px; }
.row-btns { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.row-btns .btn { flex: 1 1 140px; font-size: 15px; }
.wait { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.wait .r1 { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--mint); box-shadow: 0 0 24px rgba(65,240,201,.35); animation: wpWait 1.6s ease-in-out infinite; }
.wait .r2 { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--mint); opacity: 0; animation: wpWave 2s var(--ease-out) infinite; }
.wait .material-symbols-rounded { font-size: 36px; color: var(--mint); }
.success { position: relative; width: 96px; height: 96px; }
.success .pt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.success .pt i { position: absolute; left: -3px; top: -3px; border-radius: 50%; background: var(--mint-light); box-shadow: 0 0 8px rgba(65,240,201,.8); opacity: 0; animation: wpBurst .9s var(--ease-out) both; }
.success .glowb { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(65,240,201,.45), rgba(65,240,201,0)); opacity: 0; animation: wpBoltGlow 1s var(--ease-out) .45s both; }
.success svg { position: relative; }
.fade-1 { animation: wpFadeUp var(--dur) var(--ease-out) .3s both; } .fade-2 { animation: wpFadeUp var(--dur) var(--ease-out) .4s both; } .fade-3 { animation: wpFadeUp var(--dur) var(--ease-out) .5s both; }
.fail { animation: wpShakeA .5s var(--ease-out) both; }
.fail-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--danger-soft); box-shadow: inset 0 0 0 3px var(--danger), 0 0 30px rgba(255,107,112,.3); display: flex; align-items: center; justify-content: center; color: var(--danger); }
.fail-ic .material-symbols-rounded { font-size: 44px; }

/* ---------- тост ---------- */
.toast { position: absolute; left: 50%; bottom: 28px; z-index: 30; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #E9F0F3; color: #0D1424;
  font: 600 14px/1.3 var(--font-body); max-width: calc(100% - 32px); box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); animation: wpToast var(--dur) var(--ease-out) both; }
.frame.mobile.app-on .toast { bottom: 96px; }
.toast .material-symbols-rounded { font-size: 18px; color: var(--mint-dark); flex: none; }
.toast.err .material-symbols-rounded { color: #D9464C; }
.boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

@media (max-width: 420px) {
  .code-chars { gap: 6px; } .code-chars span { width: 40px; height: 52px; font-size: 24px; }
  .otp { gap: 6px; } .otp-box { width: 42px; height: 56px; }
  .t-opt { padding: 14px 10px; } .t-opt .p { font-size: 17px; }
  .key-card { padding: 20px; }
}

/* ---------- напоминание привязать почту / Telegram (15.10.2026) ---------- */
.link-hint { padding: 20px 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap;
  background: linear-gradient(150deg, rgba(65,240,201,.12), rgba(62,66,101,.3)); animation: wpScaleIn var(--dur) var(--ease-out) both; }
.link-hint > .material-symbols-rounded { flex: none; font-size: 28px; color: var(--mint); }
.link-hint .t { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link-hint .t b { font: 800 18px/1.25 var(--font-head); text-wrap: pretty; }
.link-hint .t span { font: 400 14px/1.45 var(--font-body); color: var(--text-2); }
.link-hint .acts { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.link-hint .btn { height: 46px; padding: 0 22px; font-size: 15px; }
