@font-face {
  font-family: 'SpaceGrotesk';
  src: url('./assets/fonts/SpaceGrotesk.ttf') format('truetype'), url('/assets/assets/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter.ttf') format('truetype'), url('/assets/assets/fonts/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrainsMono';
  src: url('./assets/fonts/JetBrainsMono.ttf') format('truetype'), url('/assets/assets/fonts/JetBrainsMono.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ───────────────────────────────────────────────────────────────────────────
 * Crystal Connect Design System (PrettyPH/Crystall-connect-desktop)
 * Quiet Monochrome-Sapphire Obsidian Glass · Restraint over Ornament
 * ─────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #080B18;
  --bg-deep: #050813;
  --glass-sheet: rgba(12, 17, 36, 0.78);
  --glass-modal: rgba(11, 17, 36, 0.92);
  --glass-card: rgba(12, 17, 36, 0.74);
  --glass-well: rgba(6, 9, 20, 0.78);
  --glass-row: rgba(255, 255, 255, 0.032);
  --glass-row-sel: linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.075);
  --glass-border-strong: rgba(255, 255, 255, 0.22);

  /* Semantic accents — used strictly for status indicators, badges & switches */
  --emerald: #34E0A1;
  --emerald-soft: #9EEAD0;
  --emerald-bg: rgba(16, 195, 136, 0.14);
  --emerald-border: rgba(52, 224, 161, 0.34);

  --sky: #7CC4FA;
  --sky-bright: #BAE6FD;
  --sky-bg: rgba(56, 189, 248, 0.13);
  --sky-border: rgba(124, 196, 250, 0.36);

  --vip: #FDE047;
  --vip-bg: rgba(234, 179, 8, 0.12);
  --vip-border: rgba(234, 179, 8, 0.34);

  --gaming: #B98BFF;
  --gaming-bg: rgba(169, 112, 255, 0.14);
  --gaming-border: rgba(169, 112, 255, 0.36);

  --amber: #FBBF24;
  --amber-soft: #FEF3C7;
  --amber-bg: rgba(251, 191, 36, 0.11);
  --amber-border: rgba(251, 191, 36, 0.30);

  --rose: #FB7185;
  --rose-soft: #FDA4AF;
  --rose-bg: rgba(251, 113, 133, 0.13);
  --rose-border: rgba(253, 164, 175, 0.34);

  --text: #F5F8FF;
  --text-soft: #C8D6F0;
  --muted: #8492B0;
  --muted-dim: #667596;
  --hairline: rgba(255, 255, 255, 0.07);

  --grad-tg: linear-gradient(180deg, #32A7EC 0%, #2085CA 100%);

  --font-display: 'Inter', 'SpaceGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrainsMono', ui-monospace, 'Cascadia Mono', monospace;
  --safe-top: var(--cv-safe-top, calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-bottom: var(--cv-safe-bottom, calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px)));
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.44;
  min-height: 100%; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }

.cv-ico { display: block; flex-shrink: 0; }
.cv-app-icon {
  display: block; flex-shrink: 0; border-radius: 26%; object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Framed Flag — exact 1px inner rim from app.slint */
.cv-flag-frame {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5.5px; overflow: hidden; background: #141E34; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
}
.cv-flag-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.19);
}
.cv-flag-frame.is-auto::after { border-color: rgba(52, 224, 161, 0.34); }
.cv-flag-frame img, .cv-flag-svg {
  display: block; width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}

/* ── Procedural Obsidian-Crystal Stage Backdrop ── */
.cv-stage-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: #080B18 url('./assets/img/crystal_bg.jpg') center / cover no-repeat;
  contain: strict; transform: translateZ(0);
}
.cv-stage-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .45s ease; transform: translateZ(0);
}
.cv-stage-canvas.is-ready { opacity: 1; }
.cv-no-webgl .cv-stage-canvas { display: none; }
.cv-stage-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 24, 0.44) 0%, rgba(7, 10, 24, 0.68) 100%);
}
.cv-stage-state-wash { position: absolute; inset: 0; background: transparent; }

.cv-shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── Main Stage Container ── */
.cv-main {
  flex: 1; width: 100%; max-width: 520px; margin: 0 auto;
  padding: calc(14px + var(--safe-top)) 14px calc(94px + var(--safe-bottom));
}
.cv-main.is-chat-tab {
  display: flex; flex-direction: column;
  padding-top: calc(10px + var(--safe-top));
  padding-bottom: calc(84px + var(--safe-bottom));
}

