:root {
  --vermelho: #A50E22;
  --vermelho-claro: #E8431F;
  --amarelo: #FFD23F;
  --preto: #100402;
  --bg1: #1c0703;
  --bg2: #2e0a04;
  --cinza-claro: #f4f4f4;
  --disponivel: #1f9d55;
  --reservado: #b08900;
  --pago: #555555;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  background-color: var(--bg1);
  background-image:
    radial-gradient(circle at top right, var(--bg2), var(--bg1) 60%),
    radial-gradient(circle, rgba(255,255,255,0.05) 1.6px, transparent 1.6px);
  background-size: auto, 20px 20px;
  color: #fff;
  min-height: 100vh;
}

.faixa-topo, .faixa-base {
  height: 10px;
  background: var(--amarelo);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.tag {
  display: inline-block;
  background: var(--amarelo);
  color: var(--preto);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%, 0 70%);
}

h1.titulo {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1.02;
  margin: 18px 0 6px;
  color: #fff;
  text-shadow: 3px 3px 0 var(--vermelho), 6px 6px 0 var(--preto);
}

p.subtitulo {
  font-size: 18px;
  font-weight: 700;
  color: #eee;
  margin: 0 0 4px;
}
p.subtitulo b { color: var(--amarelo); }

.stats {
  display: flex;
  gap: 14px;
  margin: 26px 0;
}
.stat-card {
  flex: 1 1 0;
  border: 4px solid var(--preto);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}
.stat-card.vermelho { background: var(--vermelho); }
.stat-card.amarelo { background: var(--amarelo); color: var(--preto); }
.stat-card.preto { background: var(--preto); border-color: var(--amarelo); }
.stat-card .label { font-size: 13px; font-weight: 700; opacity: 0.85; letter-spacing: 0.5px; }
.stat-card .valor { font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: 30px; margin-top: 4px; }

.header-top {
  position: relative;
  min-height: 230px;
}

.selo {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
}
.selo-anel {
  width: 100%;
  height: 100%;
}
.selo-mascote {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  transform: translate(-50%, -46%);
}

