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

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

body {
  background-color: #f7f8fa;
}

main {
  min-height: 100vh;
}

.alert-bar {
  background-color: #dc2626;
  padding: 1rem;
  text-align: center;
  animation: slideDown 0.6s ease-out;
}

.alert-content {
  max-width: 1200px;
  margin: 0 auto;
}

.alert-title {
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
  line-height: 1.5;
}

.container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.main-section {
  padding: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .main-section {
    padding: 1.5rem;
  }
}

.text-center {
  text-align: center;
}

.main-text {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

.font-bold {
  font-weight: bold;
}

.button-section {
  text-align: center;
}

.instruction-text {
  color: #4b5563;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.button-container {
  text-align: center;
  margin-top: 1.5rem;
}

.activate-button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #22c55e;
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activate-button:hover:not(:disabled) {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.activate-button:disabled {
  background-color: #16a34a;
  cursor: not-allowed;
  opacity: 0.9;
}

.activate-button:active:not(:disabled) {
  transform: translateY(0px);
}

.progress-section {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: #f7f8fa;
}

.progress-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  height: 14rem;
  align-items: center;
  padding: 1rem 0;
}

@media (min-width: 640px) {
  .progress-container {
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .progress-container {
    height: 20rem;
  }
}

.progress-circle {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 200px;
  transform: rotate(-90deg);
}

@media (min-width: 640px) {
  .progress-circle {
    max-width: 280px;
    max-height: 280px;
  }
}

@media (min-width: 1024px) {
  .progress-circle {
    max-width: 320px;
    max-height: 320px;
  }
}

.progress-trail {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-path {
  fill: none;
  stroke: #a3a3a3;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.progress-path.active {
  stroke: #065fd4;
}

.progress-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  gap: 0.5rem;
}

.progress-percent {
  font-weight: bold;
  font-size: 1.75rem;
  color: #6b7280;
  transition: color 0.3s ease;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .progress-percent {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .progress-percent {
    font-size: 2.25rem;
  }
}

.progress-percent.active {
  color: #065fd4;
}

.progress-status {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  color: #6b7280;
  transition: color 0.3s ease;
  max-width: 120px;
  word-wrap: break-word;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .progress-status {
    font-size: 0.95rem;
    max-width: 160px;
  }
}

@media (min-width: 1024px) {
  .progress-status {
    font-size: 1rem;
    max-width: 180px;
  }
}

.progress-status.active {
  color: #065fd4;
}

.completion-section {
  background: #e6f2ff;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.completion-title {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #065fd4;
}

.completion-text {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  text-align: center;
  color: #065fd4;
}

.confirm-section {
  text-align: center;
}

.confirm-text {
  color: #4b5563;
  font-size: 1rem;
}

.hotmart-section {
  width: 100%;
}

.hotmart-wrapper {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

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

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

@media (max-width: 640px) {
  .alert-title {
    font-size: 1rem;
  }

  .main-text {
    font-size: 1rem;
  }

  .progress-container {
    height: 13rem;
  }

  .progress-circle {
    max-width: 160px;
    max-height: 160px;
  }

  .progress-percent {
    font-size: 1.5rem;
  }

  .progress-status {
    font-size: 0.8rem;
    max-width: 100px;
  }
}

/* === MUNDPAY: esconder título/preço e deixar botão visível === */
#mundpaySection {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

/* máscara que cobre tudo acima do botão */
#mundpaySection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  /* altura dinâmica (JS vai setar). fallback: 160px */
  height: var(--mundpay-mask-height, 80px);

  /* “esfumaçado” */
  background-color: #f0f0f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 10;
  pointer-events: none;
}
