/**
 * BabkaVPS Theme v2 — "Aurora Glass"
 * Default site theme (classic: ?theme=classic)
 */

/* ─── Design tokens ─── */
html.theme-v2 {
  --v2-bg-deep: #020408;
  --v2-bg-mid: #0a0e1a;
  --v2-pink: #ff4fd8;
  --v2-cyan: #22d3ee;
  --v2-violet: #a78bfa;
  --v2-glass: rgba(255, 255, 255, 0.045);
  --v2-glass-border: rgba(255, 255, 255, 0.1);
  --v2-glow-pink: rgba(255, 79, 216, 0.35);
  --v2-glow-cyan: rgba(34, 211, 238, 0.3);
  overflow-x: hidden;
  overflow-y: auto;
}

/* ─── Base & cosmic background ─── */
html.theme-v2,
html.theme-v2 body {
  background-color: var(--v2-bg-deep);
}

html.theme-v2 body {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
}

html.theme-v2 body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* Static aurora — no hue-rotate/filter animation (was a major lag source) */
  background:
    radial-gradient(ellipse 85% 55% at 14% 10%, rgba(255, 79, 216, 0.32), transparent 58%),
    radial-gradient(ellipse 75% 50% at 88% 8%, rgba(34, 211, 238, 0.28), transparent 55%),
    radial-gradient(ellipse 110% 80% at 50% 100%, rgba(139, 92, 246, 0.28), transparent 60%),
    var(--v2-bg-deep);
  animation: none;
  transform: none;
  filter: none;
  will-change: auto;
}

html.theme-v2 body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Lighter grid, no mask composite */
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  mask-image: none;
  -webkit-mask-image: none;
}

@keyframes v2-aurora-shift {
  0% {
    filter: hue-rotate(0deg) brightness(1) saturate(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
  33% {
    filter: hue-rotate(10deg) brightness(1.06) saturate(1.08);
    transform: scale(1.025) translate3d(1.2%, -0.6%, 0);
  }
  66% {
    filter: hue-rotate(-7deg) brightness(0.97) saturate(1.04);
    transform: scale(1.015) translate3d(-0.8%, 0.7%, 0);
  }
  100% {
    filter: hue-rotate(5deg) brightness(1.04) saturate(1.06);
    transform: scale(1.035) translate3d(0.6%, -1.1%, 0);
  }
}

/* ─── Hero: replace brick wall + neon pipes ─── */
html.theme-v2 .hero-bg {
  background: transparent !important;
  overflow-x: clip;
  overflow-y: visible;
}

html.theme-v2 .brick-overlay,
html.theme-v2 .neon-pipe,
html.theme-v2 .rain-layer {
  display: none !important;
}

html.theme-v2 .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 95% at 50% -8%, rgba(34, 211, 238, 0.28), transparent 54%),
    radial-gradient(ellipse 75% 60% at 6% 62%, rgba(255, 79, 216, 0.28), transparent 52%),
    radial-gradient(ellipse 70% 55% at 96% 48%, rgba(167, 139, 250, 0.26), transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 72%, rgba(255, 79, 216, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 30% 40%, rgba(34, 211, 238, 0.12), transparent 50%);
  animation: none;
}

/* Soft vignette + center depth for babka */
html.theme-v2 .hero-bg::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 58% at 50% 62%, rgba(34, 211, 238, 0.1), transparent 62%),
    radial-gradient(ellipse 48% 52% at 50% 68%, rgba(255, 79, 216, 0.12), transparent 58%),
    radial-gradient(ellipse 95% 85% at 50% 55%, transparent 42%, rgba(2, 4, 8, 0.55) 100%);
  animation: none;
}

@keyframes v2-hero-pulse {
  0% { opacity: 0.82; transform: scale(1) translate3d(0, 0, 0); }
  100% { opacity: 1; transform: scale(1.03) translate3d(0.4%, -0.3%, 0); }
}

@keyframes v2-hero-vignette {
  0% { opacity: 0.88; }
  100% { opacity: 1; }
}

html.theme-v2 .noise-overlay {
  display: none !important;
}

/* ─── Section backgrounds → translucent layers ─── */
html.theme-v2 .bg-black,
html.theme-v2 .bg-black\/90,
html.theme-v2 .bg-black\/70,
html.theme-v2 .bg-zinc-950,
html.theme-v2 .bg-zinc-900,
html.theme-v2 .bg-zinc-900\/60,
html.theme-v2 .bg-zinc-900\/70,
html.theme-v2 .bg-zinc-900\/80 {
  position: relative;
  background: rgba(4, 6, 14, 0.42) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.theme-v2 .bg-black::before,
html.theme-v2 .bg-black\/90::before,
html.theme-v2 .bg-black\/70::before,
html.theme-v2 .bg-zinc-950::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 108%, rgba(139, 92, 246, 0.2), transparent 58%),
    radial-gradient(ellipse 60% 50% at 12% 55%, rgba(34, 211, 238, 0.1), transparent 52%),
    radial-gradient(ellipse 60% 50% at 88% 55%, rgba(255, 79, 216, 0.09), transparent 52%);
}

html.theme-v2 .bg-black > *,
html.theme-v2 .bg-black\/90 > *,
html.theme-v2 .bg-black\/70 > *,
html.theme-v2 .bg-zinc-950 > * {
  position: relative;
  z-index: 1;
}

/* ─── Header: frosted glass, no glitch sweep ─── */
html.theme-v2 .header-tech-wrap {
  border-radius: 0 0 1.35rem 1.35rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: none !important;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.72), rgba(6, 8, 16, 0.58)) !important;
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(34, 211, 238, 0.08),
    0 0 36px rgba(255, 79, 216, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

html.theme-v2 .header-tech {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom: 1px solid rgba(255, 79, 216, 0.28) !important;
  background: transparent !important;
  backdrop-filter: none;
}

html.theme-v2 .header-tech-wrap--glitch-cyan-purple .header-tech::before,
html.theme-v2 .header-tech-wrap--glitch-cyan-purple .header-tech::after {
  display: none !important;
}

html.theme-v2 .header-tech-wrap--glitch-cyan-purple .header-logo {
  filter: drop-shadow(0 0 14px var(--v2-glow-pink)) drop-shadow(0 0 24px var(--v2-glow-cyan)) !important;
  animation: v2-logo-glow 5s ease-in-out infinite alternate !important;
}

html.theme-v2 .header-logo-icon-neformal {
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 9999px;
  border: 2px solid rgba(167, 139, 250, 0.55);
  background: rgba(6, 8, 16, 0.55);
  box-shadow:
    0 0 20px rgba(255, 79, 216, 0.42),
    0 0 34px rgba(34, 211, 238, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@keyframes v2-logo-glow {
  0% {
    filter:
      drop-shadow(0 0 10px var(--v2-glow-pink))
      drop-shadow(0 0 18px var(--v2-glow-cyan));
  }
  100% {
    filter:
      drop-shadow(0 0 20px var(--v2-glow-cyan))
      drop-shadow(0 0 28px var(--v2-glow-pink))
      drop-shadow(0 0 36px rgba(167, 139, 250, 0.35));
  }
}

html.theme-v2 .babkavps-wordmark--glitch {
  letter-spacing: 0.01em;
  text-shadow:
    0 0 18px rgba(167, 139, 250, 0.55),
    0 0 32px rgba(34, 211, 238, 0.18) !important;
}

/* ─── Header nav: aurora glow behind links on hover ─── */
html.theme-v2 #siteHeader .header-nav-panel.header-tech {
  overflow: visible !important;
}

html.theme-v2 #siteHeader .header-nav-link {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: transparent !important;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

html.theme-v2 #siteHeader .header-nav-link::before {
  content: "";
  position: absolute;
  inset: -3px -6px;
  z-index: -1;
  border-radius: 0.65rem;
  background: radial-gradient(
    ellipse 85% 95% at 50% 55%,
    rgba(255, 79, 216, 0.5),
    rgba(167, 139, 250, 0.32) 42%,
    rgba(34, 211, 238, 0.22) 58%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
  pointer-events: none;
}

html.theme-v2 #siteHeader .header-nav-link:hover,
html.theme-v2 #siteHeader .header-nav-link:focus-visible {
  text-shadow:
    0 0 12px rgba(34, 211, 238, 0.45),
    0 0 20px rgba(255, 79, 216, 0.35);
}

html.theme-v2 #siteHeader .header-nav-link:hover::before,
html.theme-v2 #siteHeader .header-nav-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  filter: blur(12px);
}

