/* ==========================================================================
   QUIZ FUNNEL STYLES — Trilha da Bíblia em 5 Minutos
   Estilo: Gamificado + Mockups Realistas de Notícias (G1 / UOL)
   ========================================================================== */

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-glow: rgba(34, 197, 94, 0.25);

  --gold: #fbbf24;
  --gold-dark: #d97706;

  --blue: #38bdf8;
  --blue-dark: #0284c7;

  --purple: #a855f7;
  --purple-dark: #7e22ce;

  --coral: #f97316;
  --coral-dark: #c2410c;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --font-display: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-news: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 700;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.quiz-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

/* ==========================================================================
   TOP BAR & PROGRESS TRACKER (GAMIFICADA)
   ========================================================================== */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}

.quiz-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.quiz-topbar-gamified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-xp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fefce8;
  border: 1.5px solid #fde047;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 900;
  color: #854d0e;
  box-shadow: 0 2px 0 #fde047;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.quiz-xp-badge.xp-bump {
  animation: xpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes xpPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); background: #fef08a; }
  100% { transform: scale(1); }
}

.xp-star {
  font-size: 1rem;
  display: inline-block;
  animation: starSpin 3s infinite ease-in-out;
}

@keyframes starSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.1); }
}

.xp-val {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 900;
  color: #b45309;
}

.xp-lbl {
  font-size: 0.75rem;
  font-weight: 900;
  color: #a16207;
}

.quiz-sound-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 0 #cbd5e1;
  transition: all 0.15s ease;
  user-select: none;
}

.quiz-sound-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.quiz-sound-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.quiz-progress-wrap {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.quiz-progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #fbbf24);
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.quiz-step-counter {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.2rem;
}

/* ==========================================================================
   CARD PRINCIPAL DO QUIZ
   ========================================================================== */
.quiz-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 3px solid #e2e8f0;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.08);
  padding: 2.25rem 1.75rem;
  position: relative;
}

.quiz-screen {
  display: none;
  flex-direction: column;
  animation: slideFadeIn 0.3s ease forwards;
}

.quiz-screen.active {
  display: flex;
}

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

/* ==========================================================================
   TELA INICIAL (INTRO / HOOK)
   ========================================================================== */
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
  margin-bottom: 1rem;
  align-self: center;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 900;
  color: #0f172a;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.intro-title .highlight {
  color: var(--primary-dark);
  background: #dcfce7;
  padding: 0 0.3rem;
  border-radius: 6px;
}

.intro-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
}

.mascote-center-box {
  text-align: center;
  margin-bottom: 1.75rem;
}

.quiz-cover-hero {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.15);
  border: 3px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.quiz-cover-hero:hover {
  transform: scale(1.02);
}

.intro-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid #e2e8f0;
  margin: 0 auto 1.75rem;
  text-align: center;
}

/* ==========================================================================
   PERGUNTAS & OPÇÕES
   ========================================================================== */
.question-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.question-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Grid para Demografia (Gênero e Idade) */
.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gender-card {
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #94a3b8;
  transition: all 0.12s ease;
  user-select: none;
}

.gender-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 6px 0 #94a3b8;
  background: #f8fafc;
}

.gender-card:active, .gender-card.selected {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #16a34a;
  border-color: #22c55e;
  background: #f0fdf4;
}

.gender-icon {
  font-size: 3rem;
  line-height: 1;
}

.gender-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}

.option-btn {
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  box-shadow: 0 4px 0 #94a3b8;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.option-btn:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 6px 0 #94a3b8;
  background: #f8fafc;
}

