/* ============================================================
   Self-hosted fonts (served from /cabinet/assets/fonts/)
   Manrope — UI text (latin + cyrillic). Bricolage Grotesque —
   display headings & large numerals (latin; cyrillic falls back
   to Manrope via the --display stack, same as the prototype).
   ============================================================ */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/cabinet/assets/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/cabinet/assets/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/cabinet/assets/fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/cabinet/assets/fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/cabinet/assets/fonts/manrope-800.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/cabinet/assets/fonts/bricolage-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/cabinet/assets/fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/cabinet/assets/fonts/bricolage-800.woff2") format("woff2"); }

/* ============================================================
   LiberDon VPN — VISION variation
   A distinct, editorial "mission-control" direction:
   - flat premium surfaces (no glass blur), crisp hairlines
   - oversized display numerals (Bricolage Grotesque)
   - duotone: brand blue + warm amber highlight
   - the planet reframed as a "live porthole" with orbiting
     data-ping chips ("data crossing the world")
   ============================================================ */

:root {
  --acc: #5b8cff;
  --acc-2: #87b0ff;
  --hot: #ffb070;          /* warm secondary highlight */
  --ok: #34d399;
  --bad: #ff6e7f;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 11px;
  --pill: 999px;

  --font: "Manrope", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Manrope", sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
}

:root, .v-dark {
  --bg: #070a12;
  --bg-grad:
    radial-gradient(130% 80% at 50% -20%, #16203a 0%, rgba(0,0,0,0) 60%),
    radial-gradient(120% 70% at 85% 0%, rgba(255,176,112,.10) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(120% 80% at 10% 5%, rgba(91,140,255,.16) 0%, rgba(0,0,0,0) 55%);
  --surface: #0d1320;
  --surface-2: #121a2b;
  --surface-hi: #18223a;
  --text: #f2f6ff;
  --muted: #9fabc6;
  --faint: #6b7690;
  --hair: rgba(255,255,255,.08);
  --hair-2: rgba(255,255,255,.14);
  --ink: #fff;
  --shadow: 0 30px 70px -36px rgba(0,0,0,.8);
  --acc-text: var(--acc-2);
  --hot-text: var(--hot);
  --porthole: #060a14;
}

.v-light {
  --bg: #eef1f8;
  --bg-grad:
    radial-gradient(130% 80% at 50% -20%, #ffffff 0%, rgba(0,0,0,0) 60%),
    radial-gradient(120% 70% at 85% 0%, rgba(255,176,112,.18) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(120% 80% at 10% 5%, rgba(91,140,255,.16) 0%, rgba(0,0,0,0) 55%);
  --surface: #ffffff;
  --surface-2: #f4f6fc;
  --surface-hi: #eef2fb;
  --text: #0e1626;
  --muted: #56627d;
  --faint: #9aa6bf;
  --hair: rgba(14,22,38,.09);
  --hair-2: rgba(14,22,38,.15);
  --ink: #fff;
  --shadow: 0 30px 60px -38px rgba(31,45,84,.45);
  --acc-text: #2f63d6;
  --hot-text: #b56a1f;
  --porthole: #0a1224;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
body::before { content:""; position: fixed; inset: 0; background: var(--bg-grad); z-index: -1; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 1em; height: 1em; }
::selection { background: color-mix(in oklab, var(--acc) 40%, transparent); }

h1,h2,h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; }
.disp { font-family: var(--display); font-variant-numeric: tabular-nums; }

.shell { max-width: 720px; margin: 0 auto; padding: 0 18px 120px; }

/* ---- top bar ---- */
.v-top { display: flex; align-items: center; gap: 12px; padding: 16px 2px 8px; }
.v-logo {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--acc-2), var(--acc)); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 22px;
  box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--acc) 60%, transparent);
}
.v-brand { margin-right: auto; }
.v-brand b { font-family: var(--display); font-size: 16px; display: block; line-height: 1; }
.v-brand span { font-size: 12px; color: var(--muted); }
.v-iconbtn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--hair); color: var(--muted);
  transition: .18s;
}
.v-iconbtn:hover { color: var(--text); border-color: var(--hair-2); }
.v-iconbtn:active { transform: scale(.93); }
.v-iconbtn svg { width: 19px; height: 19px; }