.postits {
  position: absolute;
  top: 150px;
  right: 70px;
  width: 220px;
  height: 130px;
  pointer-events: none;
}
.postit {
  position: absolute;
  width: 110px;
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: 3px 5px 10px rgba(0,0,0,0.45);
  font-family: Arial, sans-serif;
  color: var(--preto);
}
.postit .t1 { font-family: 'Arial Black', Arial; font-weight: 900; font-size: 14px; line-height:1.1; }
.postit .t2 { font-size: 10px; font-weight: 700; opacity: 0.75; margin-top: 4px; }
.postit.p1 { background: #FFE89A; top: 0; left: 0; transform: rotate(-8deg); }
.postit.p2 { background: #FF9F8B; top: 50px; left: 90px; transform: rotate(7deg); }
.pin { position:absolute; width:10px; height:10px; border-radius:50%; background: var(--vermelho); border: 2px solid var(--preto); }
.postit.p1 .pin { top: -5px; left: 46px; }
.postit.p2 .pin { top: -5px; left: 46px; }

.rabisco {
  position: absolute;
  top: 195px;
  right: 230px;
  width: 70px;
  height: auto;
  opacity: 0.9;
}
@media (max-width: 680px) {
  .rabisco { display: none; }
}

@media (max-width: 680px) {
  .selo { width: 110px; height: 110px; }
  .postits { display: none; }
  .header-top { min-height: 140px; }
}

.nota-versiculo {
  background: var(--preto);
  border: 3px solid var(--amarelo);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 18px 0;
}
.nota-versiculo .v { font-family: 'Arial Black', Arial; font-weight: 900; font-size: 16px; color: var(--amarelo); }
.nota-versiculo .d { font-size: 15px; font-weight: 600; color: #ddd; margin-top: 6px; }

.legenda {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  font-size: 14px;
  font-weight: 700;
}
.legenda span { display:inline-flex; align-items:center; gap:6px; }
.bolinha { width:14px; height:14px; border-radius:3px; display:inline-block; border: 2px solid var(--preto); }

.grade {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #00000040;
  padding: 14px;
  border-radius: var(--radius);
  border: 3px solid var(--preto);
}
.numero {
  flex: 0 0 calc((100% - 9 * 6px) / 10);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid #00000055;
  background: var(--disponivel);
  color: #fff;
  user-select: none;
  transition: transform 0.08s ease;
}
@media (max-width: 620px) {
  .numero { flex-basis: calc((100% - 7 * 6px) / 8); height: 36px; font-size: 12px; }
}
.numero:hover { transform: scale(1.08); }
.numero.reservado { background: var(--reservado); cursor: not-allowed; color: #2a2200; }
.numero.pago { background: var(--pago); cursor: not-allowed; color: #ccc; }
.numero.selecionado { background: var(--amarelo); color: var(--preto); border-color: var(--preto); box-shadow: 0 0 0 3px #fff inset; }

.carrinho {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  color: var(--preto);
  border-radius: 14px 14px 0 0;
  border: 4px solid var(--preto);
  border-bottom: none;
  padding: 18px;
  max-height: 78vh;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 0.32s ease;
  z-index: 60;
  box-shadow: 0 -10px 28px rgba(0,0,0,0.5);
}
.carrinho.mostrar {
  transform: translateY(0);
}
.carrinho .puxador {
  width: 42px;
  height: 5px;
  background: #ddd;
  border-radius: 4px;
  margin: -4px auto 12px;
  cursor: pointer;
  padding: 10px 30px;
  margin-top: -14px;
  background-clip: content-box;
}
.carrinho h3 { margin: 0 0 8px; font-family: 'Arial Black', Arial; font-size: 20px; }
.carrinho .resumo { display:flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.carrinho .resumo .total { font-family: 'Arial Black', Arial; font-size: 26px; color: var(--vermelho); }

.campo { margin-bottom: 12px; }
.campo label { display:block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.campo input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #ddd;
  font-size: 16px;
}

.btn {
  display: inline-block;
  width: 100%;
  background: var(--vermelho);
  color: #fff;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 18px;
  border: none;
  padding: 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn:hover { background: var(--vermelho-claro); }
.btn:disabled { background: #999; cursor: not-allowed; }

.aviso { font-size: 13px; color: #777; margin-top: 8px; }

/* Modal Pix */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 50;
}
.modal {
  background: #fff; color: var(--preto); border-radius: var(--radius);
  max-width: 420px; width: 100%; padding: 24px; text-align: center;
  border: 4px solid var(--preto);
  max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-family: 'Arial Black', Arial; margin-top:0; }
.modal #qrcode { display:flex; justify-content:center; margin: 14px 0; }
.modal .valor-destaque { font-family: 'Arial Black', Arial; font-size: 34px; color: var(--vermelho); margin: 6px 0; }
.copia-cola {
  background: #f4f4f4; border: 2px dashed #ccc; border-radius: 6px;
  padding: 10px; font-size: 12px; word-break: break-all; text-align: left; margin: 12px 0;
}
.btn-copiar {
  background: var(--amarelo); color: var(--preto); border: none; font-weight: 900;
  padding: 10px 16px; border-radius: 6px; cursor: pointer; margin-bottom: 10px;
}
.status-pedido { font-weight: 700; margin-top: 10px; padding: 10px; border-radius: 6px; }
.status-pedido.pendente { background: #fff3cd; color: #7a5b00; }
.status-pedido.pago { background: #d4edda; color: #1f9d55; }
.status-pedido.expirado, .status-pedido.cancelado { background: #f8d7da; color: #A50E22; }
.fechar-modal {
  margin-top: 14px; background: none; border: 2px solid #ccc; padding: 8px 16px;
  border-radius: 6px; cursor: pointer; font-weight: 700;
}
.contador { font-size: 13px; color: #888; margin-top: 4px; }
