/* =========================================================
   ELEVA — Estilos
   Paleta: verde (crescimento), dourado (sol), azul claro (céu)
   ========================================================= */
:root {
  --green-50: #EEFAF4;
  --green-100: #D9F3E6;
  --green-400: #3CC487;
  --green-500: #22A06B;
  --green-600: #198A5A;
  --green-700: #136D47;

  --sun-50: #FFF9E8;
  --sun-100: #FFF0C2;
  --sun-300: #FFD54F;
  --sun-500: #F5B301;
  --sun-700: #A87700;

  --sky-50: #F2F9FE;
  --sky-100: #E1F2FC;
  --sky-200: #C2E6F9;
  --sky-300: #8FD0F2;
  --sky-500: #3BA7DD;
  --sky-700: #1E6E9A;

  --ink: #0F2E44;
  --ink-2: #33536B;
  --muted: #607A8F;
  --line: #DCE8F0;
  --bg: #F6FAFD;
  --card: #FFFFFF;
  --danger: #D9534F;
  --danger-50: #FDEEEE;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 46, 68, .06), 0 1px 3px rgba(15, 46, 68, .05);
  --shadow: 0 6px 24px rgba(15, 46, 68, .08);
  --shadow-lg: 0 18px 50px rgba(15, 46, 68, .14);
  --topbar-h: 68px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.app { flex: 1; outline: none; padding-bottom: 32px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
svg.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { background: linear-gradient(90deg, var(--green-600), var(--sky-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sm { font-size: 1.1rem; }
.brand-sm img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav a:hover { background: var(--sky-50); text-decoration: none; }
.nav a.active { background: var(--green-50); color: var(--green-700); }
.topbar .spacer { flex: 1; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; font: inherit; }
.user-chip:hover { border-color: var(--sky-300); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--green-500), var(--sky-500)); font-size: .85rem; flex-shrink: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; display: none; }
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--sky-50); text-decoration: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- Bottom bar (mobile) ---------- */
.bottombar { display: none; }
@media (max-width: 760px) {
  .nav, .desk-only { display: none !important; }
  .bottombar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15, 46, 68, .06);
  }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px; }
  .bottombar a svg { width: 22px; height: 22px; }
  .bottombar a.active { color: var(--green-600); }
  .bottombar a:hover { text-decoration: none; }
  body { padding-bottom: 72px; }
  :root { --topbar-h: 60px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--green-500), var(--green-600)); color: #fff; box-shadow: 0 6px 16px rgba(34, 160, 107, .28); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(34, 160, 107, .38); }
