:root {
  --bg: #0b1020;
  --card: #0f1530;
  --muted: #b7c2e1;
  --text: #eaf0ff;
  --accent: #6c63ff;
  --green: #22c55e;
  --yellow: #f59e0b;
  --blue: #3b82f6;
}

/* reset básico */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu;
}

.wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

/* topo */
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.head small {
  display: block;
  color: var(--muted);
}
.price {
  color: var(--text);
  font-weight: 700;
}

/* brand (logo + título) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.25));
}
.brand-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #eaf0ff;
}

/* grid de números */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

/* célula base */
.cell {
  background: #0e1736;
  border: 2px solid #263a76;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    border-color 0.08s ease;
}
.cell span {
  font-weight: 900;
  font-size: 16px;
  color: #f1f4ff;
  letter-spacing: 0.3px;
}
.cell em {
  font-size: 12px;
  color: #cdd9ff;
  font-weight: 600;
}

/* estados */
.cell.available {
  background: #111d44;
  border-color: #334ea1;
}
.cell.available:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2) inset;
  transform: translateY(-1px);
  cursor: pointer;
}
.cell.reserved {
  background: #3b2d12;
  border-color: #a87925;
}
.cell.paid {
  background: #11284a;
  border-color: #3b7ddd;
}

/* legendas */
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #334ea1;
  margin-right: 6px;
  color: #eaf0ff;
}
.pill.available {
  background: #111d44;
}
.pill.reserved {
  background: #3b2d12;
  border-color: #a87925;
}
.pill.paid {
  background: #11284a;
  border-color: #3b7ddd;
}

/* rodapé */
.foot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.admin {
  border: 1px solid #334ea1;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #eaf0ff;
}

/* botões */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
button.lite {
  background: #0f1530;
  color: #eaf0ff;
  border: 1px solid #334ea1;
}

/* formulários / cartões */
.stack {
  display: grid;
  gap: 10px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334ea1;
  background: #0f1530;
  color: #eaf0ff;
}

.card {
  background: #0b1220;
  border: 1px solid #1f2937;
  padding: 16px;
  border-radius: 14px;
  margin: 16px 0;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid2 label span {
  font-size: 12px;
}

.alert {
  background: #391010;
  border: 1px solid #5d1a1a;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fca5a5;
  margin: 8px 0;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.hidden {
  display: none;
}
.modal-card {
  background: #0e1736;
  border: 1px solid #334ea1;
  border-radius: 14px;
  padding: 18px;
  width: 100%;
  max-width: 480px;
}
.wa {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  text-decoration: none;
}

/* responsivo */
@media (max-width: 640px) {
  .brand-title {
    font-size: 26px;
  }
  .brand-logo {
    width: 28px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
  }
  .cell span {
    font-size: 15px;
  }
}

.prize-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0 18px;
}
.prize-banner__info {
  flex: 1;
  min-width: 0;
}
.prize-banner__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.prize-banner__title {
  font-size: 20px;
  margin: 0 0 4px;
}
.prize-banner__desc {
  margin: 0;
  opacity: 0.85;
}
.prize-banner__thumb img {
  display: block;
  width: 180px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .prize-banner {
    flex-direction: column;
    text-align: center;
  }
  .prize-banner__thumb img {
    width: 70vw;
    max-width: 320px;
  }
}

/* ===== modal refinements ===== */
.modal-card {
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}
.modal-close:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Espaçamento entre inputs e botões */
#reserve-form label + label {
  margin-top: 10px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px; /* <-- o “respiro” que pediu */
}

/* Botões genéricos / hovers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.btn.primary {
  background: #6c63ff;
  border-color: #6c63ff;
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn.lite {
  background: transparent;
}
.btn.tiny {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

/* Mensagem de sucesso */
.success-title {
  margin: 6px 0 6px;
  font-weight: 600;
  color: #b7ffc9;
}
.pay-line {
  margin: 6px 0 2px;
}
.pix-line {
  margin: 2px 0 10px;
}

/* WhatsApp: fica verde quando reserva com sucesso */
.wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, box-shadow 0.12s ease;
}
.wa:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
/* estado “ready” após reservar */
.wa.ready {
  background: #25d366;
  border-color: #25d366;
  color: #0d1b0f;
  font-weight: 600;
}
.wa.ready:hover {
  filter: brightness(0.95);
}

.hidden {
  display: none !important;
}
