:root {
  --bg: #ffffff;
  --fg: #202124;
  --fg-2: #3c4043;
  --muted: #5f6368;
  --muted-2: #80868b;
  --surface: #f8f9fa;
  --surface-2: #f1f3f4;
  --border: #dadce0;
  --hair: #e8eaed;
  --blue: #1a73e8;
  --blue-hover: #1765cc;
  --blue-tint: #e8f0fe;
  --blue-ink: #174ea6;
  --red: #ea4335;
  --red-tint: #fce8e6;
  --red-ink: #c5221f;
  --yellow: #fbbc04;
  --yellow-tint: #fef7e0;
  --yellow-ink: #b06000;
  --green: #34a853;
  --green-tint: #e6f4ea;
  --green-ink: #137333;
  --r-card: 24px;
  --r-input: 12px;
  --shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --shadow-lg: 0 8px 28px rgba(60,64,67,.18);
  --font: "Google Sans Flex", "Google Sans", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- utilitários Google ---- */
.label {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.label-blue { color: var(--blue); }
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--fg-2);
}
.chip-blue { background: var(--blue-tint); color: var(--blue-ink); }
.gdots { display: inline-flex; gap: 3px; margin-right: 8px; }
.gdots b { width: 6px; height: 6px; border-radius: 50%; display: block; }
.gdots b:nth-child(1) { background: var(--blue); }
.gdots b:nth-child(2) { background: var(--red); }
.gdots b:nth-child(3) { background: var(--yellow); }
.gdots b:nth-child(4) { background: var(--green); }
.gbar { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.gbar b:nth-child(1) { background: var(--blue); }
.gbar b:nth-child(2) { background: var(--red); }
.gbar b:nth-child(3) { background: var(--yellow); }
.gbar b:nth-child(4) { background: var(--green); }
.ic {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
}
.ic svg { width: 20px; height: 20px; }
.ic-blue { background: var(--blue-tint); color: var(--blue); }
.ic-red { background: var(--red-tint); color: var(--red); }
.ic-yellow { background: var(--yellow-tint); color: var(--yellow-ink); }
.ic-green { background: var(--green-tint); color: var(--green-ink); }
.ic-lg { width: 56px; height: 56px; }
.ic-lg svg { width: 26px; height: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease, transform .08s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(26,115,232,.3); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 12px rgba(26,115,232,.3); }
.btn-tonal { background: var(--blue-tint); color: var(--blue-ink); }
.btn-tonal:hover { background: #d2e3fc; }
.btn-text { background: transparent; color: var(--blue); padding: 0 12px; }
.btn-text:hover { background: var(--blue-tint); }
.btn-block { width: 100%; height: 52px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* ---- topo ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 24px; width: auto; flex: none; object-fit: contain; }
.nav { flex: none; }
.brand-name { font-size: 20px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav-pill {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--fg-2);
  transition: background .15s ease, color .15s ease;
}
.nav-pill:hover { background: var(--surface-2); }
.nav-pill.is-active { background: var(--blue-tint); color: var(--blue-ink); }

/* ---- hero ---- */
.hero { position: relative; background: #fff; }
.hero-grid { display: grid; gap: 36px; padding: 40px 20px 48px; }
.eyebrow {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--hair);
  font-size: 13px; font-weight: 500; color: var(--fg-2); margin-bottom: 22px;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg);
}
.lead { margin: 0 0 28px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--fg); font-weight: 600; }

.facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.facts li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.facts strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.facts small { display: block; font-size: 13px; color: var(--muted); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.counter { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.counter b { color: var(--fg); font-weight: 600; }

.hero-card {
  background: #fff; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--hair);
  align-self: center;
}
.hero-card-img { width: 100%; height: auto; }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.hero-card-foot strong { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ---- etapas ---- */
main.wrap { padding-top: 56px; padding-bottom: 56px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 32px;
}
.step {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap; min-width: 0;
  transition: background .15s ease, box-shadow .15s ease;
}
.step.is-active { background: #fff; box-shadow: var(--shadow); color: var(--fg); font-weight: 600; }
.num {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; font-style: normal; color: #fff; flex: none;
}
.n-blue { background: var(--blue); } .n-red { background: var(--red); } .n-green { background: var(--green); }

.panel { display: none; }
.panel.is-active { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 24px; }
.card-soft { background: var(--surface); border-color: transparent; }
.card-form { padding: 28px 22px; }
h2 { margin: 8px 0 6px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.note { margin: 0 0 24px; font-size: 14px; color: var(--muted); }

/* ---- formulário ---- */
#form-inscricao { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--fg-2); padding: 0; }
.field > legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted-2); }
.two { display: grid; gap: 20px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 16px;
  height: 52px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--r-input);
  background: #fff; color: var(--fg); outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { height: auto; padding: 14px 16px; resize: none; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9aa0a6; }
input:hover, textarea:hover { border-color: #9aa0a6; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--red); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode {
  position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 44px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.mode:hover { border-color: #9aa0a6; }
.mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-check {
  position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #9aa0a6; transition: all .12s ease;
}
.mode strong { font-size: 15px; font-weight: 600; }
.mode small { font-size: 13px; color: var(--muted); }
.mode:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.mode:has(input:checked) .mode-check { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }

.form-error { margin: 0; padding: 12px 16px; background: var(--red-tint); color: var(--red-ink); font-size: 14px; border-radius: var(--r-input); }

/* ---- lateral ---- */
.grid-form { display: grid; gap: 16px; }
.side { display: grid; gap: 16px; align-content: start; }
.agenda { margin: 14px 0 0; display: grid; }
.agenda > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.agenda > div:last-child { border-bottom: 0; padding-bottom: 0; }
.agenda dt { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.agenda dd { margin: 0; color: var(--muted); text-align: right; }
.agenda .hl dt { color: var(--blue); }
.agenda .hl dd { color: var(--fg); font-weight: 500; }
.side-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--fg-2); }
.side-list li { position: relative; padding-left: 18px; }
.side-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.side-list li:nth-child(2)::before { background: var(--blue); }
.side-list li:nth-child(3)::before { background: var(--yellow); }

/* ---- regras ---- */
.rules-head { padding: 4px 2px 22px; max-width: 680px; }
.lead-sm { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.rules { display: grid; gap: 16px; }
.rule { padding: 0; overflow: hidden; }
.rule h3 { display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 22px; font-size: 18px; font-weight: 600; }
.rule-ok h3 { background: var(--green-tint); color: var(--green-ink); }
.rule-no h3 { background: var(--red-tint); color: var(--red-ink); }
.rule ul { margin: 0; padding: 20px 22px 22px; list-style: none; display: grid; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.rule li { position: relative; padding-left: 18px; }
.rule li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; }
.rule-ok li::before { background: var(--green); }
.rule-no li::before { background: var(--red); }
.rule b { color: var(--fg); font-weight: 600; }
.bar { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 16px; font-weight: 500; background: var(--surface); border-color: transparent; }

/* ---- ingresso ---- */
.empty { text-align: center; padding: 40px 24px; display: grid; gap: 12px; justify-items: center; }
.empty h3 { margin: 6px 0 0; font-size: 22px; font-weight: 500; }
.empty p { margin: 0 0 10px; max-width: 460px; font-size: 15px; color: var(--muted); }

.ticket {
  position: relative; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; gap: 22px; padding: 0 22px 24px;
}
.gbar-top { margin: 0 -22px; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 6px; }
.ticket-title { margin: 8px 0 0; font-size: clamp(26px, 5vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.ticket-g { width: 40px; height: 40px; flex: none; margin-top: 4px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px;
  border-radius: 999px; font-size: 14px; font-weight: 600; width: fit-content;
}
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status-pill.s-pendente { background: var(--yellow-tint); color: var(--yellow-ink); }
.status-pill.s-aprovado { background: var(--green-tint); color: var(--green-ink); }
.status-pill.s-recusado { background: var(--red-tint); color: var(--red-ink); }
.ticket-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ticket-grid > div { display: grid; gap: 4px; }
.ticket-grid dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ticket-grid dd { margin: 0; font-size: 16px; font-weight: 600; word-break: break-word; }
.ticket-row { display: grid; gap: 6px; }
.ticket-row p { margin: 0; font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--border); margin: 4px -22px; }
.ticket-cut::before, .ticket-cut::after {
  content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--hair);
}
.ticket-cut::before { left: -13px; } .ticket-cut::after { right: -13px; }
.ticket-foot { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ticket-foot p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- rodapé ---- */
.foot { background: var(--surface); padding: 36px 0 44px; }
.foot-inner { display: grid; justify-items: center; text-align: center; gap: 6px; }
.foot-logo { height: 20px; width: auto; flex: none; object-fit: contain; margin-bottom: 6px; opacity: .9; }
.ticket-g { object-fit: contain; }
.foot p { margin: 0; font-size: 14px; color: var(--fg-2); }
.tiny { font-size: 12px !important; color: var(--muted-2) !important; max-width: 560px; }

/* ---- admin ---- */
main.admin-main { padding-top: 40px; padding-bottom: 56px; }
.admin-login { max-width: 420px; margin: 40px auto; display: grid; gap: 16px; text-align: center; justify-items: center; }
.admin-login form { display: grid; gap: 12px; width: 100%; text-align: left; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.tile { border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.tile b { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.tile span { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tile-total { background: var(--surface-2); color: var(--fg); }
.tile-pendente { background: var(--yellow-tint); color: var(--yellow-ink); }
.tile-aprovado { background: var(--green-tint); color: var(--green-ink); }
.tile-recusado { background: var(--red-tint); color: var(--red-ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"] {
  flex: 1 1 220px; height: 44px; padding: 0 16px 0 40px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 999px; outline: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat;
}
.toolbar input[type="search"]:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.seg button.is-active { background: #fff; box-shadow: var(--shadow); color: var(--fg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--blue-tint); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fg-2); cursor: pointer; margin-left: auto; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: #bdc1c6; position: relative; margin: 0; cursor: pointer; transition: background .15s ease; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s ease; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { left: 23px; }
.rows { display: grid; gap: 10px; }
.row {
  display: grid; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--hair); border-radius: 18px;
  grid-template-columns: 1fr; align-items: center;
}
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-main strong { font-size: 16px; font-weight: 600; }
.row-main small { font-size: 13px; color: var(--muted); word-break: break-word; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row-roupa { font-size: 13px; color: var(--fg-2); font-style: italic; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.s-pendente { background: var(--yellow-tint); color: var(--yellow-ink); }
.pill.s-aprovado { background: var(--green-tint); color: var(--green-ink); }
.pill.s-recusado { background: var(--red-tint); color: var(--red-ink); }
.act { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.act:hover { background: var(--surface-2); }
.act-ok { color: var(--green-ink); border-color: #a8dab5; } .act-ok:hover { background: var(--green-tint); }
.act-no { color: var(--red-ink); border-color: #f6aea9; } .act-no:hover { background: var(--red-tint); }
.act.is-current { background: var(--surface-2); pointer-events: none; opacity: .6; }
.muted-note { color: var(--muted); font-size: 14px; text-align: center; padding: 30px 0; }

/* ---- breakpoints ---- */
@media (min-width: 640px) {
  .two { grid-template-columns: 1fr 1fr; }
  .bar, .ticket-foot { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .card-form { padding: 36px; }
  .ticket { padding: 0 36px 32px; }
  .gbar-top, .ticket-cut { margin-left: -36px; margin-right: -36px; }
  .rules { grid-template-columns: 1fr 1fr; }
  .ticket-grid { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 64px 20px 72px; }
  .grid-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 20px; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand .chip { display: none; }
  .nav-pill { padding: 0 11px; font-size: 13px; }
  .facts { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .step { font-size: 13px; gap: 6px; }
  .hero-cta .btn-text { padding: 0 8px; height: 40px; font-size: 14px; }
}
@media (max-width: 360px) {
  .topbar-inner { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .brand-logo { height: 22px; }
  .nav { gap: 0; }
  .nav-pill { padding: 0 8px; font-size: 12.5px; height: 32px; }
}
