/* SNSPING cabinet skin v2 (2026-11, owner's refs: Vice City night, glass cards with gradient neon edges, pill buttons).
   Visual layer only: loaded AFTER neon.css + neo.css, active only with html.v2 (set by v2.js) and the dark theme.
   No backdrop-filter / mask-image (old phones), animations use transform / opacity / background-position only.
   Rollback = stop injecting it (nginx map, cookie v2). */

html.v2.dark {
  --v-mag:#ff2fd2; --v-vio:#8b3dff; --v-cyan:#3fd0ff; --v-teal:#2df6c9;
  --v-edge:linear-gradient(135deg,rgba(255,47,210,.95),rgba(139,61,255,.55) 48%,rgba(63,208,255,.9));
  --v-edge-soft:linear-gradient(120deg,rgba(255,47,210,.5),rgba(139,61,255,.25) 50%,rgba(63,208,255,.45));
  --v-card:linear-gradient(180deg,rgba(38,14,88,.82) 0%,rgba(18,7,48,.88) 55%,rgba(11,4,32,.92) 100%);
  --v-row:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
  --v-base:linear-gradient(180deg,#170a3c,#0e0529);   /* opaque under-layer: the edge gradient must not show through */
  --v-btn:linear-gradient(90deg,#ff2fd2 0%,#c13cff 45%,#7a4dff 75%,#4f7bff 100%);
  --bg:#07021a; --x-scene-op:1;
  --n-sky:linear-gradient(180deg,#05010f 0%,#0c0428 40%,#1a0848 75%,#2b0b5e 100%);
}

/* ---------- background: the city at night, fixed; a slow light drifting over the sky ---------- */
html.v2.dark body::after {
  background:url(/_neon/v2/city_pc.webp?v=1) center bottom / cover no-repeat #07021a !important;
  height:100vh !important; min-height:0 !important; opacity:1 !important;
}
@media (max-aspect-ratio:3/4) { html.v2.dark body::after { background-image:url(/_neon/v2/city_phone.webp?v=1) !important; } }
/* living layer over the picture (built by v2.js in the picture's own coordinates) */
.v2-fx { position:fixed; z-index:-2; pointer-events:none; background:url(/_neon/v2/city_pc.webp?v=1) 0 0 / 100% 100% no-repeat; }
.v2-fx[data-pic="ph"] { background-image:url(/_neon/v2/city_phone.webp?v=1); }
html.v2-fxon.dark body::after { opacity:0 !important; }
html:not(.dark) .v2-fx { display:none; }
.v2-blink { position:absolute; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:#ff4a7a;
  box-shadow:0 0 6px 2px rgba(255,60,110,.9),0 0 18px 6px rgba(255,60,110,.35); opacity:.25; animation:v2-blink 2.6s ease-in-out infinite; }
@keyframes v2-blink { 0%,100% { opacity:.2; transform:scale(.8); } 45% { opacity:1; transform:scale(1.15); } 60% { opacity:.35; } }
.v2-water { position:absolute; left:0; right:0; bottom:0; overflow:hidden; mix-blend-mode:screen; }
.v2-water::before { content:""; position:absolute; inset:-12px 0 0; opacity:.55;
  background:repeating-linear-gradient(180deg,transparent 0 9px,rgba(255,140,220,.07) 9px 10px,transparent 10px 17px,rgba(110,210,255,.05) 17px 18px);
  animation:v2-ripple 4.5s linear infinite; }
.v2-water::after { content:""; position:absolute; top:0; bottom:0; left:42%; width:16%;
  background:radial-gradient(50% 100% at 50% 0%,rgba(255,200,170,.22),transparent 70%); animation:v2-glint 3.2s ease-in-out infinite alternate; }
@keyframes v2-ripple { from { transform:translateY(0); } to { transform:translateY(18px); } }
@keyframes v2-glint { from { opacity:.35; transform:scaleX(.9); } to { opacity:.9; transform:scaleX(1.12); } }
html.v2.dark body::before {
  content:""; position:fixed; inset:-20vh -20vw auto; height:80vh; z-index:-1; pointer-events:none;
  background:radial-gradient(40% 50% at 30% 40%,rgba(255,47,210,.18),transparent 70%),radial-gradient(35% 45% at 75% 30%,rgba(63,208,255,.12),transparent 70%);
  animation:v2-drift 26s ease-in-out infinite alternate;
}
@keyframes v2-drift { from { transform:translate3d(-4vw,0,0); } to { transform:translate3d(4vw,2vh,0); } }
/* the content sits on a dark veil so text stays readable over the city */
html.v2.dark #main-content { position:relative; }
html.v2.dark #main-content::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg,rgba(7,2,26,.55) 0%,rgba(7,2,26,.25) 45%,rgba(7,2,26,0) 70%);
}

/* ---------- glass cards with a gradient neon edge ---------- */
html.v2.dark .cabinet-mobile-section,
html.v2.dark .cab-pay-card,
html.v2.dark #pwa-banner,
html.v2.dark .card {
  background:var(--v-card) padding-box,var(--v-base) padding-box,var(--v-edge) border-box !important;
  border:1.5px solid transparent !important; border-radius:24px !important;
  box-shadow:0 0 28px rgba(255,47,210,.16),0 18px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08) !important;
}
html.v2.dark .cabinet-mobile-section > div,
html.v2.dark .cab-pay-card > div { border-color:rgba(160,120,255,.16) !important; }
html.v2.dark #pwa-banner { border-radius:20px !important; }

/* the subscription pass: the hero card (like «Premium подписка» on the refs) */
html.v2.dark .cab-pass {
  background:
    radial-gradient(120% 90% at 100% 0%,rgba(255,47,210,.32),transparent 55%),
    radial-gradient(90% 80% at 0% 100%,rgba(63,208,255,.18),transparent 60%),
    linear-gradient(160deg,#2a0b63 0%,#160636 60%,#0d0428 100%) padding-box,
    var(--v-edge) border-box !important;
  border:1.5px solid transparent !important; border-radius:22px !important;
  box-shadow:0 0 34px rgba(255,47,210,.28),0 0 70px rgba(139,61,255,.18),inset 0 1px 0 rgba(255,255,255,.14) !important;
}
html.v2.dark .cab-pass-glow { opacity:.9 !important; }
html.v2.dark .cab-pass .traffic-bar-green,
html.v2.dark .cab-pass-traffic [class*="bar"] > div {
  background:linear-gradient(90deg,var(--v-cyan),var(--v-vio) 50%,var(--v-mag)) !important;
  background-size:200% 100% !important; animation:v2-flow 6s linear infinite;
  box-shadow:0 0 12px rgba(63,208,255,.6),0 0 18px rgba(255,47,210,.45) !important;
}
@keyframes v2-flow { from { background-position:0 0; } to { background-position:200% 0; } }

/* ---------- header + tabs: glass pills ---------- */
html.v2.dark .app-header-pill,
html.v2.dark .cabinet-tabs-shell {
  background:linear-gradient(180deg,rgba(30,10,70,.92),rgba(12,4,34,.95)) padding-box,linear-gradient(#12062e,#12062e) padding-box,var(--v-edge-soft) border-box !important;
  border:1.5px solid transparent !important;
  box-shadow:0 0 22px rgba(255,47,210,.22),inset 0 1px 0 rgba(255,255,255,.1) !important;
}
html.v2.dark #app-nav nav > a[href="/"] { font-family:'Russo One',sans-serif; letter-spacing:.5px; }
html.v2.dark .cabinet-mobile-tab { border-radius:16px !important; transition:background .35s,box-shadow .35s,color .35s,transform .15s !important; }
html.v2.dark .cabinet-mobile-tab.active,
html.v2.dark #cab-tab-connect.active {
  background:var(--v-btn) !important; color:#fff !important;
  box-shadow:0 0 20px rgba(255,47,210,.55),0 4px 14px rgba(122,77,255,.45),inset 0 1px 0 rgba(255,255,255,.3) !important;
}
html.v2.dark .cabinet-mobile-tab:active { transform:scale(.96); }

/* ---------- section labels / titles ---------- */
html.v2.dark .uppercase { color:#62d6ff !important; letter-spacing:.12em; text-shadow:0 0 10px rgba(63,208,255,.45); }
html.v2.dark h2 { -webkit-text-fill-color:#fff; background:none; }

/* ---------- pill buttons with a slow light sweep ---------- */
html.v2.dark .btn-primary,
html.v2.dark .refx-btns button:first-child,
html.v2.dark #pwa-banner button.bg-black {
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.28) 45%,transparent 60%) 0 0 / 250% 100% no-repeat,var(--v-btn) !important;
  border:0 !important; border-radius:999px !important; color:#fff !important; font-weight:700 !important;
  box-shadow:0 0 22px rgba(255,47,210,.5),0 6px 18px rgba(79,123,255,.35),inset 0 1px 0 rgba(255,255,255,.35) !important;
  animation:v2-sweep 5.5s ease-in-out infinite; transition:transform .15s,box-shadow .25s !important;
}
@keyframes v2-sweep { 0%,70% { background-position:150% 0,0 0; } 100% { background-position:-150% 0,0 0; } }
html.v2.dark .btn-primary:active,
html.v2.dark .refx-btns button:active,
html.v2.dark #pwa-banner button:active { transform:scale(.97); }

/* ---------- rows: devices, pay actions, tariffs, apps, downloads ---------- */
html.v2.dark .dev-card,
html.v2.dark .cab-pay-action,
html.v2.dark .tariff-pick,
html.v2.dark .app-dl-btn,
html.v2.dark .add-device-button,
html.v2.dark .app-client-card,
html.v2.dark .app-platform-card,
html.v2.dark .refx-link,
html.v2.dark .dev-more-btn {
  background:var(--v-row) padding-box,var(--v-base) padding-box,var(--v-edge-soft) border-box !important;
  border:1px solid transparent !important; border-radius:18px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
  transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background .25s !important;
}
html.v2.dark .app-client-card.active,
html.v2.dark .app-platform-card.active,
html.v2.dark .tariff-pick.is-selected {
  background:linear-gradient(180deg,rgba(255,47,210,.18),rgba(139,61,255,.1)) padding-box,var(--v-base) padding-box,var(--v-edge) border-box !important;
  box-shadow:0 0 20px rgba(255,47,210,.45),inset 0 0 18px rgba(255,47,210,.18) !important;
}
html.v2.dark .add-device-button { background:linear-gradient(180deg,rgba(255,47,210,.14),rgba(139,61,255,.06)) padding-box,var(--v-base) padding-box,var(--v-edge) border-box !important; }
html.v2.dark .dev-card:active,
html.v2.dark .cab-pay-action:active,
html.v2.dark .tariff-pick:active,
html.v2.dark .app-dl-btn:active,
html.v2.dark .app-client-card:active,
html.v2.dark .app-platform-card:active { transform:scale(.98); }
@media (hover:hover) {
  html.v2.dark .dev-card:hover,
  html.v2.dark .cab-pay-action:hover,
  html.v2.dark .tariff-pick:hover,
  html.v2.dark .app-dl-btn:hover,
  html.v2.dark .app-client-card:hover,
  html.v2.dark .app-platform-card:hover {
    transform:translateY(-2px);
    box-shadow:0 0 18px rgba(255,47,210,.3),0 10px 22px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.1) !important;
  }
  html.v2.dark .btn-primary:hover { box-shadow:0 0 30px rgba(255,47,210,.7),0 8px 22px rgba(79,123,255,.45),inset 0 1px 0 rgba(255,255,255,.4) !important; }
}

