:root {
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --accent: #ff007a;
  --accent-soft: rgba(255, 0, 122, 0.06);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --danger: #f97373;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.quiz-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px 0 32px;
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #f3f4f6;
  z-index: 1001;
}

.top-progress-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.top-progress-inner #progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background-color: var(--accent);
}

.quiz-card {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .quiz-card {
    margin-top: 12px;
    border-radius: 0;
    padding: 20px 24px 24px;
    gap: 18px;
  }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

.back-button {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  color: #4b5563;
  position: absolute;
  left: 0;
  top: 10px;
  transform: translateY(-50%);
  z-index: 1;
}

.back-button[style*="display: none"] ~ .brand-area {
  margin-left: 0;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
}

.brand-logo {
  height: 112px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  background-color: #f9fafb;
}

.hero-header {
  margin-top: 12px;
  text-align: center;
}

.hero-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
  color: var(--text-main);
}

.hero-title-highlight {
  color: var(--accent);
}

.hero-subtitle {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quiz-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Reduz espaçamento em etapas de conteúdo (sem opções) */
.quiz-body.content-step {
  gap: 8px;
}

.quiz-body.content-step .image-container {
  margin: 8px 0;
}

.quiz-body.content-step .text-content {
  margin: 8px 0;
}

.quiz-body.content-step .hero-header {
  margin-top: 8px;
  margin-bottom: 8px;
}

.step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.question-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .question-title {
    font-size: 20px;
  }
}