html.theme-v2 #siteHeader #headerConnectBtn {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible !important;
}

html.theme-v2 #siteHeader #headerConnectBtn::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: -8px -14px;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(139, 92, 246, 0.75),
    rgba(255, 79, 216, 0.55) 38%,
    rgba(34, 211, 238, 0.35) 58%,
    transparent 76%
  );
  opacity: 0.35;
  filter: blur(16px);
  transform: scale(0.94);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
  pointer-events: none;
}

html.theme-v2 #siteHeader #headerConnectBtn:hover,
html.theme-v2 #siteHeader #headerConnectBtn:focus-visible {
  box-shadow:
    0 6px 36px rgba(255, 79, 216, 0.62),
    0 0 64px rgba(34, 211, 238, 0.32),
    0 0 88px rgba(139, 92, 246, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

html.theme-v2 #siteHeader #headerConnectBtn:hover::after,
html.theme-v2 #siteHeader #headerConnectBtn:focus-visible::after {
  opacity: 1;
  transform: scale(1.06);
  filter: blur(20px);
}

html.theme-v2 #siteHeader .mobile-menu-link {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

html.theme-v2 #siteHeader .mobile-menu-link::before {
  content: "";
  position: absolute;
  inset: 2px 6px;
  z-index: -1;
  border-radius: 0.85rem;
  background: radial-gradient(
    ellipse 90% 100% at 50% 50%,
    rgba(255, 79, 216, 0.42),
    rgba(34, 211, 238, 0.24) 55%,
    transparent 72%
  );
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

html.theme-v2 #siteHeader .mobile-menu-link:active::before,
html.theme-v2 #siteHeader .mobile-menu-link:focus-visible::before {
  opacity: 1;
}

html.theme-v2 #siteHeader #mobileConnectBtn {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible !important;
}

html.theme-v2 #siteHeader #mobileConnectBtn::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: -6px -10px;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(139, 92, 246, 0.7),
    rgba(255, 79, 216, 0.5) 40%,
    rgba(34, 211, 238, 0.3) 60%,
    transparent 75%
  );
  opacity: 0.4;
  filter: blur(18px);
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

html.theme-v2 #siteHeader #mobileConnectBtn:active::after,
html.theme-v2 #siteHeader #mobileConnectBtn:focus-visible::after {
  opacity: 1;
  filter: blur(22px);
}

@media (hover: none) and (pointer: coarse) {
  html.theme-v2 #siteHeader .header-nav-link:active::before {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* ─── Typography: softer glow, less aggressive glitch ─── */
html.theme-v2 .hero-glitch-purple-sub {
  animation: none !important;
  letter-spacing: 0.01em;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35), 0 0 40px rgba(255, 79, 216, 0.2) !important;
  color: #f0f4ff !important;
}

html.theme-v2 .hero-title-glitch {
  letter-spacing: -0.02em;
  animation: v2-title-shimmer 5.5s ease-in-out infinite !important;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.25), 0 0 60px rgba(34, 211, 238, 0.15) !important;
}

@keyframes v2-title-shimmer {
  0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.25), 0 0 60px rgba(34, 211, 238, 0.15); }
  50% { text-shadow: 0 0 40px rgba(255, 79, 216, 0.22), 0 0 72px rgba(34, 211, 238, 0.28); }
}

/* Hero lead «Слежка» — Aurora neon pulse + rare micro-glitch */
html.theme-v2 .hero-lead-word {
  position: relative;
  display: inline-block;
  letter-spacing: -0.015em;
  color: #f7faff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(34, 211, 238, 0.6),
    0 0 36px rgba(255, 79, 216, 0.38),
    0 0 54px rgba(167, 139, 250, 0.22);
  animation: v2-hero-lead-pulse 5.6s ease-in-out infinite !important;
  will-change: text-shadow, transform, filter;
}