/* Boot Screen — Obsidian Crystal Prism Loader */
.cv-boot { min-height: 66dvh; display: flex; align-items: center; justify-content: center; }
.cv-boot-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cv-boot-halo {
  position: absolute; top: -18px; width: 132px; height: 132px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.24) 0%, rgba(52, 224, 161, 0.10) 42%, rgba(8, 11, 24, 0) 72%);
  animation: cvHaloPulse 2.4s ease-in-out infinite;
}
.cv-boot-prism {
  position: relative; width: 92px; height: 92px; border-radius: 26px;
  background: linear-gradient(155deg, rgba(22, 32, 64, 0.90), rgba(8, 12, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.cv-boot-prism img {
  position: relative; z-index: 2;
  filter: drop-shadow(0 4px 14px rgba(124, 196, 250, 0.36));
  animation: cvFloat 2.2s ease-in-out infinite;
}
.cv-boot-orbit {
  position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: #DCE8FF; border-right-color: rgba(124, 196, 250, 0.45);
  animation: cvSpin 1.25s cubic-bezier(.55, .15, .45, .85) infinite;
}
.cv-boot-orbit.is-inner {
  inset: 15px; border-width: 1.25px;
  border-top-color: transparent; border-right-color: transparent;
  border-bottom-color: rgba(52, 224, 161, 0.65); border-left-color: rgba(52, 224, 161, 0.25);
  animation: cvSpinRev 1.9s linear infinite;
}
.cv-boot-bar {
  width: 112px; height: 3px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.06);
}
.cv-boot-bar-fill {
  display: block; width: 46%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 196, 250, 0.2), #E6EEFF, rgba(52, 224, 161, 0.85));
  animation: cvShimmerBar 1.35s ease-in-out infinite;
}
.cv-boot-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase;
  color: #8494B6;
}
.cv-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12); border-top-color: #DCE7FD;
  animation: cvSpin .8s linear infinite;
}
.cv-skel-card {
  position: relative; overflow: hidden; height: 68px; border-radius: 14px;
  background: rgba(14, 20, 42, 0.72); border: 1px solid rgba(255, 255, 255, 0.09);
}
.cv-skel-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: cvSkelSweep 1.25s ease-in-out infinite;
}
.cv-empty-mascot {
  display: block; width: 116px; height: 116px;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}
@keyframes cvSpin { to { transform: rotate(360deg); } }
@keyframes cvSpinRev { to { transform: rotate(-360deg); } }
@keyframes cvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes cvHaloPulse { 0%, 100% { transform: scale(0.94); opacity: 0.72; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes cvShimmerBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
@keyframes cvSkelSweep { to { transform: translateX(100%); } }
@keyframes cvFadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cvSheetUp { from { transform: translate3d(0, 100%, 0); } to { transform: translate3d(0, 0, 0); } }
.cv-fade { animation: cvFadeUp .16s ease-out both; }

/* Compact Routing Pill Bar (1-click Split-Tunneling access from top of Tab 1) */
.cv-routing-bar {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--glass-sheet);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  backdrop-filter: blur(22px) saturate(1.24);
  border: 1px solid var(--glass-border);
  color: #C8D6F0; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .14s ease, border-color .14s ease;
}
.cv-routing-bar:active { transform: scale(0.988); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.cv-routing-bar-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cv-routing-bar-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--emerald); }
.cv-dot.is-sky { background: var(--sky); }
.cv-dot.is-rose { background: var(--rose); }

/* ── Physical Frosted-Glass Panels & Subscriptions Sheet ── */
.cv-stack { display: flex; flex-direction: column; gap: 10px; }