.question-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.option-button {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.option-button.has-image {
  border-radius: 12px;
  padding: 12px;
}

.option-button.has-image .option-label {
  align-items: center;
}

/* Opções em grid (tipo de corpo) */
.options-grid .option-button {
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.option-image-grid {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #f9fafb;
}

.option-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-text-grid {
  padding: 12px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  text-align: center;
  color: var(--text-main);
}

.options-grid .option-button.selected {
  border-color: #ff007a;
}

.option-button.selected {
  border-color: #ff007a;
  background-color: var(--accent-soft);
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.option-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-text {
  font-weight: 400;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
}

.option-description {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
}

.option-button.has-image .option-label {
  align-items: flex-start;
}

.option-chevron {
  font-size: 16px;
  color: #9ca3af;
}


.nav-button {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-button.primary {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  color: #022c22;
  font-weight: 600;
}

.nav-button.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.nav-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.error-message {
  min-height: 1.2em;
  font-size: 12px;
  color: var(--danger);
}

/* Estados finais / resumo (poderá ser customizado depois) */
.summary-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Loading entre etapas */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
}

.tiktok {
  position: relative;
  width: 30px;
  height: 30px;
  background: rgb(77, 232, 244);
  border-radius: 50%;
  animation: leftToRight 0.8s ease-in-out infinite;
  mix-blend-mode: darken;
  transform: scale(1);
}

.tiktok.red {
  background: rgb(253, 62, 62);
  animation: rightToLeft 0.8s ease-in-out infinite;
}

@keyframes leftToRight {
  0% {
    left: 0;
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    left: 30px;
  }
  75% {
    transform: scale(0.8);
  }
  100% {
    left: 0;
  }
}

@keyframes rightToLeft {
  0% {
    right: 0;
  }
  25% {
    transform: scale(0.8);
  }
  50% {
    right: 30px;
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    right: 0;
  }
}

/* Estilos para etapas com imagem e conteúdo */
.image-container {
  width: 100%;
  margin: 12px 0;
}

.image-container img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.text-content {
  margin: 12px 0;
  text-align: center;
}

.content-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--text-main);
}

.content-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

.content-text strong {
  font-weight: 700;
  color: var(--text-main);
}

.continue-button {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

/* Opções com ícones */
.option-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.option-button.selected .option-icon {
  background-color: var(--accent-soft);
}

.option-button.multiple {
  border-radius: 12px;
}

.option-button.multiple.selected {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.option-button.multiple .option-label::after {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #ffffff;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

.option-button.multiple.selected .option-label::after {
  background-color: #ff007a;
  border-color: #ff007a;
  color: #ffffff;
}

.option-button.multiple:not(.selected) .option-label::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Remove ::after e borda da opção "Melhorar o corpo inteiro" */
.option-button.no-after .option-label::after {
  display: none !important;
  content: none !important;
}

.option-button.no-after {
  border: 1px solid var(--border-subtle) !important;
  border-width: 1px !important;
}

.option-button.no-after.selected {
  border: 1px solid var(--border-subtle) !important;
  border-width: 1px !important;
  background-color: #ffffff !important;
}

/* Opções com imagens */
.option-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f3f4f6;
}

.option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toggle switch */
.option-toggle {
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background-color: #d1d5db;
  position: relative;
  transition: background-color 0.2s;
}

.toggle-switch.active {
  background-color: var(--accent);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}

.toggle-switch.active::after {
  left: 22px;
}

/* Inputs */
.input-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-wrapper {
  width: 100%;
}

.text-input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

.unit-selector {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background-color: #f5f5f5;
  padding: 4px;
  border-radius: 12px;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.unit-button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s;
}

.unit-button.active {
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.value-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.value-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.value-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  outline: none;
  min-width: 80px;
  text-align: center;
}

.value-number:focus {
  background-color: #f9fafb;
  border-radius: 8px;
}

.value-unit {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
}

.min-max-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  color: #6b7280;
}

.min-max-indicator .min-value,
.min-max-indicator .max-value {
  font-weight: 500;
}

.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background-color: #fef3f8;
  border-radius: 12px;
  margin-top: 16px;
}

.info-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.info-text {
  flex: 1;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.info-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.bmi-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background-color: #f9fafb;
  border-radius: 12px;
  margin-top: 16px;
}

.bmi-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.bmi-text {
  flex: 1;
}

.bmi-result {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.5;
}

.bmi-result strong.overweight {
  color: #f59e0b;
}

.bmi-result strong.normal {
  color: #22c55e;
}

.bmi-result strong.underweight {
  color: #3b82f6;
}

.bmi-result strong.obese {
  color: #ef4444;
}

.bmi-advice {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gráfico de transformação */
.chart-container {
  margin: 24px 0;
}

.chart-wrapper-relative {
  position: relative;
  width: 100%;
  margin: 20px 0;
}

.chart-svg-full {
  width: 100%;
  height: auto;
  display: block;
}

.chart-label-start-absolute {
  position: absolute;
  left: 5%;
  top: 45%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-label-end-green {
  position: absolute;
  right: 0%;
  top: 15%;
  background-color: #22c55e;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-label-end-red {
  position: absolute;
  right: 0%;
  bottom: 15%;
  background-color: #ef4444;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Tela de loading com before/after */
.loading-screen {
  margin: 8px 0 24px 0;
  text-align: center;
}

.loading-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 16px;
}

.loading-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 3px;
  width: 0%;
}

.loading-percentage {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 8px;
}

.before-after-container {
  margin-top: 32px;
}

.before-after-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.before-after-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Gráfico de peso */
.weight-chart-container {
  margin: 24px 0;
}

.weight-chart-wrapper {
  text-align: center;
}

.weight-highlight {
  margin: 20px 0;
}

.weight-value {
  display: inline-block;
  background-color: #ff007b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-right: 8px;
}

.weight-days {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.weight-chart-svg {
  width: 100%;
  height: auto;
  margin: 20px 0;
}

.weight-chart-message {
  margin-top: 24px;
}

.weight-chart-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
}

.weight-chart-description {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* Perfil com IMC */
.profile-container {
  margin: 24px 0;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bmi-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}

.bmi-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
}

.bmi-value-display {
  background-color: #111827;
  text-align: center;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.bmi-scale {
  position: relative;
  height: 14px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
}

.bmi-segment {
  height: 100%;
}

.bmi-underweight {
  background-color: #3b82f6;
}

.bmi-normal {
  background-color: #22c55e;
}

.bmi-overweight {
  background-color: #f59e0b;
}

.bmi-obese {
  background-color: #ef4444;
}

.bmi-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bmi-marker-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #111827;
  background-color: #ffffff;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.alert-box {
  background-color: #fee2e2;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
}

.alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.alert-text {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.5;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.profile-details-card {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 20px;
}

.profile-detail-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-detail-item:last-child {
  margin-bottom: 0;
}

.profile-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
}

.profile-value {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* Scratch-off Card Styles */
.scratch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 3px dashed #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  z-index: 2;
  background: linear-gradient(135deg, #ff007a 0%, #ff4da6 100%);
}

.scratch-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  z-index: 1;
  padding: 20px;
  text-align: center;
}

.scratch-content.hidden {
  opacity: 0;
  pointer-events: none;
}

.scratch-content.revealed {
  opacity: 1;
  z-index: 3;
}

.scratch-discount {
  font-size: 72px;
  font-weight: 700;
  color: #78350f;
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.scratch-discount-label {
  font-size: 18px;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 4px;
  font-family: "Poppins", sans-serif;
}

.scratch-discount-detail {
  font-size: 14px;
  color: #92400e;
  font-family: "Poppins", sans-serif;
}

.scratch-instruction {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* Discount Reveal Styles */
.discount-reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.discount-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 3px dashed #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.discount-reveal-title {
  font-size: 18px;
  font-weight: 600;
  color: #78350f;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.discount-reveal-percentage {
  font-size: 72px;
  font-weight: 700;
  color: #78350f;
  line-height: 1;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.discount-reveal-text {
  font-size: 14px;
  color: #92400e;
  font-family: "Poppins", sans-serif;
}

.discount-congrats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f97316;
  font-size: 24px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.discount-congrats-icon {
  font-size: 20px;
}

.discount-auto-apply {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* Checkout Page Styles */
.checkout-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.checkout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff007a 0%, #ff4da6 100%);
  color: white;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  z-index: 1002;
}


.checkout-main-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin: 24px 16px 16px;
  font-family: "Poppins", sans-serif;
}

.checkout-feature-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.checkout-feature-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.checkout-before-after {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  align-items: stretch;
  background: #faf9f6;
  padding: 20px;
  border-radius: 16px;
  margin: 12px 16px;
}

.checkout-ba-labels-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
}

.checkout-ba-label-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkout-ba-label-text {
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

.checkout-ba-label-secondary {
  color: var(--text-muted);
}

.checkout-ba-label-primary {
  color: var(--accent);
}

.checkout-ba-labels-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 16px;
}

.checkout-ba-columns-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 4px;
}

.checkout-ba-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.checkout-ba-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  max-height: 200px;
}