html.theme-v2 .hero-lead-word::before,
html.theme-v2 .hero-lead-word::after {
  content: "Слежка";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

html.theme-v2 .hero-lead-word::before {
  color: var(--v2-cyan, #22d3ee);
  animation: v2-hero-lead-glitch-cyan 5.6s steps(1, end) infinite;
}

html.theme-v2 .hero-lead-word::after {
  color: var(--v2-pink, #ff4fd8);
  animation: v2-hero-lead-glitch-pink 5.6s steps(1, end) infinite;
}

@keyframes v2-hero-lead-pulse {
  0%,
  100% {
    filter: brightness(1);
    transform: translate3d(0, 0, 0);
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.95),
      0 0 16px rgba(34, 211, 238, 0.48),
      0 0 30px rgba(255, 79, 216, 0.3),
      0 0 48px rgba(167, 139, 250, 0.18);
  }
  38% {
    filter: brightness(1.1);
    text-shadow:
      0 0 2px rgba(255, 255, 255, 1),
      0 0 22px rgba(34, 211, 238, 0.78),
      0 0 42px rgba(255, 79, 216, 0.52),
      0 0 64px rgba(34, 211, 238, 0.28);
  }
  84% {
    transform: translate3d(-1.2px, 0, 0);
    text-shadow:
      -1.6px 0 var(--v2-cyan, #22d3ee),
      1.6px 0 var(--v2-pink, #ff4fd8),
      0 0 22px rgba(255, 255, 255, 0.58);
  }
  89% {
    transform: translate3d(1.2px, -0.6px, 0);
    text-shadow:
      1.6px 0 var(--v2-cyan, #22d3ee),
      -1.6px 0 var(--v2-pink, #ff4fd8),
      0 0 26px rgba(255, 79, 216, 0.55);
  }
  93%,
  97% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes v2-hero-lead-glitch-cyan {
  0%,
  83%,
  87%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
  84% {
    opacity: 0.5;
    transform: translate3d(-2px, 0, 0);
    clip-path: inset(16% 0 44% 0);
  }
  85.5% {
    opacity: 0.32;
    transform: translate3d(2px, 0.5px, 0);
    clip-path: inset(52% 0 14% 0);
  }
}

@keyframes v2-hero-lead-glitch-pink {
  0%,
  88%,
  93%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
  89% {
    opacity: 0.48;
    transform: translate3d(2px, 0, 0);
    clip-path: inset(10% 0 56% 0);
  }
  91% {
    opacity: 0.28;
    transform: translate3d(-2px, -0.5px, 0);
    clip-path: inset(46% 0 20% 0);
  }
}

html.theme-v2 .hero-accent-flow {
  position: relative;
  display: inline-block;
}

html.theme-v2 .hero-accent-flow__base {
  color: #ffffff;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.98),
    0 0 14px rgba(255, 79, 216, 0.72),
    0 0 24px rgba(34, 211, 238, 0.48);
}

html.theme-v2 .hero-accent-flow__grad {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffb8f0 12%,
    var(--v2-pink) 24%,
    #d8f8ff 42%,
    var(--v2-cyan) 54%,
    #ffc8f5 72%,
    var(--v2-violet) 86%,
    #a5f3fc 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-accent-flow 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-accent-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

html.theme-v2 .hero-accent-word {
  color: #f0abfc;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 0 10px rgba(255, 79, 216, 0.45),
    0 0 16px rgba(34, 211, 238, 0.3);
}

html.theme-v2 .babka-character {
  filter:
    drop-shadow(0 0 28px rgba(255, 79, 216, 0.72))
    drop-shadow(0 0 52px rgba(34, 211, 238, 0.5))
    drop-shadow(0 0 80px rgba(167, 139, 250, 0.28))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)) !important;
}

/* ─── Hero: copy on top, big babka contained in stage, USP below ─── */
html.theme-v2 .hero-mobile-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(440px, 70vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

/* Soft pool glow under babka feet */
html.theme-v2 .hero-mobile-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4%;
  z-index: 0;
  width: min(70%, 28rem);
  height: 28%;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(139, 92, 246, 0.35), transparent 70%),
    radial-gradient(ellipse 55% 45% at 50% 60%, rgba(34, 211, 238, 0.22), transparent 68%);
  filter: blur(18px);
  animation: none;
  opacity: 0.85;
}

@keyframes v2-babka-pool {
  0% { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

html.theme-v2 .hero-mobile-stage .babka-character {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: min(92vw, 46rem);
  max-width: none;
  height: clamp(300px, 56vh, 620px);
  min-height: 0;
  max-height: 62vh;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%) scale(1.12);
  transform-origin: center bottom;
  animation: none;
  will-change: auto;
  pointer-events: none;
}

html.theme-v2 .hero-mobile-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-shrink: 0;
  padding: clamp(0.25rem, 1.5vh, 0.75rem) 1rem clamp(1rem, 3vh, 1.75rem);
  pointer-events: none;
}

html.theme-v2 .hero-mobile-overlay #connectCtaBtn {
  pointer-events: auto;
}

@keyframes v2-babka-wave {
  0%,
  100% {
    transform: translateX(-50%) scale(1.12) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-1.5%) scale(1.12) rotate(2.5deg);
  }
  75% {
    transform: translateX(-50%) translateY(1%) scale(1.12) rotate(-2deg);
  }
}

@media (min-width: 768px) {
  html.theme-v2 .hero-mobile-stage {
    min-height: clamp(500px, 74vh, 820px);
  }

  html.theme-v2 .hero-mobile-stage .babka-character {
    width: min(88vw, 52rem);
    height: clamp(360px, 58vh, 680px);
    max-height: 64vh;
    transform: translateX(-50%) scale(1.18);
    animation-name: v2-babka-wave-desktop;
  }

  html.theme-v2 .hero-mobile-overlay {
    padding-top: clamp(0.5rem, 2vh, 1rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
  }
}

@keyframes v2-babka-wave-desktop {
  0%,
  100% {
    transform: translateX(-50%) scale(1.18) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-1.5%) scale(1.18) rotate(2.5deg);
  }
  75% {
    transform: translateX(-50%) translateY(1%) scale(1.18) rotate(-2deg);
  }
}

html.theme-v2 .hero-mobile-main {
  padding-top: clamp(3.75rem, 11vh, 5.25rem) !important;
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

html.theme-v2 .usp-cards-grid {
  position: relative;
  z-index: 15;
  margin-top: clamp(1rem, 3.5vw, 1.75rem) !important;
}

html.theme-v2 #connectCtaBtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  letter-spacing: 0.045em;
  font-weight: 800;
  text-transform: none;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  box-shadow:
    0 8px 36px rgba(139, 92, 246, 0.5),
    0 0 56px rgba(34, 211, 238, 0.22),
    0 0 28px rgba(255, 79, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

html.theme-v2 #connectCtaBtn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    0 12px 42px rgba(139, 92, 246, 0.58),
    0 0 68px rgba(34, 211, 238, 0.3),
    0 0 40px rgba(255, 79, 216, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

html.theme-v2 .hero-mobile-title {
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(255, 255, 255, 0.22),
    0 0 56px rgba(34, 211, 238, 0.14) !important;
}

html.theme-v2 .hero-mobile-sub {
  font-size: clamp(0.82rem, 2.8vw, 1.05rem) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-top: clamp(0.55rem, 1.8vh, 0.85rem) !important;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.88),
    0 0 22px rgba(34, 211, 238, 0.18) !important;
}

html.theme-v2 .hero-mobile-cta {
  margin-top: clamp(0.85rem, 2.8vh, 1.25rem) !important;
}

/* ─── Buttons: pill glass with gradient glow ─── */
html.theme-v2 .tech-btn {
  clip-path: none !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 79, 216, 0.55) !important;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.95), rgba(192, 38, 211, 0.9) 50%, rgba(139, 92, 246, 0.85)) !important;
  box-shadow:
    0 4px 24px rgba(255, 79, 216, 0.35),
    0 0 40px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html.theme-v2 .tech-btn::before,
html.theme-v2 .tech-btn::after {
  display: none !important;
}

html.theme-v2 .tech-btn:hover {
  box-shadow:
    0 6px 32px rgba(255, 79, 216, 0.5),
    0 0 50px rgba(34, 211, 238, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
}

html.theme-v2 .tech-btn.tech-btn-outline {
  border-color: rgba(34, 211, 238, 0.45) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.theme-v2 #connectCtaBtn,
html.theme-v2 #footerConnectBtn,
html.theme-v2 #headerConnectBtn,
html.theme-v2 #mobileConnectBtn {
  position: relative;
  isolation: isolate;
  border-color: rgba(167, 139, 250, 0.65) !important;
  background: linear-gradient(
    118deg,
    rgba(139, 92, 246, 0.96),
    rgba(168, 85, 247, 0.98) 42%,
    rgba(34, 211, 238, 0.88)
  ) !important;
  background-size: 100% 100% !important;
  background-position: 50% 50% !important;
  animation: none !important;
}

/* Clip; no continuous shimmer overlays (perf) */
html.theme-v2 #connectCtaBtn,
html.theme-v2 #footerConnectBtn {
  overflow: hidden;
}

html.theme-v2 #connectCtaBtn::before,
html.theme-v2 #footerConnectBtn::before,
html.theme-v2 #headerConnectBtn::before,
html.theme-v2 #mobileConnectBtn::before {
  display: none !important;
  animation: none !important;
}

@keyframes v2-connect-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes v2-cta-shimmer {
  0%, 18% { background-position: 140% 0; }
  48%, 100% { background-position: -60% 0; }
}

/* ─── USP cards: rounded glass (desktop + mobile) ─── */
html.theme-v2 .usp-cards-grid {
  gap: 1rem !important;
}

html.theme-v2 .usp-card {
  clip-path: none !important;
  border-radius: 1.35rem !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(
    145deg,
    rgba(12, 16, 32, 0.72),
    rgba(18, 10, 34, 0.62) 55%,
    rgba(8, 12, 26, 0.78)
  ) !important;
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(34, 211, 238, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03) !important;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

html.theme-v2 .usp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.35s ease;
}

html.theme-v2 .usp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 42%
  );
}