.btn-sun { background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); color: var(--ink); box-shadow: 0 6px 16px rgba(245, 179, 1, .3); }
.btn-sky { background: var(--sky-500); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--sky-300); background: var(--sky-50); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sky-50); }
.btn-danger { background: #fff; color: var(--danger); border-color: #F2C5C4; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(59, 167, 221, .15); }
.input.invalid { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
}
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--green-500); margin-top: 2px; flex-shrink: 0; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input, .toolbar .input-icon .input { padding-left: 42px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
@media (max-width: 760px) { .card-pad { padding: 16px; } }
.section { padding: 28px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-confirmada, .b-publicado { background: var(--green-100); color: var(--green-700); }
.b-pendente { background: var(--sun-100); color: var(--sun-700); }
.b-cancelada { background: var(--danger-50); color: var(--danger); }
.b-encerrado { background: #EEF2F5; color: var(--muted); }
.b-rascunho { background: var(--sky-100); color: var(--sky-700); }
.b-sky { background: var(--sky-100); color: var(--sky-700); }
.b-sun { background: var(--sun-100); color: var(--sun-700); }
.b-green { background: var(--green-100); color: var(--green-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-200) 0%, var(--sky-100) 55%, var(--bg) 100%);
  padding: 48px 0 84px;
}
.hero::before { /* sol */
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -80px; top: -120px;
  background: radial-gradient(circle, var(--sun-300) 0%, rgba(255, 213, 79, .5) 38%, rgba(255, 213, 79, 0) 70%);
}
.hero::after { /* colinas */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background:
    radial-gradient(120% 140px at 20% 140px, var(--green-400) 60%, transparent 61%),
    radial-gradient(120% 160px at 85% 170px, var(--green-500) 60%, transparent 61%);
  opacity: .9;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 640px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--green-600), var(--sun-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 560px; }
.searchbox { margin-top: 22px; background: #fff; padding: 10px; border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; max-width: 920px; }
.searchbox .input { border-color: transparent; background: var(--sky-50); }
.searchbox .input:focus { background: #fff; }
@media (max-width: 860px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .s-q { grid-column: 1 / -1; } }
@media (max-width: 520px) { .searchbox { grid-template-columns: 1fr; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; }
.chip:hover { border-color: var(--green-400); }
.chip.active { background: var(--green-500); border-color: var(--green-500); color: #fff; }

/* ---------- Filtros / toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { width: auto; min-width: 150px; padding: 9px 12px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 10px; border-radius: 9px; cursor: pointer; color: var(--muted); display: inline-flex; font: inherit; font-weight: 600; gap: 6px; align-items: center; }
.seg button.active { background: var(--sky-100); color: var(--sky-700); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--green-700); border-bottom-color: var(--green-500); }
.tabs button .count { background: var(--sky-100); color: var(--sky-700); border-radius: 999px; padding: 1px 8px; font-size: .75rem; margin-left: 4px; }

/* ---------- Eventos: grade / lista ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.event-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; color: inherit; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--sky-100); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; position: relative; color: #fff; }
.cover-fallback::before { content: ''; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; right: -6%; top: -18%; background: radial-gradient(circle, rgba(255, 213, 79, .95), rgba(255, 213, 79, 0) 70%); }
.cover-fallback::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: radial-gradient(110% 100% at 30% 100%, rgba(255, 255, 255, .28) 60%, transparent 61%); }
.cover-fallback svg { width: 30%; height: 30%; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .15)); }
.cov-0 { background: linear-gradient(140deg, #3BA7DD, #22A06B); }
.cov-1 { background: linear-gradient(140deg, #22A06B, #8FD0F2); }
.cov-2 { background: linear-gradient(140deg, #F5B301, #3CC487); }
.cov-3 { background: linear-gradient(140deg, #1E6E9A, #3BA7DD); }
.cov-4 { background: linear-gradient(140deg, #198A5A, #F5B301); }
.cov-5 { background: linear-gradient(140deg, #8FD0F2, #3BA7DD); }
.date-badge { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: center; box-shadow: var(--shadow); line-height: 1.05; z-index: 2; }
.date-badge b { display: block; font-size: 1.25rem; color: var(--ink); }
.date-badge span { font-size: .7rem; font-weight: 800; color: var(--green-600); text-transform: uppercase; letter-spacing: .06em; }
.cover .tag { position: absolute; right: 12px; top: 12px; z-index: 2; }
.event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-body h3 { margin: 0; font-size: 1.07rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.event-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.price small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.price b { font-size: 1.05rem; color: var(--green-700); }

.events-list { display: flex; flex-direction: column; gap: 14px; }
.events-list .event-card { flex-direction: row; }
.events-list .cover { width: 240px; aspect-ratio: auto; min-height: 150px; flex-shrink: 0; }
.events-list .event-body { padding: 16px 20px; }
@media (max-width: 620px) {
  .events-list .event-card { flex-direction: column; }
  .events-list .cover { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
}

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .empty-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--sky-100); color: var(--sky-700); display: grid; place-items: center; }
.empty .empty-ico svg { width: 34px; height: 34px; }

/* ---------- Detalhe do evento ---------- */
.event-hero { position: relative; height: clamp(200px, 34vw, 360px); overflow: hidden; background: var(--sky-100); }
.event-hero img, .event-hero .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.event-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 46, 68, 0) 40%, rgba(15, 46, 68, .55)); }
.event-head { margin-top: -70px; position: relative; z-index: 2; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 960px) { .event-layout { grid-template-columns: 1fr; } }
.side-sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; }
.info-item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.ico.green { background: var(--green-100); color: var(--green-700); }
.ico.sun { background: var(--sun-100); color: var(--sun-700); }
.ico.sky { background: var(--sky-100); color: var(--sky-700); }
.info-item small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.info-item b { font-weight: 700; }
.prose { white-space: normal; color: var(--ink-2); }
.prose p { margin: 0 0 .8em; }
.cat-table { width: 100%; border-collapse: collapse; }
.cat-table th, .cat-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.cat-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.map-embed { width: 100%; height: 300px; border: 0; border-radius: 14px; }

/* ---------- Inscrição ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .88rem; }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-700); font-size: .8rem; flex-shrink: 0; }
.step.active { border-color: var(--green-400); color: var(--ink); box-shadow: 0 0 0 3px var(--green-50); }
.step.active .n { background: var(--green-500); color: #fff; }
.step.done .n { background: var(--green-100); color: var(--green-700); }
@media (max-width: 620px) { .step span.lbl { display: none; } .step { justify-content: center; } }
.option-cards { display: grid; gap: 12px; }
.option-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.option-card:hover { border-color: var(--sky-300); }
.option-card.selected { border-color: var(--green-500); background: var(--green-50); }
.option-card.disabled { opacity: .5; cursor: not-allowed; }
.option-card input { accent-color: var(--green-500); width: 20px; height: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-row b { text-align: right; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--green-50); border-radius: 12px; margin-top: 12px; }
.total-row b { font-size: 1.3rem; color: var(--green-700); }
.notice { padding: 14px 16px; border-radius: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.notice svg { margin-top: 2px; }
.notice.sun { background: var(--sun-50); border: 1px solid var(--sun-100); color: #6B4E00; }
.notice.sky { background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--sky-700); }
.notice.green { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700); }
.notice.danger { background: var(--danger-50); border: 1px solid #F2C5C4; color: var(--danger); }

/* ---------- Minhas inscrições ---------- */
.reg-card { display: flex; gap: 16px; padding: 16px; align-items: center; }
.reg-card .thumb { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.reg-card .thumb img, .reg-card .thumb .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.reg-card .thumb .cover-fallback svg { width: 44%; height: 44%; }
.reg-card .grow { min-width: 0; }
.reg-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.reg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 680px) {
  .reg-card { flex-wrap: wrap; }
  .reg-card .thumb { width: 64px; height: 64px; }
  .reg-actions { width: 100%; justify-content: stretch; }
  .reg-actions .btn { flex: 1; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat small { color: var(--muted); font-weight: 600; display: block; font-size: .82rem; }
.stat b { font-size: 1.7rem; font-weight: 800; display: block; margin-top: 4px; }
.stat.green { border-top: 4px solid var(--green-500); }
.stat.sun { border-top: 4px solid var(--sun-500); }
.stat.sky { border-top: 4px solid var(--sky-500); }
.stat.red { border-top: 4px solid var(--danger); }

/* ---------- Ingresso ---------- */
.ticket { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.ticket-top { padding: 22px 24px; color: #fff; background: linear-gradient(135deg, var(--green-500), var(--sky-500)); position: relative; overflow: hidden; }
.ticket-top::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; top: -70px; background: radial-gradient(circle, rgba(255, 213, 79, .95), rgba(255, 213, 79, 0) 70%); }
.ticket-top > * { position: relative; }
.ticket-top h2 { margin: 6px 0 4px; font-size: 1.35rem; }
.ticket-top .brand-line { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em; font-size: .82rem; opacity: .95; }
.ticket-top .brand-line img { width: 22px; height: 22px; border-radius: 6px; }
.ticket-cut { position: relative; height: 26px; background: #fff; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { left: -13px; }
.ticket-cut::after { right: -13px; }
.ticket-cut span { position: absolute; left: 22px; right: 22px; top: 12px; border-top: 2px dashed var(--line); }
.ticket-qr { padding: 6px 24px 10px; text-align: center; }
.ticket-qr .qr { width: 220px; height: 220px; margin: 0 auto; position: relative; }
.ticket-qr .qr svg { width: 100%; height: 100%; }
.ticket-qr .qr.dim svg { opacity: .18; filter: blur(1px); }
.ticket-qr .qr .qr-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; color: var(--sun-700); padding: 20px; }
.ticket-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; margin-top: 6px; }
.ticket-info { padding: 8px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ticket-info div small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ticket-info div b { font-size: .95rem; }
.ticket-info .full { grid-column: 1 / -1; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--topbar-h) - 140px); display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(600px 300px at 90% 0%, var(--sun-100), transparent 70%), radial-gradient(700px 400px at 0% 100%, var(--sky-100), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand { justify-content: center; width: 100%; margin-bottom: 8px; }

/* ---------- Perfil ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding-top: 24px; }
.admin-side { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.admin-side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.admin-side a:hover { background: var(--sky-50); text-decoration: none; }
.admin-side a.active { background: var(--green-50); color: var(--green-700); }
.admin-side .side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 8px 12px 4px; }
@media (max-width: 960px) {
  .admin-wrap { grid-template-columns: 1fr; padding-top: 16px; }
  .admin-side { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .admin-side .side-title { display: none; }
  .admin-side a { white-space: nowrap; }
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; background: var(--sky-50); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FBFDFF; }
.table select.input { padding: 6px 10px; font-size: .85rem; width: auto; }
.cat-editor { display: flex; flex-direction: column; gap: 10px; }
.cat-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.8fr auto; gap: 8px; align-items: end; padding: 12px; background: var(--sky-50); border-radius: 12px; }
.cat-row .field label { font-size: .75rem; }
.cat-row .input { padding: 9px 10px; }
@media (max-width: 900px) { .cat-row { grid-template-columns: 1fr 1fr; } .cat-row .c-name { grid-column: 1 / -1; } }
.img-drop { border: 2px dashed var(--sky-300); border-radius: 14px; padding: 16px; display: flex; gap: 16px; align-items: center; background: var(--sky-50); flex-wrap: wrap; }
.img-drop .preview { width: 200px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.img-drop .preview img { width: 100%; height: 100%; object-fit: cover; }
.form-section { padding-bottom: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { display: flex; gap: 8px; align-items: center; color: var(--green-700); }
.checkin-box { max-width: 560px; }
.checkin-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .1em; }
.scanner video { width: 100%; border-radius: 14px; background: #000; max-height: 340px; object-fit: cover; }

/* ---------- Modal / Toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 46, 68, .45); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); padding: 24px; animation: pop .18s ease; max-height: 90vh; overflow: auto; }
.modal h3 { margin-bottom: 8px; }
.modal .row { justify-content: flex-end; margin-top: 18px; }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
@media (max-width: 760px) { .toasts { bottom: 86px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; display: flex; gap: 10px; align-items: center; animation: pop .2s ease; pointer-events: auto; width: 100%; }
.toast.success { background: var(--green-600); }
.toast.error { background: var(--danger); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--sky-100); border-top-color: var(--green-500); animation: spin .8s linear infinite; }
.loading-page { display: grid; place-items: center; min-height: 50vh; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EEF4F8 25%, #F7FAFC 50%, #EEF4F8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; margin-top: 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.footer p { margin: 0; color: var(--ink-2); }

/* ---------- Impressão ---------- */
@media print {
  .topbar, .bottombar, .footer, .no-print, .toasts { display: none !important; }
  body { background: #fff; padding: 0; }
  .ticket { box-shadow: none; border: 1px solid #ccc; }
  .ticket-cut::before, .ticket-cut::after { background: #fff; }
}
