@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-dark: #071E19;      /* Verde cirúrgico/clínico ultra escuro */
  --primary-green: #0D2C24;     /* Verde institucional luxo */
  --primary-medium: #1A4338;    /* Verde secundário */
  --accent-gold: #C59B27;       /* Dourado metálico elegante */
  --accent-gold-hover: #AA821A;
  --bg-light: #F4F6F5;          /* Off-white suave com toque esverdeado */
  --bg-card: #FFFFFF;
  --text-dark: #1F2937;         /* Cinza escuro para melhor legibilidade */
  --text-muted: #556B64;        /* Verde acinzentado sutil */
  --text-light: #FFFFFF;
  --border-color: #E2E8F0;
  --accent-gold-alpha: rgba(197, 155, 39, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(13, 44, 36, 0.08), 0 4px 6px -2px rgba(13, 44, 36, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(13, 44, 36, 0.15);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: var(--primary-dark);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--accent-gold);
}

.header-container {
  max-width: 600px;
  margin: 0 auto;
}

.clinic-logo {
  font-family: var(--font-title);
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.clinic-logo span {
  color: var(--accent-gold);
}

.clinic-tagline {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0.25rem;
}

/* Main Container */
main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

.quiz-container {
  width: 100%;
  max-width: 580px;
  background-color: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 44, 36, 0.05);
}

@media (max-width: 480px) {
  main {
    padding: 1rem 0.5rem;
  }
  .quiz-container {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-medium), var(--accent-gold));
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen Wrapper */
.screen {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.screen.active {
  display: block;
}

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

/* Hook Screen (Página de Entrada) */
.hook-badge {
  display: inline-block;
  background-color: var(--accent-gold-alpha);
  color: var(--primary-green);
  border: 1px solid var(--accent-gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
}

.hook-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hook-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.15rem 2rem;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
  color: var(--text-light);
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
  transition: 0.8s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(13, 44, 36, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Question Styling */
.question-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

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

.option-btn {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
}

.option-btn::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--primary-medium);
  background-color: rgba(26, 67, 56, 0.02);
}

.option-btn.selected {
  border-color: var(--primary-green);
  background-color: rgba(13, 44, 36, 0.04);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 44, 36, 0.05);
}

.option-btn.selected::before {
  border-color: var(--primary-green);
  background-color: var(--primary-green);
  box-shadow: inset 0 0 0 4px var(--bg-card);
}

/* Control Buttons (Next/Back) */
.quiz-controls {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  flex: 1;
  padding: 1rem;
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--primary-dark);
}

/* Loading Screen (Scientific Analysis) */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(13, 44, 36, 0.1);
  border-top: 4px solid var(--primary-green);
  border-right: 4px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  height: 30px;
}

.loading-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Results Screen */
.result-card {
  text-align: left;
}

.result-badge {
  display: inline-block;
  background-color: var(--accent-gold-alpha);
  color: var(--primary-green);
  border: 1.5px solid var(--accent-gold);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
}

.result-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.medical-alert {
  background-color: #FFF9EB;
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #744D00;
  font-weight: 500;
}

.medical-alert-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #744D00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-text {
  color: var(--text-dark);
  font-size: 0.975rem;
  line-height: 1.6;
}

.cta-container {
  margin-top: 2.5rem;
}

/* WhatsApp High-Conversion Button with Pulsing Effect */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 2rem;
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp:hover {
  background-color: #20BA56;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer / Disclaimer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.medical-disclaimer {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.copyright {
  font-size: 0.725rem;
  color: var(--accent-gold);
  margin-top: 1rem;
  font-weight: 500;
}

/* Painel de Estatísticas Clínicas no Header */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f5f3;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.stat-value {
  color: var(--primary-dark);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
}

.stat-value.risk-count {
  color: #DC2626;
  background-color: rgba(220, 38, 38, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Animação de Pulsação de Risco */
.pulse-risk {
  animation: risk-pulse-anim 0.6s ease-in-out;
}

@keyframes risk-pulse-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); background-color: #DC2626; color: #FFFFFF; }
  100% { transform: scale(1); }
}

/* Prova Social Dinâmica (Toasts) */
.social-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(7, 30, 25, 0.15);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  max-width: 340px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.social-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.social-toast-icon {
  width: 18px;
  height: 18px;
  background-color: rgba(197, 155, 39, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-toast-icon::after {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 0.75rem;
}

.social-toast-text {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .social-toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }
}

/* Tela de Resumo Folicular */
.summary-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.summary-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.summary-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.summary-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.summary-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card-value {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--primary-green);
  font-weight: 700;
}

.personalization-status {
  text-align: center;
  margin-top: 1.5rem;
}

.personalization-bar-container {
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.personalization-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-green));
  border-radius: 10px;
}

.personalization-percentage {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.personalization-message {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-style: italic;
  height: 20px;
}

/* Grid de Resultados Visuais (Novo) */
.results-visual-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem 0;
}

