/* VerrVPN Mini App */
:root {
  --bg: #05070f;
  --bg-2: #0a0e1f;
  --ink: #eef1ff;
  --ink-2: #b4bcdf;
  --ink-3: #7c86b2;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --blue: #4f7dff;
  --cyan: #46d6ff;
  --violet: #8b5cff;
  --pink: #d36bff;
  --green: #3ee6a0;
  --amber: #ffc857;
  --red: #ff6b81;
  --grad: linear-gradient(135deg, #46c8ff 0%, #4f7dff 38%, #7b5cff 70%, #c26bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(70, 200, 255, .18), rgba(123, 92, 255, .18));
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  overscroll-behavior-y: none;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.sel { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }

/* ---------- фон: «северное сияние» ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .b1 { width: 80vmax; height: 80vmax; left: -30vmax; top: -40vmax;
  background: radial-gradient(closest-side, rgba(70, 120, 255, .38), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate; }
.aurora .b2 { width: 70vmax; height: 70vmax; right: -35vmax; top: 5vmax;
  background: radial-gradient(closest-side, rgba(139, 92, 255, .30), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate; }
.aurora .b3 { width: 60vmax; height: 60vmax; left: -10vmax; bottom: -40vmax;
  background: radial-gradient(closest-side, rgba(70, 214, 255, .16), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate; }
.aurora .grid { inset: 0; border-radius: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 55%); }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-12vmax, 14vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(10vmax, -8vmax) scale(1.1); } }

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-logo { width: 84px; height: 98px; filter: drop-shadow(0 0 28px rgba(79, 125, 255, .55)); }
.s-shield { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s var(--ease) forwards; }
.s-v { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw .6s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.splash-word { font-size: 26px; font-weight: 800; letter-spacing: -.02em; opacity: 0; animation: fadeUp .7s .7s var(--ease) forwards; }
.splash-word b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- каркас ---------- */
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto;
  padding: 14px 16px calc(112px + var(--safe-b)); min-height: 100vh; }
.screen { display: none; }
.screen.on { display: block; animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; gap: 12px; margin: 2px 2px 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 26px; height: 30px; filter: drop-shadow(0 0 10px rgba(79, 125, 255, .6)); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip svg { width: 16px; height: 16px; color: var(--cyan); }
.avatar { color: #fff; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--grad); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

h1.title { font-size: 28px; line-height: 1.12; letter-spacing: -.03em; margin: 4px 2px 6px; font-weight: 800; }
p.sub { color: var(--ink-2); margin: 0 2px 18px; font-size: 14.5px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* жирный текст внутри серых подписей остаётся ярким */
.banner b, .promo b, .step b, .switch b, .me b, .req .rq b, .loc-head b, .appc b, .li .t b, .dev b, .stat .v, .drop b { color: var(--ink); }
.stat .v.grad-text { color: transparent; }

/* ---------- карточки ---------- */
.card { position: relative; border-radius: var(--r-lg); padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.card + .card { margin-top: 12px; }
.card.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(70, 200, 255, .7), rgba(123, 92, 255, .25) 40%, rgba(255, 255, 255, .04) 60%, rgba(194, 107, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tap { transition: transform .25s var(--spring), background .2s; }
.tap:active { transform: scale(.97); }

/* ---------- герой: кольцо защиты ---------- */
.hero { padding: 22px 18px 20px; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 34%, rgba(79, 125, 255, .22), transparent 70%); }
.hero.off::after { background: radial-gradient(60% 50% at 50% 34%, rgba(255, 107, 129, .14), transparent 70%); }
.ring-wrap { position: relative; width: 236px; height: 236px; margin: 2px auto 10px; }
.ring-wrap svg.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(255, 255, 255, .07); }
.ring .bar { transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 10px rgba(91, 140, 255, .65)); }
.ring .tick { stroke: rgba(255, 255, 255, .12); }
.orbit { position: absolute; inset: -6px; border-radius: 50%; animation: spin 14s linear infinite; }
.orbit.o2 { inset: 16px; animation-duration: 9s; animation-direction: reverse; }
.orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(70, 214, 255, .8); top: -3px; left: calc(50% - 3px); }
.orbit.o2 i { background: var(--violet); box-shadow: 0 0 12px 2px rgba(139, 92, 255, .8); width: 4px; height: 4px; top: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; }
.core-shield { width: 46px; height: 54px; margin-bottom: 4px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(91, 140, 255, .9)); } }
.big-num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big-unit { font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: rgba(62, 230, 160, .12); color: var(--green); border: 1px solid rgba(62, 230, 160, .25); }
.status-pill.warn { background: rgba(255, 200, 87, .12); color: var(--amber); border-color: rgba(255, 200, 87, .25); }
.status-pill.off { background: rgba(255, 107, 129, .12); color: var(--red); border-color: rgba(255, 107, 129, .25); }
.status-pill.idle { background: rgba(255, 255, 255, .06); color: var(--ink-2); border-color: var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.dot.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.countdown .u { min-width: 54px; padding: 8px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.countdown b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.hero .until { color: var(--ink-3); font-size: 13px; margin-top: 8px; }

/* ---------- кнопки ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 56px; border-radius: 18px; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; overflow: hidden;
  transition: transform .25s var(--spring), opacity .2s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { color: #fff; background: var(--grad); background-size: 160% 160%; animation: gradShift 6s ease infinite;
  box-shadow: 0 14px 34px -14px rgba(91, 110, 255, .95), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes gradShift { 50% { background-position: 100% 100%; } }
.btn-ghost { background: var(--glass-2); border: 1px solid var(--line-2); color: var(--ink); }
.btn-soft { background: var(--grad-soft); border: 1px solid rgba(123, 92, 255, .3); color: var(--ink); }
.btn-danger { background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .25); color: var(--red); }
.btn.sm { height: 44px; border-radius: 14px; font-size: 14.5px; }
.btn + .btn { margin-top: 10px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; margin: 0 !important; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }

/* ---------- плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile { min-width: 0; padding: 14px 12px 13px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.tile .k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tile .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.meter { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .08); margin-top: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.4s var(--ease); }
.tile .flags { margin-top: 9px; font-size: 12px; letter-spacing: -1px; white-space: nowrap; overflow: hidden; }
.pips { display: flex; gap: 4px; margin-top: 10px; }
.pips i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .08); }
.pips i.on { background: var(--grad); box-shadow: 0 0 10px rgba(91, 140, 255, .6); }

/* ---------- баннеры и строки ---------- */
.banner { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--r-md); margin-top: 12px;
  background: linear-gradient(135deg, rgba(255, 200, 87, .14), rgba(255, 200, 87, .04)); border: 1px solid rgba(255, 200, 87, .25); }
.banner.info { background: linear-gradient(135deg, rgba(79, 125, 255, .18), rgba(139, 92, 255, .08)); border-color: rgba(123, 92, 255, .3); }
.banner .ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.banner .ic svg { width: 21px; height: 21px; }
.banner b { display: block; font-size: 15px; }
.banner span { font-size: 13px; color: var(--ink-2); }
.banner .chev { margin-left: auto; color: var(--ink-3); width: 20px; height: 20px; flex: none; }

.promo { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 18px; overflow: hidden; }
.promo .gift { width: 54px; height: 54px; flex: none; border-radius: 17px; display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 10px 26px -10px rgba(123, 92, 255, .9); animation: wiggle 4s ease-in-out infinite; }
.promo .gift svg { width: 28px; height: 28px; color: #fff; }
@keyframes wiggle { 0%, 85%, 100% { transform: rotate(0); } 88% { transform: rotate(-10deg) scale(1.06); } 92% { transform: rotate(9deg) scale(1.06); } 96% { transform: rotate(-4deg); } }
.promo b { font-size: 16px; display: block; }
.promo span { color: var(--ink-2); font-size: 13.5px; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.q { display: grid; justify-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2); }
.q .qi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--ink); }
.q .qi svg { width: 20px; height: 20px; }