html.theme-v2 .usp-card--speed::before {
  background: radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.26), transparent 58%);
}

html.theme-v2 .usp-card--nologs::before {
  background: radial-gradient(circle at 50% 0%, rgba(245, 163, 255, 0.26), transparent 58%);
}

html.theme-v2 .usp-card--stable::before {
  background: radial-gradient(circle at 50% 0%, rgba(164, 255, 118, 0.24), transparent 58%);
}

html.theme-v2 .usp-card--speed {
  border-color: rgba(103, 232, 249, 0.42) !important;
}

html.theme-v2 .usp-card--nologs {
  border-color: rgba(245, 163, 255, 0.42) !important;
}

html.theme-v2 .usp-card--stable {
  border-color: rgba(164, 255, 118, 0.42) !important;
}

html.theme-v2 .usp-card .usp-icon-wrap,
html.theme-v2 .usp-card p {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  html.theme-v2 .usp-cards-grid {
    gap: 1.25rem !important;
  }

  html.theme-v2 .usp-card {
    padding: 1.35rem 1rem !important;
  }
}

html.theme-v2 .usp-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(255, 79, 216, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html.theme-v2 .usp-card:hover::after {
  opacity: 1;
}

html.theme-v2 .usp-card--speed:hover {
  border-color: rgba(103, 232, 249, 0.65) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(103, 232, 249, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html.theme-v2 .usp-card--nologs:hover {
  border-color: rgba(245, 163, 255, 0.65) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(245, 163, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html.theme-v2 .usp-card--stable:hover {
  border-color: rgba(164, 255, 118, 0.6) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(164, 255, 118, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html.theme-v2 .usp-card:hover .usp-icon-wrap {
  transform: translateY(-2px) scale(1.08);
  filter: brightness(1.12);
}

/* ─── Feature cards (benefits grid) ─── */
html.theme-v2 .features-section {
  position: relative;
  overflow: visible;
  background: transparent;
}

html.theme-v2 .features-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  transform: translateX(-50%);
  width: min(94vw, 58rem);
  height: 13rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(139, 92, 246, 0.28), transparent 66%),
    radial-gradient(ellipse 72% 82% at 28% 88%, rgba(34, 211, 238, 0.15), transparent 62%),
    radial-gradient(ellipse 72% 82% at 72% 88%, rgba(255, 79, 216, 0.13), transparent 62%);
  filter: blur(12px);
}

html.theme-v2 .features-section__title {
  background: linear-gradient(90deg, #fff 0%, rgba(226, 232, 240, 0.92) 55%, rgba(167, 139, 250, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.theme-v2 .features-grid {
  gap: 1rem;
}

html.theme-v2 .feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.35rem 1.1rem 1.5rem;
  border: 1px solid var(--v2-glass-border);
  background: linear-gradient(
    145deg,
    rgba(10, 14, 28, 0.88),
    rgba(14, 10, 30, 0.82)
  );
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

html.theme-v2 .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

html.theme-v2 .feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0.65;
}

html.theme-v2 .feature-card--launch::before {
  background: radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.2), transparent 62%);
}

html.theme-v2 .feature-card--reliable::before {
  background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.2), transparent 62%);
}

html.theme-v2 .feature-card--speed::before {
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.2), transparent 62%);
}

html.theme-v2 .feature-card--devices::before {
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.22), transparent 62%);
}

html.theme-v2 .feature-card--launch {
  border-color: rgba(250, 204, 21, 0.35);
}

html.theme-v2 .feature-card--reliable {
  border-color: rgba(244, 114, 182, 0.35);
}

html.theme-v2 .feature-card--speed {
  border-color: rgba(34, 211, 238, 0.35);
}

html.theme-v2 .feature-card--devices {
  border-color: rgba(167, 139, 250, 0.38);
}

html.theme-v2 .feature-icon-wrap {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.theme-v2 .feature-icon-glyph {
  font-size: 1.65rem;
  line-height: 1;
}

html.theme-v2 .feature-card--launch .feature-icon-glyph {
  color: #facc15;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.85));
}

html.theme-v2 .feature-card--reliable .feature-icon-glyph {
  color: #f472b6;
  filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.85));
}

html.theme-v2 .feature-card--speed .feature-icon-glyph {
  color: #22d3ee;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.85));
}

html.theme-v2 .feature-card--devices .feature-icon-glyph {
  color: #c4b5fd;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.85));
}

html.theme-v2 .feature-card--launch .feature-icon-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(250, 204, 21, 0.15);
}

html.theme-v2 .feature-card--reliable .feature-icon-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(244, 114, 182, 0.15);
}

html.theme-v2 .feature-card--speed .feature-icon-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(34, 211, 238, 0.15);
}

html.theme-v2 .feature-card--devices .feature-icon-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(167, 139, 250, 0.18);
}