.option-btn:active, .option-btn.selected {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #16a34a;
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.opt-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.opt-text {
  flex: 1;
}

/* ==========================================================================
   MOCKUP REALISTA DE PORTAIS DE NOTÍCIA (ESTILO G1 & UOL)
   ========================================================================== */
.news-mockup-frame {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.75rem;
  font-family: var(--font-news);
  text-align: left;
}

/* Header Estilo G1 */
.news-header-g1 {
  background: #c4170c;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.news-logo-g1 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.news-portal-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.g1-logo-img {
  height: 26px;
  border-radius: 4px;
}

.uol-logo-img {
  height: 26px;
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
}

.g1-badge {
  background: #ffffff;
  color: #c4170c;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: -1px;
}

.news-portal-section {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Header Estilo UOL */
.news-header-uol {
  background: #111827;
  border-bottom: 3px solid #f59e0b;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.news-logo-uol {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.uol-badge {
  background: #f59e0b;
  color: #000000;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: -0.5px;
}

.news-url-badge {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: monospace;
}

/* Conteúdo da Notícia */
.news-body-content {
  padding: 1.5rem 1.25rem;
  color: #1f2937;
}

.news-chapeu {
  font-size: 0.8rem;
  font-weight: 800;
  color: #c4170c;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.news-headline-main {
  font-size: clamp(1.25rem, 3.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.news-subheadline-lead {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: 1rem;
  font-weight: 500;
}

.news-author-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* Destaque Infográfico Real dentro da Notícia */
.news-chart-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #c4170c;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.news-chart-card.uol-border {
  border-left-color: #f59e0b;
}

.news-chart-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-bar-row {
  margin-bottom: 0.75rem;
}

.news-bar-row:last-child {
  margin-bottom: 0;
}

.news-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.25rem;
}

.news-bar-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.news-bar-fill-red {
  height: 100%;
  width: 18%;
  background: #dc2626;
  border-radius: var(--radius-full);
}

.news-bar-fill-blue {
  height: 100%;
  width: 82%;
  background: #2563eb;
  border-radius: var(--radius-full);
}

.news-bar-fill-orange {
  height: 100%;
  width: 94%;
  background: #ea580c;
  border-radius: var(--radius-full);
}

.news-quote-box {
  background: #eff6ff;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #1e40af;
  font-style: italic;
  line-height: 1.45;
  border: 1px solid #dbeafe;
}

/* ==========================================================================
   TELA DE PROCESSAMENTO / ANÁLISE DO PERFIL (GAMIFICADA)
   ========================================================================== */
.analysis-screen {
  text-align: center;
  padding: 1.5rem 0;
}

.loader-spinner-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px solid #e2e8f0;
  border-top-color: #22c55e;
  border-right-color: #fbbf24;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

.analysis-percent-badge {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #15803d;
  z-index: 2;
  user-select: none;
}

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

.analysis-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.analysis-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Barra Dinâmica de Análise */
.analysis-progress-track {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin: 0 auto 1.75rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.analysis-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #fbbf24, #f97316);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.analysis-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.analysis-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #94a3b8;
  opacity: 0.35;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-4px);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.analysis-step-item.done {
  color: #15803d;
  opacity: 1;
  transform: translateX(0);
  background: #f0fdf4;
  border-color: #bbf7d0;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.12);
}

.analysis-step-item .step-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.analysis-step-item.done .step-icon {
  transform: scale(1.2);
}

/* ==========================================================================
   TOAST FLUTUANTE DE RECOMPENSA (+50 XP)
   ========================================================================== */
.floating-xp-toast {
  position: fixed;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.5), 0 0 0 2px #ffffff;
  pointer-events: none;
  animation: floatUpReward 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatUpReward {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translateY(-5px) scale(1.15);
  }
  40% {
    transform: translateY(-15px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
}

/* Canvas de Confetes em Tela Cheia */
.quiz-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999998;
  display: none;
}

/* ==========================================================================
   FORMULÁRIO DE CAPTURA (LEAD + PIXEL ENRICHMENT)
   ========================================================================== */
.lead-capture-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.lead-badge {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid #eab308;
  margin-bottom: 0.75rem;
}

.lead-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.lead-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
}

.form-input {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 2px solid #cbd5e1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

/* ==========================================================================
   TELA DE RESULTADO PERSONALIZADO + OFERTA
   ========================================================================== */
.result-profile-card {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.profile-tag {
  display: inline-block;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #166534;
  margin-bottom: 0.5rem;
}

.profile-demographic-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.demo-chip {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
}

.profile-summary {
  font-size: 0.95rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.85rem;
  line-height: 1.5;
  font-weight: 600;
}

.solution-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.solution-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.solution-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   CARD DE OFERTA ULTRA PERSUASIVA (HIGH CONVERTING RESULT)
   ========================================================================== */
.quiz-urgency-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  animation: pulse-urgent 2s infinite;
}

.quiz-timer-digit {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 1px;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.quiz-offer-card {
  background: #ffffff;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 24px -6px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(34, 197, 94, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.quiz-offer-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem;
}

.quiz-bonus-stack {
  text-align: left;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.25rem 0;
}

.quiz-bonus-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-bonus-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.quiz-bonus-item:last-child {
  margin-bottom: 0;
}

.bonus-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.bonus-old-price {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: auto;
  white-space: nowrap;
}

.quiz-price-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin: 1.25rem 0;
}

.quiz-price-anchor {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
}

.quiz-price-old {
  font-size: 1.05rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 800;
}

.quiz-price-new {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  margin: 0.3rem 0;
}

.quiz-price-new span {
  font-size: 1.6rem;
}

.quiz-price-daily {
  display: inline-block;
  background: #fef08a;
  color: #854d0e;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.3rem;
}

.quiz-guarantee-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: left;
  margin-top: 1.25rem;
}

.guarantee-badge-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.guarantee-text h4 {
  font-size: 0.85rem;
  font-weight: 900;
  color: #1c1917;
  margin-bottom: 0.15rem;
}

.guarantee-text p {
  font-size: 0.75rem;
  color: #78716c;
  line-height: 1.3;
}

/* Botão Menor Cinza (Downsell Trigger) */
.btn-downsell-trigger {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  transition: all 0.2s;
}

.btn-downsell-trigger:hover {
  color: #0f172a;
  transform: translateY(-1px);
}

/* ==========================================================================
   POPUP MODAL DE DESCONTO EXTRA (+20% OFF)
   ========================================================================== */
.discount-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.discount-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.discount-modal-card {
  background: #ffffff;
  border: 3px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.4);
  animation: slideUp 0.25s ease-out;
}

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

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