.list { border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 13px; padding: 14px 16px; width: 100%; text-align: left; }
.li + .li { border-top: 1px solid var(--line); }
.li .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); flex: none; }
.li .ic svg { width: 19px; height: 19px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 600; font-size: 15px; }
.li .t span { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .r { color: var(--ink-3); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.li .r svg { width: 18px; height: 18px; }

/* ---------- серверы ---------- */
.globe-card { padding: 0; overflow: hidden; height: 320px; }
.globe-card canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.globe-hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.globe-hud .chip { background: rgba(5, 7, 15, .55); }
.globe-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 7, 15, .9), transparent); }
.globe-foot b { font-size: 22px; letter-spacing: -.02em; }
.globe-foot span { display: block; color: var(--ink-2); font-size: 13px; }
.loc { padding: 0; overflow: hidden; }
.loc-head { display: flex; align-items: center; gap: 14px; padding: 15px 16px; width: 100%; text-align: left; }
.flag { font-size: 30px; line-height: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); flex: none; }
.loc-head .t { flex: 1; }
.loc-head b { font-size: 16px; display: block; }
.loc-head .t > span { font-size: 12.5px; color: var(--ink-3); }
.ping { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 14px; }
.ping.good { color: var(--green); } .ping.good .bars i { background: var(--green); }
.ping.mid { color: var(--amber); } .ping.mid .bars i:nth-child(-n+2) { background: var(--amber); }
.ping.bad { color: var(--red); } .ping.bad .bars i:nth-child(1) { background: var(--red); }
.ping.na { color: var(--ink-3); }
.ping .measuring { width: 26px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.25), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.loc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.loc.open .loc-body { grid-template-rows: 1fr; }
.loc-body > div { overflow: hidden; }
.srv { display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 74px; border-top: 1px solid var(--line); font-size: 14px; }
.srv .proto { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: rgba(79, 125, 255, .14); color: #9db6ff; letter-spacing: .04em; }
.srv .n { flex: 1; color: var(--ink-2); }
.loc .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .35s var(--ease); }
.loc.open .chev { transform: rotate(90deg); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(79, 125, 255, .08); border: 1px solid rgba(79, 125, 255, .2);
  color: var(--ink-2); font-size: 13.5px; margin-top: 12px; }
