/* Base & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #3008a1;
  color: #ffffff;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px 120px 16px;
  -webkit-font-smoothing: antialiased;
}

/* Páginas VSL (vsl.html, vsl-nodelay.html, desconto.html) em layout de bloco vertical continuo */
body.page-vsl {
  padding: 0 !important;
  margin: 0 !important;
  background-color: #3008a1 !important;
  display: block !important;
  width: 100% !important;
  min-height: 100vh !important;
}

.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Header Logo */
.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 14px 0;
}

.header-logo img {
  width: 125px;
  height: auto;
}

/* Steps Display Control (Para Quiz) */
.step {
  display: none;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.step.active {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quiz Top Progress Bar */
.quiz-progress-wrapper {
  width: 100%;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  margin: 2px 0 6px 0;
}

.quiz-progress-fill {
  height: 100%;
  background-color: #e9ba2f;
  border-radius: 8px;
  transition: width 0.3s ease-in-out;
}

/* Typography Helpers */
.title-main {
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.subtitle {
  font-size: 18px;
  text-align: center;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 500;
}

.banner-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 16px;
  margin: 0 auto;
  display: block;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  background-color: rgb(0, 130, 230);
  border: 1.5px solid #ffffff;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 4px 18px rgba(0, 130, 230, 0.45);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Gold CTA Button Style */
.btn-gold {
  background: linear-gradient(135deg, #e9ba2f 0%, #c9961a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 20px rgba(233, 186, 47, 0.5) !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  70% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Fixed Bottom Floating Bar */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 16px 20px 24px 20px;
  background: linear-gradient(to top, #3008a1 82%, rgba(48, 8, 161, 0));
  display: flex;
  justify-content: center;
  align-items: center;
}

.fixed-bottom .fixed-inner {
  width: 100%;
  max-width: 440px;
}

.landing-content {
  padding-bottom: 90px;
}

/* Quiz Option Buttons */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background-color: rgb(0, 130, 230);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.option-btn:hover, .option-btn:active {
  background-color: rgb(0, 115, 210);
  transform: translateY(-2px);
}

.option-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

/* Loading Cascade Animation & Progress Bar */
.cascade-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cascade-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cascade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  height: 16px;
  overflow: hidden;
  position: relative;
  margin: 16px 0 6px 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e9ba2f, #f0d080);
  border-radius: 10px;
  transition: width 0.15s linear;
}

.progress-text {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 6px;
}

/* Tarot Cards Grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  padding: 10px 0 90px;
}

.cs-card {
  width: 100%;
  aspect-ratio: 1 / 1.65;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.cs-card.cs-inactive {
  opacity: 0.35;
  filter: brightness(0.6);
  pointer-events: none;
  cursor: default;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.cs-card.cs-done {
  pointer-events: none;
  cursor: default;
}

.cs-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 7px;
}

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

.cs-back, .cs-front {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.cs-back {
  border: 1.5px solid #C9A84C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cs-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-front {
  transform: rotateY(180deg);
  border: 2px solid #C9A84C;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5), 0 6px 20px rgba(0, 0, 0, 0.55);
  background: #F5EDD8;
}

.cs-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #C9A84C;
  color: #0A0710;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.4s ease 0.6s;
}

.cs-card.cs-flipped .cs-badge {
  opacity: 1;
}

.cs-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  animation: cs-spark var(--dur, 0.9s) ease forwards var(--delay, 0s);
}

@keyframes cs-spark {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx,0), var(--ty,0)) scale(0); }
}

/* ------------------------------------------------------------- */
/* ESTRUTURA NATIVA VERTICAL DAS PÁGINAS VSL */
/* ------------------------------------------------------------- */

/* Parte Superior da VSL (Fundo Roxo Principal) */
.vsl-top-wrapper {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 16px 16px 24px 16px !important;
  background-color: #3008a1 !important;
  display: block !important;
  text-align: center !important;
}

.vsl-video-container {
  width: 100% !important;
  margin-top: 10px !important;
}

vturb-smartplayer {
  box-shadow: none !important;
  border: none !important;
  border-radius: 16px !important;
  background: transparent !important;
}

.vsl-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133.3%;
  cursor: pointer;
}

.vsl-thumb-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Parte Inferior da VSL (Fundo 100% Branco Full Bleed) */
.vsl-bottom-white {
  width: 100% !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
  padding: 32px 0 80px 0 !important;
  display: block !important;
}

.vsl-white-content {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  display: block !important;
}

/* Checkout */
.checkout-container {
  width: 100% !important;
  background: transparent !important;
  color: #1f2937 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  text-align: left !important;
}

/* Banner de Desconto do Back Redirect */
.checkout-discount-banner {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%) !important;
  border: 2px dashed #ef4444 !important;
  color: #1f2937 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  font-size: 15px !important;
  text-align: center !important;
  margin-bottom: 22px !important;
  line-height: 1.5 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12) !important;
}

.checkout-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
}

.checkout-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-tab-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  background-color: #f9fafb;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.checkout-tab-btn.active {
  border-color: rgb(0, 130, 230);
  background-color: #eff6ff;
  color: rgb(0, 130, 230);
  box-shadow: 0 0 0 2px rgba(0, 130, 230, 0.2);
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.checkout-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease;
  color: #111827;
  background: #ffffff;
}

.checkout-input:focus {
  border-color: rgb(0, 130, 230);
  box-shadow: 0 0 0 3px rgba(0, 130, 230, 0.15);
}

.price-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-bottom: 18px;
}

.price-main {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
}

.price-desc {
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}

.btn-submit-checkout {
  width: 100%;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

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

/* Pix QR Code Display Box */
.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f0fdf4;
  border: 2px dashed #16a34a;
  border-radius: 16px;
  padding: 20px 16px;
  margin-top: 16px;
}

.pix-qr-img {
  width: 220px;
  height: 220px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  margin: 12px 0;
  background: #ffffff;
}

.pix-code-input {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  font-family: monospace;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  margin-bottom: 12px;
  text-align: center;
}

.btn-copy {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background-color: #16a34a;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.pix-timer {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  margin-top: 10px;
}

/* Divisor entre checkout e depoimentos */
.white-section-divider {
  width: 100% !important;
  height: 1px !important;
  border-top: 1px solid #e5e7eb !important;
  margin: 36px 0 32px 0 !important;
  display: block !important;
  clear: both !important;
}

/* Depoimentos */
.testimonials-container {
  width: 100%;
  background: transparent !important;
  color: #374151;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  text-align: left;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar-img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1.5px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-name-box {
  font-size: 14.5px;
  color: #1f2937;
  font-weight: 700;
}

.testimonial-stars {
  font-size: 15px;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 4px;
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed #d1d5db;
  margin: 18px 0;
}

.security-badge-box {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