.modal-close-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #0f172a;
}

.modal-alert-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.modal-discount-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.modal-price-old {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 800;
}

.modal-price-new {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: #d97706;
  line-height: 1;
  margin: 0.2rem 0;
}

.modal-price-new span {
  font-size: 1.4rem;
}

.modal-timer-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #dc2626;
  margin-top: 0.4rem;
}

.btn-laranja {
  background: #f59e0b;
  --btn-shadow: #d97706;
  color: #ffffff;
}

/* ==========================================================================
   BOTÃO 3D TÁTIL
   ========================================================================== */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.1rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.12s ease;
  user-select: none;
  box-shadow: 0 6px 0 var(--btn-shadow);
  color: #ffffff;
  text-decoration: none;
}

.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--btn-shadow);
}

.btn-3d:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--btn-shadow);
}

.btn-verde-quiz,
.btn-verde {
  background: #22c55e;
  --btn-shadow: #16a34a;
}

.btn-ouro {
  background: var(--gold);
  --btn-shadow: var(--gold-dark);
  color: #78350f;
}

.btn-pulse {
  animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 0 var(--btn-shadow); }
  50% { box-shadow: 0 6px 0 var(--btn-shadow), 0 0 20px rgba(34, 197, 94, 0.4); }
}

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

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 480px) {
  .quiz-wrapper {
    padding: 0.75rem 1rem 2rem;
  }

  .quiz-card {
    padding: 1.5rem 1.15rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .quiz-price-new {
    font-size: 2.5rem;
  }

  .news-headline-main {
    font-size: 1.2rem;
  }
}
