/* ============================================================================
   POTUDO FF — IDENTIDADE VISUAL (PRETO, VERMELHO & BRANCO)
   Estrutura centralizada estilo link na bio, otimizada para TikTok mobile.
   ============================================================================ */

:root {
  --bg-black: #050507;
  --surface-card: rgba(16, 16, 21, 0.9);
  --surface-card-hover: rgba(25, 20, 26, 0.95);
  --surface-unavailable: rgba(14, 14, 18, 0.72);

  --red: #dc1424;
  --red-deep: #6b0912;
  --red-border: rgba(220, 20, 36, 0.34);
  --red-border-strong: rgba(220, 20, 36, 0.68);
  --red-glow: rgba(220, 20, 36, 0.14);

  --discord: #5865f2;
  --discord-border: rgba(88, 101, 242, 0.45);
  --discord-border-strong: rgba(88, 101, 242, 0.82);
  --discord-glow: rgba(88, 101, 242, 0.18);

  --whatsapp: #25d366;
  --whatsapp-border: rgba(37, 211, 102, 0.45);
  --whatsapp-border-strong: rgba(37, 211, 102, 0.82);
  --whatsapp-glow: rgba(37, 211, 102, 0.18);

  --white: #ffffff;
  --text-secondary: #b6b6c2;
  --text-muted: #767684;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  position: relative;
}

a,
button {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* ----------------------------------------------------------------------------
   FUNDO COM PROFUNDIDADE (FORMAS 3D, ONDA, LUZ DIFUSA E PARTÍCULAS)
   ---------------------------------------------------------------------------- */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  perspective: 900px;
}

.bg-light {
  position: absolute;
  border-radius: 50%;
}

.bg-light--top {
  width: min(580px, 120vw);
  height: min(580px, 120vw);
  top: -240px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  background: radial-gradient(circle, rgba(220, 20, 36, 0.18) 0%, rgba(220, 20, 36, 0.06) 36%, rgba(220, 20, 36, 0) 68%);
}

.bg-light--bottom {
  width: min(480px, 100vw);
  height: min(480px, 100vw);
  bottom: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(140, 12, 24, 0.15) 0%, rgba(140, 12, 24, 0.04) 40%, rgba(140, 12, 24, 0) 70%);
}

/* Formas geométricas 3D discretas em vermelho escuro */
.bg-geo {
  position: absolute;
  border: 1px solid rgba(180, 16, 30, 0.18);
  background: linear-gradient(145deg, rgba(107, 9, 18, 0.16), rgba(15, 5, 7, 0.04));
  will-change: transform;
}

.bg-geo--hex {
  width: 148px;
  height: 148px;
  top: 12%;
  left: -44px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  animation: driftHex 24s ease-in-out infinite alternate;
}

.bg-geo--diamond {
  width: 112px;
  height: 112px;
  top: 38%;
  right: -36px;
  border-radius: 16px;
  animation: driftDiamond 28s ease-in-out infinite alternate;
}

.bg-geo--prism {
  width: 160px;
  height: 160px;
  bottom: 14%;
  left: 8%;
  clip-path: polygon(50% 6%, 96% 88%, 4% 88%);
  opacity: 0.55;
  animation: driftPrism 32s ease-in-out infinite alternate;
}

.bg-wave {
  position: absolute;
  bottom: -12px;
  left: -10%;
  width: 120%;
  height: 220px;
  fill: rgba(107, 9, 18, 0.14);
  animation: driftWave 22s ease-in-out infinite alternate;
  will-change: transform;
}

#bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-paused .bg-geo,
.bg-paused .bg-wave {
  animation-play-state: paused !important;
}

@keyframes driftHex {
  0% { transform: rotateX(22deg) rotateY(-18deg) rotateZ(0deg) translateY(0); }
  100% { transform: rotateX(34deg) rotateY(14deg) rotateZ(24deg) translateY(22px); }
}

@keyframes driftDiamond {
  0% { transform: rotate(45deg) rotateX(18deg) translateY(0); }
  100% { transform: rotate(62deg) rotateX(36deg) translateY(-24px); }
}

@keyframes driftPrism {
  0% { transform: rotateY(-16deg) rotateZ(-8deg) translateX(0); }
  100% { transform: rotateY(22deg) rotateZ(12deg) translateX(18px); }
}

@keyframes driftWave {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-4%) translateY(8px); }
}

/* ----------------------------------------------------------------------------
   COLUNA CENTRAL (LINK NA BIO)
   ---------------------------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(20px, env(safe-area-inset-top))
    16px
    max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen {
  width: 100%;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.screen--active {
  opacity: 1;
  transform: translateY(0);
}

.screen--hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   TELA 1: PÁGINA INICIAL
   ---------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  animation: enterFade 0.28s var(--ease) both;
}

.hero__logo-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 2px;
  border: 1.5px solid var(--red-border-strong);
  box-shadow: 0 8px 24px rgba(220, 20, 36, 0.22);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-black);
}

.hero__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--white);
}

.hero__subtitle {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* Símbolos sociais estilo Beacons abaixo do nome e imagem */
.hero__socials {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: transform 0.15s var(--ease), border-color 0.18s ease, background-color 0.18s ease;
}