.visual-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.visual-card.flex-align-center {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.visual-card-title {
  display: block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.visual-card-title.no-margin {
  margin-bottom: 0.25rem;
}

.visual-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
}

/* Termômetro de Gravidade (Gauge Bar) */
.gauge-container {
  margin-top: 0.5rem;
}

.gauge-bar {
  height: 12px;
  background-color: #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.gauge-fill {
  height: 100%;
  width: 0%; /* Animado via JS */
  background: linear-gradient(90deg, #10B981 0%, #F59E0B 50%, #EF4444 100%);
  border-radius: 20px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Círculo de Reversibilidade Folicular */
.reversibility-circle-box {
  position: relative;
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.circular-chart-result {
  width: 100%;
  height: 100%;
}

.circle-bg-result {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 2.8;
}

.circle-fill-result {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-percent-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Gráfico de Evolução 5 Anos (SVG) */
.chart-container {
  position: relative;
  margin-top: 0.5rem;
}

.line-chart {
  width: 100%;
  height: 140px;
  display: block;
}

.chart-text {
  font-size: 4px;
  font-family: var(--font-body);
  fill: var(--text-muted);
  font-weight: 600;
}

.chart-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.path-red {
  stroke: #EF4444;
}

.path-green {
  stroke: #10B981;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color.color-red {
  background-color: #EF4444;
}

.legend-color.color-green {
  background-color: #10B981;
}

/* Laudo Resumido (Checklist com Ícones) */
.laudo-resumo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.laudo-item {
  display: flex;
  gap: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.laudo-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.laudo-details {
  font-size: 0.925rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.laudo-details strong {
  color: var(--primary-green);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Exit-Intent Popup Styles */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 30, 25, 0.85); /* Overlay escurecido esmeralda */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.exit-popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup-content {
  background-color: var(--bg-card);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-overlay.show .exit-popup-content {
  transform: scale(1);
}

.exit-popup-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.exit-popup-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Subtexto de escassez da CTA final */
.cta-subtext {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #DC2626;
  font-weight: 700;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-red-text 1.5s infinite;
}

@keyframes pulse-red-text {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Animação para o status de servidor ativo */
.server-dot {
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 196, 141, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(49, 196, 141, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(49, 196, 141, 0);
    transform: scale(0.95);
  }
}

/* Galeria de Antes e Depois Dinâmica */
.before-after-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) rgba(0,0,0,0.05);
  -webkit-overflow-scrolling: touch;
}
.before-after-container::-webkit-scrollbar {
  height: 5px;
}
.before-after-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}
.before-after-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-gold);
  border-radius: 10px;
}
.before-after-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.before-after-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.before-after-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background-color: #071E19;
}
.before-after-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green);
  padding: 6px 0;
  text-align: center;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  font-family: var(--font-title);
  text-transform: uppercase;
}

/* Lightbox de Ampliação das Imagens */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 30, 25, 0.95);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.lightbox-overlay.show {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
  border-radius: 16px;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 30px rgba(197, 155, 39, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox-overlay.show .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}
.lightbox-close:hover {
  color: var(--accent-gold);
}

/* Assinatura da Agência */
.agency-signature a:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

/* Otimizações Mobile para Progresso, Riscos e Perguntas */
.hide-mobile {
  display: inline;
}

@media (max-width: 480px) {
  .hide-mobile {
    display: none;
  }
  
  .progress-container {
    margin-bottom: 0.75rem;
  }
  
  .progress-info {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .stats-bar {
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.2px;
  }
  
  .stat-value {
    font-size: 0.85rem;
  }
  
  .stat-value.risk-count {
    padding: 0.05rem 0.35rem;
  }
  
  .question-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
  }
  
  .option-btn {
    padding: 0.85rem 1.15rem;
    font-size: 0.925rem;
    border-radius: 10px;
  }
  
  .quiz-controls {
    margin-top: 1.25rem;
  }
}

/* Estilos da tela de Downsell (offline) */
.downsell-container {
  text-align: center;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.15rem 2rem;
  background: linear-gradient(135deg, var(--accent-gold), #B38936);
  color: var(--text-light);
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(197, 155, 39, 0.25);
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(197, 155, 39, 0.35);
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold));
}
.btn-gold:active {
  transform: translateY(0);
}

/* Novo: Slider de Testemunhos da Tela de Entrada e Downsell */
.welcome-testimonials {
  margin-top: 2.25rem;
  border-top: 1.5px dashed var(--border-color);
  padding-top: 1.75rem;
  text-align: center;
}

.testimonials-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--primary-green);
  font-weight: 855;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials-gallery {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) rgba(0,0,0,0.05);
  -webkit-overflow-scrolling: touch;
}

.testimonials-gallery::-webkit-scrollbar {
  height: 5px;
}
.testimonials-gallery::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}
.testimonials-gallery::-webkit-scrollbar-thumb {
  background-color: var(--accent-gold);
  border-radius: 10px;
}

.testimonial-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.testimonial-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background-color: #071E19;
}

.testimonial-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary-green);
  padding: 6px 0;
  text-align: center;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  font-family: var(--font-title);
  text-transform: uppercase;
}

.testimonial-hint {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* Downsell Specific Gallery */
.downsell-testimonials {
  margin: 1.5rem 0;
  text-align: center;
}

.small-gallery {
  justify-content: center;
}

.small-gallery .testimonial-card {
  flex: 0 0 110px;
}

@media (max-width: 480px) {
  .small-gallery {
    justify-content: flex-start;
  }
}