.cv-frosted, .cv-card {
  position: relative; contain: layout style;
  background: rgba(12, 17, 36, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 15px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}
.cv-card-hero {
  background: rgba(12, 18, 38, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
}
.cv-card-hero::before, .cv-sub-sheet::before {
  content: ''; position: absolute; top: 0; left: 20%; width: 60%; height: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Subscriptions Frosted Sheet Card (exact app.slint FrostedGlass sheet) */
.cv-sub-sheet {
  position: relative; contain: layout style;
  background: rgba(12, 17, 36, 0.82);
  -webkit-backdrop-filter: blur(15px) saturate(1.18);
  backdrop-filter: blur(15px) saturate(1.18);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

/* Horizontal Monochrome Filter Pill Strip (GroupFilterPill) */
.cv-filter-strip {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px 10px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cv-filter-strip::-webkit-scrollbar { display: none; }
.cv-filter-pill {
  height: 28px; padding: 0 11px; border-radius: 8.5px; flex-shrink: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px; color: #94A2C2;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.cv-filter-pill.is-active {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.26);
  color: #FFFFFF; font-weight: 700;
}

.cv-sub-sheet-body {
  padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 9px;
}

/* Section Eyebrow (exact 10.5px tracked uppercase from app.slint) */
.cv-group-eyebrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 0; font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase; color: #7886A4;
}

/* ── Desktop GroupBadge (ONLY VIP is champagne; others quiet slate-ice) ── */
.cv-group-badge {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6.5px;
  border-radius: 5.5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.075); border: 1px solid rgba(255, 255, 255, 0.14); color: #D4DEF4;
  white-space: nowrap;
}
.cv-group-badge.is-vip {
  background: var(--vip-bg); border-color: var(--vip-border); color: var(--vip);
}
.cv-group-badge.is-gaming {
  background: var(--gaming-bg); border-color: var(--gaming-border); color: var(--gaming);
}
.cv-group-badge.is-auto {
  background: rgba(16, 195, 136, 0.16); border-color: rgba(52, 224, 161, 0.40); color: #34E0A1;
}
.cv-group-badge.is-expired {
  background: var(--rose-bg); border-color: var(--rose-border); color: var(--rose-soft);
}

/* ── Desktop SignalBars (4 ascending bars) ── */
.cv-sig-bars {
  display: inline-flex; align-items: flex-end; gap: 1.5px; height: 12px; width: 15px; flex-shrink: 0;
}
.cv-sig-bars i { display: block; width: 2.5px; border-radius: 1px; background: var(--emerald); }
.cv-sig-bars i:nth-child(1) { height: 4px; }
.cv-sig-bars i:nth-child(2) { height: 6px; }
.cv-sig-bars i:nth-child(3) { height: 9px; }
.cv-sig-bars i:nth-child(4) { height: 12px; }
.cv-sig-bars.is-warn i { background: var(--amber); }
.cv-sig-bars.is-warn i:nth-child(4) { background: rgba(255, 255, 255, 0.15); }
.cv-sig-bars.is-off i { background: rgba(255, 255, 255, 0.15); }
.cv-sig-bars.is-off i:nth-child(1) { background: var(--rose); }

/* ── Subscription Row Card (exact desktop card-box / mcard-box) ── */
.cv-sub-card {
  border-radius: 14px; padding: 12px;
  background: var(--glass-row);
  border: 1px solid var(--glass-border-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.cv-sub-card.is-expired { border-color: rgba(251, 113, 133, 0.22); }
.cv-sub-card-top {
  display: flex; align-items: flex-start; gap: 11px; min-width: 0;
}
.cv-sub-card-top > .cv-flag-frame,
.cv-sub-card-top > .cv-squircle {
  margin-top: 2px; flex-shrink: 0;
}
.cv-sub-card-left {
  display: flex; align-items: flex-start; gap: 11px; min-width: 0; flex: 1;
}
.cv-sub-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cv-sub-title-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
}
.cv-sub-title-main {
  display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
}
.cv-sub-name {
  font-size: 14.5px; font-weight: 700; color: #F6F9FF; line-height: 1.22;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.cv-sub-meta-line {
  display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #7886A4;
  min-width: 0; max-width: 100%;
}
.cv-sub-meta-line > span:not(.cv-dot) {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-id-copy {
  display: inline-flex; align-items: center; gap: 3.5px; padding: 0 3px 0 0;
  border-radius: 4px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: #9AA8C7; flex-shrink: 0;
}
.cv-id-copy:active { color: #FFFFFF; }
.cv-sub-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.cv-sub-days {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; color: var(--emerald); white-space: nowrap;
}
.cv-sub-days.is-warn { color: var(--amber); }
.cv-sub-days.is-off { color: var(--rose-soft); }

.cv-hairline { height: 1px; background: rgba(255, 255, 255, 0.065); }

/* ── Unified Location Selector Capsule + Fanned Mini-Flag Deck ── */
.cv-loc-capsule {
  width: 100%; min-height: 34px; padding: 5px 10px 5px 11px; border-radius: 9.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #DCE7FD; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .14s ease, border-color .14s ease;
}
.cv-loc-capsule:active { transform: scale(0.988); background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.24); }
.cv-loc-capsule.is-auto {
  background: linear-gradient(90deg, rgba(16, 195, 136, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(52, 224, 161, 0.24);
}
.cv-loc-capsule-left {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  white-space: nowrap; overflow: hidden;
}
.cv-loc-capsule-left span { overflow: hidden; text-overflow: ellipsis; }
.cv-loc-capsule-left svg { color: #C8D6F0; flex-shrink: 0; }
.cv-loc-capsule.is-auto .cv-loc-capsule-left svg { color: var(--emerald); }
.cv-loc-capsule.is-tariff {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(167, 139, 250, 0.22);
}
.cv-loc-capsule.is-tariff .cv-loc-capsule-left svg { color: #C4B5FD; }
.cv-loc-capsule.is-traffic-warn {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.14) 0%, rgba(251, 191, 36, 0.06) 100%);
  border-color: rgba(251, 113, 133, 0.34);
}
.cv-loc-capsule.is-traffic-warn .cv-loc-capsule-left svg { color: #FDA4AF; }
.cv-loc-capsule-right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Fanned Mini-Flag Deck */
.cv-flag-fan { display: inline-flex; align-items: center; height: 16px; }
.cv-flag-fan-item {
  width: 22px; height: 16px; border-radius: 4px; background: #0B1022; padding: 1px;
  margin-left: -7px; flex-shrink: 0; position: relative;
}
.cv-flag-fan-item:first-child { margin-left: 0; }
.cv-flag-fan-item img {
  width: 100%; height: 100%; border-radius: 3px; object-fit: cover; display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.cv-more-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  height: 17px; padding: 0 5px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 10px; font-weight: 700; color: #C7D6F4;
}
.cv-loc-quota-pill {
  padding: 1.5px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #C7D6F4; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
}
.cv-loc-quota-pill.is-empty { color: var(--muted-dim); opacity: 0.78; }

/* Card Action Bar — quiet equal GlassBtns (no loud neon banner) */
.cv-sub-actions-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cv-sub-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

/* ── Typography & Buttons (Quiet Obsidian Glass + Crisp High-Contrast Primary) ── */
.cv-title {
  margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.22; color: var(--text);
}
.cv-sub { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.46; }

.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 14px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; line-height: 1.2; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; user-select: none; white-space: nowrap;
  transition: transform .12s ease, opacity .14s ease, background .14s ease, border-color .14s ease;
}
.cv-btn:active { transform: scale(0.976); }
.cv-btn:disabled { opacity: 0.40; pointer-events: none; }

/* Primary CTA — crisp monochrome light-ice on dark obsidian (zero neon slop) */
.cv-btn-primary {
  background: #EDF2FF; color: #080B18; font-weight: 700;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36);
}
.cv-btn-primary:active { background: #DCE6FA; }

.cv-btn-tg {
  background: var(--grad-tg); color: #FFFFFF; font-weight: 600;
  border-color: rgba(138, 216, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
}
/* Desktop GlassBtn */
.cv-btn-secondary {
  background: rgba(255, 255, 255, 0.068);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F3F6FF;
}
.cv-btn-secondary:active { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.24); }
.cv-btn-secondary.is-urgent {
  background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber-soft);
}
.cv-btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.085);
  color: #C8D6F0;
}
.cv-btn-danger {
  background: var(--rose-bg); border-color: var(--rose-border); color: #FECDD3;
}
.cv-btn-sm { min-height: 35px; padding: 6px 10px; border-radius: 9.5px; font-size: 12.5px; }
.cv-btn-block { width: 100%; }

/* Monochrome Squircle Icon Container (no rainbow glows) */
.cv-squircle {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.11);
  color: #D4DEF4; display: inline-flex; align-items: center; justify-content: center;
}

/* ── Option Rows (Unified Monochrome Obsidian Glass) ── */
.cv-opt-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 13px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(12, 17, 36, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.16);
  backdrop-filter: blur(14px) saturate(1.16);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: transform .12s ease, border-color .14s ease, background .14s ease;
}
.cv-opt-btn:active { transform: scale(0.985); border-color: rgba(255, 255, 255, 0.24); }
.cv-opt-btn.is-selected {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0%, rgba(12, 17, 36, 0.84) 100%);
  border-color: rgba(255, 255, 255, 0.28);
}
.cv-sheet-body .cv-opt-btn, .cv-sub-sheet-body .cv-opt-btn {
  background: rgba(255, 255, 255, 0.036); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.085);
}
.cv-sheet-body .cv-opt-btn.is-selected, .cv-sub-sheet-body .cv-opt-btn.is-selected {
  background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.26);
}