/* ---- segmented screen switch ---- */
.v-seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--pill); padding: 4px; margin: 6px 2px 18px; }
.v-seg button { flex: 1; height: 38px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .2s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.v-seg button svg { width: 16px; height: 16px; }
.v-seg button.on { background: var(--surface-hi); color: var(--text); box-shadow: 0 2px 8px -4px rgba(0,0,0,.4); }
.v-light .v-seg button.on { box-shadow: 0 1px 3px rgba(31,45,84,.15); }

/* ============================================================
   HERO — porthole
   ============================================================ */
.porthole {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--porthole);
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow);
  height: clamp(320px, 64vw, 420px);
}
.porthole::before { /* starfield */
  content:""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.4px 1.4px at 40% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 12% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 60% 85%, rgba(255,255,255,.4), transparent);
  opacity: .8;
}
.porthole-glow { position: absolute; inset: 0; background: radial-gradient(80% 60% at 78% 18%, color-mix(in oklab, var(--hot) 22%, transparent), transparent 60%); }
/* globe lives bottom-left, partially cropped like a rising planet */
.porthole .globe-stage {
  position: absolute; width: 78%; aspect-ratio: 1;
  left: -16%; bottom: -34%;
}
.porthole .globe-canvas { width: 100%; height: 100%; }

/* status overlay top-right */
.ph-status {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ph-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: var(--pill); font-size: 12.5px; font-weight: 600;
  background: rgba(10,16,30,.55); border: 1px solid rgba(255,255,255,.14); color: #eaf0ff;
  backdrop-filter: blur(6px);
}
.ph-chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 30%, transparent); }
.ph-chip svg { width: 14px; height: 14px; opacity: .8; }

/* days readout overlay bottom-right */
.ph-readout { position: absolute; right: 20px; bottom: 22px; text-align: right; }
.ph-cap { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #aab8d8; font-weight: 700; }
.ph-num { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 22vw, 120px); line-height: .82; color: #fff; letter-spacing: -.05em; text-shadow: 0 8px 40px rgba(91,140,255,.5); }
.ph-unit { font-family: var(--display); font-size: clamp(20px, 6vw, 30px); font-weight: 600; color: #cdd9f5; margin-left: 6px; }
.ph-date { font-size: 13px; color: #b6c2de; margin-top: 6px; font-weight: 600; }

/* orbiting live-ping chips */
.ping {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--pill);
  background: rgba(10,16,30,.62); border: 1px solid rgba(255,255,255,.14);
  color: #dfe8ff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(6px);
  opacity: 1; transform: translateY(8px); transition: transform .45s var(--ease);
}
.ping.show { transform: none; }
.ping.out { opacity: 0; transition: opacity .35s, transform .35s; transform: translateY(8px); }
.ping .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.ping b { color: #fff; font-weight: 700; }

/* ---- progress strip under porthole ---- */
.v-prog { margin: 16px 2px 0; }
.v-prog-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.v-prog-track { height: 8px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--hair); overflow: hidden; }
.v-prog-fill { height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--acc), var(--acc-2)); width: 0; transition: width 1.1s var(--ease); position: relative; }
.v-prog-fill::after { content:""; position:absolute; right:0; top:0; bottom:0; width:24px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35)); }

