:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: #121212;
  --panel-soft: #181818;
  --line: #2b2b2b;
  --text: #f7f7f5;
  --muted: #a6a6a2;
  --accent: #f3c84b;
  --accent-dark: #171300;
  --success: #39d98a;
  --warning: #ffb020;
  --danger: #ff6262;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 200, 75, 0.12), transparent 30rem),
    var(--bg);
}

/* A listagem é uma tela única: o conteúdo ocupa a altura disponível sem
   criar uma segunda barra de rolagem no desktop. */
.events-page {
  height: 100dvh;
  overflow: hidden;
}

.events-page::-webkit-scrollbar { display: none; }
.events-page { scrollbar-width: none; }

.events-page .event-header { flex: 0 0 auto; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.event-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.event-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(16px);
}

.event-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.event-logo { width: 148px; height: auto; display: block; }
.event-back { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.event-back:hover { color: var(--text); }

.event-main { padding: 28px 0 32px; }
.events-page .event-main {
  min-height: 0;
  height: calc(100dvh - 77px);
  display: grid;
  align-items: center;
}
.events-page .event-main > .event-shell {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}
.event-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 32px; align-items: start; }
.event-admin-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 0.96; letter-spacing: -0.055em; }
h2 { margin-bottom: 20px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 14px; font-size: 1.05rem; }
.lead { color: var(--muted); font-size: 1.04rem; line-height: 1.72; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }

.event-meta { display: grid; gap: 12px; margin-top: 32px; }
.event-meta-item {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.event-meta-item span:first-child { color: var(--muted); font-size: 0.84rem; }
.event-meta-item strong { font-weight: 650; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(145deg, rgba(26,26,26,0.97), rgba(14,14,14,0.97));
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}

.stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: grid; gap: 8px; }
.field-group > span { font-size: 0.84rem; font-weight: 700; }
.field {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  color: var(--text);
  outline: none;
  background: #0b0b0b;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea.field { resize: vertical; min-height: 110px; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(243,200,75,0.14); }
.field:disabled { opacity: .6; }

.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-primary { background: var(--accent); color: var(--accent-dark); }
.button-secondary { border-color: var(--line); color: var(--text); background: var(--panel-soft); }
.button-danger { background: transparent; color: var(--danger); border-color: rgba(255,98,98,.35); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .83rem; }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  line-height: 1.5;
}
.notice-error { color: #ffd1d1; border-color: rgba(255,98,98,.4); background: rgba(255,98,98,.08); }
.notice-success { color: #caffdf; border-color: rgba(57,217,138,.4); background: rgba(57,217,138,.08); }
.notice-warning { color: #ffe1a8; border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-section-title { margin: 12px 0 -4px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fieldset-reset { border: 0; padding: 0; margin: 0; }
.fieldset-reset legend { margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.radio-grid { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .9rem; }
.radio-grid input { accent-color: var(--accent); }
.notice-info { color: var(--muted); background: rgba(255,255,255,.035); }
.events-intro { max-width: 680px; margin-bottom: 28px; }
.events-intro h1 { max-width: 620px; }
.event-cards { display: grid; gap: 24px; }
.event-list-card { width: 100%; max-width: 680px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid rgba(243, 200, 75, .78); border-radius: 22px; color: var(--text); background: linear-gradient(155deg, rgba(243, 200, 75, .1), #101010 42%); box-shadow: 0 20px 50px rgba(0,0,0,.28), 0 0 0 4px rgba(243, 200, 75, .07); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.event-list-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.event-cover { aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; color: #777; background: #e7e5e0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.event-cover img { width: 100%; height: 100%; display: block; object-fit: contain; }
.event-list-copy { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 3fr); align-items: center; padding: 24px 26px; }
.event-list-copy h2 { margin: 0; padding-left: 26px; border-left: 1px solid var(--line); font-size: clamp(1.15rem, 2.5vw, 1.65rem); line-height: 1.08; }
.event-list-copy h2 em { color: var(--accent); font-style: normal; }
.event-list-date { display: grid; justify-items: start; gap: 3px; }
.event-list-date > span { color: var(--accent); font-size: clamp(2.7rem, 6vw, 3.6rem); font-weight: 900; line-height: .82; letter-spacing: -.08em; }
.event-list-date strong { font-size: .78rem; letter-spacing: .1em; }
.event-list-date small { color: var(--muted); font-size: .78rem; }

.events-page .event-list-date > span { color: var(--accent); }
.event-detail-page { height: 100vh; height: 100dvh; overflow: hidden; }
.event-detail-page .event-header { height: 77px; }
.campaign-main { position: relative; height: calc(100vh - 77px); height: calc(100dvh - 77px); min-height: 0; overflow: hidden; display: grid; place-items: center; background: #111; }
.campaign-glow { position: absolute; inset: 0; background: radial-gradient(circle at 75% 25%, rgba(243,200,75,.18), transparent 28rem), radial-gradient(circle at 10% 90%, rgba(255,255,255,.06), transparent 24rem); }
.campaign-content { position: relative; height: 100%; max-height: 100%; padding: clamp(14px, 3.5vh, 36px) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.campaign-content .eyebrow { margin-bottom: 0; font-size: clamp(.95rem, 1.7vw, 1.08rem); }
.campaign-content h1 { margin-bottom: clamp(6px, 1.4vh, 12px); font-size: clamp(2.8rem, 11vh, 7.4rem); line-height: .84; }
.campaign-content h1 span { color: var(--accent); }
.campaign-subtitle { margin-bottom: clamp(10px, 2.2vh, 22px); font-size: clamp(.86rem, 2vw, 1.2rem); font-weight: 900; letter-spacing: .28em; }
.campaign-event-logo-frame { display: block; width: clamp(315px, 57vh, 610px); max-width: 96%; aspect-ratio: 1.36; overflow: hidden; flex: 0 0 auto; }
.campaign-event-logo { display: block; width: 100%; height: auto; transform: translateY(-8%); }
.campaign-copy { max-width: 620px; margin: 0 auto clamp(10px, 2.4vh, 22px); color: var(--text); font-size: clamp(.98rem, 1.9vw, 1.16rem); line-height: 1.5; }
.campaign-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: clamp(14px, 2.8vh, 28px); color: var(--muted); font-size: .84rem; }
.campaign-facts span { display: inline-flex; align-items: center; gap: 7px; }
.campaign-facts strong { color: var(--accent); font-size: 1.2rem; }
.campaign-button { position: relative; width: min(100%, 500px); min-height: clamp(62px, 10.5vh, 86px); padding: 17px 58px; justify-content: center; border-radius: 18px; color: var(--accent-dark); background: var(--accent); font-size: clamp(1.45rem, 3.7vw, 2.1rem); text-align: center; box-shadow: 0 20px 60px rgba(243,200,75,.2); }
.campaign-button [aria-hidden="true"] { position: absolute; right: 26px; }
.campaign-actions {
  width: min(100%, 500px);
  display: grid;
  gap: 10px;
}
.campaign-actions .campaign-button {
  width: 100%;
  min-height: clamp(54px, 7.5vh, 68px);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
}
.campaign-kit-button {
  color: #fff !important;
  background: #ed7d22 !important;
  box-shadow: 0 18px 46px rgba(237, 125, 34, .26);
}
.campaign-note { margin: clamp(8px, 1.6vh, 14px) 0 0; color: var(--text); font-size: clamp(.8rem, 1.3vw, .88rem); font-weight: 800; letter-spacing: .06em; line-height: 1.3; text-shadow: 0 0 1px rgba(255, 255, 255, .9); -webkit-text-stroke: .25px rgba(255, 255, 255, .85); paint-order: stroke fill; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.price { font-size: 1.7rem; font-weight: 900; letter-spacing: -.04em; }

.qr-frame {
  width: min(100%, 360px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 16px;
  background: white;
}
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.token {
  padding: 14px;
  border: 1px dashed #555;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(.9rem, 3vw, 1.25rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  word-break: break-all;
  background: #090909;
}
.pix-code { min-height: 94px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; word-break: break-all; }

.ticket { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.ticket-mark { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #07170f; background: var(--success); font-size: .75rem; font-weight: 900; text-transform: uppercase; }

.admin-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.admin-nav button {
  border: 0;
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.admin-nav button:hover, .admin-nav button.is-active { color: var(--text); background: var(--panel-soft); }
.admin-nav-separator { height: 1px; margin: 8px 0; background: var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stat span { display: block; color: var(--muted); font-size: .82rem; }
.stat strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -.05em; }
.dashboard-group-title {
  margin: 26px 0 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stats-kits { grid-template-columns: repeat(3, 1fr); }

.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.toolbar .field { min-height: 42px; max-width: 340px; }
.report-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 200, 75, .28);
  border-radius: 14px;
  background: rgba(243, 200, 75, .055);
}
.report-toolbar > div:first-child { display: grid; gap: 3px; }
.report-toolbar #report-message { grid-column: 1 / -1; }
.report-filter .field { min-width: 150px; min-height: 38px; padding-block: 7px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-pagination { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: #0d0d0d; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #282828; font-size: .73rem; font-weight: 800; }
.status-paid { color: #caffdf; background: rgba(57,217,138,.12); }
.status-pending { color: #ffe1a8; background: rgba(255,176,32,.12); }

.checkin-panel { max-width: 680px; margin: 0 auto; }
.checkin-input { min-height: 62px; font-size: 1.12rem; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.checkin-result { min-height: 180px; display: grid; place-items: center; text-align: center; }
.checkin-scanner {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}
.checkin-scanner-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.checkin-scanner-heading > div { display: grid; gap: 3px; }
.scanner-status {
  min-height: 22px;
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
}
.scanner-status-muted { color: var(--muted); }
.scanner-status-active { color: var(--success); }
.scanner-status-warning { color: var(--warning); }
.scanner-status-error { color: var(--danger); }
.scanner-panel { display: grid; gap: 14px; }
.scanner-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050505;
}
.scanner-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-stage .scan-region-highlight { border-radius: 12px; }
.scanner-stage .code-outline-highlight { stroke: var(--success) !important; }
.scanner-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}
.scanner-controls .field-group { flex: 1; }
.checkin-divider {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkin-divider::before, .checkin-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

/* Inscrição: página deliberadamente enxuta e centrada no formulário. */
.registration-page {
  background:
    radial-gradient(circle at 50% -12rem, rgba(243, 200, 75, .12), transparent 34rem),
    var(--bg);
}

.registration-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

.registration-main { min-height: 100vh; padding: 12px 0 64px; }

.registration-card {
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.registration-branding {
  margin-bottom: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.registration-event-logo {
  width: clamp(130px, 28vw, 172px);
  flex: 0 0 auto;
  margin: -26px -4px 0 0;
  pointer-events: none;
}

.registration-event-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.registration-card-heading {
  min-width: 0;
  padding-top: 2px;
  text-align: left;
}

.registration-card-heading h1 {
  margin: 30px 0 0;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.registration-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 4.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.03em;
  text-align: left;
}

.registration-card-heading .event-title-line {
  display: block;
  white-space: nowrap;
}

.registration-form {
  display: grid;
  gap: 17px;
}

.registration-form .field-group > span,
.registration-form .fieldset-reset legend {
  color: #d9d9d5;
  font-size: .8rem;
}

.registration-form .field-group small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
}

.registration-form .field {
  min-height: 50px;
  border-color: #333;
  background: #0a0a0a;
}

.registration-form textarea.field {
  min-height: 88px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-grid label {
  position: relative;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #333;
  border-radius: 10px;
  color: var(--muted);
  background: #0a0a0a;
  font-size: .86rem;
  font-weight: 750;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.choice-grid input:checked + span {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(243, 200, 75, .08);
}

.choice-grid input:focus-visible + span {
  outline: 3px solid rgba(243, 200, 75, .18);
  outline-offset: 2px;
}

.rules {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.rules h2 { margin: 0 0 10px; color: #d9d9d5; font-size: .92rem; letter-spacing: 0; }
.rules ul { margin: 0; padding-left: 19px; }
.rules li + li { margin-top: 6px; }

.registration-form .check-row {
  color: #c2c2be;
  font-size: .8rem;
}

#turnstile-container {
  width: 100%;
  min-height: 65px;
}

.payment-action {
  display: grid;
  padding-top: 0;
  text-align: center;
}

.payment-action .button {
  width: 100%;
  min-height: 54px;
  font-size: 1.12rem;
}

/* Compra avulsa do kit: arte editorial à esquerda e checkout à direita. */
.kit-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color-scheme: light;
  color: #102b55;
  background: #f3f0ea;
}

.kit-main {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 46%);
  background-color: #f3f0ea;
  background-image: url('../assets/evento/fundo_kit.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.kit-mobile-art { display: none; }

.kit-form-panel {
  grid-column: 2;
  height: 100%;
  min-width: 0;
  padding: clamp(8px, 1.8vh, 18px) clamp(18px, 3vw, 40px);
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
}

.kit-back {
  width: fit-content;
  color: #153f7a;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.kit-form-card {
  width: min(100%, 510px);
  max-height: calc(100dvh - 48px);
  margin-left: auto;
  padding: clamp(14px, 2.2vh, 20px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  color: #fff;
  background: #193c88;
  box-shadow: 0 28px 90px rgba(11, 48, 104, .18);
  backdrop-filter: blur(12px);
}

.kit-form-card h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.kit-intro {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  line-height: 1.35;
}

.kit-price {
  width: fit-content;
  margin-bottom: 9px;
  padding: 4px 10px;
  border-radius: 10px;
  color: #0b5ca8;
  background: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.kit-form { display: grid; gap: 8px; }
.kit-form .form-grid { gap: 9px; }
.kit-form .field-group { gap: 4px; }
.kit-form .field-group > span,
.kit-form .fieldset-reset legend {
  color: #fff;
  font-size: .78rem;
}
.kit-form .field {
  min-height: 38px;
  padding-block: 8px;
  border-color: #c6d1df;
  color: #102b55;
  background: #fff;
}
.kit-form .field:focus {
  border-color: #f3c84b;
  box-shadow: 0 0 0 3px rgba(243, 200, 75, .16);
}
.kit-form .field::placeholder { color: #7f90a3; }

.kit-size-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.kit-size-grid label { position: relative; cursor: pointer; }
.kit-size-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.kit-size-grid span {
  min-height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #c6d1df;
  border-radius: 9px;
  color: #49627d;
  background: #fff;
  font-size: .76rem;
  font-weight: 850;
}
.kit-size-grid input:checked + span {
  border-color: #f3c84b;
  color: #193c88;
  background: #f3c84b;
}
.kit-size-grid input:focus-visible + span {
  outline: 3px solid rgba(243, 200, 75, .22);
  outline-offset: 2px;
}
.kit-form .check-row {
  color: rgba(255, 255, 255, .82);
  font-size: .7rem;
  line-height: 1.35;
}
.kit-form .check-row input { accent-color: #f3c84b; }
#kit-turnstile { min-height: 65px; }
.kit-pay-button {
  width: 100%;
  min-height: 44px;
  padding-block: 9px;
  color: #fff;
  background: #0b5ca8;
  box-shadow: 0 14px 34px rgba(3, 35, 91, .28);
}
.kit-form-card .notice {
  margin-bottom: 14px;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

@media (max-width: 860px) {
  .events-page {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  .events-page .event-main {
    height: auto;
    min-height: calc(100dvh - 77px);
  }
  .events-page .event-main > .event-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .events-page .events-intro { margin-bottom: 0; }
  .events-page .event-list-card { max-width: none; }
  .event-grid, .event-admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .admin-nav button { text-align: center; }
  .admin-nav-separator { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats-kits { grid-template-columns: repeat(3, 1fr); }
  .ticket { grid-template-columns: 1fr; }
  .kit-main { grid-template-columns: minmax(0, 1fr) minmax(360px, 52%); }
}

@media (max-width: 560px) {
  .event-shell { width: min(100% - 20px, 1120px); }
  .event-main { padding-top: 34px; }
  .form-grid, .stats { grid-template-columns: 1fr; }
  .stats-kits { grid-template-columns: 1fr; }
  .event-header-inner { min-height: 66px; }
  .event-logo { width: 118px; }
  .card { border-radius: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .field { max-width: none; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .checkin-scanner { padding: 14px; }
  .checkin-scanner-heading, .scanner-controls { align-items: stretch; flex-direction: column; }
  .checkin-scanner-heading .button, .scanner-controls .button { width: 100%; }
  .event-list-card { grid-template-rows: auto 1fr; }
  .event-list-copy { grid-template-columns: minmax(82px, 1fr) minmax(0, 3fr); padding: 20px; }
  .event-list-copy h2 { padding-left: 18px; font-size: clamp(1rem, 5vw, 1.3rem); }
  .event-detail-page .event-header { height: 66px; }
  .campaign-main { height: calc(100vh - 66px); height: calc(100dvh - 66px); }
  .campaign-content { padding: 14px 0; }
  .campaign-content h1 { font-size: clamp(2.7rem, 15vw, 5rem); }
  .campaign-button { min-height: 60px; }
  .registration-shell { width: min(100% - 20px, 720px); }
  .registration-main { padding: 10px 0 28px; }
  .registration-card { border-radius: 14px; padding: 20px 16px; }
  .registration-branding { margin-bottom: 0; gap: 16px; }
  .registration-event-logo { width: 122px; margin: -18px -4px 0 0; }
  .registration-card-heading h1 { margin-top: 26px; }
  .registration-card-heading p { font-size: clamp(1.05rem, 4.8vw, 1.3rem); }
  .registration-form { gap: 15px; }
  .registration-form .form-grid { gap: 15px; }
}

@media (max-width: 380px) {
  .event-list-copy {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 15px;
  }

  .event-list-copy h2 {
    padding-left: 12px;
    font-size: 1rem;
  }

  .event-list-date > span { font-size: 2.45rem; }
  .event-list-date strong,
  .event-list-date small { font-size: .7rem; }
}

@media (max-height: 650px) {
  .event-detail-page .event-header,
  .event-detail-page .event-header-inner { height: 60px; min-height: 60px; }
  .campaign-main { height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .campaign-content { padding: 10px 0; }
  .campaign-content h1 { font-size: clamp(2.5rem, 16vh, 5.4rem); }
  .campaign-copy { max-width: 560px; font-size: .92rem; line-height: 1.4; }
  .campaign-facts { margin-bottom: 10px; }
  .campaign-button { min-height: 58px; }
  .campaign-note { margin-top: 7px; font-size: .78rem; }
}

@media print {
  body { color: #000; background: #fff; }
  .event-header, .no-print, .event-back { display: none !important; }
  .event-main { padding: 0; }
  .event-shell { width: 100%; }
  .card { border: 1px solid #bbb; color: #000; background: #fff; box-shadow: none; }
  .muted, .lead { color: #333; }
  .ticket-mark { border: 1px solid #333; color: #000; background: transparent; }
  .token { border-color: #333; color: #000; background: #fff; }
}

/* Identidade visual das páginas públicas do encontro. */
.event-detail-page,
.registration-page {
  --bg: #f7f7f4;
  --line: rgba(18, 45, 78, .18);
  --text: #142b45;
  --muted: #40566d;
  --accent: #0b5ca8;
  --accent-dark: #ffffff;
  color: var(--text);
  background-color: var(--bg);
  background-image: url('../assets/evento/fundo_evento.webp');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.event-detail-page .event-header {
  border-bottom-color: #0b5ca8;
  background: #0b5ca8;
}

.event-detail-page .event-back { color: rgba(255, 255, 255, .82); }
.event-detail-page .event-back:hover { color: #f7f7f5; }
.event-detail-page .campaign-main { height: 100vh; height: 100dvh; background: transparent; }
.event-detail-page .campaign-glow {
  background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.22), transparent 38rem);
}
.event-detail-page .campaign-content h1 span,
.event-detail-page .campaign-facts strong { color: var(--accent); }
.event-detail-page .campaign-subtitle { color: var(--text); }
.event-detail-page .campaign-note { color: var(--text); }
.event-detail-page .campaign-button { color: #fff; background: #0b5ca8; }

.registration-page {
  --accent: #f3c84b;
  --accent-dark: #142b45;
  color-scheme: light;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)), url('../assets/evento/fundo_evento.webp');
}

.registration-card {
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  background: #193c88;
  box-shadow: 0 28px 80px rgba(15, 39, 88, .28);
}

.registration-card-heading p,
.registration-form .field-group small,
.registration-form .check-row,
.rules { color: rgba(255, 255, 255, .8); }

.registration-form .field-group > span,
.registration-form .fieldset-reset legend,
.rules h2 { color: #fff; }

.registration-form .field,
.choice-grid span {
  border-color: rgba(255, 255, 255, .36);
  color: #193c88;
  background: #fff;
}

.choice-grid input:checked + span {
  border-color: #f3c84b;
  color: #193c88;
  background: #f3c84b;
}

.registration-form .field { color: #142b45; }
.registration-form .field::placeholder { color: #718096; }
.registration-form .field:focus { border-color: #f3c84b; }
.registration-form .check-row input { accent-color: #f3c84b; }
.registration-page .rules {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(5, 22, 61, .2);
}
.registration-page .notice { border-color: rgba(255, 255, 255, .24); color: #fff; }
.registration-page .button-primary { background: #f3c84b; color: #142b45; }

/* Mobile: usa a arte vertical e deixa a campanha crescer naturalmente
   quando o conteúdo excede a altura disponível. */
@media (max-width: 767px) {
  .report-toolbar { grid-template-columns: 1fr; }
  .report-toolbar #report-message { grid-column: 1; }
  .report-toolbar .actions { display: grid; grid-template-columns: 1fr; }
  .report-filter .field, .report-toolbar .button { width: 100%; }

  /* Contenção móvel para conteúdos dinâmicos (identidade, tokens e locais). */
  .event-header-inner,
  .event-grid > *,
  .event-admin-grid > *,
  .ticket > *,
  .toolbar > *,
  .actions > *,
  .registration-branding > * {
    min-width: 0;
  }

  .event-header-inner { gap: 12px; }
  .event-header-inner > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-nav button { min-height: 44px; }

  .event-meta-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .event-meta-item strong,
  .notice,
  .lead {
    overflow-wrap: anywhere;
  }

  .toolbar > .actions,
  .ticket .actions:not(.table-pagination) {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .toolbar > .actions .field,
  .toolbar > .actions .button,
  .ticket .actions:not(.table-pagination) .button {
    width: 100%;
  }

  .table-wrap {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .event-detail-page {
    background-image: url('../assets/evento/fundo_evento_m.webp');
  }

  .registration-page {
    background-image:
      linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)),
      url('../assets/evento/fundo_evento_m.webp');
  }

  .event-detail-page,
  .registration-page {
    background-position: center top;
    background-attachment: scroll;
  }

  .event-header-inner,
  .event-detail-page .event-header {
    min-height: 66px;
    height: 66px;
  }

  .event-logo { width: 118px; }

  .events-page .event-main {
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
    padding: 28px 0 40px;
  }

  .events-page .event-main > .event-shell {
    gap: 22px;
  }

  .event-detail-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .event-detail-page .campaign-main {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .event-detail-page .campaign-content {
    height: auto;
    max-height: none;
    padding: clamp(24px, 5svh, 40px) 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .event-detail-page .campaign-content .eyebrow {
    max-width: 34ch;
    margin-inline: auto;
    font-size: .82rem;
    line-height: 1.4;
    letter-spacing: .1em;
  }

  .event-detail-page .campaign-event-logo-frame {
    width: clamp(270px, 50svh, 520px);
    max-width: 88%;
    margin-inline: auto;
  }

  .event-detail-page .campaign-content h1 {
    font-size: clamp(2.4rem, 14vw, 5rem);
  }

  .event-detail-page .campaign-copy {
    padding-inline: 6px;
  }

  .event-detail-page .campaign-facts {
    gap: 10px 18px;
  }

  .event-detail-page .campaign-button {
    width: 100%;
    padding-inline: 48px;
  }

  .kit-main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    background-color: #edf2f7;
    background-image: none;
  }

  .kit-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #edf2f7;
  }

  .kit-mobile-art {
    display: block;
    width: 100%;
    height: auto;
  }

  .kit-form-panel {
    grid-column: 1;
    width: min(92%, 480px);
    height: auto;
    margin: 0 auto;
    padding: 16px 8px max(24px, env(safe-area-inset-bottom));
    align-content: start;
    justify-items: stretch;
    gap: 6px;
  }

  .kit-form-card {
    width: 100%;
    max-height: none;
    margin: 0;
    border-radius: 16px;
    padding: 14px 12px;
  }

  .kit-form .field,
  .kit-form select { font-size: 16px; }

  .kit-form .form-grid { grid-template-columns: 1fr 1fr; }
  .kit-size-grid { grid-template-columns: repeat(3, 1fr); }

  .registration-main {
    min-height: 100svh;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .registration-form .field,
  .registration-form select {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .registration-branding { gap: 10px; }
  .registration-event-logo { width: 108px; }
  .registration-card-heading h1 { font-size: 1.65rem; }

  .campaign-button {
    padding-inline: 42px;
    font-size: 1.25rem;
  }
  .campaign-actions .campaign-button { font-size: 1.08rem; }
}