html.theme-v2 .feature-card h3,
html.theme-v2 .feature-card p {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  html.theme-v2 .features-grid {
    gap: 1.25rem;
  }

  html.theme-v2 .feature-card {
    border-radius: 1.35rem;
    padding: 1.65rem 1.25rem 1.75rem;
  }

  html.theme-v2 .feature-icon-wrap {
    width: 3.75rem;
    height: 3.75rem;
  }

  html.theme-v2 .feature-icon-glyph {
    font-size: 1.85rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  html.theme-v2 .feature-card:hover {
    transform: translateY(-5px);
  }

  html.theme-v2 .feature-card--launch:hover {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(250, 204, 21, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html.theme-v2 .feature-card--reliable:hover {
    border-color: rgba(244, 114, 182, 0.55);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(244, 114, 182, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html.theme-v2 .feature-card--speed:hover {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(34, 211, 238, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html.theme-v2 .feature-card--devices:hover {
    border-color: rgba(167, 139, 250, 0.58);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.42),
      0 0 36px rgba(167, 139, 250, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html.theme-v2 .feature-card:hover .feature-icon-wrap {
    transform: translateY(-2px) scale(1.05);
  }
}

/* ─── Happ spotlight ─── */
html.theme-v2 .happ-spotlight {
  background: transparent;
}

html.theme-v2 .happ-spotlight__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(
    155deg,
    rgba(8, 12, 24, 0.9),
    rgba(12, 8, 28, 0.85)
  );
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(34, 211, 238, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html.theme-v2 .happ-spotlight__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 79, 216, 0.12), transparent 40%);
  z-index: 0;
}

html.theme-v2 .happ-spotlight__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

html.theme-v2 .happ-spotlight__title {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #fff, rgba(226, 232, 240, 0.95) 40%, var(--v2-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.theme-v2 .happ-spotlight__panel p {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  html.theme-v2 .happ-spotlight__panel {
    padding: 2.5rem 2rem;
  }
}

/* ─── Content cards ─── */
html.theme-v2 .rounded-3xl.border,
html.theme-v2 .app-shot-card,
html.theme-v2 article.rounded-3xl {
  border-radius: 1.5rem !important;
  border-color: var(--v2-glass-border) !important;
  background: var(--v2-glass) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.theme-v2 .app-shot-card {
  clip-path: none !important;
}

html.theme-v2 .app-shot-card::before {
  opacity: 0.25 !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 79, 216, 0.18), transparent 40%) !important;
}

/* ─── Service chips ─── */
html.theme-v2 .service-chip-shape {
  clip-path: none !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ─── Pricing cards accent ─── */
html.theme-v2 .pricing-section {
  background: transparent;
}

html.theme-v2 .pricing-section__title,
html.theme-v2 #pricing h2.pricing-section__title {
  background: linear-gradient(90deg, var(--v2-pink), var(--v2-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.theme-v2 .pricing-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--v2-glass-border);
  background: linear-gradient(
    150deg,
    rgba(10, 14, 28, 0.9),
    rgba(14, 10, 30, 0.84)
  ) !important;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.theme-v2 .pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

html.theme-v2 .pricing-card > * {
  position: relative;
  z-index: 1;
}

html.theme-v2 .pricing-card--cyan {
  border-color: rgba(34, 211, 238, 0.38) !important;
}

html.theme-v2 .pricing-card--cyan::before {
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.14), transparent 58%);
}

html.theme-v2 .pricing-card--violet {
  border-color: rgba(139, 92, 246, 0.42) !important;
}

html.theme-v2 .pricing-card--violet::before {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.16), transparent 58%);
}

html.theme-v2 .pricing-card--indigo {
  border-color: rgba(129, 140, 248, 0.4) !important;
}

html.theme-v2 .pricing-card--indigo::before {
  background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.14), transparent 58%);
}

html.theme-v2 .pricing-card--amber {
  border-color: rgba(251, 191, 36, 0.42) !important;
  background: linear-gradient(
    150deg,
    rgba(28, 18, 8, 0.92),
    rgba(18, 12, 6, 0.88)
  ) !important;
}

html.theme-v2 .pricing-card--amber::before {
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.14), transparent 58%);
}