.note svg { width: 20px; height: 20px; flex: none; color: #8fb0ff; margin-top: 1px; }

/* ---------- тарифы ---------- */
.plan { display: block; width: 100%; text-align: left; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1.5px solid var(--line);
  transition: border-color .3s, background .3s, transform .25s var(--spring), box-shadow .3s; position: relative; overflow: hidden; }
.plan + .plan { margin-top: 12px; }
.plan.sel { border-color: rgba(123, 92, 255, .9); background: linear-gradient(135deg, rgba(70, 200, 255, .12), rgba(123, 92, 255, .14));
  box-shadow: 0 18px 40px -22px rgba(123, 92, 255, .9); }
.plan .top { display: flex; align-items: center; gap: 12px; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: .3s; }
.plan.sel .radio { border-color: transparent; background: var(--grad); }
.radio svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: .35s var(--spring); }
.plan.sel .radio svg { opacity: 1; transform: none; }
.plan .name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.plan .price { text-align: right; }
.plan .price b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.plan .price span { display: block; font-size: 12px; color: var(--ink-3); }
.badge { position: absolute; top: 0; right: 18px; padding: 5px 10px 6px; border-radius: 0 0 11px 11px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(123, 92, 255, .9); }
.plan.has-badge .top { margin-top: 10px; }
.feats { display: grid; gap: 9px; margin: 6px 2px 0; }
.feat { display: flex; align-items: center; gap: 11px; color: var(--ink-2); font-size: 14.5px; }
.feat i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(62, 230, 160, .12); color: var(--green); flex: none; }
.feat i svg { width: 15px; height: 15px; }
.switch { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); width: 100%; text-align: left; margin-top: 12px; }
.switch .t { flex: 1; }
.switch b { display: block; font-size: 15px; }
.switch span { font-size: 13px; color: var(--ink-3); }
.toggle { width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: .3s; flex: none; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .35s var(--spring); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch.on .toggle { background: var(--grad); }
.switch.on .toggle::after { transform: translateX(20px); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 12px; color: var(--ink-2); }
.total b { font-size: 26px; color: var(--ink); letter-spacing: -.03em; }

/* ---------- друзья ---------- */
.ref-hero { text-align: center; padding: 26px 18px 22px; overflow: hidden; }
.ref-pct { font-size: 78px; font-weight: 900; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(123, 92, 255, .55)); }
.ref-hero p { color: var(--ink-2); margin: 10px auto 0; max-width: 300px; }
.sparkle { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(150, 180, 255, .9); animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
.linkbox { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: var(--r-md); background: rgba(0, 0, 0, .25); border: 1px dashed var(--line-2); margin-top: 12px; }
.linkbox code { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); flex: none; transition: transform .25s var(--spring); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 19px; height: 19px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.stat { padding: 15px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12.5px; color: var(--ink-3); }
.steps { position: relative; display: grid; gap: 16px; padding: 4px 4px 2px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--grad-soft); border: 1px solid rgba(123, 92, 255, .35); }
.step b { display: block; font-size: 15px; }
.step span { color: var(--ink-3); font-size: 13.5px; }

