:root {
  --bg: #120805;
  --bg2: #1c0c08;
  --fire: #e85d04;
  --fire2: #c41e3a;
  --gold: #e6b422;
  --cream: #f6ead7;
  --ink: #2a140c;
  --muted: #8a6a55;
  --ok: #2f7a45;
  --err: #b42318;
  --card: #fffaf3;
  --shadow: 0 22px 50px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(232, 93, 4, .28), transparent 55%),
    linear-gradient(180deg, #120805 0%, #2a0e0a 36%, #f4e6d4 36%);
  color: var(--ink);
  min-height: 100dvh;
}
.wrap {
  width: min(560px, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.4rem;
}
.hero {
  text-align: center;
  color: #fff;
  padding: .2rem 0 .85rem;
}
.hero .logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(230,180,34,.85);
  background: #fff;
  margin-bottom: .55rem;
}
.kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 .3rem;
  color: var(--gold);
}
.hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.7rem);
  margin: 0 0 .15rem;
  letter-spacing: .03em;
  line-height: 1;
}
.hero p.sub {
  margin: 0;
  opacity: .92;
  font-size: .95rem;
}
.cartaz {
  width: 100%;
  border-radius: 18px;
  display: block;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230,180,34,.35);
}
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.3rem 1.15rem 1.45rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 180, 34, .28);
}
.lead {
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
}
label {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .4rem;
}
input[type=text], input[type=password], input[type=email], select {
  width: 100%;
  border: 1.5px solid #ead6c2;
  background: #fff;
  border-radius: 12px;
  padding: .85rem .9rem;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus { border-color: var(--fire); box-shadow: 0 0 0 4px rgba(232,93,4,.15); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
}
.btn-main {
  background: linear-gradient(180deg, #e85d04, #c41e3a);
  color: #fff;
  margin-top: 1rem;
  box-shadow: 0 10px 22px rgba(196,30,58,.28);
}
.btn-main:disabled { opacity: .55; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  margin-top: .55rem;
  font-weight: 600;
}
.flash {
  border-radius: 12px;
  padding: .8rem .9rem;
  margin: 0 0 1rem;
  font-size: .95rem;
  line-height: 1.4;
}
.flash-err { background: #fdecef; color: var(--err); }
.flash-ok { background: #e8f6ee; color: var(--ok); }
.hidden { display: none !important; }
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1.1rem 0 0;
}
.meta span {
  display: block;
  background: #f7eee4;
  border-radius: 12px;
  padding: .7rem;
  text-align: center;
  font-size: .82rem;
  color: #8a2b12;
  font-weight: 600;
}
.success-mark {
  width: 76px; height: 76px; margin: .2rem auto 1rem;
  border-radius: 50%; background: #e8f6ee; color: var(--ok);
  display: grid; place-items: center; font-size: 2rem;
}
h2.ola {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2rem;
  margin: .2rem 0 .35rem;
  text-align: center;
  color: #8a2b12;
  letter-spacing: .03em;
}
.center { text-align: center; }
.hint { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
footer.site {
  text-align: center;
  color: #7a5a48;
  font-size: .78rem;
  margin-top: 1.4rem;
}
.pessoas { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .55rem; }
.pessoa {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-align: left;
  background: #fff;
  border: 1.5px solid #ead6c2;
  border-radius: 14px;
  padding: .75rem .8rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.pessoa:hover { border-color: var(--fire); }
.pessoa.vai {
  border-color: var(--ok);
  background: #eef8f1;
}
.pessoa .check {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 50%;
  border: 2px solid #d9c4b0;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: #fff;
}
.pessoa.vai .check {
  background: var(--ok);
  border-color: var(--ok);
}
.pessoa .info { display: grid; gap: .12rem; min-width: 0; }
.pessoa strong { font-size: .98rem; }
.pessoa em { font-style: normal; font-size: .78rem; color: var(--muted); }
.resumo { list-style: none; margin: 0 0 1rem; padding: 0; text-align: center; font-weight: 700; }
.resumo li { padding: .25rem 0; }

/* Admin */
body.admin { background: #f4e6d4; }
.admin-top {
  background: #120805;
  color: #fff;
  padding: 1rem 1.1rem;
}
.admin-top .inner { width: min(1100px, calc(100% - 1.5rem)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-top a { color: #f3d6a8; text-decoration: none; font-size: .9rem; }
.admin-body { width: min(1100px, calc(100% - 1.5rem)); margin: 1rem auto 2rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-bottom: 1rem;
}
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(6, 1fr); } }
.stat {
  background: #fff;
  border-radius: 16px;
  padding: .9rem;
  border: 1px solid #ead6c2;
}
.stat b { display: block; font-size: 1.45rem; color: #8a2b12; }
.stat span { font-size: .78rem; color: var(--muted); }
.filters {
  background: #fff;
  border-radius: 16px;
  padding: .9rem;
  margin-bottom: 1rem;
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}
.table-wrap { overflow: auto; background: #fff; border-radius: 16px; }
table.lista { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.lista th, table.lista td { padding: .65rem .7rem; text-align: left; border-bottom: 1px solid #f0e4d8; }
table.lista th { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.badge { display: inline-block; border-radius: 999px; padding: .15rem .55rem; font-size: .75rem; font-weight: 700; }
.badge-ok { background: #e8f6ee; color: var(--ok); }
.badge-off { background: #f4f0f1; color: var(--muted); }
.badge-x { background: #fdecef; color: var(--err); }
.group { background: #fff; border-radius: 16px; padding: 1rem; margin-bottom: .7rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.actions a, .actions button {
  background: #8a2b12; color: #fff; border: 0; border-radius: 10px; padding: .65rem .9rem; text-decoration: none; font-size: .85rem; cursor: pointer;
}
.tabs { display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tabs a { padding: .45rem .8rem; border-radius: 999px; background: #fff; color: #8a2b12; text-decoration: none; font-size: .85rem; border: 1px solid #ead6c2; }
.tabs a.on { background: #8a2b12; color: #fff; }
.login-admin { max-width: 400px; margin: 4rem auto; }
.login-admin h1 { font-family: "Bebas Neue", Impact, sans-serif; color: #8a2b12; margin: .2rem 0 1rem; font-size: 1.9rem; }

@media print {
  body.admin { background: #fff; }
  .admin-top, .actions, .filters, .tabs, .no-print { display: none !important; }
  .stat { border: 1px solid #ccc; break-inside: avoid; }
  table.lista th, table.lista td { border-bottom: 1px solid #ddd; }
}