html.theme-v2 .pricing-card--featured {
  border-width: 2px;
  border-color: rgba(249, 115, 22, 0.55) !important;
  background: linear-gradient(
    165deg,
    rgba(6, 32, 22, 0.92),
    rgba(8, 18, 14, 0.88)
  ) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(249, 115, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.theme-v2 .pricing-card--featured::before {
  background:
    radial-gradient(circle at 30% 0%, rgba(249, 115, 22, 0.16), transparent 50%),
    radial-gradient(circle at 70% 100%, rgba(52, 211, 153, 0.12), transparent 45%);
}

html.theme-v2 #pricing article,
html.theme-v2 #pricing .pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.theme-v2 #pricing article:hover,
html.theme-v2 #pricing .pricing-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(34, 211, 238, 0.1) !important;
}

html.theme-v2 #pricing h2 {
  background: linear-gradient(90deg, var(--v2-pink), var(--v2-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Login / forms ─── */
html.theme-v2 .rounded-2xl.border {
  background: rgba(6, 8, 16, 0.75) !important;
  backdrop-filter: blur(18px);
  border-color: rgba(255, 79, 216, 0.2) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 211, 238, 0.06) !important;
}

html.theme-v2 input.rounded-xl {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-v2 input.rounded-xl:focus {
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* ─── Cabinet slabs (enhance existing glass) ─── */
html.theme-v2 .cabinet-slab {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ─── Footer ─── */
html.theme-v2 footer {
  background: rgba(2, 4, 8, 0.8) !important;
  backdrop-filter: blur(12px);
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* ─── Pay modal ─── */
html.theme-v2 .pay-modal-card {
  border-radius: 1.5rem !important;
  border-color: rgba(255, 79, 216, 0.25) !important;
  background: rgba(6, 8, 16, 0.92) !important;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 211, 238, 0.08) !important;
}

/* ─── Preview bar ─── */
.theme-v2-preview-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.92), rgba(2, 4, 8, 0.98));
  border-top: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.theme-v2-preview-bar__label {
  color: var(--v2-cyan);
  text-transform: uppercase;
}

.theme-v2-preview-bar__hint {
  color: rgba(255, 255, 255, 0.55);
}

.theme-v2-preview-bar__link {
  color: var(--v2-pink);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 79, 216, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-v2-preview-bar__link:hover {
  background: rgba(255, 79, 216, 0.15);
  color: #fff;
}

.theme-classic-bar {
  border-top-color: rgba(255, 79, 216, 0.3);
}

.theme-classic-bar .theme-v2-preview-bar__label {
  color: var(--v2-pink);
}

html.theme-v2.has-pricing-pay-bar {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

html.theme-v2.has-mobile-sticky-cta {
  padding-bottom: 3.5rem;
}

/* ─── Mobile polish (v2 preview + production when v2 enabled) ─── */
@media (max-width: 767px) {
  /* Stacked hero: copy → CTA → babka (override absolute desktop composition) */
  html.theme-v2 .hero-mobile-main {
    padding-top: calc(4.35rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  html.theme-v2 .hero-mobile-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    gap: 0.35rem !important;
  }

  html.theme-v2 .hero-mobile-stage::after {
    width: min(78%, 18rem) !important;
    height: 18% !important;
    bottom: 4% !important;
    opacity: 0.85;
  }

  html.theme-v2 .hero-mobile-overlay {
    position: relative !important;
    inset: auto !important;
    z-index: 10 !important;
    order: 1;
    width: 100% !important;
    padding: 0.1rem 0.2rem 0.25rem !important;
    justify-content: flex-start !important;
  }

  html.theme-v2 .hero-mobile-stage .babka-character {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    order: 2;
    z-index: 1 !important;
    width: min(88vw, 20.5rem) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(42vh, 320px) !important;
    margin: 0.2rem auto 0 !important;
    transform: none !important;
    transform-origin: center bottom !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    animation: babka-mobile-float 3.2s ease-in-out infinite !important;
    filter:
      drop-shadow(0 0 18px rgba(255, 79, 216, 0.55))
      drop-shadow(0 0 36px rgba(34, 211, 238, 0.35))
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4)) !important;
  }

  html.theme-v2 .hero-mobile-title {
    font-size: clamp(1.55rem, 7.2vw, 2.05rem) !important;
    line-height: 1.08 !important;
  }

  html.theme-v2 .hero-mobile-sub {
    font-size: clamp(0.88rem, 3.8vw, 1.05rem) !important;
    line-height: 1.4 !important;
    margin-top: 0.55rem !important;
  }

  html.theme-v2 .hero-mobile-cta,
  html.theme-v2 #connectCtaBtn.hero-mobile-cta {
    width: 100% !important;
    max-width: 20rem;
    margin-top: 1.05rem !important;
    min-height: 3.1rem;
  }

  html.theme-v2 .usp-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    margin-top: 1.15rem !important;
  }

  html.theme-v2 .usp-card {
    border-radius: 1.25rem !important;
  }

  html.theme-v2 .features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  html.theme-v2 .feature-card {
    border-radius: 1.2rem;
    padding: 1.15rem 1.05rem 1.25rem;
  }

  html.theme-v2 .header-brand-link {
    max-width: calc(100% - 3.5rem);
  }

  html.theme-v2 .header-wordmark-text.babkavps-wordmark--glitch {
    font-size: clamp(1.15rem, 5.4vw, 1.55rem) !important;
  }

  html.theme-v2 .header-menu-toggle {
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    max-width: 2.75rem !important;
    max-height: 2.75rem !important;
    padding: 0 !important;
    border-radius: 0.625rem !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(6, 8, 18, 0.92) !important;
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  /* Prevent aurora scale from causing sideways scroll on phones */
  html.theme-v2,
  html.theme-v2 body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  html.theme-v2 body::before {
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
}

@keyframes v2-aurora-shift-mobile {
  0% {
    filter: hue-rotate(0deg) brightness(1) saturate(1);
  }
  100% {
    filter: hue-rotate(8deg) brightness(1.05) saturate(1.06);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  html.theme-v2 .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html.theme-v2 body::before,
  html.theme-v2 .hero-bg::before,
  html.theme-v2 .hero-bg::after,
  html.theme-v2 .hero-mobile-stage::after,
  html.theme-v2 .header-tech-wrap--glitch-cyan-purple .header-logo,
  html.theme-v2 #connectCtaBtn,
  html.theme-v2 #footerConnectBtn,
  html.theme-v2 #headerConnectBtn,
  html.theme-v2 #mobileConnectBtn,
  html.theme-v2 #connectCtaBtn::before,
  html.theme-v2 #footerConnectBtn::before,
  html.theme-v2 #headerConnectBtn::before,
  html.theme-v2 #mobileConnectBtn::before,
  html.theme-v2 .hero-title-glitch,
  html.theme-v2 .hero-lead-word,
  html.theme-v2 .hero-lead-word::before,
  html.theme-v2 .hero-lead-word::after,
  html.theme-v2 .hero-accent-flow__grad,
  html.theme-v2 .babka-character,
  html.theme-v2 .feature-card:hover {
    animation: none !important;
  }

  html.theme-v2 .hero-lead-word::before,
  html.theme-v2 .hero-lead-word::after {
    content: none !important;
  }

  html.theme-v2 #siteHeader .header-nav-link::before,
  html.theme-v2 #siteHeader #headerConnectBtn::after,
  html.theme-v2 #siteHeader #mobileConnectBtn::after,
  html.theme-v2 #siteHeader .mobile-menu-link::before {
    transition: none !important;
  }

  html.theme-v2 .hero-mobile-stage .babka-character {
    transform: translateX(-50%) scale(1.12) !important;
  }

  @media (max-width: 767px) {
    html.theme-v2 .hero-mobile-stage .babka-character {
      transform: none !important;
    }
  }

  @media (min-width: 768px) {
    html.theme-v2 .hero-mobile-stage .babka-character {
      transform: translateX(-50%) scale(1.18) !important;
    }
  }

  html.theme-v2 .feature-card:hover,
  html.theme-v2 .usp-card:hover,
  html.theme-v2 .pricing-card:hover,
  html.theme-v2 #pricing article:hover {
    transform: none !important;
  }
}

/* ─── FAQ accordion: Aurora Glass v2 ─── */
html.theme-v2 .faq-section {
  position: relative;
}

html.theme-v2 .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

html.theme-v2 .faq-item {
  border-radius: 1.25rem;
  border: 1px solid var(--v2-glass-border);
  background: linear-gradient(135deg, rgba(10, 14, 28, 0.92), rgba(18, 10, 32, 0.86));
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html.theme-v2 .faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

html.theme-v2 .faq-item--open {
  border-color: rgba(255, 79, 216, 0.45) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.theme-v2 .faq-item__heading {
  margin: 0;
}

html.theme-v2 .faq-item__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
  html.theme-v2 .faq-item__trigger {
    min-height: 3.5rem;
    padding: 1.1rem 1.35rem;
  }
}

html.theme-v2 .faq-item__trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(34, 211, 238, 0.45);
  border-radius: 1.25rem;
}

html.theme-v2 .faq-item__question {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  html.theme-v2 .faq-item__question {
    font-size: 1.05rem;
  }
}

html.theme-v2 .faq-item__chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e879f9;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

html.theme-v2 .faq-item__chevron i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

html.theme-v2 .faq-item--open .faq-item__chevron {
  border-color: rgba(255, 79, 216, 0.45);
  background: rgba(255, 79, 216, 0.12);
}

html.theme-v2 .faq-item--open .faq-item__chevron i {
  transform: rotate(180deg);
}

html.theme-v2 .faq-item__panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html.theme-v2 .faq-item__panel[hidden] {
  display: none;
}

html.theme-v2 .faq-item__answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  html.theme-v2 .faq-item__answer {
    padding: 0 1.35rem 1.25rem;
    font-size: 1rem;
  }
}

/* Classic theme: hide default details marker if any legacy markup remains */
.faq-item__trigger::-webkit-details-marker,
.faq-item__trigger::marker {
  display: none;
}

/* ─── Support modal (Aurora Glass v2) ─── */
html.theme-v2 .support-modal__backdrop {
  opacity: 0;
  transition: opacity 0.28s ease;
}

html.theme-v2 .support-modal--visible .support-modal__backdrop {
  opacity: 1;
}

html.theme-v2 .support-modal__card {
  transform: translateY(1.25rem) scale(0.96);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

html.theme-v2 .support-modal--visible .support-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (min-width: 640px) {
  html.theme-v2 .support-modal__card {
    transform: scale(0.94);
  }

  html.theme-v2 .support-modal--visible .support-modal__card {
    transform: scale(1);
  }
}

html.theme-v2 .support-modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

html.theme-v2 .support-modal__input,
html.theme-v2 .support-modal__textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--v2-glass-border);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: #f4f4f5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.theme-v2 .support-modal__textarea {
  min-height: 7.5rem;
  resize: vertical;
}

html.theme-v2 .support-modal__input:focus,
html.theme-v2 .support-modal__textarea:focus {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

html.theme-v2 .support-modal__close:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.65);
  outline-offset: 2px;
}

html.theme-v2 .support-modal__shell {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 639px) {
  html.theme-v2 .support-modal__card {
    max-height: min(92dvh, 720px);
    overflow-y: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-width: 1px;
    box-shadow:
      0 -12px 48px rgba(0, 0, 0, 0.55),
      0 0 48px rgba(168, 85, 247, 0.14) !important;
  }
}

/* Checkout modal — Aurora plan selection */
@keyframes v2-connect-plan-aurora-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes v2-connect-plan-aurora-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 79, 216, 0.2),
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 22px rgba(255, 79, 216, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.35),
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 30px rgba(255, 79, 216, 0.24);
  }
}

html.theme-v2 .connect-plan-option {
  position: relative;
  isolation: isolate;
}