.cv-opt-main { min-width: 0; flex: 1; }
.cv-opt-title {
  font-size: 14.5px; font-weight: 700; color: #F6F9FF;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; line-height: 1.24;
}
.cv-opt-desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.36; }
.cv-opt-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cv-opt-price { font-size: 13.5px; font-weight: 700; color: #F5F8FF; white-space: nowrap; }
.cv-opt-chevron {
  width: 26px; height: 26px; border-radius: 7.5px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9AA8C7; display: inline-flex; align-items: center; justify-content: center;
}

/* Radio Check Circle */
.cv-radio {
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.is-selected .cv-radio {
  border-color: #EDF2FF; background: #EDF2FF; color: #080B18;
}

/* Compact Marketplace Link Row */
.cv-mp-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 11px;
  padding: 11px 13px; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--glass-sheet);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  transition: transform .12s ease, border-color .14s ease;
}
.cv-mp-row:active { transform: scale(0.988); border-color: rgba(255, 255, 255, 0.24); }
.cv-mp-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 27px; padding: 0 9px; border-radius: 7.5px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13);
  color: #DCE6FA; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* Inline Rules Count Pill */
.cv-inline-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 16px; padding: 0 4.5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #EEF4FF; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}

/* ── Minimal Wizard Header & Clean Period Grid ── */
.cv-wiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 8px; }
.cv-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; font-weight: 600; color: #DCE6FA; cursor: pointer; white-space: nowrap;
}
.cv-back-btn:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.12); }
.cv-step-count {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: #7886A4; letter-spacing: 1px; text-transform: uppercase;
}
.cv-wiz-head { display: flex; flex-direction: column; gap: 3px; padding: 2px 1px; }
.cv-step-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 2px; }
.cv-step-seg { height: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.11); }
.cv-step-seg.is-on { background: #E4ECFF; }

.cv-period-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.cv-period-btn {
  position: relative; padding: 12px 4px 10px; border-radius: 12px; cursor: pointer; text-align: center;
  background: var(--glass-card); border: 1px solid var(--glass-border);
  transition: transform .12s ease, border-color .14s ease, background .14s ease;
}
.cv-sheet-body .cv-period-btn { background: rgba(255, 255, 255, 0.04); }
.cv-period-btn:active { transform: scale(0.97); }
.cv-period-btn.is-selected {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}
.cv-period-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 1px 6px; border-radius: 5px; background: #EDF2FF; color: #080B18;
  font-family: var(--font-mono); font-size: 9px; font-weight: 800; white-space: nowrap;
}
.cv-period-mo { font-size: 13px; font-weight: 700; color: var(--text); }
.cv-period-pr { font-size: 13px; font-weight: 700; color: #F5F8FF; margin-top: 3px; }
.cv-period-sub { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.cv-period-off { font-family: var(--font-mono); font-size: 10px; color: var(--emerald); margin-top: 2px; font-weight: 600; }

/* ── Desktop Recessed Segmented Bar & Physical Mercury-Droplet GlassToggle ── */
.cv-seg-row {
  display: flex; gap: 3px; background: var(--glass-well);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 3px;
}
.cv-seg-btn {
  flex: 1 1 auto; min-height: 30px; border: 1px solid transparent; border-radius: 7.5px;
  background: transparent; color: #8A99B8; font-size: 11.5px; font-weight: 600;
  cursor: pointer; padding: 4px 7px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cv-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF; font-weight: 700;
}
.cv-seg-btn.is-active.is-emerald-tab {
  background: rgba(16, 195, 136, 0.18); border-color: rgba(52, 224, 161, 0.42); color: #ECFFF7;
}
.cv-seg-btn.is-active.is-sky-tab {
  background: rgba(56, 189, 248, 0.16); border-color: rgba(124, 196, 250, 0.42); color: #EFF8FF;
}
.cv-seg-btn.is-active.is-danger-tab {
  background: var(--rose-bg); border-color: var(--rose-border); color: #FFE4E6;
}

/* Physical Optical GlassToggle (exact app.slint) */
.cv-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-switch {
  position: relative; width: 46px; height: 26px; border-radius: 13px;
  background: rgba(7, 11, 24, 0.74); border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer; flex-shrink: 0; padding: 0;
  transition: background 180ms ease-out, border-color 180ms ease-out;
}
.cv-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 10px; background: #A2B0CE;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 210ms cubic-bezier(0.22, 1.22, 0.36, 1.0), background 160ms ease, width 120ms ease;
}
.cv-switch:active::after { width: 24px; }
.cv-switch.is-on { background: rgba(16, 195, 136, 0.24); border-color: rgba(52, 224, 161, 0.52); }
.cv-switch.is-on::after { transform: translateX(20px); background: #FFFFFF; box-shadow: 0 0 7px rgba(52, 224, 161, 0.40); }
.cv-switch.is-on:active::after { transform: translateX(16px); }

/* PresetPackChips & Rule Rows */
.cv-chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.10);
  color: #D0DCF4; font-size: 11px; font-weight: 600; cursor: pointer;
}
.cv-chip-btn:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.12); }
.cv-chip-btn.is-emerald { background: rgba(16, 195, 136, 0.12); border-color: rgba(52, 224, 161, 0.30); color: #D1FAE5; }
.cv-chip-btn.is-danger { background: var(--rose-bg); border-color: var(--rose-border); color: var(--rose-soft); }

.cv-rule-list { display: flex; flex-direction: column; gap: 5px; }
.cv-rule-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 33px; padding: 4px 7px 4px 11px; border-radius: 8.5px;
  background: rgba(6, 10, 22, 0.65); border: 1px solid rgba(255, 255, 255, 0.11);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #F2F7FF;
}
.cv-rule-row.is-tunnel { border-color: rgba(52, 224, 161, 0.22); }
.cv-rule-row.is-block { border-color: rgba(251, 113, 133, 0.24); color: #FFE4E6; }
.cv-rule-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-chip-del {
  width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent;
  color: #8A9AB8; font-size: 15px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cv-chip-del:active { background: var(--rose-bg); color: var(--rose-soft); }

/* Settings Section Card */
.cv-sec-block {
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px; padding: 13px;
  display: flex; flex-direction: column; gap: 10px;
}
.cv-sec-eyebrow {
  font-size: 10.5px; font-weight: 700; color: #7886A4;
  text-transform: uppercase; letter-spacing: 1.2px;
}

/* Location Quota Card & RU-Proxy Notice */
.cv-loc-quota-card {
  padding: 12px 13px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-direction: column; gap: 8px;
}
.cv-loc-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cv-loc-slot { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); }
.cv-loc-slot.is-avail { background: #E4ECFF; }

.cv-ru-proxy-card {
  padding: 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-direction: column; gap: 7px;
}
.cv-ru-proxy-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 2px 8px; border-radius: 5.5px;
  background: var(--emerald-bg); border: 1px solid var(--emerald-border);
  color: var(--emerald); font-size: 10.5px; font-weight: 700;
}

/* Inputs & Copy Box */
.cv-input {
  width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(6, 10, 22, 0.78);
  color: var(--text); font-size: 13.5px; outline: none;
  transition: border-color .14s ease;
}
.cv-input::placeholder { color: #617090; }
.cv-input:focus { border-color: rgba(255, 255, 255, 0.30); }
.cv-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 12px;
  background: rgba(6, 10, 22, 0.78); border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--font-mono); font-size: 11.5px;
}
.cv-code-box code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: #C8D6F0; }

