/* Página da aniversariante — mobile-first, identidade Bronks. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,55,55,.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(228,32,46,.08), transparent 60%),
    #0a0a0a;
  color: #e6e6e6;
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.festa { max-width: 560px; margin: 0 auto; padding: 24px 18px 60px; }

.estado-carregando, .estado-erro {
  padding: 60px 20px;
  text-align: center;
  color: #888;
}
.estado-erro h1 { color: #fff; margin: 0 0 12px; }

/* ─── Topo ─────────────────────────────────────── */
.topo { margin-bottom: 28px; }

.marca {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 55, 55, 0.75);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.flyer-card {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,55,55,.12), transparent 55%),
    linear-gradient(180deg, #161616, #0a0a0a);
  border: 1px solid rgba(255, 55, 55, 0.32);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.flyer-pl-marca {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 700;
  color: rgba(255,55,55,.55);
  margin-bottom: 14px;
}
.flyer-pl-titulo {
  font-size: 17px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin: 0 0 16px;
}
.flyer-foto {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 55, 55, 0.4);
  background: rgba(255,55,55,.05);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-align: center;
  line-height: 1.4;
}
.flyer-data {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 6px;
}
.flyer-local {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

.saudacao {
  margin-top: 22px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  text-align: center;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
}

/* ─── Contador ─────────────────────────────────── */
.confirmados {
  background: rgba(20, 20, 20, .6);
  border: 1px solid rgba(255, 55, 55, .18);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 28px;
}
.conf-grande {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.conf-num {
  font-size: 44px;
  font-weight: 700;
  color: #ff1b8d;
  letter-spacing: -1px;
}
.conf-de {
  font-size: 14px;
  color: rgba(255,255,255,.4);
}
.conf-total {
  font-size: 30px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.conf-label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── Lista ────────────────────────────────────── */
.lista h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.lista-hint {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
  line-height: 1.5;
}

.convidados {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.convidado {
  background: rgba(20,20,20,.6);
  border: 1px solid rgba(255,55,55,.14);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.conv-info {
  flex: 1;
  min-width: 0;
}
.conv-nome {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-meta {
  font-size: 11.5px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.conv-status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex: none;
}
.conv-status.sem_envio { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
.conv-status.pendente  { background: rgba(255,180,30,.14); color: #ffb43b; }
.conv-status.confirmado{ background: rgba(52,199,123,.14); color: #34c77b; }
.conv-status.nao_vai   { background: rgba(255,90,90,.14); color: #ff5a5a; }

.btn-remover {
  background: none; border: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 6px;
  flex: none;
}
.btn-remover:hover { color: #ff5a5a; background: rgba(255,90,90,.08); }

.convidados-vazio {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  font-style: italic;
  padding: 22px 12px;
  border: 1px dashed rgba(255,55,55,.18);
  border-radius: 9px;
}

/* ─── Formulário ───────────────────────────────── */
.form-add {
  background: rgba(20,20,20,.6);
  border: 1px solid rgba(255,55,55,.18);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-add h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: 0.3px;
}
.form-add label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.form-add .op {
  color: rgba(255,255,255,.35);
  font-weight: 400;
}
.form-add input {
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,55,55,.18);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  outline: none;
}
.form-add input:focus {
  border-color: rgba(255,55,55,.5);
}
.form-add input::placeholder {
  color: rgba(255,255,255,.25);
}

.btn-add {
  background: linear-gradient(180deg, #ff1b8d, #c30067);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.btn-add:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-add:hover:not(:disabled) { filter: brightness(1.08); }

.form-msg {
  font-size: 12px;
  text-align: center;
  min-height: 16px;
}
.form-msg.ok { color: #34c77b; }
.form-msg.erro { color: #ff5a5a; }

/* ─── Rodapé ───────────────────────────────────── */
.rodape {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.rodape p {
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}