/* icon tiles: rounded squares with a coloured glow (like the refs' menu icons) */
html.v2.dark .dev-icon-wrap,
html.v2.dark .app-client-icon-wrap,
html.v2.dark .app-platform-icon-wrap,
html.v2.dark .app-dl-icon-wrap,
html.v2.dark .cab-pay-action-ico {
  background:linear-gradient(145deg,rgba(255,47,210,.32),rgba(139,61,255,.22) 55%,rgba(63,208,255,.26)) !important;
  border:1px solid rgba(255,255,255,.14) !important; border-radius:14px !important;
  box-shadow:0 0 14px rgba(255,47,210,.3),inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* inputs */
html.v2.dark input[type="text"], html.v2.dark input[type="email"], html.v2.dark input[type="tel"] {
  background:rgba(10,4,30,.75) !important; border:1px solid rgba(160,120,255,.4) !important; border-radius:16px !important;
}
html.v2.dark input:focus { border-color:var(--v-mag) !important; box-shadow:0 0 0 3px rgba(255,47,210,.2),0 0 16px rgba(255,47,210,.35) !important; }

/* step numbers */
html.v2.dark .pay-step-num,
html.v2.dark .cab-connect-steps span.w-6.h-6 {
  background:var(--v-btn) !important; color:#fff !important; border:0 !important; box-shadow:0 0 12px rgba(255,47,210,.5) !important;
}

/* ---------- appear motion (set up by v2.js only when it can animate) ---------- */
@media (prefers-reduced-motion:reduce) {
  html.v2.dark body::before, html.v2.dark .btn-primary, html.v2.dark .cab-pass [class*="bar"] > div, .v2-blink, .v2-water::before, .v2-water::after { animation:none !important; }
}

/* landing hero over the city: keep the text readable */
html.v2.dark #main-content > section:first-of-type { position:relative; isolation:isolate; }
html.v2.dark #main-content > section:first-of-type::before {
  content:""; position:absolute; inset:-40px -10vw; z-index:-1; pointer-events:none;
  background:radial-gradient(60% 70% at 25% 50%,rgba(7,2,26,.78),rgba(7,2,26,.35) 60%,transparent 80%);
}
html.v2.dark #main-content > section:first-of-type p { color:rgba(235,225,255,.9) !important; text-shadow:0 2px 10px rgba(0,0,0,.85); }
html.v2.dark #main-content > section:first-of-type h1 { filter:drop-shadow(0 4px 14px rgba(0,0,0,.7)); }
