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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  background-color: #0a3d5c;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.banner {
  background-image: url("../assets/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.main-container {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* Cabeçalho - Logo Aniversário */
.header-section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.logo-aniversario {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
}

/* Seção de Prêmios - Motos e Carros */
.prizes-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.prize-item {
  flex: 1;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.prize-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Headline - Aumente suas chances */
.headline-section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.headline-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
}

/* Logo Consórcio */
.consorcio-section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.logo-consorcio {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

/* Seção do CPF - CENTRALIZADA */
.cpf-section {
  text-align: center;
  width: 100%;
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.cpf-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b8d4db;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
  line-height: 1.5;
}

.input-wrapper {
  margin-bottom: 25px;
  width: 100%;
}

.cpf-input {
  width: 100%;
  max-width: 450px;
  padding: 18px 24px;
  font-size: 1.05rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.cpf-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cpf-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d9ff;
}

.btn-proximo {
  padding: 16px 60px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0099cc 0%, #006d99 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 153, 204, 0.3);
}

.btn-proximo:hover {
  background: linear-gradient(135deg, #00b8e6 0%, #0088b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.4);
}

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

/* Loading */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinning {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #00d9ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Rodapé */
.footer-section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 0;
  margin-bottom: 40px;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text:hover {
  color: #00d9ff;
}

.mand {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 10;
}

.mand:hover {
  color: #00d9ff;
}

/* Seção de Números da Sorte */
.numeros-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("../assets/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.numeros-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b8d4db;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 40px 0 30px 0;
  padding: 0 20px;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 10;
  padding-top: 30px;
  padding-bottom: 20px;
}

.numeros-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.numero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  justify-content: center;
}

.numero-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00d9ff;
  transform: translateY(-5px);
}

.numero-valor {
  font-size: 2rem;
  font-weight: 700;
  color: #00d9ff;
  margin-bottom: 15px;
  letter-spacing: 2px;
  word-break: break-all;
}

.numero-data {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin-top: 8px;
  white-space: nowrap;
}

.numero-seguro {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.btn-voltar {
  padding: 18px 70px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4757 0%, #cc0033 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  flex-shrink: 0;
  margin: 30px auto 50px auto;
  display: block;
  position: sticky;
  bottom: 30px;
  z-index: 10;
}

.btn-voltar:hover {
  background: linear-gradient(135deg, #ff6b7a 0%, #e6004d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

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

/* Seção de Erro */
.error-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("../assets/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  z-index: 100;
}

.error-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  border: 2px solid rgba(255, 71, 87, 0.3);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  max-width: 600px;
}

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

/* Responsivo para Tablet */
@media (max-width: 1024px) {
  .logo-aniversario {
    max-width: 500px;
  }

  .prizes-section {
    gap: 30px;
  }

  .prize-item {
    max-width: 320px;
  }

  .headline-image {
    max-width: 600px;
  }

  .logo-consorcio {
    max-width: 180px;
  }

  .cpf-title {
    font-size: 0.9rem;
  }
}

/* Responsivo para Mobile - COM ROLAGEM */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .container {
    height: auto;
    overflow-y: auto;
  }

  .banner {
    height: auto;
    min-height: 100vh;
    padding: 30px 15px;
    overflow: visible;
  }

  .main-container {
    height: auto;
    gap: 25px;
    padding: 20px 0;
  }

  .header-section {
    margin-bottom: 0;
  }

  .logo-aniversario {
    max-width: 90%;
  }

  .prizes-section {
    flex-direction: column;
    gap: 20px;
  }

  .prize-item {
    max-width: 85%;
  }

  .headline-image {
    max-width: 90%;
  }

  .logo-consorcio {
    max-width: 160px;
  }

  .cpf-section {
    flex: none;
    padding: 20px 0;
  }

  .cpf-title {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .cpf-input {
    max-width: 100%;
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .btn-proximo {
    padding: 14px 45px;
    font-size: 0.9rem;
  }

  .footer-section {
    padding: 15px 0;
    margin-bottom: 60px;
  }

  .footer-text {
    font-size: 0.95rem;
  }

  .mand {
    position: static;
    transform: none;
    margin-top: 10px;
    padding-bottom: 20px;
    font-size: 0.8rem;
  }

  .numeros-section {
    padding: 0;
  }

  .numeros-title {
    font-size: 1.2rem;
    margin: 20px 0 20px 0;
    padding: 20px 15px 15px 15px;
  }

  .numeros-list {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    max-width: 100%;
  }

  .numero-card {
    padding: 25px 15px;
  }

  .numero-valor {
    font-size: 1.5rem;
  }

  .numero-data {
    font-size: 0.85rem;
    margin-top: 8px;
  }

  .numero-seguro {
    font-size: 0.8rem;
  }

  .btn-voltar {
    padding: 16px 50px;
    font-size: 0.95rem;
    margin: 20px auto 40px auto;
    bottom: 20px;
  }

  .error-section {
    padding: 30px 15px;
  }

  .error-message {
    font-size: 1rem;
    padding: 25px;
  }
}

/* Responsivo para Mobile Pequeno */
@media (max-width: 480px) {
  .banner {
    padding: 20px 10px;
  }

  .main-container {
    gap: 20px;
  }

  .logo-aniversario {
    max-width: 95%;
  }

  .prize-item {
    max-width: 90%;
  }

  .headline-image {
    max-width: 95%;
  }

  .logo-consorcio {
    max-width: 140px;
  }

  .cpf-title {
    font-size: 0.8rem;
    margin-bottom: 18px;
  }

  .cpf-input {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .btn-proximo {
    padding: 12px 35px;
    font-size: 0.85rem;
  }

  .footer-section {
    margin-bottom: 70px;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .mand {
    font-size: 0.75rem;
    padding-bottom: 25px;
  }

  .numeros-title {
    font-size: 1rem;
    margin: 15px 0 15px 0;
    padding: 15px 10px 12px 10px;
  }

  .numeros-list {
    padding: 10px;
    gap: 12px;
  }

  .numero-card {
    padding: 20px 15px;
  }

  .numero-valor {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .numero-data {
    font-size: 0.8rem;
    margin-top: 6px;
  }

  .numero-seguro {
    font-size: 0.75rem;
    margin-top: 8px;
  }

  .btn-voltar {
    padding: 14px 40px;
    font-size: 0.9rem;
    margin: 15px auto 30px auto;
    bottom: 15px;
  }

  .error-message {
    font-size: 0.9rem;
    padding: 20px;
  }
}