.checkout-ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-ba-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.checkout-ba-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: flex-start;
}

.checkout-ba-info-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.checkout-ba-info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
}

.checkout-level-bar {
  display: flex !important;
  gap: 4px;
  margin-top: 6px;
  width: 60%;
  visibility: visible;
}

.checkout-level-segment {
  flex: 1;
  height: 6px;
  min-width: 0;
  background: #d1d5db;
  border-radius: 3px;
  transition: background 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: block !important;
  visibility: visible;
}

.checkout-level-segment.filled {
  background: linear-gradient(135deg, #ff007a 0%, #ff4da6 100%);
  box-shadow: 0 1px 3px rgba(139, 69, 19, 0.3);
}

.checkout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 16px;
}

.checkout-stat-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.checkout-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

.checkout-stat-label:first-child {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  margin-bottom: 4px;
}

.checkout-benefits {
  margin: 24px 16px;
}

.checkout-benefits-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.checkout-benefit-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.checkout-benefit-icon {
  color: #10b981;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkout-benefit-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.checkout-pricing {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px 16px;
  margin: 24px 16px;
  text-align: center;
}

.checkout-discount-badge {
  background: #fbbf24;
  color: #78350f;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
  position: relative;
  border: 2px dashed #78350f;
  border-radius: 0;
}

.checkout-discount-badge::before,
.checkout-discount-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.checkout-discount-badge::before {
  left: -12px;
}

.checkout-discount-badge::after {
  right: -12px;
}

.checkout-price-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.checkout-price-new {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.checkout-price-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.checkout-cta-button {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: opacity 0.2s;
}

.checkout-cta-button:active {
  opacity: 0.8;
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
}

.checkout-testimonials {
  margin: 24px 16px;
}

.checkout-testimonials-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.checkout-testimonial {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.checkout-testimonial-images {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-testimonial-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.checkout-testimonial-image img {
  width: 100%;
  height: auto;
  display: block;
}

.checkout-testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.checkout-testimonial-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.checkout-bonuses {
  margin: 24px 16px;
}

.checkout-bonuses-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.checkout-bonuses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkout-bonus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  padding-bottom: 0;
  background-color: #f9fafb;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.checkout-bonus-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.checkout-bonus-text {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.checkout-bonus-price {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  background-color: #22c55e;
  width: 100%;
  padding: 8px 0;
  margin-top: auto;
  text-align: center;
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

.checkout-guarantee {
  background: #fef3c7;
  border-radius: 12px;
  padding: 24px 16px;
  margin: 24px 16px;
  text-align: center;
}

.checkout-guarantee-badge {
  width: 80px;
  height: 80px;
  background: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 14px;
  font-weight: 700;
  color: #78350f;
  text-align: center;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
}

.checkout-guarantee-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
}

.checkout-guarantee-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}

.checkout-faq {
  margin: 24px 16px;
}

.checkout-faq-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.checkout-faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.checkout-faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  user-select: none;
}

.checkout-faq-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.checkout-faq-text {
  flex: 1;
}

.checkout-faq-toggle {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
}

.checkout-faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
  margin-top: 0;
}

.checkout-faq-item.expanded .checkout-faq-answer {
  max-height: 500px;
  margin-top: 8px;
}

.checkout-faq-item.expanded .checkout-faq-toggle {
  transform: rotate(45deg);
}

.checkout-footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
  border-top: 1px solid var(--border-subtle);
  margin-top: 24px;
}

.checkout-footer-text {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.checkout-footer-cnpj {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.checkout-footer-links {
  margin-top: 12px;
}

.checkout-footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
}

.checkout-footer-link:hover {
  text-decoration: underline;
}

.checkout-footer-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

