* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #111 url("assets/fundo.jpg") center center / cover no-repeat fixed;
  color: #222;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: -1;
}

.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.hidden {
  display: none;
}

.topo {
  text-align: center;
  margin-bottom: 16px;
}

.topo h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
}

.topo p {
  margin: 0;
  font-size: 16px;
}

.premio-box {
  margin-bottom: 16px;
}

.premio-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  background: #ddd;
}

.objetivo-box,
.dados-box,
.numeros-box,
.confirmacao-box {
  margin-bottom: 16px;
}

.objetivo-box label,
.dados-box label,
.admin-login label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
}

.objetivo-texto {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 18px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  overflow: visible;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

/* CENTRALIZAR ÁREA DE DADOS */
.dados-box {
  text-align: center;
}

.dados-box h2,
.dados-box label {
  text-align: center;
}

.dados-box input {
  text-align: center;
}

.dados-box input::placeholder {
  text-align: center;
}

textarea {
  resize: vertical;
}

h1,
h2 {
  margin-top: 0;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.resumo-fixo {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.resumo-fixo div {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.resumo-fixo span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.resumo-fixo strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.aviso {
  margin: 0 0 12px;
}

.status-carregamento {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

/* CENTRALIZAR ÁREA DOS NÚMEROS */
.numeros-box {
  text-align: center;
}

.numeros-box h2,
.numeros-box .aviso,
.numeros-box .status-carregamento {
  text-align: center;
}

.grade-numeros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.numero {
  border: 1px solid #999;
  border-radius: 10px;
  background: #f4f4f4;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.numero.selecionado {
  background: #111;
  color: #fff;
  border-color: #111;
}

.numero.reservado {
  background: #ccc;
  color: #777;
  border-color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
}

.numero.pago {
  background: #111;
  color: #fff;
  border-color: #111;
  cursor: not-allowed;
  text-decoration: line-through;
}

.btn-principal,
.btn-secundario {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.btn-principal {
  background: #111;
  color: #fff;
}

.btn-secundario {
  background: #ddd;
  color: #222;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.confirmacao-box {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 14px;
}

.confirmacao-box p {
  margin: 8px 0;
  line-height: 1.4;
}

.obs-pix {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

.admin-login,
.admin-painel {
  margin-bottom: 16px;
}

.admin-topo {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-topo h1 {
  margin-bottom: 4px;
}

.admin-topo p {
  margin: 0;
}

.admin-lista {
  display: grid;
  gap: 12px;
}

.reserva-admin {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #ddd;
}

.reserva-admin p {
  margin: 6px 0;
  line-height: 1.35;
}

.reserva-admin .acoes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.badge-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ddd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.pago {
  background: #111;
  color: #fff;
}

.badge-status.reservado {
  background: #f0d48a;
  color: #222;
}

.badge-status.liberada {
  background: #ccc;
  color: #333;
}

@media (max-width: 599px) {
  .app {
    padding: 12px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .topo h1 {
    font-size: 26px;
  }

  .objetivo-texto {
    font-size: 15px;
    padding: 16px;
    line-height: 1.35;
  }
}

@media (min-width: 600px) {
  .grade-numeros {
    grid-template-columns: repeat(10, 1fr);
  }

  .reserva-admin .acoes {
    grid-template-columns: 1fr 1fr;
  }
}

