/* EzzProd VPN — кабинет. Светлая: фарфор + navy. Тёмная: графит + белые пилюли. */
:root, [data-theme="light"] {
  --bg: #eceef2;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --text: #0c1220;
  --muted: #646b78;
  --faint: #9aa1ad;
  --line: rgba(12, 18, 32, .08);
  --shadow: 0 1px 1px rgba(12, 18, 32, .03), 0 6px 14px -4px rgba(12, 18, 32, .06), 0 18px 36px -12px rgba(12, 18, 32, .10);
  --shadow-lift: 0 2px 4px rgba(12, 18, 32, .06), 0 22px 44px -14px rgba(14, 26, 46, .38);
  --hero-a: #0e1a2e;
  --hero-b: #1b2d4f;
  --hero-text: #f2f5fa;
  --hero-muted: rgba(226, 234, 246, .64);
  --hero-chip: rgba(255, 255, 255, .09);
  --act: #0e1a2e;
  --on-act: #ffffff;
  --sel: #0c1220;
  --on-sel: #ffffff;
  --ok: #17915a;
  --off: #c4473a;
  --nav: rgba(255, 255, 255, .94);
  --sel-text: rgba(14, 26, 46, .16);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #111113;
  --surface: #1b1b1e;
  --surface-2: #242428;
  --text: #f3f4f6;
  --muted: #9b9fa8;
  --faint: #62666e;
  --line: rgba(255, 255, 255, .075);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -16px rgba(0, 0, 0, .8);
  --hero-a: #232327;
  --hero-b: #151517;
  --hero-text: #f6f6f7;
  --hero-muted: rgba(240, 240, 242, .58);
  --hero-chip: rgba(255, 255, 255, .08);
  --act: #f3f4f6;
  --on-act: #111113;
  --sel: #f3f4f6;
  --on-sel: #111113;
  --ok: #49c486;
  --off: #ef7a6b;
  --nav: rgba(30, 30, 33, .92);
  --sel-text: rgba(255, 255, 255, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s cubic-bezier(.2, .8, .2, 1), color .35s;
}
::selection { background: var(--sel-text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; caret-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#app { max-width: 480px; margin: 0 auto; padding: 16px 16px calc(116px + env(safe-area-inset-bottom, 0px)); }
.boot { min-height: 70vh; display: grid; place-items: center; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--text); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: 12px; margin: 2px 2px 18px; }
.ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--surface); color: var(--muted); font-weight: 700; box-shadow: var(--shadow); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.top .hi { flex: 1; min-width: 0; line-height: 1.2; }
.top .hi span { display: block; font-size: 13px; color: var(--muted); }
.top .hi b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.round:active { transform: scale(.92); }
.round svg.i { width: 20px; height: 20px; }
.title { display: flex; align-items: center; gap: 12px; margin: 2px 2px 16px; }
.title h1 { flex: 1; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }

.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 12px; }
.sec h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.sec span { font-size: 13px; color: var(--muted); }