html.theme-v2 .connect-plan-option:not(.connect-plan-option--selected)::before {
  content: none !important;
  opacity: 0 !important;
  animation: none !important;
}

html.theme-v2 .connect-plan-option:not(.connect-plan-option--selected) {
  animation: none;
}

html.theme-v2 #connectPlanPicker:not(.hidden) {
  display: flex;
  flex-direction: column;
  max-height: min(62vh, 560px);
  padding-bottom: 0;
  overflow: hidden;
}

html.theme-v2 .connect-plan-picker-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 0.35rem;
}

html.theme-v2 .connect-plan-picker-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0) 0%,
    rgba(9, 9, 11, 0.9) 24%,
    rgba(9, 9, 11, 0.98) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-v2 .connect-plan-picker-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

html.theme-v2 .connect-plan-pay-bar__price {
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  font-weight: 800;
}

html.theme-v2 .pricing-card--selectable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.theme-v2 .pricing-card--selected::after {
  content: none !important;
  animation: none !important;
}

html.theme-v2 .pricing-card:not(.pricing-card--selected) {
  animation: none;
}

html.theme-v2 .pricing-pay-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 44;
  padding: 0.55rem max(0.85rem, env(safe-area-inset-left, 0px))
    max(0.65rem, env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
  background: linear-gradient(
    180deg,
    rgba(7, 9, 16, 0) 0%,
    rgba(7, 9, 16, 0.9) 32%,
    rgba(4, 6, 12, 0.98) 100%
  );
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-v2 .pricing-pay-bar[hidden] {
  display: none !important;
}

html.theme-v2 .pricing-pay-bar__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 79, 216, 0.45);
  background: linear-gradient(
    135deg,
    rgba(255, 79, 216, 0.95) 0%,
    rgba(167, 139, 250, 0.9) 48%,
    rgba(34, 211, 238, 0.85) 100%
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(255, 79, 216, 0.25),
    0 0 20px rgba(34, 211, 238, 0.12);
  transition: transform 0.12s ease, opacity 0.18s ease;
}

html.theme-v2 .pricing-pay-bar__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

html.theme-v2 .pricing-pay-bar__btn:not(:disabled):active {
  transform: scale(0.98);
}

html.theme-v2 .pricing-pay-bar__price {
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
}

html.theme-v2 .connect-plan-option--selected {
  position: relative;
  isolation: isolate;
  border-color: transparent !important;
  transform: scale(1.02);
  animation: v2-connect-plan-aurora-glow 2.8s ease-in-out infinite;
}

html.theme-v2 .connect-plan-option--selected::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(125deg, #ff4fd8, #a78bfa, #22d3ee, #ff4fd8);
  background-size: 280% 280%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: v2-connect-plan-aurora-shimmer 3.2s ease infinite;
  pointer-events: none;
  z-index: 0;
}

html.theme-v2 .connect-plan-option--selected > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-v2 .connect-plan-option--selected,
  html.theme-v2 .connect-plan-option--selected::before {
    animation: none;
  }
}