a.social-pill:hover {
  border-color: var(--red-border-strong);
  background: rgba(220, 20, 36, 0.14);
  transform: translateY(-1px);
}

.hero__prompt {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-secondary);
}

/* Empilhamento vertical fixo em qualquer tamanho de tela */
.channel-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.channel-card {
  width: 100%;
  height: 86px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--red-border);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 22px -6px var(--red-glow);
  text-align: left;
  transition:
    transform 0.16s var(--ease),
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  animation: enterCard 0.38s var(--ease) both;
}

.channel-card:nth-child(1) { animation-delay: 0.04s; }
.channel-card:nth-child(2) { animation-delay: 0.09s; }
.channel-card:nth-child(3) { animation-delay: 0.14s; }

/* Cor por canal: Discord (azul), WhatsApp (verde), Site (vermelho) */
.channel-card--discord {
  border-color: var(--discord-border);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 24px -5px var(--discord-glow);
}

.channel-card--discord:not(.channel-card--unavailable):hover {
  background: rgba(20, 22, 34, 0.94);
  border-color: var(--discord-border-strong);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.65),
    0 0 28px -4px rgba(88, 101, 242, 0.28);
}

.channel-card--discord:not(.channel-card--unavailable):active {
  transform: scale(0.98);
  border-color: var(--discord);
}

.channel-card--discord .channel-card__icon {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.34);
  color: var(--discord);
}

.channel-card--discord .channel-card__arrow {
  color: var(--discord);
}

.channel-card--whatsapp {
  border-color: var(--whatsapp-border);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 24px -5px var(--whatsapp-glow);
}

.channel-card--whatsapp:not(.channel-card--unavailable):hover {
  background: rgba(16, 26, 21, 0.94);
  border-color: var(--whatsapp-border-strong);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.65),
    0 0 28px -4px rgba(37, 211, 102, 0.28);
}

.channel-card--whatsapp:not(.channel-card--unavailable):active {
  transform: scale(0.98);
  border-color: var(--whatsapp);
}

.channel-card--whatsapp .channel-card__icon {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.34);
  color: var(--whatsapp);
}

.channel-card--whatsapp .channel-card__arrow {
  color: var(--whatsapp);
}

.channel-card--site {
  border-color: rgba(220, 20, 36, 0.45);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.52),
    0 0 24px -5px rgba(220, 20, 36, 0.2);
}

.channel-card--site:not(.channel-card--unavailable):hover {
  background: var(--surface-card-hover);
  border-color: var(--red-border-strong);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.65),
    0 0 28px -4px rgba(220, 20, 36, 0.3);
}

.channel-card--site:not(.channel-card--unavailable):active {
  transform: scale(0.98);
  background: rgba(28, 18, 22, 0.94);
  border-color: var(--red);
}

.channel-card--site .channel-card__icon {
  background: rgba(220, 20, 36, 0.12);
  border-color: rgba(220, 20, 36, 0.34);
  color: var(--red);
}

.channel-card--site .channel-card__arrow {
  color: var(--red);
}

.channel-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.channel-card--unavailable {
  cursor: not-allowed;
  background: var(--surface-unavailable);
  border-color: var(--border-subtle);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0.68;
}

.channel-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(220, 20, 36, 0.1);
  border: 1px solid rgba(220, 20, 36, 0.26);
  color: var(--red);
}

.channel-card--unavailable .channel-card__icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.channel-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-card__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.channel-card__desc {
  font-size: 0.82rem;
  line-height: 1.32;
  color: var(--text-secondary);
}

.channel-card__arrow {
  flex-shrink: 0;
  color: var(--red);
  display: grid;
  place-items: center;
  transition: transform 0.18s var(--ease);
}

.channel-card:not(.channel-card--unavailable):hover .channel-card__arrow {
  transform: translateX(3px);
}

.channel-card__status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes enterFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enterCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------------------
   TELA 2 & 3: LOJA INTEGRADA E DEMONSTRAÇÃO
   ---------------------------------------------------------------------------- */

#view-store,
#view-demo {
  align-self: stretch;
}

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 11px;
  background: var(--surface-card);
  border: 1px solid var(--red-border);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s var(--ease), border-color 0.2s ease, background-color 0.2s ease;
}

.back-btn svg {
  color: var(--red);
}

.back-btn:hover {
  border-color: var(--red-border-strong);
  background: var(--surface-card-hover);
}

.back-btn:active {
  transform: scale(0.96);
}

.screen-bar__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.products-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--red-border);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.56),
    0 0 24px -8px var(--red-glow);
  overflow: hidden;
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #09090c;
  border-bottom: 1px solid rgba(220, 20, 36, 0.22);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Capa tipográfica provisória em preto e vermelho */
