:root {
  --ink: #102a23;
  --ink-2: #1b3a31;
  --paper: #f7f3e9;
  --surface: #fffdf8;
  --surface-2: #efe8d8;
  --line: #ded5c3;
  --muted: #6e746e;
  --accent: #ba5428;
  --accent-dark: #8e3b1a;
  --gold: #d9aa5f;
  --success: #247052;
  --warning: #9a6419;
  --danger: #a0362d;
  --shadow: 0 18px 55px rgba(16, 42, 35, .11);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(186,84,40,.34); outline-offset: 3px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; z-index: 30; top: 0; backdrop-filter: blur(18px); background: rgba(247,243,233,.9); border-bottom: 1px solid rgba(16,42,35,.08); }
.header-inner { width: min(1180px, calc(100% - 36px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.035em; font-size: 18px; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--surface); background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-mark::before { content: "S"; font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { border: 0; background: transparent; color: #43504a; padding: 10px 13px; border-radius: 11px; font-weight: 700; font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: rgba(16,42,35,.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); width: 42px; height: 42px; border-radius: 12px; }
.mobile-nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 750; font-size: 13px; }
.avatar { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-weight: 900; }

main { flex: 1; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-tight { padding: 42px 0 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 900; color: var(--accent-dark); }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 6.2vw, 82px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.04em; font-weight: 650; }
h3 { font-size: 20px; letter-spacing: -.025em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #52615a; line-height: 1.65; max-width: 650px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn { appearance: none; border: 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 13px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn-primary { color: white; background: var(--accent); box-shadow: 0 10px 24px rgba(186,84,40,.22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { color: white; background: var(--ink); box-shadow: 0 10px 24px rgba(16,42,35,.18); }
.btn-light { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid rgba(16,42,35,.18); }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.link { color: var(--accent-dark); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(186,84,40,.3); text-underline-offset: 4px; }

.hero { position: relative; overflow: hidden; padding: 94px 0 78px; background: var(--ink); color: white; }
.hero::after { content: ""; position: absolute; width: 610px; height: 610px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; top: -320px; right: -120px; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: #f0c98a; }
.hero h1 { max-width: 760px; }
.hero h1 em { color: #efc47e; font-style: italic; }
.hero .lead { color: rgba(255,255,255,.71); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-light { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: white; }
.hero-note { margin-top: 21px; display: flex; align-items: center; gap: 13px; font-size: 13px; color: rgba(255,255,255,.67); }
.hero-note-badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(239,196,126,.14); color: #efc47e; }
.featured-event { position: relative; min-height: 490px; overflow: hidden; border-radius: 30px; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.featured-event img { width: 100%; height: 100%; min-height: 490px; object-fit: cover; }
.featured-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(to top, rgba(6,18,15,.96), rgba(6,18,15,.08) 70%); }
.featured-kicker { width: fit-content; margin-bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(239,196,126,.92); color: var(--ink); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.featured-overlay h3 { font-family: Georgia, serif; font-size: 31px; margin-bottom: 10px; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: rgba(255,255,255,.75); font-size: 13px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; max-width: 680px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 35px rgba(16,42,35,.055); transition: transform .22s ease, box-shadow .22s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card-media { position: relative; height: 225px; background: var(--surface-2); overflow: hidden; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover img { transform: scale(1.035); }
.date-tab { position: absolute; top: 15px; left: 15px; min-width: 58px; padding: 9px 10px; border-radius: 12px; text-align: center; background: rgba(255,253,248,.94); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.date-tab strong { display: block; font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.date-tab span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--accent-dark); }
.event-card-body { padding: 22px; }
.event-card-body h3 { margin-bottom: 9px; }
.event-card-body p { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 43px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 15px 0 20px; font-size: 12px; font-weight: 750; color: #5e6964; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-footer .price-from { font-size: 12px; color: var(--muted); }
.card-footer .price-from strong { display: block; color: var(--ink); font-size: 17px; }
.empty-state { padding: 50px 26px; border: 1px dashed #cfc4ae; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.42); }
.empty-state h3 { margin-bottom: 8px; }

.promise-strip { background: #e8dfcd; border-block: 1px solid #d8ccb5; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise { padding: 32px 30px; border-right: 1px solid #d3c5aa; }
.promise:last-child { border-right: 0; }
.promise strong { display: block; margin-bottom: 7px; font-family: Georgia, serif; font-size: 21px; }
.promise p { margin: 0; color: #667069; line-height: 1.5; font-size: 13px; }

.page-hero { padding: 52px 0 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.event-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.event-detail-image { min-height: 430px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.event-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-copy { display: flex; flex-direction: column; justify-content: center; }
.event-detail-copy h1 { font-size: clamp(42px, 5vw, 68px); }
.detail-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 25px; }
.pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); font-size: 12px; font-weight: 800; }
.category-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.category-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.category-top { display: flex; justify-content: space-between; gap: 12px; }
.category-price { font-family: Georgia, serif; font-size: 24px; color: var(--accent-dark); white-space: nowrap; }
.category-card p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.category-stats { display: flex; gap: 15px; margin: 18px 0; font-size: 12px; color: var(--muted); }
.category-stats strong { color: var(--ink); }

.flow-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(16,42,35,.05); }
.panel-header { padding: 23px 24px 0; }
.panel-body { padding: 24px; }
.sticky-summary { position: sticky; top: 100px; }
.summary-image { height: 165px; overflow: hidden; border-radius: 18px 18px 0 0; }
.summary-image img { width: 100%; height: 100%; object-fit: cover; }
.summary-list { display: grid; gap: 11px; }
.summary-line { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 13px; }
.summary-line:last-child { border-bottom: 0; }
.summary-total { font-size: 18px; font-weight: 900; }

.legend { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(58px,1fr)); gap: 9px; }
.slot { min-height: 48px; border: 1px solid #cfc5b4; border-radius: 11px; background: #fff; color: var(--ink); font-weight: 900; }
.slot.available:hover { border-color: var(--accent); color: var(--accent-dark); box-shadow: 0 5px 15px rgba(186,84,40,.12); }
.slot.selected { color: white; background: var(--accent); border-color: var(--accent); }
.slot.reserved { color: #88601c; background: #f6ebcf; border-color: #e5cb8b; cursor: not-allowed; }
.slot.confirmed { color: #507066; background: #dbe7e1; border-color: #bed3c9; cursor: not-allowed; }
.slot.blocked { color: #888; background: #eeeae3; cursor: not-allowed; }
.selection-bar { position: sticky; bottom: 16px; z-index: 15; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-radius: 16px; background: var(--ink); color: white; box-shadow: 0 17px 42px rgba(16,42,35,.28); }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 850; color: #48554f; }
.field input, .field select, .field textarea { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #cfc7b8; border-radius: 12px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 115px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(186,84,40,.10); }
.field-hint { font-size: 11px; color: var(--muted); }
.form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section-title { margin-bottom: 16px; font-size: 15px; }
.form-error { padding: 12px 14px; margin-bottom: 17px; color: #842c25; background: #fbe5df; border: 1px solid #efc1b5; border-radius: 11px; font-size: 13px; }

.auth-page { min-height: calc(100vh - 77px); display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-aside { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 58px; color: white; background: var(--ink); }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; top: -180px; left: -180px; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.auth-aside-content { position: relative; max-width: 520px; }
.auth-aside h2 { color: white; }
.auth-aside p { color: rgba(255,255,255,.68); line-height: 1.7; }
.auth-main { display: grid; place-items: center; padding: 50px 24px; }
.auth-card { width: min(460px,100%); }
.auth-card h1 { font-size: 47px; }
.auth-card .lead { font-size: 15px; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.demo-credentials { margin: 18px 0; padding: 13px; border-radius: 12px; background: var(--surface-2); font-size: 12px; line-height: 1.6; }

.payment-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 22px; }
.payment-method { text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.payment-method.selected { border: 2px solid var(--accent); background: #fff9f2; }
.payment-method strong { display: block; margin-bottom: 5px; }
.payment-method span { font-size: 12px; color: var(--muted); }
.pix-box { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qr-grid { width: 190px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(17,1fr); padding: 10px; background: white; border: 1px solid #ddd; }
.qr-grid i { background: white; }
.qr-grid i.on { background: #111; }
.copy-code { display: flex; gap: 8px; }
.copy-code input { min-width: 0; flex: 1; }
.checkout-safe { display: flex; gap: 11px; margin-top: 19px; padding: 13px; border-radius: 12px; background: #e5eee9; color: #285846; font-size: 12px; line-height: 1.45; }
.confirmation { text-align: center; padding: 42px 25px; }
.confirmation-mark { width: 74px; height: 74px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 32px; }
.registration-card { overflow: hidden; border-radius: 24px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.registration-card-top { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 27px; border-bottom: 1px dashed rgba(255,255,255,.25); }
.registration-number { font-family: Georgia, serif; font-size: 56px; color: #efc47e; line-height: 1; }
.registration-card-body { display: grid; grid-template-columns: repeat(2,1fr); gap: 19px; padding: 27px; }
.registration-data span { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 900; }
.registration-data strong { font-size: 14px; }

.admin-shell { min-height: calc(100vh - 77px); display: grid; grid-template-columns: 250px minmax(0,1fr); }
.admin-sidebar { position: sticky; top: 77px; height: calc(100vh - 77px); padding: 25px 17px; color: white; background: var(--ink); }
.admin-label { padding: 0 12px; margin: 4px 0 15px; color: rgba(255,255,255,.48); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 900; }
.admin-menu { display: grid; gap: 5px; }
.admin-menu a { padding: 11px 12px; border-radius: 10px; color: rgba(255,255,255,.69); font-size: 13px; font-weight: 750; }
.admin-menu a:hover, .admin-menu a.active { color: white; background: rgba(255,255,255,.1); }
.admin-sidebar-footer { position: absolute; bottom: 24px; inset-inline: 17px; padding: 14px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 11px; }
.admin-main { min-width: 0; padding: 38px clamp(22px,4vw,52px) 70px; background: #f4f1e9; }
.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.admin-page-header h1 { margin-bottom: 7px; font-family: inherit; font-size: clamp(30px,4vw,42px); font-weight: 850; letter-spacing: -.045em; }
.admin-page-header p { margin: 0; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 22px; }
.kpi { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kpi-label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { display: block; font-size: clamp(24px,3vw,32px); line-height: 1; letter-spacing: -.04em; }
.kpi-note { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.data-panel { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); overflow: hidden; }
.data-panel-header { min-height: 61px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.data-panel-header h3 { margin: 0; font-size: 16px; }
.data-panel-body { padding: 19px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 11px 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #ebe5d9; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.status.confirmed, .status.paid { color: #1c6348; background: #dfeee7; }
.status.reserved, .status.pending { color: #8a5b12; background: #f6e9c9; }
.status.expired, .status.cancelled { color: #86403a; background: #f3dfdc; }
.event-admin-list { display: grid; gap: 13px; }
.event-admin-row { display: grid; grid-template-columns: 86px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.event-admin-row img { width: 86px; height: 68px; object-fit: cover; border-radius: 10px; }
.event-admin-row h3 { margin-bottom: 4px; font-size: 15px; }
.event-admin-row p { margin: 0; color: var(--muted); font-size: 11px; }
.event-admin-stats { display: flex; gap: 20px; text-align: right; }
.event-admin-stats strong { display: block; }
.event-admin-stats span { font-size: 10px; color: var(--muted); }

.category-builder { display: grid; gap: 13px; }
.category-editor { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; }
.category-editor-grid { display: grid; grid-template-columns: 1.4fr .8fr .65fr .65fr .85fr; gap: 11px; align-items: end; }
.remove-category { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--danger); font-weight: 900; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 42px; font-size: 12px; font-weight: 750; }
.check-row input { width: 17px; height: 17px; }
.image-drop { position: relative; min-height: 180px; display: grid; place-items: center; overflow: hidden; padding: 20px; border: 1px dashed #b8ad99; border-radius: 16px; background: #f7f3e9; text-align: center; }
.image-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-drop-content { position: relative; z-index: 1; padding: 12px; border-radius: 12px; background: rgba(255,253,248,.9); }

.report-filters { margin-bottom: 20px; }
.filter-grid { display: grid; grid-template-columns: repeat(6,minmax(110px,1fr)); gap: 11px; }
.filter-actions { display: flex; align-items: flex-end; gap: 9px; }
.report-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 20px; margin-bottom: 20px; }
.chart-wrap { min-height: 360px; padding: 10px 0 0; overflow-x: auto; }
.chart-svg { width: 100%; min-width: 560px; height: 320px; overflow: visible; }
.chart-grid { stroke: #ded8cc; stroke-width: 1; }
.chart-bar { fill: var(--accent); transition: opacity .15s; }
.chart-bar:hover { opacity: .78; }
.chart-label { fill: #626d67; font-size: 10px; }
.chart-value { fill: var(--ink); font-size: 10px; font-weight: 800; }
.breakdown-list { display: grid; gap: 15px; }
.breakdown-item-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 12px; }
.breakdown-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ebe5d9; }
.breakdown-track span { display: block; height: 100%; border-radius: inherit; background: var(--ink-2); }
.report-tabs { display: flex; gap: 7px; margin-bottom: 15px; overflow-x: auto; }
.report-tab { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 11px; font-weight: 800; }
.report-tab.active { color: white; background: var(--ink); border-color: var(--ink); }

.loading { min-height: 300px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #d9d0c0; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(360px,calc(100% - 36px)); }
.toast { padding: 14px 15px; border-radius: 13px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .22s ease; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { position: relative; overflow: hidden; background: #e7e0d3; border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.site-footer { padding: 36px 0; color: rgba(255,255,255,.65); background: #0b201a; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { color: white; }

@media (max-width: 1020px) {
  .hero-grid, .event-detail-hero { grid-template-columns: 1fr; }
  .featured-event { min-height: 390px; }
  .featured-event img { min-height: 390px; }
  .event-grid { grid-template-columns: repeat(2,1fr); }
  .flow-layout { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .admin-shell { grid-template-columns: 210px minmax(0,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .admin-grid, .report-layout { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(3,1fr); }
  .category-editor-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .header-inner { width: min(100% - 24px,1180px); min-height: 68px; }
  .mobile-nav-toggle { display: block; margin-left: auto; }
  .main-nav, .header-actions { display: none; }
  .site-header.open .main-nav, .site-header.open .header-actions { display: grid; position: absolute; left: 12px; right: 12px; top: 62px; padding: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .header-actions { top: auto; margin-top: 180px; }
  .nav-link { text-align: left; }
  .container { width: min(100% - 24px,1180px); }
  .section { padding: 60px 0; }
  .hero { padding: 66px 0 54px; }
  .hero-grid { gap: 38px; }
  .hero h1 { font-size: 49px; }
  .event-grid, .category-list { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise { border-right: 0; border-bottom: 1px solid #d3c5aa; }
  .promise:last-child { border-bottom: 0; }
  .section-heading, .admin-page-header { align-items: flex-start; flex-direction: column; }
  .event-detail-image { min-height: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .payment-methods { grid-template-columns: 1fr; }
  .pix-box { grid-template-columns: 1fr; }
  .qr-grid { margin: 0 auto; }
  .registration-card-body { grid-template-columns: 1fr; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 12px; overflow-x: auto; }
  .admin-label, .admin-sidebar-footer { display: none; }
  .admin-menu { display: flex; width: max-content; }
  .admin-main { padding: 28px 12px 55px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .event-admin-row { grid-template-columns: 70px minmax(0,1fr); }
  .event-admin-row img { width: 70px; height: 62px; }
  .event-admin-stats { grid-column: 1 / -1; justify-content: flex-start; text-align: left; padding-left: 86px; }
  .category-editor-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .featured-event, .featured-event img { min-height: 340px; }
  .kpi-grid, .filter-grid { grid-template-columns: 1fr; }
  .selection-bar { align-items: stretch; flex-direction: column; }
  .selection-bar .btn { width: 100%; }
}
@media print {
  .site-header, .site-footer, .no-print, .admin-sidebar { display: none !important; }
  .admin-shell { display: block; }
  body { background: white; }
  .panel, .registration-card { box-shadow: none; }
}