/* ---- action bar ---- */
.v-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.v-btn {
  height: 56px; border-radius: var(--r-md); font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--hair-2); color: var(--text);
  transition: .18s;
}
.v-btn svg { width: 19px; height: 19px; }
.v-btn:hover { border-color: var(--hair-2); background: var(--surface-hi); }
.v-btn:active { transform: scale(.98); }
.v-btn.primary { background: linear-gradient(135deg, var(--acc-2), var(--acc)); color: #fff; border-color: transparent; box-shadow: 0 14px 34px -12px color-mix(in oklab, var(--acc) 60%, transparent); }
.v-btn.primary:hover { filter: brightness(1.06); }
.v-btn.danger { color: var(--bad); border-color: color-mix(in oklab,var(--bad) 45%,transparent); background: color-mix(in oklab,var(--bad) 15%,var(--surface)); font-weight: 700; }
.v-light .v-btn.danger { color: #d61f37; }
.v-btn.danger:hover { background: color-mix(in oklab,var(--bad) 24%,var(--surface)); border-color: color-mix(in oklab,var(--bad) 60%,transparent); }
.v-btn.urgent { animation: vurgent 2.4s var(--ease) infinite; }
@keyframes vurgent { 0%,100% { box-shadow: 0 14px 34px -12px color-mix(in oklab,var(--acc) 60%,transparent), 0 0 0 0 color-mix(in oklab,var(--acc) 30%,transparent); } 50% { box-shadow: 0 14px 34px -12px color-mix(in oklab,var(--acc) 60%,transparent), 0 0 0 7px transparent; } }

/* status banner */
.v-banner { display:flex; align-items:flex-start; gap:12px; padding:13px 15px; border-radius:var(--r-md); margin-top:16px; }
.v-banner .bi { flex:none; display:grid; place-items:center; margin-top:1px; }
.v-banner .bi svg { width:20px; height:20px; }
.v-banner b { display:block; font-size:14px; }
.v-banner span { font-size:12.5px; color:var(--muted); }
.v-banner.warn { background: color-mix(in oklab,var(--hot) 14%,transparent); border:1px solid color-mix(in oklab,var(--hot) 30%,transparent); }
.v-banner.warn .bi, .v-banner.warn b { color: var(--hot-text); }
.v-banner.bad { background: color-mix(in oklab,var(--bad) 13%,transparent); border:1px solid color-mix(in oklab,var(--bad) 30%,transparent); }
.v-banner.bad .bi, .v-banner.bad b { color: var(--bad); }

.ph-chip.off .d { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in oklab,var(--bad) 30%,transparent); }
.porthole.dim .globe-stage { filter: saturate(.5) brightness(.7); }

/* ---- info rows (linear-style hairline list) ---- */
.v-list { margin-top: 18px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.v-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.v-row:last-child { border-bottom: 0; }
.v-row .ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hair); color: var(--acc-text); }
.v-row .ic svg { width: 18px; height: 18px; }
.v-row .ic.hot { color: var(--hot-text); }
.v-row .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.v-row .v { font-size: 15px; font-weight: 700; margin-top: 1px; }
.v-row .right .v { white-space: nowrap; }
.v-row .right { margin-left: auto; text-align: right; }
.v-row .v.ok { color: var(--ok); }

/* key reveal */
.v-key { display:flex; align-items:center; gap:10px; margin-top: 14px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 8px 8px 8px 16px; }
.v-key code { flex:1; min-width:0; font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:.25s; }
.v-key code.hidden { filter: blur(7px); }
.v-key .km { width: 40px; height: 40px; border-radius: 10px; display:grid; place-items:center; background: var(--surface-2); border:1px solid var(--hair); color: var(--muted); transition:.18s; }
.v-key .km:hover { color: var(--text); border-color: var(--hair-2); }
.v-key .km:active { transform: scale(.9); }
.v-key .km svg { width: 17px; height: 17px; }
.v-key .km.ok { color: var(--ok); }

.v-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 4px 12px; display:flex; align-items:center; gap:8px; }
.v-label svg { width: 15px; height: 15px; color: var(--acc-text); }

/* ============================================================
   TARIFFS
   ============================================================ */
.v-h1 { font-size: clamp(28px, 8vw, 38px); margin: 8px 2px 4px; }
.v-sub { color: var(--muted); font-size: 15px; margin: 0 2px 22px; max-width: 460px; }
.v-plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v-plans { grid-template-columns: 1fr 1fr; } }