/* Connect modal — mobile: full sheet, compact header, scrollable tariffs */
@media (max-width: 639px) {
  html.theme-v2 #connectModalShell {
    padding: 0 !important;
    align-items: flex-end !important;
    overflow: hidden !important;
  }

  html.theme-v2 #connectModalCard.pay-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 96dvh;
    min-height: 0;
    margin: 0;
    border-radius: 1.15rem 1.15rem 0 0;
    border-bottom: none;
    padding: 0.7rem 0.85rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans {
    max-height: 98dvh;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-modal-head {
    flex-shrink: 0;
    padding-bottom: 0.15rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans #connectModalTitle {
    font-size: 1.125rem !important;
    line-height: 1.15;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-modal-subtitle,
  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-trial-lead,
  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-trial-hint,
  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-picker-desc,
  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-picker-footnote {
    display: none !important;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans #connectTrialBlock {
    padding: 0.55rem 0.65rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-trial-btn {
    margin-top: 0.45rem;
    min-height: 2.65rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.95rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-trial-divider {
    margin: 0.45rem 0;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans #connectPlanPicker:not(.hidden) {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin-top: 0.35rem !important;
    padding: 0.55rem 0.65rem 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans #connectPlanPickerTitle {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-picker-body {
    flex: 1 1 auto;
    min-height: 10.5rem;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 0.35rem;
    margin-right: -0.15rem;
    padding-right: 0.15rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans #connectPlanPickerGrid {
    margin-top: 0.35rem !important;
    gap: 0.45rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-option {
    min-height: 3.5rem;
    padding: 0.6rem 0.8rem;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-option span.text-2xl {
    font-size: 1.35rem !important;
    line-height: 1.1;
  }

  html.theme-v2 #connectModalCard.connect-modal-card--plans .connect-plan-picker-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0.45rem;
  }
}

/* ─── Glow-up v29: brand mark, CTA shimmer, USP strip ─── */
html.theme-v2 .hero-brand-mark {
  position: relative;
  margin: 0 0 clamp(0.35rem, 1.2vh, 0.65rem);
  pointer-events: none;
}

html.theme-v2 .hero-brand-mark__text {
  display: inline-block;
  font-size: clamp(1.85rem, 7.5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #ff4fd8 26%,
    #f472b6 48%,
    #22d3ee 78%,
    #a5f3fc 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 79, 216, 0.45));
  animation: v2-brand-shimmer 7s linear infinite;
}

@keyframes v2-brand-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

html.theme-v2 .hero-cta-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html.theme-v2 .hero-cta-glow__shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: v2-cta-shimmer 3.6s ease-in-out infinite;
  opacity: 0.85;
}

html.theme-v2 .hero-cta-glow__label {
  position: relative;
  z-index: 1;
}

@keyframes v2-cta-shimmer {
  0% { background-position: 120% 50%; }
  100% { background-position: -40% 50%; }
}

html.theme-v2 .usp-strip {
  padding: 0.55rem 0.45rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(12, 14, 24, 0.42), rgba(6, 8, 16, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

html.theme-v2 .usp-strip .usp-strip__item,
html.theme-v2 .usp-strip .usp-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.55rem 0.4rem !important;
  border-radius: 0.75rem;
  transform: none !important;
}

html.theme-v2 .usp-strip .usp-card::before,
html.theme-v2 .usp-strip .usp-card::after {
  display: none !important;
}

html.theme-v2 .usp-strip .usp-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  transform: none !important;
  box-shadow: none !important;
}

html.theme-v2 .usp-strip .usp-card p {
  margin: 0;
  font-weight: 650;
  color: rgba(244, 244, 245, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  html.theme-v2 .hero-brand-mark__text,
  html.theme-v2 .hero-cta-glow__shimmer,
  html.theme-v2 .hero-mobile-stage .babka-character,
  html.theme-v2 .hero-mobile-stage::after {
    animation: none !important;
  }

  html.theme-v2 .hero-brand-mark__text {
    background-position: 40% 50%;
  }
}

/* ─── Glow-up v30: pricing, stats, info, auth ─── */
html.theme-v2 .pricing-section__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
}

html.theme-v2 .pricing-section__lead {
  margin: 0.65rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
}

html.theme-v2 .pricing-section__title {
  background-size: 200% 100%;
  animation: v2-brand-shimmer 8s linear infinite;
}

html.theme-v2 .pricing-card__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a7f3d0;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.25);
}

html.theme-v2 .pricing-card--featured {
  border-color: rgba(52, 211, 153, 0.55) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(52, 211, 153, 0.2),
    0 0 42px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.theme-v2 .pricing-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: v2-cta-shimmer 4.2s ease-in-out infinite;
  opacity: 0.55;
  z-index: 0;
}

html.theme-v2 .pricing-card.is-selected,
html.theme-v2 .pricing-card[aria-pressed="true"] {
  transform: translateY(-4px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 0 36px rgba(255, 79, 216, 0.18) !important;
}

html.theme-v2 .pricing-card__buy {
  position: relative;
  overflow: hidden;
}

html.theme-v2 .site-stats-section,
html.theme-v2 .site-info-section {
  background: transparent;
}

html.theme-v2 .site-stat-card {
  position: relative;
  min-width: 0;
  padding: 1.25rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(12, 14, 24, 0.78), rgba(6, 8, 16, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

html.theme-v2 .site-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 60%);
  pointer-events: none;
}

html.theme-v2 .site-stat-card__value {
  position: relative;
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, #a5f3fc, #22d3ee 45%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.theme-v2 .site-stat-card__label {
  position: relative;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
}

html.theme-v2 .site-info-card {
  position: relative;
  min-width: 0;
  padding: 1.35rem 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(12, 14, 24, 0.82), rgba(6, 8, 16, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

html.theme-v2 .site-info-card--pink {
  border-color: rgba(244, 114, 182, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(255, 79, 216, 0.08);
}

html.theme-v2 .site-info-card--cyan {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(34, 211, 238, 0.08);
}

html.theme-v2 .site-info-card h3 {
  position: relative;
  background: linear-gradient(92deg, #fff, #f0abfc 40%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.theme-v2 .auth-panel {
  position: relative;
  padding: 1.5rem 1.35rem 1.45rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 79, 216, 0.18), transparent 55%),
    radial-gradient(100% 70% at 95% 15%, rgba(34, 211, 238, 0.14), transparent 50%),
    linear-gradient(160deg, rgba(12, 10, 24, 0.94), rgba(4, 6, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.12);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.theme-v2 .auth-panel__shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.04) 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: v2-cta-shimmer 5s ease-in-out infinite;
  opacity: 0.5;
}

html.theme-v2 .auth-panel > *:not(.auth-panel__shimmer) {
  position: relative;
  z-index: 1;
}

html.theme-v2 .auth-panel__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
}

html.theme-v2 .auth-panel__title {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 0%, #f0abfc 30%, #22d3ee 75%, #a5f3fc);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: v2-brand-shimmer 7s linear infinite;
}

html.theme-v2 .auth-panel__lead {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

html.theme-v2 .auth-panel input[type="text"],
html.theme-v2 .auth-panel input[type="password"] {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(0, 0, 0, 0.42) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.theme-v2 .auth-panel input:focus {
  border-color: rgba(34, 211, 238, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

html.theme-v2 #siteHeader .header-nav-panel.header-tech {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.78), rgba(4, 6, 12, 0.88)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(34, 211, 238, 0.06) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

html.theme-v2 #siteHeader .header-nav-link:hover {
  color: #f0abfc !important;
  text-shadow: 0 0 14px rgba(255, 79, 216, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html.theme-v2 .pricing-section__title,
  html.theme-v2 .pricing-card--featured::after,
  html.theme-v2 .auth-panel__shimmer,
  html.theme-v2 .auth-panel__title {
    animation: none !important;
  }
}

/* ─── Site-wide performance pass (v31) ───
   Kill continuous paint animations; keep static neon look.
   Motion only on :hover / :focus-visible where needed. */
html.theme-v2 .hero-brand-mark__text,
html.theme-v2 .hero-cta-glow__shimmer,
html.theme-v2 .pricing-section__title,
html.theme-v2 .auth-panel__title,
html.theme-v2 .pricing-card--featured::after,
html.theme-v2 .auth-panel__shimmer,
html.theme-v2 .hero-lead-word,
html.theme-v2 .hero-lead-word::before,
html.theme-v2 .hero-lead-word::after,
html.theme-v2 .hero-title-glitch,
html.theme-v2 .hero-accent-flow__grad,
html.theme-v2 .hero-glitch-purple-half::before,
html.theme-v2 .hero-glitch-purple-half::after,
html.theme-v2 .babka-character,
html.theme-v2 .hero-mobile-stage .babka-character,
html.theme-v2 .hero-mobile-stage::after,
html.theme-v2 .header-tech-wrap--glitch-cyan-purple .header-logo,
html.theme-v2 .header-logo-icon-neon,
html.theme-v2 .babkavps-wordmark--glitch,
html.theme-v2 .babkavps-wordmark--glitch::before,
html.theme-v2 .babkavps-wordmark--glitch::after,
html.theme-v2 .connect-plan-option.is-selected,
html.theme-v2 .connect-plan-option.is-selected::after {
  animation: none !important;
}

html.theme-v2 .hero-cta-glow__shimmer,
html.theme-v2 .pricing-card--featured::after,
html.theme-v2 .auth-panel__shimmer {
  display: none !important;
}

html.theme-v2 .hero-lead-word::before,
html.theme-v2 .hero-lead-word::after {
  content: none !important;
}

html.theme-v2 .hero-brand-mark__text,
html.theme-v2 .pricing-section__title,
html.theme-v2 .auth-panel__title {
  background-size: 100% 100% !important;
  background-position: 40% 50% !important;
}

/* Drop expensive blur on large card grids (paint cost) */
html.theme-v2 .usp-card,
html.theme-v2 .usp-strip,
html.theme-v2 .feature-card,
html.theme-v2 .pricing-card,
html.theme-v2 .site-stat-card,
html.theme-v2 .site-info-card,
html.theme-v2 .happ-spotlight__panel,
html.theme-v2 .app-shot-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.theme-v2 #siteHeader .header-nav-panel.header-tech {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html.theme-v2 .auth-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Softer hover — no multi-layer glow stacks that re-composite every frame */
@media (hover: hover) and (pointer: fine) {
  html.theme-v2 .pricing-card:hover,
  html.theme-v2 #pricing .pricing-card:hover {
    transform: translateY(-3px);
  }
}

html.theme-v2 .hero-mobile-stage .babka-character {
  transform: translateX(-50%) scale(1.12) !important;
  filter:
    drop-shadow(0 0 20px rgba(255, 79, 216, 0.45))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4)) !important;
}

@media (min-width: 768px) {
  html.theme-v2 .hero-mobile-stage .babka-character {
    transform: translateX(-50%) scale(1.18) !important;
  }
}

@media (max-width: 767px) {
  html.theme-v2 .hero-mobile-stage .babka-character {
    animation: none !important;
  }

  html.theme-v2 body::before {
    background:
      radial-gradient(ellipse 90% 50% at 20% 8%, rgba(255, 79, 216, 0.26), transparent 60%),
      radial-gradient(ellipse 80% 45% at 85% 12%, rgba(34, 211, 238, 0.22), transparent 58%),
      var(--v2-bg-deep) !important;
  }

  html.theme-v2 body::after {
    opacity: 0.28 !important;
  }
}