/* ---------- главная карточка с глобусом ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; color: var(--hero-text); min-height: 312px;
  padding: 20px 20px 18px; display: flex; flex-direction: column; isolation: isolate;
  background: radial-gradient(90% 80% at 85% 35%, var(--hero-b) 0%, var(--hero-a) 70%); box-shadow: var(--shadow-lift); }
.hero .globe { position: absolute; z-index: -1; width: 350px; height: 350px; right: -122px; top: -16px; opacity: 0;
  transition: opacity 1.2s cubic-bezier(.2, .8, .2, 1); }
.hero .globe.ready { opacity: 1; }
.hero .globe canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-a) 8%, transparent 62%); opacity: .9; }
.state { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--hero-chip); font-size: 13px; font-weight: 500; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: #5fd49a; }
.state.off i { background: #f08b7e; }
.term { margin-top: 26px; }
.term .n { font-size: 64px; font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.term .u { font-size: 18px; font-weight: 500; color: var(--hero-muted); margin-left: 4px; letter-spacing: -.01em; }
.term .d { margin-top: 8px; font-size: 14px; color: var(--hero-muted); }
.facts { margin-top: auto; display: flex; gap: 8px; padding-top: 22px; }
.fact { padding: 10px 12px; border-radius: 16px; background: var(--hero-chip); min-width: 0; }
.fact span { display: block; font-size: 11.5px; color: var(--hero-muted); }
.fact b { display: block; font-size: 15px; font-weight: 600; margin-top: 1px; white-space: nowrap; }
.fact b span { display: inline; font-size: inherit; color: inherit; }

.hero.welcome { min-height: 470px; justify-content: flex-end; }
.hero.welcome .globe { width: 440px; height: 440px; right: auto; left: 50%; top: -86px; transform: translateX(-50%); }
.hero.welcome::after { background: linear-gradient(180deg, transparent 30%, var(--hero-a) 72%); }
.hero.welcome h1 { margin: 0; font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.hero.welcome p { margin: 10px 0 0; color: var(--hero-muted); font-size: 15px; max-width: 30ch; }
.hero .pill { margin-top: 20px; height: 54px; border-radius: 999px; background: #fff; color: #0c1220; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.hero .pill:active { transform: scale(.98); }
.hero .ghost { margin-top: 10px; height: 44px; border-radius: 999px; color: var(--hero-text); font-weight: 600; font-size: 14px; background: var(--hero-chip); }

/* ---------- главное действие ---------- */
.cta { width: 100%; min-height: 64px; margin-top: 12px; border-radius: 999px; background: var(--act); color: var(--on-act);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px; text-align: left; box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.cta:active { transform: scale(.985); }
.cta .tx { flex: 1; min-width: 0; }
.cta .tx b { display: block; font-size: 16px; font-weight: 700; }
.cta .tx span { display: block; font-size: 12.5px; opacity: .62; }
.cta .go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--on-act); color: var(--act); flex: none; }
.cta .go svg.i { width: 20px; height: 20px; }
.cta[disabled], .btn[disabled] { opacity: .45; pointer-events: none; }
.paycta { position: sticky; z-index: 5; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lift); }
a.cta { text-decoration: none; }
.outside { max-width: 320px; text-align: center; display: grid; gap: 8px; }
.outside > b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.outside > span { color: var(--muted); font-size: 14.5px; }
body.demo #app { padding-top: 44px; }
.demo-mark { position: fixed; z-index: 20; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface); color: var(--muted); box-shadow: var(--shadow); }

/* ---------- локации ---------- */
.locs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.locs::-webkit-scrollbar { display: none; }
.loc { flex: none; scroll-snap-align: start; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.loc b { font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.loc i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.loc.off { color: var(--muted); }
.loc.off i { background: var(--off); }
.loc-empty { padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 14px; }

/* ---------- быстрые действия ---------- */
.panel { background: var(--surface); border-radius: 26px; padding: 18px 10px 16px; box-shadow: var(--shadow); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); }
.q { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; text-align: center; color: var(--text); }
.q .c { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.q:active .c { transform: scale(.9); }
.q span { line-height: 1.2; }

/* ---------- строки ---------- */
.list { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.row-i { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; }
.row-i + .row-i { border-top: 1px solid var(--line); }
.row-i .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; font-weight: 700; font-size: 13px; }
.row-i .ic svg.i { width: 20px; height: 20px; }
.row-i .t { flex: 1; min-width: 0; }
.row-i .t b { display: block; font-size: 15px; font-weight: 600; }
.row-i .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-i .end { color: var(--faint); display: flex; align-items: center; }
.row-i .end svg.i { width: 18px; height: 18px; }
.row-i .val { color: var(--text); font-weight: 700; }
button.row-i:active { background: var(--surface-2); }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--muted); display: grid; place-items: center; }
.on .radio { border-color: var(--sel); background: var(--sel); }
.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-sel); }

