* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #1f2933;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* VIDEO PLAYER */

.video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.video-container {
    width: 250px !important;  /* limite real */
    max-width: 250px !important;
    margin: 0 auto;
}

.video-player {
    width: 250px !important;   /* força tamanho final */
    height: auto !important;
    max-width: 250px !important;

    display: block !important;
    margin: 0 auto !important;

    border-radius: 10px;
    background: #000;
}


/* WRAPPER + CARD */

.app-wrapper {
  width: 100%;
  max-width: 760px;
}

.app-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  gap: 4px;
}

.logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.logo-circle-red {
  background: #e11d48;
}

.app-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  padding: 32px 24px 28px;
}

/* STEPS */

.step {
  display: none;
}

.step-active {
  display: block;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.step-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 16px;
}

/* STEP 1 - PRÓXIMO DESENHO */

.next-draw-card {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.next-draw-label {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 4px;
}

.next-draw-date {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.next-jackpot-label {
  text-transform: uppercase;
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.next-jackpot-value {
  font-size: 26px;
  font-weight: 800;
  color: #e11d48;
}

.ai-unlock-card {
  margin-top: 16px;
  background: transparent;
  border-radius: 12px;
  padding: 22px 18px 18px;
  text-align: center;
}

.ai-unlock-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-unlock-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* BUTTONS */

.btn-primary {
  width: 100%;
  display: block;          
  margin: 0 auto;         
  text-align: center !important;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  background-image: linear-gradient(135deg, #f97373, #e11d48);
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.15s ease;
}


.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(248, 113, 113, 0.8);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-pulse {
  animation: pulse 1.4s infinite;
}

/* Botão aleatório reposicionado */
.btn-random-bottom {
  margin: 10px auto 16px auto;
  display: block;
  font-size: 130%; /* aumenta 30% */
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.btn-random-bottom:hover {
  color: #1d4ed8;
}


/* PLACEHOLDER NÚMEROS (STEP 1) */

.numbers-placeholder {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.number-ball {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.number-ball-dark {
  background: #111827;
  color: #ffffff;
}

.number-ball-red {
  background: #e11d48;
  color: #ffffff;
}

/* STEP 2 - LOTERIA */

.lottery-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lottery-card {
  display: flex;
  flex-direction: column;      /* empilha logo + textos */
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
  text-align: center;          /* centraliza títulos e descrição */
}

.lottery-card:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: #d1d5db;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.lottery-icon {
  flex-shrink: 0;
}

.lottery-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.lottery-emoji {
  font-size: 26px;
}

.lottery-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.lottery-info p {
  font-size: 13px;
  color: #6b7280;
}

/* STEP 3 - NÚMEROS */

.numbers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

#numbers-counter {
  font-weight: 600;
  color: #111827;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.number-choice {
  width: 100%;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #e5e7eb;
  color: #111827;
  transition: transform 0.1s ease, background 0.1s ease, color 0.1s ease,
    box-shadow 0.1s ease;
}

.number-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.number-choice.selected {
  background-image: linear-gradient(135deg, #22c55e, #059669);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.6);
}

.selected-numbers-wrapper {
  border-radius: 10px;
  background: #f3f4f6;
  padding: 10px 10px 8px;
  margin-bottom: 16px;
}

.selected-numbers-wrapper p {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.selected-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #22c55e;
  color: #ffffff;
}

/* STEP 4 & 6 - LOADING */

.progress-card {
  margin-top: 8px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 18px 16px 14px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #2563eb, #a855f7);
  transition: width 0.2s linear;
}

#ia-progress {
  background-image: linear-gradient(90deg, #8b5cf6, #ec4899, #ef4444);
}

.progress-steps {
  list-style: none;
  display: grid;
  gap: 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 13px;
}

.progress-step.active {
  opacity: 1;
  transform: translateX(0);
}

.progress-icon {
  font-size: 18px;
}

.ia-percent {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

/* STEP 5 - PROBABILIDADE */

.prob-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}

.prob-number {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.prob-number span {
  font-size: 30px;
  font-weight: 800;
  background-image: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
  animation: pulse-soft 1.5s infinite;
}

.prob-text {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 16px;
}

/* STEP 7 - IA NÚMEROS */

.ai-numbers-grid {
  margin-bottom: 16px;
}

.ai-number-ball {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.ai-number-ball.hidden {
  background: #0f172a;
  color: #ffffff;
}

.ai-number-ball.revealed {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  transform: scale(1.05);
}

.hits-text {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.hits-text span {
  color: #ef4444;
}

.hidden-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hidden-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* STEP 8 - FINAL */

.final-badge {
  text-align: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.warning-box {
  margin-top: 20px;
  margin-bottom: 14px;
}

.warning-title {
  color: #ef4444;
  font-weight: 700;
  margin-bottom: 4px;
}

.warning-text {
  font-size: 14px;
  color: #6b7280;
}

.timer-box {
  text-align: center;
  margin-top: 10px;
}

.timer-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 4px;
}

.timer-value {
  font-size: 34px;
  font-weight: 800;
  color: #ef4444;
}

.timer-subtext {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.lottery-image {
  width: 156px;          /* tamanho máximo da logo */
  height: 156px;
  max-width: 100%;
  border-radius: 0px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}



/* ANIMAÇÕES */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(248, 113, 113, 0.7);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(248, 113, 113, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(248, 113, 113, 0.7);
  }
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-3px);
  }
  40% {
    transform: translateX(3px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake-once {
  animation: shake 0.6s ease;
}

/* RESPONSIVIDADE */

@media (max-width: 480px) {
  .app-card {
    padding: 24px 18px 20px;
  }

  .next-draw-date {
    font-size: 18px;
  }

  .next-jackpot-value {
    font-size: 24px;
  }

  .ai-number-ball {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }
}
/* Garantir que nenhum vídeo estoure a largura da página */
video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Controle específico do vídeo vertical de depoimento */
.video-vertical {
    max-width: 360px !important;   /* ajusta aqui o tamanho que você quer */
    margin: 24px auto !important;  /* centralizado */
    border-radius: 10px;
    overflow: hidden;
}
