/* ===========================
   VARIÁVEIS E RESET
   =========================== */
:root {
  --primary:      #0d1b3e;
  --primary-light:#1a2d5a;
  --yellow:       #f5a623;
  --yellow-hover: #e09400;
  --bg:           #f0f0f0;
  --white:        #ffffff;
  --dark:         #1a1a2e;
  --text:         #333333;
  --text-muted:   #888888;
  --border:       #e0e0e0;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 4px 20px rgba(0, 0, 0, 0.09);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   HEADER
   =========================== */
.header {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--yellow);
}

.header-menu {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ===========================
   HERO (Página 1)
   =========================== */
.hero {
  background: var(--primary);
  color: white;
  padding: 32px 20px 28px;
  text-align: center;
}

.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ===========================
   CARD
   =========================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  margin: 18px 14px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
}

/* ===========================
   FORMULÁRIO
   =========================== */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--yellow);
  background: white;
}

.form-control::placeholder {
  color: #bbb;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ===========================
   BOTÃO AMARELO
   =========================== */
.btn-yellow {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.btn-yellow:hover  { background: var(--yellow-hover); }
.btn-yellow:active { transform: scale(0.985); }

/* ===========================
   TERMOS
   =========================== */
.terms {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* ===========================
   LISTA DE PRÉMIOS
   =========================== */
.prize-list {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.prize-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 14px;
}

.prize-item + .prize-item {
  border-top: 1px solid var(--border);
}

.prize-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

.prize-item-value {
  font-weight: 800;
  color: var(--dark);
}

/* ===========================
   PÁGINAS CENTRADAS (sem hero)
   =========================== */
.page-centered {
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.page-centered .card {
  margin: 0;
  width: 100%;
  max-width: 460px;
}

/* ===========================
   RADIO GROUP (Pagamento)
   =========================== */
.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--yellow);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* ===========================
   ÍCONE TROFÉU (Página 5)
   =========================== */
.trophy-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.trophy-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.winners-highlight {
  color: var(--yellow);
  font-weight: 700;
}

/* ===========================
   PÁGINA DARK (Vídeo entrega)
   =========================== */
body.dark-page {
  background: #0d0d0d;
  color: white;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ===========================
   FEEDBACKS AO VIVO
   =========================== */
.feedback-section {
  padding-bottom: 24px;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e53935;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.feedback-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-item {
  display: flex;
  gap: 10px;
  padding: 13px 13px;
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
}

.feedback-body { flex: 1; }

.feedback-name {
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 3px;
}

.feedback-text {
  font-size: 13px;
  color: #aaa;
  line-height: 1.45;
}

.feedback-time {
  font-size: 11px;
  color: #555;
  margin-top: 5px;
}

/* ===========================
   SORTEIO – ANIMAÇÃO
   =========================== */

/* Utilitário */
.hidden { display: none !important; }

/* Card de animação */
.sorteio-card {
  text-align: center;
  width: 100%;
  max-width: 460px;
}

.sorteio-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.sorteio-display {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 44px;
  font-weight: 900;
  color: var(--yellow);
  animation: pulsar 0.55s ease-in-out infinite alternate;
  transition: background 0.4s, color 0.4s;
}

.sorteio-display.display-fixado {
  background: var(--yellow);
  color: var(--dark);
  animation: none;
  box-shadow: 0 0 0 10px rgba(245,166,35,0.25);
}

.sorteio-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

@keyframes pulsar {
  from { transform: scale(1);    box-shadow: 0 0 0 0 rgba(245,166,35,0); }
  to   { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(245,166,35,0.18); }
}

/* Pop quando o número para */
.num-pop {
  display: block;
  animation: num-pop 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes num-pop {
  0%   { transform: scale(0.6); opacity: 0.5; }
  65%  { transform: scale(1.25); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ===========================
   SORTEIO – TELA DE GANHOU
   =========================== */
.ganhou-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  padding-top: 32px;
}

.ganhou-icon {
  font-size: 60px;
  margin-bottom: 14px;
  display: block;
  animation: bounce-in 0.7s ease both;
}

@keyframes bounce-in {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.ganhou-titulo {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
  animation: fade-up 0.5s 0.15s ease both;
}

.ganhou-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  animation: fade-up 0.5s 0.25s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ganhou-premio {
  background: linear-gradient(135deg, #f5a623 0%, #e09400 100%);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 24px;
  color: white;
  animation: fade-up 0.5s 0.35s ease both;
}

.premio-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.premio-valor {
  display: block;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Confetti */
#confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  border-radius: 3px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0)    rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(360px) rotate(720deg); opacity: 0; }
}

/* Shake no input com erro */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

.shake { animation: shake 0.4s ease; border-color: #e53935 !important; }