/* Referral Stats Grid & Tier Progress */
.cv-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.cv-stat-cell {
  padding: 10px 8px; border-radius: 11px; text-align: center;
  background: rgba(6, 10, 22, 0.56); border: 1px solid rgba(255, 255, 255, 0.075);
}
.cv-stat-val { font-size: 16.5px; font-weight: 700; color: var(--text); }
.cv-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cv-tier-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; margin-top: 7px; }
.cv-tier-fill { height: 100%; border-radius: 999px; background: #E4ECFF; transition: width .35s ease; }

.cv-ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px;
}
.cv-ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* ── Support Chat ── */
.cv-chat-box {
  flex: 1; display: flex; flex-direction: column;
  height: calc(100dvh - 106px - var(--safe-top) - var(--safe-bottom));
  min-height: 360px;
  background: rgba(12, 17, 36, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52);
  border-radius: 20px; overflow: hidden;
}
.cv-chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 11px;
  padding: 12px 14px;
  background: rgba(6, 10, 22, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  flex-shrink: 0;
}
.cv-chat-head-main { min-width: 0; flex: 1; }
.cv-chat-head-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.cv-chat-head-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }
.cv-tg-pill-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  height: 30px; padding: 0 10px; border-radius: 8.5px;
  background: rgba(255, 255, 255, 0.065); border: 1px solid rgba(255, 255, 255, 0.13);
  color: #DCE6FA; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.cv-tg-pill-btn:active { transform: scale(0.96); }

