/* Dark theme override: fundo com degradê radial vinho e magenta */
:root {
  --background: oklch(8% 0.02 20);
  --foreground: oklch(97% 0.005 260);
  --card: oklch(24% 0.025 255);
  --card-foreground: oklch(97% 0.005 260);
  --popover: oklch(20% 0.02 255);
  --popover-foreground: oklch(97% 0.005 260);
  --secondary: oklch(22% 0.02 258);
  --secondary-foreground: oklch(97% 0.005 260);
  --muted: oklch(22% 0.02 258);
  --muted-foreground: oklch(75% 0.02 260);
  --border: oklch(32% 0.025 258);
  --input: oklch(32% 0.025 258);

  --bg-glow-start: #3a0420;
  --bg-glow-mid: #12010a;
  --bg-glow-end: #000000;
}

html,
body {
  background-color: var(--bg-glow-end);
  color: var(--foreground);
}

body {
  min-height: 100vh;
  background: radial-gradient(
      circle at 50% 0%,
      var(--bg-glow-start) 0%,
      var(--bg-glow-mid) 50%,
      var(--bg-glow-end) 100%
    ),
    radial-gradient(
      circle at 50% 0%,
      rgba(225, 20, 110, 0.24) 0%,
      transparent 45%
    );
  background-attachment: fixed;
}

/* Scroll suave e otimizações mobile */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}


img,
iframe {
  max-width: 100%;
}

/* Pop-up de upsell */
.upsell-backdrop {
  animation: upsell-backdrop-in 0.25s ease-out forwards;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.upsell-backdrop.closing {
  animation: upsell-backdrop-out 0.2s ease-in forwards;
}

.upsell-card {
  animation: upsell-card-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.upsell-card.closing {
  animation: upsell-card-out 0.2s ease-in forwards;
}

@keyframes upsell-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes upsell-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes upsell-card-in {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes upsell-card-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
}

@media (max-width: 640px) {
  main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  main section {
    margin-top: 3.5rem !important;
  }
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }
  h3 {
    font-size: 1.05rem !important;
  }
  main [class*="rounded-3xl"] {
    padding: 1.25rem !important;
  }
  main button,
  main a[class*="rounded-full"] {
    width: 100%;
    max-width: 22rem;
    font-size: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  details p,
  main p {
    overflow-wrap: anywhere;
  }

  /* Mobile upsell improvements */
  .upsell-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }
  .upsell-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }
  .upsell-card .price-main {
    font-size: 3.5rem !important;
  }
  .upsell-card .price-currency {
    font-size: 1.5rem !important;
  }
  .upsell-card a,
  .upsell-card button {
    font-size: 1rem !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
  }
}


/* --- Mobile polish pass --- */
@media (max-width: 640px) {
  main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 3.5rem !important;
  }
  main h1 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
  }
  main h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  main h3 {
    font-size: 1.125rem !important;
  }
  /* video card: keep frame thin so the player fills the screen */
  #vsl-video-wrapper {
    border-radius: 0.875rem !important;
  }
  #vsl-video-wrapper > * {
    border-radius: 0.875rem !important;
  }
  main .max-w-md > [class*="rounded-3xl"] {
    padding: 0.375rem !important;
  }
  #vsl-play-overlay > div {
    width: 64px !important;
    height: 64px !important;
  }
  main button,
  main a[class*="rounded-full"] {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    min-height: 3rem;
  }
}

@media (max-width: 640px) {
  main section:first-of-type {
    margin-top: 0 !important;
  }
}

/* Destaque suave e animado nos itens VIP */
.hl-glow {
  animation: hl-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes hl-glow-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 60, 140, 0); }
  50% { text-shadow: 0 0 10px rgba(255, 60, 140, 0.6); }
}

/* Aviso de oferta melhor abaixo */
.offer-hint-arrow { animation: hint-bounce 1.4s ease-in-out infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.offer-hint { opacity: .95; }

/* --- Paleta Doramas Ocultos: vinho, carmesim e magenta --- */
:root {
  --fire: oklch(62% 0.25 2);
  --fire-glow: oklch(68% 0.24 350);
  --ember: oklch(45% 0.2 10);
  --primary: oklch(62% 0.25 2);
  --ring: oklch(62% 0.25 2);
  --accent: oklch(68% 0.24 350);
  --card: oklch(19% 0.04 355);
  --secondary: oklch(17% 0.035 355);
  --muted: oklch(17% 0.035 355);
  --border: oklch(30% 0.06 355);
  --muted-foreground: oklch(78% 0.03 350);
  --gradient-fire: linear-gradient(135deg, oklch(40% 0.17 12), oklch(56% 0.24 5), oklch(66% 0.26 345));
  --shadow-fire: 0 10px 40px -10px oklch(60% 0.26 355 / 0.6);
  --shadow-soft: 0 4px 20px -4px oklch(60% 0.26 355 / 0.2);
}
@keyframes pulse-fire {
  0%, 100% { box-shadow: 0 0 0 0 oklch(62% 0.25 355 / 0.55); }
  50% { box-shadow: 0 0 0 18px oklch(62% 0.25 355 / 0); }
}

/* Logo em texto */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  padding: 0.5rem 0;
  font-family: 'Permanent Marker', 'Outfit', cursive;
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(-4deg);
  filter: drop-shadow(0 4px 18px oklch(60% 0.26 355 / 0.55));
}
.brand-logo__top,
.brand-logo__bottom {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-logo__top { font-size: 2.6rem; letter-spacing: 0.02em; }
.brand-logo__bottom { font-size: 2.1rem; letter-spacing: 0.04em; }
.brand-logo__heart {
  width: 0.85em;
  height: 0.85em;
  margin: 0 0.04em;
  fill: oklch(64% 0.26 355);
  animation: hl-heart 1.6s ease-in-out infinite;
}
@keyframes hl-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@media (min-width: 640px) {
  .brand-logo__top { font-size: 3.6rem; }
  .brand-logo__bottom { font-size: 2.9rem; }
}