/* ---------- тарифы ---------- */
.amount { background: var(--surface); border-radius: 28px; padding: 22px 18px 18px; box-shadow: var(--shadow); text-align: center; }
.amount .q-lbl { font-size: 14px; color: var(--muted); }
.amount .sum { font-size: 52px; font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 12px 0 6px; }
.amount .per { font-size: 14px; color: var(--muted); min-height: 20px; }
.amount .per b { color: var(--ok); font-weight: 600; }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 20px; padding: 5px; border-radius: 18px; background: var(--surface-2); }
.terms button { height: 42px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.terms button.on { background: var(--sel); color: var(--on-sel); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 18px; }
.incl div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.incl svg.i { width: 18px; height: 18px; color: var(--ok); }

/* ---------- друзья ---------- */
.hero.invite { min-height: 0; }
.hero.invite .globe { width: 300px; height: 300px; right: -120px; top: -40px; }
.hero .big { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 18px; }
.hero .sub { color: var(--hero-muted); font-size: 14px; margin-top: 8px; max-width: 28ch; }
.linkbox { margin-top: 18px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--hero-chip); }
.linkbox code { flex: 1; min-width: 0; font: 13px/1.3 "Onest", sans-serif; color: var(--hero-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbox button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0c1220; flex: none; }
.linkbox button svg.i { width: 18px; height: 18px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: 12.5px; color: var(--muted); }
.stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.stat b small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- админка ---------- */
.rev { background: var(--surface); border-radius: 28px; padding: 20px 18px 16px; box-shadow: var(--shadow); }
.rev .k { font-size: 14px; color: var(--muted); }
.rev .v { font-size: 38px; font-weight: 700; letter-spacing: -.04em; margin: 4px 0 2px; }
.rev .s { font-size: 13px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; margin-top: 18px; }
.bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars i { width: 100%; max-width: 34px; border-radius: 12px; background: var(--sel); min-height: 8px; transform-origin: bottom;
  animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.bars div.zero i { background: var(--surface-2); }
.bars span { font-size: 11.5px; color: var(--muted); }
@keyframes grow { from { transform: scaleY(.05); } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dotst { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.dotst.off { background: var(--off); }
.search { display: flex; gap: 8px; }
.search label { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search .round { width: 52px; height: 52px; background: var(--act); color: var(--on-act); }
.ucard { background: var(--surface); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); margin-top: 10px; }
.ucard .nm { font-size: 17px; font-weight: 700; }
.ucard .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ucard .st { margin-top: 12px; font-weight: 600; }
.btns { display: flex; gap: 8px; margin-top: 14px; }
.btn { flex: 1; height: 48px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.btn:active { transform: scale(.97); }
.btn.main { background: var(--act); color: var(--on-act); }
.btn svg.i { width: 18px; height: 18px; }

/* ---------- нижняя панель: компактная капсула, активная пилюля по ширине подписи ---------- */
.tabbar { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--nav); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 16px 36px -10px rgba(12, 18, 32, .22); border: 1px solid var(--line); }
[data-theme="dark"] .tabbar { box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .7); }
.tabbar button { height: 46px; min-width: 52px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 0;
  color: var(--muted); transition: background-color .35s cubic-bezier(.2, .8, .2, 1), color .3s, padding .35s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.tabbar button svg.i { width: 21px; height: 21px; }
.tabbar button b { font-size: 13.5px; font-weight: 600; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .4s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .4s; }
.tabbar button.on { background: var(--act); color: var(--on-act); padding: 0 16px 0 14px; }
.tabbar button.on b { max-width: 90px; opacity: 1; margin-left: 7px; }

/* ---------- шторка и тост ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; }
.sheet-dim { position: absolute; inset: 0; background: rgba(6, 10, 18, .42); animation: fade .25s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; border-radius: 32px 32px 0 0;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); max-height: 90vh; overflow: auto; background: var(--bg);
  animation: up .38s cubic-bezier(.16, 1, .3, 1); }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--faint); opacity: .45; margin: 4px auto 18px; }
.sheet h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin: 0 4px 6px; }
.sheet p { color: var(--muted); margin: 0 4px 18px; font-size: 14.5px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 40; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--act); color: var(--on-act);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .35); animation: fade .2s ease; max-width: calc(100% - 32px); }

.enter > * { animation: rise .55s cubic-bezier(.16, 1, .3, 1) both; }
.enter > *:nth-child(2) { animation-delay: .04s; } .enter > *:nth-child(3) { animation-delay: .08s; }
.enter > *:nth-child(4) { animation-delay: .12s; } .enter > *:nth-child(5) { animation-delay: .16s; }
.enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: .55; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) {
  .term .n { font-size: 54px; } .hero .globe { right: -160px; }
  .q .c { width: 48px; height: 48px; } .amount .sum { font-size: 44px; }
}

/* ---------- отклик на нажатие: быстрое сжатие, упругий возврат ---------- */
button, .loc, a.cta { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .3s, color .3s, box-shadow .3s, opacity .2s; }
button:active, a.cta:active { transform: scale(.955); transition-duration: .12s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.tabbar button:active { transform: scale(.9); }
.cta:active { transform: scale(.975); }
.cta:active .go { transform: translateX(3px); }
.cta .go { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.row-i:active .ic, .q:active .c { transform: scale(.9); }
.row-i .ic { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- сегменты со скользящим ползунком ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 5px; border-radius: 18px; background: var(--surface-2); }
.seg .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 14px; background: var(--sel);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1); }
.seg button { position: relative; z-index: 1; height: 42px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.seg button small { display: block; font-size: 10.5px; font-weight: 500; opacity: .7; margin-top: -2px; }
.seg button.on { color: var(--on-sel); }
.seg button:active { transform: none; }
.seg.tall button { height: 52px; line-height: 1.15; }
.amount .seg { margin-top: 18px; }
.amount .seg + .seg { margin-top: 8px; }
.amount .sum { transition: opacity .2s; }
.amount .sum s { font-size: 22px; color: var(--faint); font-weight: 600; margin-right: 8px; letter-spacing: -.02em; }
.seg-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 16px 6px 0; }

/* ---------- промокод ---------- */
.promo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.promo svg.i { color: var(--muted); width: 20px; height: 20px; }
.promo input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.promo input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.promo button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--act); color: var(--on-act); font-weight: 600; font-size: 14px; }
.promo.ok { background: var(--surface); min-height: 52px; padding-right: 16px; }
.promo.ok b { flex: 1; font-size: 14px; font-weight: 600; }
.promo.ok b span { color: var(--ok); }
.tag-ok { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ok); font-size: 12.5px; font-weight: 600; }

/* ---------- инструкции ---------- */
.steps-list { display: grid; gap: 10px; counter-reset: st; }
.steps-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.steps-list div::before { counter-increment: st; content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 700; font-size: 13px; }
.card-pad { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }

/* ---------- админка ---------- */
.subtabs { margin: 0 0 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--act); color: var(--on-act); }
.bars.wide { height: 120px; gap: 4px; }
.bars.wide i { max-width: 18px; border-radius: 7px; }
.bars div.pick i { background: var(--ok); }
.bars-cap { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.field input, .field textarea { width: 100%; border: 0; outline: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 16px; color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { box-shadow: var(--shadow), 0 0 0 2px var(--sel-text); }
.pill-sm { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); flex: none; }
.pill-sm.on { background: var(--act); color: var(--on-act); }
.view { animation: viewIn .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes viewIn { from { opacity: .4; transform: translateY(8px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- устройства в тарифах: премиум-эмодзи над числом ---------- */
.devseg button { height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.devseg .pe { width: 30px; height: 30px; display: grid; place-items: center; }
.devseg .pe svg, .devseg .pe video, .devseg .pe img { width: 100% !important; height: 100% !important; }
.devseg .pe.fb svg.i { width: 22px; height: 22px; }
.devseg b { font-size: 16px; font-weight: 700; line-height: 1.1; }
.devseg small { font-size: 10.5px; opacity: .75; margin-top: 0; }

/* ---------- выбор приложения с логотипами ---------- */
.row-i.app { gap: 8px; padding: 10px 12px 10px 10px; }
.app-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.app-main .t { min-width: 0; }
.app-main .t b { display: block; font-size: 15px; font-weight: 600; }
.app-main .t span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.applogo { width: 46px; height: 46px; border-radius: 12px; flex: none; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.cta-soft { background: var(--surface); color: var(--text); }
.cta-soft .go { background: var(--act); color: var(--on-act); }
.dl { display: grid; gap: 8px; margin-top: 10px; }
.dl-btn { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; text-align: left; }
.dl-btn svg.i { width: 19px; height: 19px; color: var(--muted); }
.steps-list div span b { font-weight: 700; }

/* ---------- окно «способы оплаты» (всегда тёмное, как в образце) ---------- */
.sheet:has(.paysheet) { background: #17181b; color: #f3f4f6; }
.sheet:has(.paysheet) .grip { background: #5a5d63; }
.paysheet { color: #f3f4f6; }
.ps-title { font-size: 30px !important; font-weight: 700; letter-spacing: -.03em; margin: 0 2px 16px !important; color: #fff; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-card { position: relative; overflow: hidden; height: 128px; border-radius: 20px; padding: 16px; text-align: left; background: #222327;
  border: 1.5px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; color: #f3f4f6; }
.ps-card b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; position: relative; z-index: 1; }
.ps-card span { font-size: 13px; color: rgba(243, 244, 246, .62); margin-top: auto; max-width: 62%; line-height: 1.3; position: relative; z-index: 1; }
.ps-card .ps-art { position: absolute; right: -14px; bottom: -16px; width: 96px; height: 96px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ps-card .ps-art svg { width: 100%; height: 100%; }
.ps-card.on { border-color: #a8c8e6; background: #25272c; }
.ps-card.on .ps-art { transform: rotate(-6deg) scale(1.06); }
.ps-card.off { opacity: .45; }
.ps-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 0; font-size: 13.5px; color: rgba(243, 244, 246, .6); }
.ps-sum b { color: #fff; font-size: 15px; font-weight: 600; }
.ps-pay { width: 100%; height: 58px; margin-top: 12px; border-radius: 999px; background: #8fa3bd; color: #0f1218; font-size: 17px; font-weight: 600; }
.ps-pay span { font-weight: 700; }
.ps-note { text-align: center; font-size: 12.5px; color: rgba(243, 244, 246, .45); margin-top: 12px; }
.ps-note a { color: #6ea8ff; text-decoration: none; }

/* ---------- эмодзи устройств — в цветах дизайна (монохром), а не в родных цветах ---------- */
.devseg .pe { filter: grayscale(1) brightness(.5) contrast(1.35); transition: filter .3s; }
.devseg button.on .pe { filter: grayscale(1) brightness(2.2) contrast(1.1); }
[data-theme="dark"] .devseg .pe { filter: grayscale(1) brightness(1.7) contrast(1.05); }
[data-theme="dark"] .devseg button.on .pe { filter: grayscale(1) brightness(.35) contrast(1.5); }
.term-seg button small { white-space: nowrap; }

/* ---------- окно оплаты: баннер, 3D-иконки, блики по углам ---------- */
.ps-banner { margin: -2px -2px 16px; border-radius: 22px; overflow: hidden; aspect-ratio: 1280 / 540; background: #0b0b0d;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.ps-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-card { isolation: isolate; background: linear-gradient(155deg, #26272c 0%, #1c1d21 60%, #19191c 100%); }
.ps-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(120px 80px at 0% 0%, rgba(255, 255, 255, .16), transparent 70%),
              radial-gradient(140px 90px at 100% 100%, rgba(255, 255, 255, .08), transparent 70%); }
.ps-card .ps-art { right: -10px; bottom: -14px; width: 104px; height: 104px; z-index: 0;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.ps-card .ps-art img { width: 100%; height: 100%; object-fit: contain; display: block; transform: rotate(-8deg); }
.ps-card.on .ps-art { transform: rotate(-4deg) scale(1.08) translateY(-2px); }
.ps-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; overflow: hidden; }
.ps-glare::after { content: ""; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%; transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: glare 4.2s ease-in-out infinite; }
.ps-card:nth-child(2) .ps-glare::after { animation-delay: 1.2s; }
.ps-card:nth-child(3) .ps-glare::after { animation-delay: 2.4s; }
@keyframes glare { 0%, 55% { left: -80%; } 100% { left: 140%; } }
.ps-card.on { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 12px 28px -12px rgba(0, 0, 0, .8); }

/* ---------- металлическая анимированная кнопка оплаты ---------- */
.ps-pay.metal { position: relative; overflow: hidden; isolation: isolate; color: #0d0e11; font-weight: 700;
  background: linear-gradient(180deg, #f4f6f9 0%, #c9ced6 38%, #9aa1ac 52%, #d7dbe2 70%, #f1f3f6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 3px rgba(0, 0, 0, .25), 0 12px 26px -10px rgba(0, 0, 0, .8); }
.ps-pay.metal::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: overlay;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, rgba(0, 0, 0, .05) 1px 3px); }
.metal-shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 35%; z-index: 0; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent); animation: shine 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
.metal-tx { position: relative; z-index: 1; letter-spacing: .01em; }
.ps-pay.metal:active { transform: scale(.97); }

/* ---------- подробная инструкция ---------- */
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hw-step { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.hw-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--act); color: var(--on-act); font-weight: 700; font-size: 14px; }
.hw-c { flex: 1; min-width: 0; }
.hw-c b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hw-c p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hw-apps { display: grid; gap: 8px; margin-top: 12px; }
.hw-app { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface-2); text-align: left; }
.hw-app .applogo { width: 40px; height: 40px; border-radius: 11px; }
.hw-app span { flex: 1; min-width: 0; }
.hw-app span b { font-size: 14.5px; }
.hw-app span small { display: block; font-size: 12px; color: var(--muted); }
.hw-app svg.i { width: 18px; height: 18px; color: var(--muted); }
.hw-link { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-align: left; padding: 2px 4px; }
.hw-btn { margin-top: 12px; height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.hw-btn svg.i { width: 16px; height: 16px; }
.faq-i { border-top: 1px solid var(--line); }
.faq-i:first-child { border-top: 0; }
.faq-i summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary svg.i { width: 18px; height: 18px; color: var(--faint); transition: transform .3s cubic-bezier(.2, .8, .2, 1); flex: none; }
.faq-i[open] summary svg.i { transform: rotate(90deg); }
.faq-i p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- окно оплаты: значки как в образце — прижаты к углу и обрезаны краем карточки ---------- */
.ps-card { background: #1d1c21 !important; border: 1.5px solid rgba(255, 255, 255, .08); }
.ps-card::before { display: none; }
.ps-card .ps-art { right: 0 !important; bottom: 0 !important; width: auto !important; height: 72% !important; filter: none !important; transform: none !important; }
.ps-card .ps-art img { width: auto !important; height: 100% !important; transform: none !important; }
.ps-card[data-pm="cryptobot"] .ps-art { height: 80% !important; }
.ps-card[data-pm="sbp"] .ps-art { height: 74% !important; }
.ps-card.on { border-color: #9fc0e8 !important; background: #1d1c21 !important; }
.ps-card.on .ps-art { transform: none !important; }
.ps-card span { max-width: 52%; }
.ps-glare::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); }
.ps-card[data-pm="cryptobot"] .ps-art { height: 70% !important; }
.ps-card b, .ps-card span { position: relative; z-index: 3; }

/* ---------- кнопка «оплатить»: ровная серебристо-голубая пилюля, мягкий отблеск ---------- */
.ps-pay.metal { height: 58px; color: #0f1218; font-size: 17px; font-weight: 600;
  background: linear-gradient(180deg, #a7b8cd 0%, #8fa3bd 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -12px rgba(0, 0, 0, .8) !important; }
.ps-pay.metal::before { display: none; }
.metal-shine { width: 28%; opacity: .45; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent) !important;
  animation: shine 3.4s cubic-bezier(.4, 0, .2, 1) infinite; }
.metal-tx #ps-amt { font-weight: 700; }

/* ---------- админка: пользователи ---------- */
.chip small { margin-left: 6px; font-size: 12px; font-weight: 600; opacity: .55; }
.ubar { display: flex; justify-content: space-between; margin: 2px 6px 10px; font-size: 12.5px; color: var(--muted); }
.sortbtn { position: relative; width: 52px; height: 52px; }
.sortbtn select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
.uava { position: relative; font-size: 16px; font-weight: 700; color: var(--text); }
.uava .ud { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: var(--faint); }
.ud.ok { background: var(--ok); } .ud.warn { background: #d99a1e; } .ud.off, .ud.ban { background: var(--off); }
.stp { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.stp.ok { color: var(--ok); } .stp.warn { color: #c2860f; } .stp.off, .stp.ban { color: var(--off); }
[data-theme="dark"] .stp.warn { color: #f0b74a; } [data-theme="dark"] .ud.warn { background: #f0b74a; }
.btn.more { width: 100%; flex: none; margin-top: 12px; background: var(--surface); box-shadow: var(--shadow); }

.uhero { display: grid; gap: 12px; }
.uh-top { display: flex; align-items: center; gap: 14px; }
.uava.big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 22px; flex: none; }
.uava.big .ud { width: 15px; height: 15px; border-width: 3px; }
.uh-name { flex: 1; min-width: 0; line-height: 1.25; }
.uh-name b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uh-name > span { font-size: 13px; color: var(--muted); }
.lnk { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.round.sm { width: 40px; height: 40px; background: var(--surface-2); box-shadow: none; }
.round.sm svg.i { width: 18px; height: 18px; }
.uh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.uh-meta { font-size: 12.5px; color: var(--muted); }
.uwarn { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--off); font-size: 13px; }

.usub { display: grid; gap: 12px; }
.usub .exp { display: grid; gap: 2px; padding-bottom: 4px; }
.usub .exp span { font-size: 12.5px; color: var(--muted); }
.usub .exp span.off { color: var(--off); }
.usub .exp b { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.qd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qd.six { grid-template-columns: repeat(6, 1fr); margin-top: 12px; }
.qchip { height: 42px; border-radius: 14px; background: var(--surface-2); font-weight: 700; font-size: 14px; transition: transform .2s, background .2s, color .2s; }
.qchip:active { transform: scale(.94); }
.qchip.neg { color: var(--off); }
.qchip.on { background: var(--act); color: var(--on-act); }
.qchip[disabled] { opacity: .35; pointer-events: none; }
.uin { display: flex; gap: 8px; }
.uin input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; border-radius: 14px; padding: 0 14px; background: var(--surface-2); color: var(--text); font-size: 15px; }
.uin input:focus { box-shadow: 0 0 0 2px var(--sel-text); }
.uin input::placeholder { color: var(--faint); }
.uin .btn { flex: none; height: 46px; padding: 0 16px; border-radius: 14px; }
.uin .btn:not(.main) { background: var(--surface-2); }
.sw { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); cursor: pointer; padding-top: 2px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; transition: background .25s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.sw input:checked + i { background: var(--ok); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--text); outline-offset: 2px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); font-size: 24px; font-weight: 500; line-height: 1; }
.stepper button:active { transform: scale(.92); }
.stepper b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.btn.wide { width: 100%; flex: none; margin-top: 12px; }
.row-i.danger .t b, .row-i.danger .ic { color: var(--off); }
.btn.main.danger { background: var(--off); color: #fff; }
section.form + .sec, .list + .sec { margin-top: 26px; }
.search label.sortbtn { flex: none; width: 52px; padding: 0; justify-content: center; color: var(--on-act); }
.usub { grid-template-columns: minmax(0, 1fr); }
.usub > * { min-width: 0; }
.uin input[type="date"] { min-width: 0; width: 100%; -webkit-appearance: none; appearance: none; }

/* ---------- флаги и сетка локаций ---------- */
.flag { position: relative; display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .28); }
.flag.fb { display: grid; place-items: center; background: var(--surface-2); font-size: 11px; font-weight: 700; }
.row-i .ic.has-flag { background: none; }
.row-i .ic .flag { width: 38px; height: 38px; }
.locgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.locc { display: flex; align-items: center; gap: 10px; min-width: 0; height: 52px; padding: 0 12px 0 8px; border-radius: 18px; }
.locc .nm { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locc:not(.off) i { display: none; }
.locc i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.locc.off .nm { color: var(--muted); }
.locc.off .flag { filter: grayscale(1); opacity: .6; }
.locc.off i { background: var(--off); }
.locgrid .locc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.locbar { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.locbar .fstack { display: flex; flex: none; }
.locbar .fstack .flag { width: 30px; height: 30px; box-shadow: 0 0 0 2.5px var(--surface); }
.locbar .fstack .flag + .flag { margin-left: -9px; }
.locbar .fstack .flag.fb { font-size: 10.5px; color: var(--muted); }
.locbar .t { flex: 1; min-width: 0; line-height: 1.25; }
.locbar .t b { display: block; font-size: 15px; font-weight: 600; }
.locbar .t span { display: block; font-size: 13px; color: var(--ok); }
.locbar .t span.warn { color: var(--off); }
.locbar .end { color: var(--faint); display: flex; }
.locbar .end svg.i { width: 18px; height: 18px; }
.locbar:active { transform: scale(.985); }
.sic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.sic svg.i { width: 19px; height: 19px; }
.sic.auto { background: #f5b301; color: #fff; }
.sic.auto svg.i { fill: currentColor; }
.sic.yt { background: #e62117; color: #fff; }
.sic.yt svg.i { fill: currentColor; }
#sheet-body .sec:first-of-type { margin-top: 20px; }