/* ---------- профиль ---------- */
.me { display: flex; align-items: center; gap: 14px; }
.me .avatar { width: 58px; height: 58px; font-size: 22px; color: #fff; }
.me b { font-size: 19px; display: block; letter-spacing: -.02em; }
.me span { color: var(--ink-3); font-size: 13px; }
.kv { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; }
.dev { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dev .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.dev .ic svg { width: 20px; height: 20px; }
.dev .t { flex: 1; }
.dev b { display: block; font-size: 14.5px; font-weight: 600; }
.dev span { color: var(--ink-3); font-size: 12.5px; }
.empty { color: var(--ink-3); font-size: 14px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 26px; line-height: 1.6; }

/* ---------- нижняя навигация ---------- */
.tabbar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b));
  width: min(488px, calc(100% - 24px)); height: 68px; padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: 24px; background: rgba(13, 17, 36, .72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tab { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); transition: color .3s; }
.tab svg { width: 23px; height: 23px; transition: transform .4s var(--spring); }
.tab.on { color: #fff; }
.tab.on svg { transform: translateY(-1px) scale(1.08); }
.tab-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; border-radius: 18px; background: var(--grad-soft);
  border: 1px solid rgba(123, 92, 255, .4); box-shadow: 0 0 24px -6px rgba(123, 92, 255, .7) inset;
  transition: transform .5s var(--spring), width .3s; }

