/* =========================================================
   RESET & BASE MÍSTICA DARK
   ========================================================= */
* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  background: radial-gradient(circle at 50% 10%, #4a0028 0%, #240011 45%, #070005 100%);
  color: #f8f2f6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 14px;
  position: relative;
}

/* Brilho de fundo sutil */
body::before {
  content: "";
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 119, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   CONTAINER PRINCIPAL (GLASSMORPHISM)
   ========================================================= */
.container {
  position: relative;
  z-index: 1;
  background: rgba(22, 4, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px 26px;
  border-radius: 22px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(255, 0, 119, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.badge-topo {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffb3d9;
  background: rgba(255, 0, 119, 0.16);
  border: 1px solid rgba(255, 105, 180, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.titulo-principal {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  font-weight: 800;
  margin: 4px 0 10px;
  background: linear-gradient(135deg, #ffffff 0%, #ffb3d9 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.subtitulo-form {
  font-size: 1rem;
  color: #e2cbd8;
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 400px;
}

strong {
  color: #ffd700;
  font-weight: 700;
}

/* =========================================================
   FORMULÁRIO E INPUTS
   ========================================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.input-group {
  width: 100%;
}

input {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  color: #1a000d;
  text-align: center;
  padding: 15px 16px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 12px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

input::placeholder {
  text-align: center;
  color: #8c7381;
  font-weight: 500;
}

input:focus {
  border-color: #ff0077;
  box-shadow: 0 0 18px rgba(255, 0, 119, 0.45);
  transform: translateY(-1px);
}

.btn-principal {
  background: linear-gradient(135deg, #ff0077 0%, #b80054 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 24px;
  border: 1px solid rgba(255, 180, 215, 0.4);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 0, 119, 0.35);
  margin-top: 4px;
}

.btn-principal:hover {
  background: linear-gradient(135deg, #ff1a84 0%, #d40062 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 119, 0.55);
}

.btn-refazer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 105, 180, 0.35);
  color: #ffc2e0;
  font-size: 0.9rem;
  padding: 10px 18px;
  box-shadow: none;
  margin: 0 auto 10px;
  max-width: 240px;
}

.btn-refazer:hover {
  background: rgba(255, 0, 119, 0.2);
}

.hidden {
  display: none !important;
}

/* =========================================================
   TELA DE CARREGAMENTO SUAVE
   ========================================================= */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1f0010 0%, #000000 85%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding: 20px;
}

#loading-screen.visible {
  opacity: 1;
}

#loading-gif {
  width: 80%;
  max-width: 320px;
  border-radius: 16px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  box-shadow: 0 0 35px rgba(255, 0, 119, 0.4);
}

.progress-container {
  width: 85%;
  max-width: 380px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 105, 180, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 119, 0.25);
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff0077, #ff69b4, #ffd700);
  transition: width 0.1s linear;
}

#progress-text {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 14px 0 4px;
  font-weight: 800;
  font-family: 'Cinzel', serif;
}

.loading-subtitle {
  color: #ffb3d9;
  margin-top: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-align: center;
}

/* =========================================================
   RESULTADO E CARTAS FLIP 3D
   ========================================================= */
.resultado {
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.resultado.visible {
  opacity: 1;
}

#destino-texto {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #fff;
  animation: brilho 1.8s infinite alternate;
}

@keyframes brilho {
  from { text-shadow: 0 0 6px rgba(255, 255, 255, 0.6); }
  to { text-shadow: 0 0 22px #ff0077, 0 0 10px #ffd700; }
}

.dica-toque {
  font-size: 0.9rem;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px dashed rgba(255, 215, 0, 0.4);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 4px 0 14px;
  animation: pulsarLeve 1.6s infinite ease-in-out;
}

@keyframes pulsarLeve {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

.arcano {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
  margin: 14px 0 22px;
}

.nome-carta-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffb3d9;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  transition: all 0.4s ease;
}

.nome-carta-label.revelado {
  color: #ffd700;
  font-size: 1.15rem;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.flip-card {
  width: 155px;
  height: 235px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.flip-card:hover {
  transform: translateY(-4px);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.85s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 0, 119, 0.35);
}

.flip-front {
  transform: rotateY(180deg);
}

.flip-back img, .flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
}

/* =========================================================
   MINI TEXTO DO ARCANO (ABAIXO DA CARTA)
   ========================================================= */
.resumo-arcano {
  margin-top: 20px;
  background: linear-gradient(145deg, rgba(255, 0, 119, 0.14) 0%, rgba(20, 0, 12, 0.85) 100%);
  border: 1px solid rgba(255, 105, 180, 0.45);
  border-left: 4px solid #ffd700;
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 460px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.resumo-arcano p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #fff5fa;
  font-weight: 500;
  text-align:center;
}

.resumo-animado {
  animation: subirSuave 0.9s ease-out forwards;
}

/* =========================================================
   SEÇÃO CALL TO ACTION (VENDAS)
   ========================================================= */
#call-to-action {
  text-align: center;
  margin-top: 40px;
  margin-left: -14px;
  margin-right: -14px;
  padding: 32px 22px;
  background: linear-gradient(180deg, #12020b 0%, #080005 100%);
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
}

.ebook-large {
    width: 210%;
    max-width: 100%;
    display: block;
    /* margin-left: -55%; */
    /* margin-top: -55px; */
    margin-bottom: 22px;
    border-radius: 13px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cta-titulo {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  line-height: 1.35;
  margin: 0 0 24px;
  color: #ffffff;
}

#span-nome-arcano {
  color: #ff69b4;
  font-style: normal;
  text-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

.destaque-rosa {
  color: #ff69b4 !important;
}

.cta-copy p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #f0dce7;
  max-width: 680px;
  margin: 0 auto 18px;
  text-align: center;
}

.cta-destaque-box {
  background: rgba(255, 0, 119, 0.12);
  border: 1px solid rgba(255, 105, 180, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px auto;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 0, 119, 0.15);
}

.cta-pergunta {
  text-align: center !important;
  font-size: 1.12rem !important;
  font-weight: 700;
  color: #ff69b4 !important;
  margin: 26px auto 18px !important;
}

.cta-frase-final {
  text-align: center !important;
  font-size: 1.15rem !important;
  margin: 26px auto 10px !important;
  color: #ffffff !important;
}

.btn-compra {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #ff0077 0%, #d40055 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  padding: 18px 26px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 0, 119, 0.5);
  animation: pulsarBotao 2s infinite;
}

.btn-compra strong {
  color: #ffffff;
}

.btn-compra:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(255, 0, 119, 0.75);
}

@keyframes pulsarBotao {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 0, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0); }
}

.cta-oculto {
  display: none !important;
}

.cta-animado {
  animation: subirSuave 1.2s ease-out forwards;
}

@keyframes subirSuave {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsividade Mobile */
@media (max-width: 480px) {
  .container {
    padding: 24px 18px;
  }
  .titulo-principal {
    font-size: 1.8rem;
  }
  #call-to-action {
    margin-left: -8px;
    margin-right: -8px;
    padding: 26px 16px;
  }
  .cta-titulo {
    font-size: 1.4rem;
  }
  .cta-copy p {
    font-size: 0.98rem;
  }
}