.cover-typo {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 88% 18%, rgba(220, 20, 36, 0.24), transparent 55%),
    linear-gradient(155deg, #0b0b0f 0%, #050507 100%);
  position: relative;
}

.cover-typo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(220, 20, 36, 0.24);
  border-radius: 10px;
  pointer-events: none;
}

.cover-typo__brand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.cover-typo__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.product-card__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
}

.product-card__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.product-card__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.product-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.38;
  color: #e4e4ec;
}

.product-card__benefits svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}

.product-card__compat {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.product-card__compat strong {
  color: var(--white);
  font-weight: 600;
}

.product-card__footer {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--white);
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.15s var(--ease), background-color 0.2s ease;
}

.btn-checkout:hover {
  background: #eb1b2c;
}

.btn-checkout:active {
  transform: scale(0.97);
}

.btn-checkout--unavailable {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-checkout--unavailable:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Player de vídeo dentro do quadro do produto */
.inline-demo__cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.inline-demo__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-demo__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, 0.78);
  border: 1.5px solid var(--red);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}

.inline-demo__play-icon svg {
  margin-left: 3px;
}

.inline-demo__cover:hover .inline-demo__play-icon {
  background: rgba(220, 20, 36, 0.9);
  transform: translate(-50%, -50%) scale(1.06);
}

.inline-demo__cover:active .inline-demo__play-icon {
  transform: translate(-50%, -50%) scale(0.95);
}

.inline-demo__cover:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.inline-demo__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

/* Painel interno somente se ?analytics=1 */
.analytics-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid var(--red-border);
  font-size: 0.84rem;
}

.analytics-panel__title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.analytics-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.analytics-stat {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.analytics-stat span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.analytics-stat strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

/* ----------------------------------------------------------------------------
   OTIMIZAÇÃO PARA CELULARES COMPACTOS (ACIMA DA DOBRA)
   ---------------------------------------------------------------------------- */

@media (max-height: 700px) and (max-width: 600px) {
  .shell {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  .hero {
    margin-bottom: 14px;
  }

  .hero__logo-ring {
    width: 62px;
    height: 62px;
    margin-bottom: 8px;
  }

  .hero__socials {
    margin-top: 8px;
    gap: 10px;
  }

  .social-pill {
    width: 32px;
    height: 32px;
  }

  .hero__prompt {
    margin-top: 10px;
    font-size: 0.84rem;
  }

  .channel-stack {
    gap: 9px;
  }

  .channel-card {
    height: 74px;
    padding: 0 14px;
    gap: 12px;
  }

  .channel-card__icon {
    width: 38px;
    height: 38px;
  }
}

/* ----------------------------------------------------------------------------
   JANELA DE SELEÇÃO DE SISTEMA (ANDROID / iOS)
   ---------------------------------------------------------------------------- */

.os-backdrop[hidden],
.checkout-stage[hidden],
.checkout-loading[hidden],
.checkout-fallback[hidden] {
  display: none !important;
}

.os-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: enterFade 0.18s var(--ease);
}

.os-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 26px 20px 22px;
  border-radius: 18px;
  background: rgba(14, 14, 19, 0.96);
  border: 1px solid var(--red-border-strong);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.82),
    0 0 30px -8px rgba(220, 20, 36, 0.25);
  text-align: center;
}

.os-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.os-dialog__close:hover {
  color: var(--white);
  background: rgba(220, 20, 36, 0.2);
}

.os-dialog__product {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0 28px;
}

.os-dialog__question {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--white);
}

.os-options {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.os-btn {
  height: 92px;
  padding: 14px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--red-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.15s var(--ease),
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.os-btn:hover {
  background: var(--surface-card-hover);
  border-color: var(--red-border-strong);
}

.os-btn:active {
  transform: scale(0.97);
}

.os-btn__icon {
  color: var(--red);
  display: grid;
  place-items: center;
}

.os-btn__label {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--white);
}

/* ----------------------------------------------------------------------------
   ÁREA DE CHECKOUT INCORPORADA (MESMA ABA E URL, ROLÁVEL NO CELULAR)
   ---------------------------------------------------------------------------- */

.checkout-stage {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  animation: enterFade 0.2s var(--ease);
}

body.checkout-open {
  overflow: hidden;
}

.checkout-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    12px;
  background: rgba(10, 10, 14, 0.94);
  border-bottom: 1px solid var(--red-border);
}

.checkout-topbar__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-body {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0a0a0c;
}

.checkout-frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.checkout-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #0a0a0c;
}

.checkout-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 5, 7, 0.9);
  font-size: 0.9rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.checkout-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(220, 20, 36, 0.25);
  border-top-color: var(--red);
  animation: spin 0.75s linear infinite;
}

.checkout-fallback {
  padding: 36px 20px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.checkout-fallback__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.checkout-fallback__desc {
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #bg-particles,
  .bg-geo,
  .bg-wave {
    animation: none !important;
  }
}