/* ---------- шторки ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(3, 4, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease); }
.backdrop.on { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 auto; max-width: 560px; padding: 10px 18px calc(22px + var(--safe-b)); border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #121733, #0a0d1e 40%); border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .8); transform: translateY(105%); transition: transform .5s var(--ease); }
.sheet.on { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .18); margin: 0 auto 14px; }
.sheet h2 { margin: 2px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.sheet p.sub { margin-bottom: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: .25s; }
.seg button.on { background: var(--glass-2); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.appc { position: relative; padding: 14px; border-radius: var(--r-md); background: var(--glass); border: 1.5px solid var(--line); text-align: left; transition: .3s; }
.appc.on { border-color: rgba(123, 92, 255, .9); background: linear-gradient(135deg, rgba(70, 200, 255, .1), rgba(123, 92, 255, .14)); }
.appc .logo { color: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.appc .logo.happ { background: linear-gradient(135deg, #3a7bff, #7a4dff); }
.appc .logo.incy { background: linear-gradient(135deg, #0fd6b0, #2a8cff); }
.appc b { display: block; }
.appc span { font-size: 12px; color: var(--ink-3); }
.appc .rec { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: rgba(62, 230, 160, .15); color: var(--green); }
.vsteps { display: grid; gap: 0; margin: 4px 0 12px; }
.vstep { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.vstep:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: linear-gradient(var(--line-2), transparent); }
.vstep .n { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(123, 92, 255, .9); }
.vstep .t { flex: 1; padding-top: 4px; }
.vstep .t > b { display: block; font-size: 15.5px; margin-bottom: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 11px; background: var(--glass-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.store svg { width: 16px; height: 16px; }
.qr { margin: 6px auto 14px; width: 232px; height: 232px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 20px 50px -20px rgba(91, 140, 255, .8); }
.qr svg, .qr img { width: 100%; height: 100%; }

/* оплата */
.progress { display: flex; gap: 6px; margin: 2px 0 18px; }
.progress i { flex: 1; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.progress i.on::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: fill .6s var(--ease) both; }
@keyframes fill { from { transform: translateX(-100%); } }
.amount { text-align: center; padding: 20px 10px 18px; border-radius: var(--r-lg); background: radial-gradient(80% 120% at 50% 0%, rgba(79, 125, 255, .25), rgba(255, 255, 255, .03)); border: 1px solid rgba(123, 92, 255, .35); margin-bottom: 12px; }
.amount .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.amount .sum { font-size: 46px; font-weight: 900; letter-spacing: -.04em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.amount .sum em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amount .hint { font-size: 12.5px; color: var(--ink-2); }
.req { border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.req .rq { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.req .rq + .rq { border-top: 1px solid var(--line); }
.req .rq .t { flex: 1; min-width: 0; }
.req .rq span { display: block; font-size: 12px; color: var(--ink-3); }
.req .rq b { font-size: 16px; font-weight: 700; }
.drop { display: grid; place-items: center; gap: 10px; text-align: center; padding: 26px 16px; border-radius: var(--r-lg); border: 1.5px dashed rgba(123, 92, 255, .5);
  background: rgba(123, 92, 255, .06); color: var(--ink-2); position: relative; overflow: hidden; }
.drop svg { width: 34px; height: 34px; color: #a98bff; }
.drop b { color: var(--ink); font-size: 16px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-width: 100%; max-height: 220px; border-radius: 14px; display: block; }
.radar { position: relative; width: 150px; height: 150px; margin: 10px auto 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 125, 255, .25) 0 2px, transparent 3px), repeating-radial-gradient(circle, rgba(123, 140, 255, .18) 0 1px, transparent 1px 25px);
  border: 1px solid rgba(123, 140, 255, .3); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(91, 140, 255, .55), transparent 25%); animation: spin 2.4s linear infinite; }
.radar::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; left: 64%; top: 30%; background: var(--cyan); box-shadow: 0 0 12px 3px var(--cyan); animation: blip 2.4s ease-in-out infinite; }
@keyframes blip { 0%, 60%, 100% { opacity: 0; } 70% { opacity: 1; } }
.center { text-align: center; }
.success-mark { width: 104px; height: 104px; margin: 8px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 0 0 10px rgba(91, 140, 255, .12), 0 20px 50px -10px rgba(123, 92, 255, .9); animation: pop .7s var(--spring) both; }
.success-mark svg { width: 54px; height: 54px; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* гейт подписки на канал */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; text-align: center; padding: 28px; background: rgba(5, 7, 15, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: screenIn .5s var(--ease); }
.gate .mega { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: var(--grad); margin-bottom: 22px; box-shadow: 0 20px 60px -15px rgba(123, 92, 255, .9); animation: breathe 3s ease-in-out infinite; }
.gate .mega svg { width: 48px; height: 48px; color: #fff; }
.gate h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.02em; }
.gate p { color: var(--ink-2); margin: 0 0 24px; max-width: 320px; }
.gate .btn { max-width: 340px; }

/* тосты, конфетти, скелетоны */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; top: 12px; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(20, 25, 52, .92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); font-weight: 600; font-size: 14px;
  animation: toastIn .45s var(--spring) both; max-width: 420px; }
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.toast.err svg { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100%; height: 100%; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fatal { min-height: 80vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 20px; }
.fatal img { width: 70px; opacity: .9; }
.fatal p { color: var(--ink-2); max-width: 300px; margin: 0 0 8px; }

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

/* ---------- баланс и пополнение ---------- */
.chip .plus { width: 18px; height: 18px; margin-right: -5px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1;
  color: #04261b; background: linear-gradient(135deg, #5bf2b8, #19c99a); box-shadow: 0 0 10px rgba(62, 230, 160, .55); }
.btn-green { color: #fff; background: linear-gradient(135deg, #2fe3a7 0%, #12c79b 45%, #0ea5c4 100%); background-size: 160% 160%; animation: gradShift 6s ease infinite;
  box-shadow: 0 14px 34px -14px rgba(25, 210, 160, .95), 0 0 0 1px rgba(255, 255, 255, .14) inset; text-shadow: 0 1px 2px rgba(0, 60, 45, .35); }
.btn-green::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
.balcard { display: flex; align-items: center; gap: 14px; margin-top: 12px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(47, 227, 167, .16), rgba(255, 255, 255, .03) 60%); border-color: rgba(47, 227, 167, .25); }
.balcard .bal-l { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bal-k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe9c4; }
.bal-k svg { width: 15px; height: 15px; }
.bal-v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bal-h { font-size: 12px; color: var(--ink-3); }
.balcard .btn { width: auto; padding: 0 18px; flex: none; }
.amts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amt { height: 46px; border-radius: 14px; background: var(--glass); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; transition: .25s; }
.amt.on { border-color: rgba(47, 227, 167, .9); background: rgba(47, 227, 167, .12); color: #9ff3d4; box-shadow: 0 8px 20px -10px rgba(47, 227, 167, .8); }
.amt-input { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 16px; height: 56px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); }
.amt-input span { color: var(--ink-3); font-size: 14px; }
.amt-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 700 20px var(--font); text-align: right; -moz-appearance: textfield; user-select: text; -webkit-user-select: text; }
.amt-input input::-webkit-outer-spin-button, .amt-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amt-input em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.success-mark.green { background: linear-gradient(135deg, #2fe3a7, #0ea5c4); box-shadow: 0 0 0 10px rgba(47, 227, 167, .12), 0 20px 50px -10px rgba(25, 210, 160, .9); }

.dev .chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.dev-hero { width: 76px; height: 76px; margin: 4px auto 12px; border-radius: 24px; display: grid; place-items: center; background: var(--grad-soft);
  border: 1px solid rgba(123, 92, 255, .35); box-shadow: 0 16px 40px -16px rgba(123, 92, 255, .9); }
.dev-hero svg { width: 36px; height: 36px; }

.tile-note { margin-top: 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