.cv-chat-messages {
  flex: 1; overflow-y: auto; padding: 13px; display: flex; flex-direction: column; gap: 8px;
}
.cv-chat-date-sep {
  align-self: center; margin: 4px 0; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.cv-msg {
  max-width: 82%; padding: 9px 12px 7px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.44; display: flex; flex-direction: column; gap: 4px;
}
.cv-msg-me {
  align-self: flex-end;
  background: linear-gradient(155deg, #2793D8 0%, #1C74BA 100%);
  border: 1px solid rgba(138, 216, 255, 0.24);
  color: #FFFFFF; font-weight: 500;
  border-bottom-right-radius: 4px;
}
.cv-msg-support {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text); border-bottom-left-radius: 4px;
}
.cv-msg-author { font-size: 10.5px; font-weight: 700; color: #9AA8C7; }
.cv-msg-text { white-space: pre-wrap; word-break: break-word; margin: 0; }
.cv-msg-text a { color: inherit; text-decoration: underline; font-weight: 600; }
.cv-msg-time {
  align-self: flex-end; font-family: var(--font-mono); font-size: 10px; line-height: 1;
  opacity: 0.70; display: inline-flex; align-items: center; gap: 3px; margin-top: 1px;
}
.cv-msg-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-msg-imgs img { width: 176px; max-width: 100%; height: 132px; border-radius: 10px; object-fit: cover; cursor: zoom-in; display: block; }

.cv-chat-empty {
  margin: auto; text-align: center; max-width: 310px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cv-chat-quick-list { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
.cv-chat-quick-btn {
  width: 100%; padding: 9px 12px; border-radius: 10px; text-align: left;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-soft); font-size: 12.5px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cv-chat-quick-btn:active { transform: scale(0.988); border-color: rgba(255, 255, 255, 0.24); color: #FFFFFF; }

.cv-chat-staging {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 2px;
  background: rgba(6, 10, 22, 0.72); border-top: 1px solid rgba(255, 255, 255, 0.075); overflow-x: auto; flex-shrink: 0;
}
.cv-stage-thumb { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.cv-stage-thumb img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.22); display: block; }
.cv-stage-rm {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22); background: #0B1124; color: #fff; font-size: 13px;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}

.cv-chat-compose {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(6, 10, 22, 0.72); flex-shrink: 0;
}
.cv-chat-round-btn {
  width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, opacity .14s ease;
}
.cv-chat-round-btn:active { transform: scale(0.94); }
.cv-chat-round-btn:disabled { opacity: 0.40; pointer-events: none; }
.cv-chat-round-attach {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--text-soft);
}
.cv-chat-round-send { background: #EDF2FF; color: #080B18; }
.cv-chat-textarea {
  flex: 1; height: 40px; min-height: 40px; max-height: 112px;
  padding: 9px 13px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(6, 10, 22, 0.8);
  color: var(--text); font-size: 14px; line-height: 20px;
  resize: none; outline: none; overflow-y: auto; display: block;
}
.cv-chat-textarea::placeholder { color: #617090; }
.cv-chat-textarea:focus { border-color: rgba(255, 255, 255, 0.28); }

/* Lightbox */
.cv-lightbox {
  position: fixed; inset: 0; z-index: 95; background: rgba(3, 6, 18, 0.90);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cv-lightbox img { max-width: 100%; max-height: 86dvh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.82); }
.cv-lightbox-close {
  position: absolute; top: calc(14px + var(--safe-top)); right: 16px;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Floating Frosted Obsidian Bottom Dock ── */
.cv-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 0 12px calc(10px + var(--safe-bottom));
  pointer-events: none;
}
.cv-dock-inner {
  pointer-events: auto;
  max-width: 492px; margin: 0 auto; padding: 5px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  border-radius: 18px;
  background: rgba(11, 17, 36, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}
.cv-dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 7px 4px; border: 1px solid transparent; border-radius: 13px;
  background: transparent; color: #7F8EAE; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.cv-dock-btn.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
}
.cv-dock-ico-wrap { position: relative; width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cv-dock-badge {
  position: absolute; top: -3px; right: -8px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  font-style: normal; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; line-height: 1;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.24); color: #F5F8FF;
  box-shadow: 0 0 0 2px #0B1124;
  display: inline-flex; align-items: center; justify-content: center;
}
.cv-dock-badge.is-alert { background: var(--rose); border-color: var(--rose); color: #190308; }
.cv-dock-badge.is-dot {
  top: -1px; right: -3px; min-width: 6.5px; width: 6.5px; height: 6.5px; padding: 0;
  background: var(--emerald); border: 0;
}

/* ── Desktop Frosted Interactive Bottom Sheet ── */
.cv-sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(3, 6, 18, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: flex-end; justify-content: center;
  transition: opacity .18s ease;
}
.cv-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: min(91dvh, calc(100dvh - var(--safe-top) - 10px));
  background: var(--glass-modal);
  -webkit-backdrop-filter: blur(18px) saturate(1.20);
  backdrop-filter: blur(18px) saturate(1.20);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 0;
  box-shadow: 0 -18px 56px rgba(0, 0, 0, 0.76);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding-bottom: var(--safe-bottom);
  animation: cvSheetUp .22s cubic-bezier(.18, .96, .28, 1);
  will-change: transform; overflow: hidden;
}
.cv-sheet-specular {
  position: absolute; top: 0; left: 20%; width: 60%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 100%);
}
.cv-sheet-handle-wrap { display: flex; justify-content: center; padding: 9px 0 4px; touch-action: none; cursor: grab; }
.cv-sheet-handle { width: 36px; height: 3.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.26); }
.cv-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); touch-action: none;
}
.cv-sheet-title { margin: 0; font-size: 16px; font-weight: 700; color: #F5F8FF; }
.cv-icon-close {
  width: 31px; height: 31px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.05);
  color: #9AA6C4; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cv-icon-close:active { background: rgba(255, 255, 255, 0.13); color: #FFFFFF; }
.cv-sheet-body { overflow-y: auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 11px; }
.cv-qr-wrap { align-self: center; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.50); display: inline-flex; }
.cv-qr-wrap img { width: 192px; height: 192px; display: block; }

.cv-lottie { width: 48px; height: 48px; flex-shrink: 0; pointer-events: none; }
.cv-lottie.cv-empty-mascot { width: 116px; height: 116px; }
.cv-lottie svg { width: 100% !important; height: 100% !important; display: block; }

/* Floating Notice Toast */
.cv-toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-bottom)); transform: translateX(-50%); z-index: 98;
  padding: 9px 16px; border-radius: 10px;
  background: rgba(11, 18, 38, 0.96); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65); font-size: 12.5px; font-weight: 600; color: #EEF4FF;
  max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
}