.v-plan {
  position: relative; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hair);
  display: flex; flex-direction: column; transition: .2s;
}
.v-plan:hover { transform: translateY(-3px); border-color: var(--hair-2); }
.v-plan.best { border-color: color-mix(in oklab, var(--acc) 55%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--acc) 12%, var(--surface)), var(--surface) 45%); box-shadow: 0 26px 60px -30px color-mix(in oklab, var(--acc) 55%, transparent); }
.v-plan .topline { display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; }
.v-plan .pinfo { flex: 1; min-width: 0; }
.v-plan .pname { font-family: var(--display); font-size: 21px; font-weight: 700; }
.v-plan .pterm { color: var(--muted); font-size: 13px; white-space: nowrap; }
.v-tag { height: 24px; padding: 0 11px; border-radius: var(--pill); font-size: 11.5px; font-weight: 800; display:inline-flex; align-items:center; gap:5px; background: linear-gradient(135deg, var(--hot), #ff9a4d); color: #2a1400; white-space: nowrap; flex: none; }
.v-tag svg { width: 13px; height: 13px; }
.v-save { font-size: 12px; font-weight: 800; color: var(--ok); }
.v-price { display:flex; align-items:baseline; gap:5px; margin: 18px 0 2px; }
.v-price .a { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.v-price .c { font-size: 19px; color: var(--muted); font-weight: 700; }
.v-permo { font-size: 12.5px; color: var(--faint); min-height: 18px; }
.v-permo b { color: var(--acc-text); }
.v-feats { list-style:none; margin: 18px 0; padding: 0; display:flex; flex-direction:column; gap: 11px; flex:1; }
.v-feats li { display:flex; gap:9px; align-items:flex-start; font-size: 13.5px; color: var(--muted); }
.v-feats li span { flex: 1; min-width: 0; }
.v-feats svg { width: 17px; height: 17px; color: var(--acc-text); flex:none; margin-top:1px; }
.v-pcta { height: 50px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--text); transition:.18s; }
.v-pcta:hover { background: var(--surface-hi); }
.v-pcta.primary { background: linear-gradient(135deg, var(--acc-2), var(--acc)); color:#fff; border-color: transparent; box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--acc) 60%, transparent); }
.v-pcta:disabled { opacity:.5; pointer-events:none; }

/* ---- settings ---- */
.v-refcard { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 18px; }
.v-refstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.v-refstat { background: var(--surface-2); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px; }
.v-refstat .n { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.v-refstat .n.hot { color: var(--hot-text); }
.v-refstat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.v-refrow { display:flex; align-items:center; gap:8px; height: 46px; padding: 0 6px 0 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hair); margin-bottom: 14px; }
.v-refrow code { flex:1; min-width:0; font-family: ui-monospace, monospace; font-size: 13px; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v-refcta { display:flex; gap:10px; }
.v-refcta .v-btn { flex:1; }

.v-rowbtn { display:flex; align-items:center; gap:14px; padding: 15px 18px; width:100%; text-align:left; border-bottom: 1px solid var(--hair); transition: background .16s; }
.v-rowbtn:last-child { border-bottom: 0; }
.v-rowbtn:hover { background: var(--surface-2); }
.v-rowbtn:active { background: var(--surface-hi); }
.v-rowbtn .ic { width: 38px; height: 38px; border-radius: 11px; flex:none; display:grid; place-items:center; background: var(--surface-2); border: 1px solid var(--hair); color: var(--acc-text); }
.v-rowbtn .ic.hot { color: var(--hot-text); }
.v-rowbtn .ic svg { width: 18px; height: 18px; }
.v-rowbtn .rb { flex:1; min-width:0; }
.v-rowbtn .k { font-size: 14.5px; font-weight: 700; color: var(--text); }
.v-rowbtn .v { font-size: 12.5px; color: var(--muted); margin-top: 1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v-rowbtn .chev { color: var(--faint); flex:none; }
.v-rowbtn .chev svg { width: 18px; height: 18px; }

/* toast */
.v-toasts { position: fixed; left:0; right:0; bottom: calc(20px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; align-items:center; gap:8px; z-index: 90; pointer-events:none; }
.v-toast { display:flex; align-items:center; gap:10px; background: var(--surface); border:1px solid var(--hair-2); color: var(--text); border-radius: var(--pill); padding: 12px 18px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); transform: translateY(12px); opacity:0; transition: transform .3s var(--ease); }
.v-toast.show { transform:none; opacity:1; }
.v-toast svg { width:18px; height:18px; color: var(--ok); }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: vrise .6s var(--ease) both; }
  .rise.d1 { animation-delay:.06s } .rise.d2 { animation-delay:.12s } .rise.d3 { animation-delay:.18s } .rise.d4 { animation-delay:.24s }
}
@keyframes vrise { from { transform: translateY(18px); } to { transform: none; } }

/* ============================================================
   Referral header — social avatars + reward
   ============================================================ */
.v-refhero {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 14px; padding: 18px;
  border: 1px solid var(--hair-2);
  background:
    radial-gradient(90% 130% at 88% -10%, color-mix(in oklab, var(--hot) 32%, transparent), transparent 62%),
    radial-gradient(90% 130% at 6% 120%, color-mix(in oklab, var(--acc) 26%, transparent), transparent 60%),
    var(--porthole);
}
.v-refhero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 15px 15px; opacity:.4; pointer-events:none; }
.v-refhero > * { position: relative; }
.v-avrow { display:flex; align-items:center; margin-bottom:16px; }
.v-av {
  width: 42px; height: 42px; border-radius: 50%; flex:none;
  display:grid; place-items:center; margin-left:-11px;
  background: rgba(255,255,255,.08);
  border: 2px solid var(--porthole);
  color: #cdd9f5;
}
.v-av:first-child { margin-left:0; }
.v-av svg { width: 20px; height: 20px; }
.v-av.on { background: linear-gradient(150deg, #ffd9b0, var(--hot)); color:#5a2c00; }
.v-av.on svg { width: 21px; height: 21px; }
.v-av.more { background: rgba(255,255,255,.14); color:#fff; font-family: var(--display); font-weight:800; font-size:14px; }
.v-av.invite { background: transparent; border: 2px dashed rgba(255,255,255,.4); color:#fff; }
.v-av.invite svg { width:18px; height:18px; }
.v-reward { font-family: var(--display); font-weight:700; font-size:22px; color:#fff; letter-spacing:-.02em; }
.v-reward .disp { font-size:30px; font-weight:800; color: #ffd9b0; }
.v-reward-sub { display:flex; align-items:center; gap:7px; font-size:13px; color:#c8d3ec; margin-top:6px; font-weight:600; }
.v-reward-sub svg { width:15px; height:15px; color: var(--hot); }
.v-reward-sub b { color:#fff; font-weight:800; white-space:nowrap; }
.v-next { margin: 2px 0 14px; }
.v-next-row { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:var(--muted); font-weight:600; margin-bottom:6px; white-space:nowrap; }
.v-next-row b { color: var(--hot-text); }
.v-next-track { height:7px; border-radius:var(--pill); background:var(--surface-2); border:1px solid var(--hair); overflow:hidden; }
.v-next-fill { height:100%; border-radius:var(--pill); background:linear-gradient(90deg, var(--hot), #ff9a4d); }

/* ============================================================
   Modal / bottom sheet
   ============================================================ */
.vm-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 55%, rgba(0,0,0,.7));
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
}
@media (min-width: 560px) { .vm-scrim { align-items: center; padding: 20px; } }
.vm-scrim.open { opacity: 1; visibility: visible; }
.vm-sheet {
  width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--hair-2);
  border-radius: 26px 26px 0 0; box-shadow: var(--shadow);
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(22px); transition: transform .34s var(--ease);
  max-height: 92dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 560px) { .vm-sheet { border-radius: 26px; padding-top: 22px; } }
.vm-scrim.open .vm-sheet { transform: none; }
.vm-grip { width: 38px; height: 4px; border-radius: 3px; background: var(--hair-2); margin: 0 auto; }

/* Connect iframe modal (subscription page embedded via /cabinet/sub-proxy) */
.cf-scrim { position: fixed; inset: 0; z-index: 120; background: color-mix(in oklab, var(--bg) 60%, rgba(0,0,0,.75)); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s; }
@media (min-width: 560px) { .cf-scrim { align-items: center; padding: 20px; } }
.cf-scrim.open { opacity: 1; visibility: visible; }
.cf-sheet { width: 100%; max-width: 480px; height: 88dvh; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 26px 26px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transform: translateY(22px); transition: transform .3s var(--ease); }
@media (min-width: 560px) { .cf-sheet { border-radius: 22px; height: 84dvh; } }
.cf-scrim.open .cf-sheet { transform: none; }
.cf-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.cf-head .cf-ttl { flex: 1; font-family: var(--display); font-size: 16px; font-weight: 700; }
.cf-icon { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hair); color: var(--muted); transition: .16s; }
.cf-icon:hover { color: var(--text); }
.cf-icon:active { transform: scale(.92); }
.cf-icon svg { width: 18px; height: 18px; }
.cf-bar { height: 3px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .2s ease, opacity .3s; }
.cf-frame { flex: 1; width: 100%; border: 0; background: var(--surface); }
@media (min-width: 560px) { .vm-grip { display:none; } }
.vm-head { display:flex; align-items:flex-start; gap:13px; }
.vm-head h3 { font-family: var(--display); font-size:19px; }
.vm-head p { color: var(--muted); font-size:13.5px; margin:3px 0 0; }
.vm-head .ttl { flex:1; min-width:0; }
.vm-ic { width:46px; height:46px; border-radius:13px; flex:none; display:grid; place-items:center; background: var(--surface-2); border:1px solid var(--hair); color: var(--acc-text); }
.vm-ic svg { width:22px; height:22px; }
.vm-ic.hot { color: var(--hot-text); }
.vm-ic.bad { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.vm-ic.ok { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.vm-x { width:38px; height:38px; border-radius:11px; flex:none; display:grid; place-items:center; background: var(--surface-2); border:1px solid var(--hair); color: var(--muted); margin-left:auto; transition:.16s; }
.vm-x:hover { color: var(--text); }
.vm-x:active { transform: scale(.9); }
.vm-x svg { width:18px; height:18px; }

.vm-note { display:flex; gap:11px; align-items:flex-start; background: var(--surface-2); border:1px solid var(--hair-2); border-radius: var(--r-md); padding:13px 15px; font-size:13.5px; color: var(--muted); line-height:1.55; }
.vm-note b { color: var(--text); font-weight:700; }
.vm-note .ni { flex:none; color: var(--acc-text); margin-top:1px; }
.vm-note .ni svg { width:17px; height:17px; }
.vm-note.bad { background: color-mix(in oklab, var(--bad) 12%, var(--surface)); border-color: color-mix(in oklab, var(--bad) 28%, transparent); }
.vm-note.bad .ni { color: var(--bad); }

.vm-row { display:flex; gap:10px; }
.vm-row .v-btn { flex:1; }
.vm-summary { background: var(--surface-2); border:1px solid var(--hair); border-radius: var(--r-md); padding: 14px 16px; }
.vm-line { display:flex; align-items:center; justify-content:space-between; }
.vm-line span { color: var(--muted); font-size:13.5px; white-space:nowrap; }
.vm-line b { font-weight:700; white-space:nowrap; }
.vm-line b.big { font-family:var(--display); font-size:21px; }
.vm-hr { height:1px; background: var(--hair); margin:12px 0; }

/* sessions */
.vm-sess { display:flex; align-items:center; gap:13px; padding:13px 0; border-bottom:1px solid var(--hair); }
.vm-sess:last-of-type { border-bottom:0; }
.vm-sess .si { width:40px; height:40px; border-radius:11px; flex:none; display:grid; place-items:center; background:var(--surface-2); border:1px solid var(--hair); color:var(--muted); }
.vm-sess .si svg { width:19px; height:19px; }
.vm-sess .sb { flex:1; min-width:0; }
.vm-sess .sd { font-weight:700; font-size:14px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; row-gap:4px; }
.vm-sess .sm { font-size:12px; color:var(--muted); margin-top:2px; }
.vm-cur { font-size:10.5px; font-weight:800; color:var(--ok); background:color-mix(in oklab,var(--ok) 16%,transparent); padding:3px 8px; border-radius:var(--pill); white-space:nowrap; }
.vm-del { width:38px; height:38px; border-radius:10px; flex:none; display:grid; place-items:center; background:var(--surface-2); border:1px solid var(--hair); color:var(--muted); transition:.16s; }
.vm-del:hover { color:var(--bad); border-color: color-mix(in oklab,var(--bad) 32%,transparent); }
.vm-del svg { width:17px; height:17px; }

/* connection steps */
.vm-load { height: 180px; border-radius: var(--r-md); border:1px solid var(--hair); background: var(--surface-2); display:grid; place-items:center; text-align:center; color: var(--muted); }
.vm-loadbar { width:170px; height:5px; border-radius:3px; background: var(--hair-2); overflow:hidden; margin:14px auto 0; }
.vm-loadbar i { display:block; height:100%; width:40%; border-radius:3px; background:linear-gradient(90deg,var(--acc),var(--acc-2)); animation:vload 1.3s var(--ease) infinite; }
@keyframes vload { 0%{transform:translateX(-120%)} 100%{transform:translateX(360%)} }
.vm-steps { display:flex; flex-direction:column; gap:14px; }
.vm-step { display:flex; gap:12px; align-items:flex-start; }
.vm-step .n { width:27px; height:27px; border-radius:50%; flex:none; display:grid; place-items:center; background: var(--surface-2); border:1px solid var(--hair-2); color: var(--acc-text); font-weight:800; font-size:13px; }
.vm-step p { margin:3px 0 0; font-size:13.5px; color:var(--muted); }
.vm-step b { color: var(--text); font-weight:700; }

/* fields / auth / otp */
.v-field { display:flex; flex-direction:column; gap:7px; }
.v-flabel { font-size:13px; font-weight:600; color:var(--muted); margin-left:2px; }
.v-input { height:52px; padding:0 16px; border-radius:14px; width:100%; background:var(--surface-2); border:1px solid var(--hair-2); color:var(--text); font-size:15px; transition:.18s; }
.v-input::placeholder { color: var(--faint); }
.v-input:focus { outline:none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in oklab,var(--acc) 22%,transparent); }
/* Разовая пульсация-подсветка, чтобы сразу было видно: поле редактируемое. */
.v-input.v-attn { animation: vAttnPulse 1.1s ease-out 2; }
@keyframes vAttnPulse {
  0%, 100% { border-color: var(--hair-2); box-shadow: 0 0 0 0 color-mix(in oklab,var(--acc) 0%,transparent); }
  35% { border-color: var(--acc); box-shadow: 0 0 0 5px color-mix(in oklab,var(--acc) 34%,transparent); }
}
.v-inicon { position:relative; }
.v-inicon svg { position:absolute; left:15px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--faint); transition:color .18s; }
/* Иконка поля становится акцентной, когда поле в фокусе. */
.v-inicon:focus-within svg { color: var(--acc); }
.v-inicon .v-input { padding-left:44px; }
.v-check { display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; font-size:13.5px; color:var(--muted); }
.v-check input { position:absolute; opacity:0; }
.v-check .bx { width:20px; height:20px; border-radius:7px; border:1.5px solid var(--hair-2); display:grid; place-items:center; flex:none; transition:.18s; color:transparent; background:var(--surface-2); }
.v-check input:checked + .bx { background:var(--acc); border-color:var(--acc); color:#fff; }
.v-check input:checked + .bx svg { width:13px; height:13px; }
.v-ts { height:62px; border-radius:13px; border:1px dashed var(--hair-2); background:var(--surface-2); display:flex; align-items:center; gap:11px; padding:0 15px; color:var(--muted); font-size:13.5px; cursor:pointer; }
.v-ts .tsb { width:22px; height:22px; border-radius:6px; border:2px solid var(--hair-2); flex:none; }
.v-ts.loading .tsb { border-top-color: var(--acc); animation: spin 1s linear infinite; }
.v-ts.done .tsb { background:var(--ok); border-color:var(--ok); }
.v-ts .cf { margin-left:auto; font-size:11px; color:var(--faint); }
@keyframes spin { to { transform: rotate(360deg); } }
.v-otp { display:flex; gap: clamp(5px, 1.8vw, 9px); justify-content:center; width:100%; }
/* Боксы резиновые: flex-сжимаются под ширину экрана (не вылезают за края на узких
   мобилах), но не шире 52px на широких. Раньше фикс. width:50px переполнял ~360px. */
.v-otp input { flex:1 1 0; min-width:0; max-width:52px; height:60px; border-radius:14px; text-align:center; background:var(--surface-2); border:1.5px solid var(--hair-2); color:var(--text); font-family:var(--display); font-size:26px; font-weight:700; transition:.18s; }
@media (max-width:380px){ .v-otp input { height:54px; font-size:22px; } }
.v-otp input:focus { outline:none; border-color:var(--acc); box-shadow:0 0 0 3px color-mix(in oklab,var(--acc) 22%,transparent); }
.v-otp input.filled { border-color: color-mix(in oklab,var(--acc) 55%,transparent); background: color-mix(in oklab,var(--acc) 12%,var(--surface-2)); }
.v-link { color: var(--acc-text); font-weight:700; }
.v-link:hover { text-decoration: underline; }
.v-link:disabled { color: var(--faint); pointer-events:none; }
.v-steps2 { display:flex; gap:6px; justify-content:center; margin-bottom:6px; }
.v-stepdot { height:4px; width:26px; border-radius:2px; background:var(--hair-2); }
.v-stepdot.on { background: var(--acc); }

.v-auth { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 18px; }
.v-authcard { width:100%; max-width:400px; background:var(--surface); border:1px solid var(--hair); border-radius:var(--r-lg); padding:24px; box-shadow:var(--shadow); }
.v-authtop { position:absolute; top:max(14px,env(safe-area-inset-top)); right:16px; }
.v-authbrand { display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:24px; text-align:center; }
.v-authbrand .v-logo { width:56px; height:56px; border-radius:17px; font-size:30px; }
.v-authbrand h2 { font-size:24px; }
.v-authbrand p { color:var(--muted); font-size:14px; margin:5px 0 0; line-height:1.5; }

/* ============================================================
   Integration additions (boot loader, real Turnstile, helpers)
   ============================================================ */
[hidden] { display: none !important; }

/* initial boot loader shown while we decide auth vs cabinet */
.v-boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.v-boot .v-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--hair-2); border-top-color: var(--acc); animation: spin 0.9s linear infinite; }
.v-boot span { font-size: 13.5px; font-weight: 600; }

/* real Cloudflare Turnstile widget container (replaces the prototype's fake .v-ts) */
.v-ts-real { min-height: 66px; display: flex; align-items: center; }
.v-ts-real:empty { display: none; }

/* error text inside auth card / modals */
.v-err { color: var(--bad); font-size: 13px; font-weight: 600; margin: 2px 2px 0; }
.v-light .v-err { color: #d61f37; }

/* OTP cell error state */
.v-otp.err input { border-color: color-mix(in oklab, var(--bad) 60%, transparent); }

/* disabled primary button (e.g. submit while sending) */
.v-btn:disabled, .v-pcta:disabled, .v-btn.is-busy { opacity: .6; pointer-events: none; }

/* clamp long values gracefully in info rows */
.v-row .v { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