/* ── Tariff Upgrade / Downgrade Step Wizard ── */
.cv-tc-summary {
  padding: 12px 13px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cv-tc-dir-card {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 14px; border-radius: 15px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11);
  transition: transform .12s ease, border-color .14s ease, background .14s ease;
}
.cv-tc-dir-card:active { transform: scale(0.985); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.25); }
.cv-tc-dir-card.is-upgrade .cv-squircle { background: rgba(139, 92, 246, 0.14); border-color: rgba(167, 139, 250, 0.34); color: #DDD6FE; }
.cv-tc-dir-card.is-downgrade .cv-squircle { background: var(--emerald-bg); border-color: var(--emerald-border); color: var(--emerald); }
.cv-tc-dir-card.is-disabled { opacity: 0.48; cursor: not-allowed; }
.cv-tc-dir-card.is-disabled:active { transform: none; }
.cv-tc-step-bar { display: grid; gap: 5px; margin-bottom: 2px; }
.cv-tc-opt.is-disabled { opacity: 0.52; cursor: not-allowed; }
.cv-tc-opt.is-disabled:active { transform: none; }
.cv-tc-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 25px; padding: 0 8.5px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18); color: #F5F8FF;
}
.cv-tc-pill.is-days {
  background: var(--emerald-bg); border-color: var(--emerald-border); color: var(--emerald);
}
.cv-tc-notice {
  padding: 10px 12px; border-radius: 11px; font-size: 12px; line-height: 1.44;
  background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-soft);
}
.cv-tc-summary-rows {
  display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.036); border: 1px solid rgba(255, 255, 255, 0.09);
}
.cv-tc-summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}
.cv-tc-summary-row strong { color: #F5F8FF; font-weight: 700; text-align: right; }

/* ── Top Utility Strip (Profile / Unified Sub / Gifts) ── */
.cv-top-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cv-top-pill {
  height: 34px; padding: 0 11px; border-radius: 11px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%;
  background: rgba(12, 17, 36, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  backdrop-filter: blur(14px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-soft); font-size: 12.5px; font-weight: 600;
  transition: transform .12s ease, background .14s ease, border-color .14s ease;
}
.cv-top-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-top-pill:active { transform: scale(0.975); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.cv-top-pill.is-accent {
  background: var(--emerald-bg); border-color: var(--emerald-border); color: var(--emerald-soft);
}

/* ── Free Trial Promo Card ── */
.cv-trial-banner {
  width: 100%; padding: 12px 13px; border-radius: 16px; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, rgba(16, 195, 136, 0.14) 0%, rgba(12, 18, 38, 0.86) 100%);
  border: 1px solid rgba(52, 224, 161, 0.34);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  transition: transform .12s ease, border-color .14s ease;
}
.cv-trial-banner:active { transform: scale(0.985); border-color: rgba(52, 224, 161, 0.56); }
.cv-trial-banner .cv-squircle {
  background: rgba(52, 224, 161, 0.16); border-color: rgba(52, 224, 161, 0.36); color: var(--emerald);
}

/* ── Gift Mode Banner & Expanded 1–12 Month Grid ── */
.cv-gift-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 13px;
  background: rgba(124, 196, 250, 0.10); border: 1px solid rgba(124, 196, 250, 0.28);
  font-size: 12.5px; color: var(--sky-bright);
}
.cv-period-row.is-all {
  grid-template-columns: repeat(3, 1fr);
}
.cv-period-toggle {
  align-self: center; height: 29px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-soft); font-size: 11.5px; font-weight: 600;
}
.cv-period-toggle:active { transform: scale(0.975); background: rgba(255, 255, 255, 0.10); }
.cv-textarea {
  width: 100%; min-height: 74px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11); background: rgba(6, 10, 22, 0.8);
  color: var(--text); font-size: 13.5px; line-height: 1.42; resize: vertical; outline: none;
}
.cv-textarea:focus { border-color: rgba(255, 255, 255, 0.28); }
.cv-doc-list { display: flex; flex-direction: column; gap: 6px; }
.cv-doc-link {
  width: 100%; padding: 9px 11px; border-radius: 11px; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, 0.036); border: 1px solid rgba(255, 255, 255, 0.085);
  color: var(--text-soft); font-size: 13px; font-weight: 500;
}
.cv-doc-link:active { transform: scale(0.988); background: rgba(255, 255, 255, 0.08); color: #fff; }
.cv-gift-card {
  padding: 11px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* ── Winter Snow-Capped Gift Button & Falling Snow Inside ── */
.cv-snow-gift-btn {
  position: relative; width: 100%; margin-top: 3px;
  padding: 14px 14px 13px; border-radius: 17px; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; overflow: visible;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(154, 224, 255, 0.24) 0%, rgba(56, 152, 255, 0.10) 46%, rgba(10, 20, 44, 0) 100%),
    linear-gradient(135deg, #10254A 0%, #0D1B38 54%, #113255 100%);
  border: 1px solid rgba(158, 222, 255, 0.44);
  box-shadow:
    0 12px 28px rgba(4, 12, 30, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 22px rgba(96, 190, 255, 0.14);
  color: #F4FAFF;
  transition: transform .13s ease, border-color .15s ease, box-shadow .15s ease;
}
.cv-snow-gift-btn:active {
  transform: scale(0.985);
  border-color: rgba(196, 238, 255, 0.72);
}
.cv-snow-cap {
  position: absolute; left: 8px; right: 8px; top: -6px; height: 15px; width: calc(100% - 16px);
  pointer-events: none; z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(6, 16, 36, 0.45));
}
.cv-snowfall-clip {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  pointer-events: none; z-index: 1;
}
.cv-snowfall-clip i {
  position: absolute; top: -10px; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, rgba(215, 242, 255, 0.86) 65%, rgba(215, 242, 255, 0) 100%);
  opacity: 0.85; will-change: transform;
  animation: cvSnowFall linear infinite;
}
.cv-snowfall-clip i:nth-child(1)  { left: 6%;  width: 4px;   height: 4px;   animation-duration: 4.2s; animation-delay: -0.4s; }
.cv-snowfall-clip i:nth-child(2)  { left: 15%; width: 2.5px; height: 2.5px; animation-duration: 5.4s; animation-delay: -2.1s; opacity: 0.65; }
.cv-snowfall-clip i:nth-child(3)  { left: 24%; width: 4.5px; height: 4.5px; animation-duration: 3.9s; animation-delay: -1.3s; }
.cv-snowfall-clip i:nth-child(4)  { left: 34%; width: 3px;   height: 3px;   animation-duration: 5.0s; animation-delay: -3.4s; opacity: 0.72; }
.cv-snowfall-clip i:nth-child(5)  { left: 45%; width: 5px;   height: 5px;   animation-duration: 4.5s; animation-delay: -0.9s; }
.cv-snowfall-clip i:nth-child(6)  { left: 54%; width: 2.5px; height: 2.5px; animation-duration: 5.8s; animation-delay: -2.7s; opacity: 0.60; }
.cv-snowfall-clip i:nth-child(7)  { left: 64%; width: 4px;   height: 4px;   animation-duration: 4.1s; animation-delay: -1.8s; }
.cv-snowfall-clip i:nth-child(8)  { left: 73%; width: 3.2px; height: 3.2px; animation-duration: 4.9s; animation-delay: -3.9s; opacity: 0.75; }
.cv-snowfall-clip i:nth-child(9)  { left: 83%; width: 4.6px; height: 4.6px; animation-duration: 3.8s; animation-delay: -0.6s; }
.cv-snowfall-clip i:nth-child(10) { left: 92%; width: 3px;   height: 3px;   animation-duration: 5.2s; animation-delay: -2.4s; opacity: 0.68; }
.cv-snowfall-clip i:nth-child(11) { left: 19%; width: 3.5px; height: 3.5px; animation-duration: 4.6s; animation-delay: -3.1s; opacity: 0.78; }
.cv-snowfall-clip i:nth-child(12) { left: 59%; width: 3.6px; height: 3.6px; animation-duration: 4.3s; animation-delay: -4.0s; opacity: 0.80; }

@keyframes cvSnowFall {
  0%   { transform: translate3d(-4px, -8px, 0); opacity: 0; }
  16%  { opacity: 0.92; }
  84%  { opacity: 0.82; }
  100% { transform: translate3d(12px, 78px, 0); opacity: 0; }
}

.cv-snow-gift-ico {
  position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(224, 246, 255, 0.24) 0%, rgba(86, 178, 255, 0.16) 100%);
  border: 1px solid rgba(196, 236, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px rgba(5, 14, 34, 0.36);
  color: #FFFFFF;
}
.cv-snow-gift-body { position: relative; z-index: 2; flex: 1; min-width: 0; }
.cv-snow-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: #9ED8FF; margin-bottom: 2px;
}
.cv-snow-gift-title {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 700; color: #FFFFFF; line-height: 1.24;
}
.cv-snow-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px;
  background: rgba(224, 247, 255, 0.20); border: 1px solid rgba(204, 242, 255, 0.50);
  color: #ECFAFF; font-size: 10.5px; font-weight: 700;
}
.cv-snow-gift-desc {
  margin-top: 3px; font-size: 12px; line-height: 1.35; color: #C6E3FF;
}
.cv-snow-gift-chev {
  position: relative; z-index: 2; color: #DDF2FF; flex-shrink: 0; display: inline-flex;
}

.cv-btn-snow {
  position: relative; overflow: visible !important;
  background: linear-gradient(135deg, #1B6AD6 0%, #154EA8 52%, #1482B8 100%) !important;
  border: 1px solid rgba(186, 234, 255, 0.58) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 26px rgba(14, 72, 160, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
}
.cv-btn-snow > svg:not(.cv-snow-cap),
.cv-btn-snow > span:not(.cv-snowfall-clip) {
  position: relative; z-index: 2;
}
.cv-btn-snow .cv-snow-cap { top: -5px; height: 13px; }

.cv-share-preview {
  padding: 11px 13px; border-radius: 13px;
  background: rgba(14, 24, 48, 0.88); border: 1px solid rgba(146, 206, 255, 0.24);
  font-size: 12.5px; line-height: 1.46; color: #E2EEFF; white-space: pre-wrap; word-break: break-word;
}

.cv-gram-card {
  padding: 13px 14px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.048); border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; gap: 9px;
}
.cv-gram-card.is-highlight {
  background: linear-gradient(135deg, rgba(16, 195, 136, 0.14) 0%, rgba(12, 24, 46, 0.88) 100%);
  border-color: rgba(52, 224, 161, 0.42);
}
.cv-gram-head {
  display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #FFFFFF;
}
.cv-gram-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #EDF2FF; color: #080B18; font-family: var(--font-mono); font-size: 12.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .cv-snowfall-clip i { animation: none; top: 38%; opacity: 0.45; }
}

@media (min-width: 720px) {
  .cv-main { padding-top: calc(18px + var(--safe-top)); }
}
