/*
 * Doe APAE Cuiabá — sistema visual
 * CSS puro, sem etapa de build. Uma única folha para portal público,
 * área do doador e administração. Ordem: tokens, base, layout, componentes,
 * páginas, impressão.
 */

/* ---------------------------------------------------------------------------
 * 1. Tokens
 * ------------------------------------------------------------------------- */
:root {
    --blue: #005ca9;
    --blue-700: #004c8c;
    --blue-800: #003f76;
    --blue-100: #dbeaf7;
    --blue-50: #eef5fb;
    --yellow: #f8dc00;
    --yellow-700: #b89f00;
    --yellow-50: #fff8d1;
    --green: #5f803c;
    --green-500: #7ba24f;
    --green-50: #eef5e6;
    --red: #b83232;
    --red-50: #fdeeee;
    --ink: #17232f;
    --text: #2b3a48;
    --muted: #61717f;
    --faint: #8b98a4;
    --line: #dde4ea;
    --line-strong: #c9d3db;
    --bg: #f5f7f9;
    --surface: #ffffff;
    --surface-2: #f8fafb;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(23, 35, 47, .06), 0 1px 3px rgba(23, 35, 47, .04);
    --shadow: 0 10px 28px rgba(23, 35, 47, .09);
    --focus: 0 0 0 3px rgba(0, 92, 169, .3);
    --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --header-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --bottom-nav-h: 60px;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------------------
 * 2. Base
 * ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .75em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--blue-800); }
strong, b { font-weight: 700; }
small { font-size: .875em; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { -webkit-tap-highlight-color: transparent; }
ul, ol { margin: 0; padding-left: 1.25rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code { font-family: var(--font-mono); font-size: .875em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid rgba(0, 92, 169, .55); outline-offset: 2px; }
::selection { background: rgba(248, 220, 0, .55); color: var(--ink); }
[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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Ícones */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------------
 * 3. Layout
 * ------------------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.container-narrow { max-width: 760px; }
.container-medium { max-width: 960px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1280px) { .container { padding-inline: 32px; } }
@media (min-width: 1920px) { .container { max-width: 1280px; } }
@media (min-width: 2400px) { html { font-size: 112.5%; } .container { max-width: 1440px; } .admin-content { max-width: 1440px; } }

.section { padding-block: 40px; }
.section-tight { padding-block: 24px; }
@media (min-width: 768px) { .section { padding-block: 56px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { color: var(--muted); margin-top: 4px; max-width: 60ch; }
.section-head .link-more { flex: none; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.kicker { display: block; margin-bottom: 6px; color: var(--blue); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.lead { font-size: 1.0625rem; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.stack-lg { display: grid; gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.text-muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .8125rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.money { font-variant-numeric: tabular-nums; }
.break-all { overflow-wrap: anywhere; }
.page-back { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.page-back:hover { color: var(--blue); }

/* Cabeçalho de página (páginas internas) */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 28px 0 20px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) { .page-head { padding: 40px 0 24px; } }

/* ---------------------------------------------------------------------------
 * 4. Botões
 * ------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink);
    font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--blue); padding-inline: 12px; }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #9c2929; border-color: #9c2929; color: #fff; }
.btn-danger-soft { background: var(--red-50); border-color: transparent; color: var(--red); }
.btn-danger-soft:hover { background: #f9dcdc; color: #8f2424; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #4e6a30; border-color: #4e6a30; color: #fff; }
.btn-accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #ecd000; border-color: #ecd000; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: 10px; min-width: 44px; }
.btn .icon { width: 1.125em; height: 1.125em; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(0, 92, 169, .3); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-button { appearance: none; border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--blue-800); }

/* ---------------------------------------------------------------------------
 * 5. Formulários
 * ------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } }
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.form-label small, .form-label .optional { font-weight: 500; color: var(--faint); }
.form-input {
    width: 100%; min-height: 46px; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-size: 1rem; line-height: 1.4;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-input::placeholder { color: var(--faint); }
.form-input:hover { border-color: #b3c0ca; }
.form-input:focus { outline: 0; border-color: var(--blue); box-shadow: var(--focus); }
.form-input:disabled { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
.form-input[readonly]:not(.is-code) { background: var(--surface-2); }
.form-input.is-invalid, .form-input[aria-invalid="true"] { border-color: var(--red); }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(184, 50, 50, .2); }
.form-input.is-valid { border-color: var(--green-500); }
textarea.form-input { min-height: 110px; resize: vertical; }
select.form-input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361717f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
input[type="file"].form-input { padding: 9px 12px; cursor: pointer; }
input[type="file"].form-input::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.form-input.is-code { font-family: var(--font-mono); font-size: .8125rem; line-height: 1.5; }
.form-help { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.form-error { display: flex; gap: 6px; align-items: flex-start; font-size: .8125rem; font-weight: 600; color: var(--red); line-height: 1.4; }
.form-error .icon { width: 1rem; height: 1rem; margin-top: 2px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.form-check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.form-check span { min-width: 0; }
.form-check a { font-weight: 600; }
.form-check-sm { font-size: .875rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions .form-actions-end { margin-left: auto; }
.form-section { display: grid; gap: 16px; }
.form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section-head h2, .form-section-head h3 { font-size: 1.0625rem; }
.form-section-head p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix .form-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.password-control { position: relative; display: block; }
.password-control .form-input { padding-right: 46px; }
.password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { background: var(--surface-2); color: var(--blue); }
.password-toggle .icon { width: 20px; height: 20px; }
.password-toggle .icon-eye-off { display: none; }
.password-control.is-visible .icon-eye { display: none; }
.password-control.is-visible .icon-eye-off { display: block; }
.form-switch { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.form-switch input { width: 40px; height: 22px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.form-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
.form-switch input:checked { background: var(--blue); }
.form-switch input:checked::after { transform: translateX(18px); }
.form-switch input:focus-visible { outline: 3px solid rgba(0, 92, 169, .55); outline-offset: 2px; }

/* Cartões de escolha (rádio/checkbox em bloco) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid.is-single { grid-template-columns: 1fr; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: #aab9c5; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice input:focus-visible ~ .choice-body { outline: 3px solid rgba(0, 92, 169, .55); outline-offset: 6px; border-radius: 4px; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-body { min-width: 0; display: grid; gap: 1px; }
.choice-body strong { font-size: .9375rem; }
.choice-body small { font-size: .8125rem; color: var(--muted); }
.choice-mark { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--blue); }
.choice:has(input:checked) .choice-mark { background: var(--blue); color: #fff; }
.choice-mark .icon { width: 20px; height: 20px; }
.choice-check { display: none; margin-left: auto; color: var(--blue); }
.choice:has(input:checked) .choice-check { display: block; }
.choice-inline { min-height: 44px; }

/* ---------------------------------------------------------------------------
 * 6. Superfícies
 * ------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
@media (min-width: 640px) { .card-body { padding: 24px; } }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.card-head h2, .card-head h3 { font-size: 1.125rem; }
.card-head p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.card-head + .card-body { padding-top: 16px; }
.card-flat { box-shadow: none; }
.card-soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.panel { padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.dl { display: grid; gap: 12px; margin: 0; }
.dl > div { display: grid; gap: 2px; }
.dl dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 640px) { .dl-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts { display: grid; gap: 10px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts > div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; color: var(--ink); }
.stat-row { display: grid; gap: 12px; }
@media (min-width: 480px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; min-width: 0; }
.stat span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.stat strong { font-size: 1.375rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat small { font-size: .8125rem; color: var(--faint); }
.stat-primary { border-color: var(--blue); background: var(--blue-50); }
.stat-primary strong { color: var(--blue-800); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 1rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.375rem; }
.avatar-sm { width: 36px; height: 36px; font-size: .8125rem; }
.avatar-square { border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------------------
 * 7. Badges e status
 * ------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #eceff2; color: #4c5b69; font-size: .75rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-lg { font-size: .875rem; padding: 5px 12px; }
.badge-success, .badge[data-status="active"], .badge[data-status="received"], .badge[data-status="confirmed"], .badge[data-status="paid"], .badge[data-status="published"], .badge[data-status="live"], .badge[data-status="done"], .badge[data-status="processed"], .badge[data-status="completed"], .badge[data-status="winner"], .badge[data-status="open"] { background: var(--green-50); color: #3f5d24; }
.badge-warning, .badge[data-status="pending"], .badge[data-status="awaiting_payment"], .badge[data-status="scheduled"], .badge[data-status="draft"], .badge[data-status="review_required"], .badge[data-status="pending_authorization"], .badge[data-status="reserved"], .badge[data-status="pending_payment"], .badge[data-status="invited"], .badge[data-status="scheduling"], .badge[data-status="processing"], .badge[data-status="in_bank_processing"], .badge[data-status="refund_pending"], .badge[data-status="paused"], .badge[data-status="created"] { background: var(--yellow-50); color: #6f5f00; }
.badge-danger, .badge[data-status="cancelled"], .badge[data-status="expired"], .badge[data-status="failed"], .badge[data-status="refunded"], .badge[data-status="refused"], .badge[data-status="chargeback"], .badge[data-status="blocked"], .badge[data-status="erasure_requested"], .badge[data-status="recovery_required"], .badge[data-status="cancelled_before_settlement"], .badge[data-status="partially_refunded"] { background: var(--red-50); color: #8f2424; }
.badge-info, .badge[data-status="drawn"], .badge[data-status="closed"], .badge[data-status="administrator"], .badge[data-status="manager"], .badge[data-status="auditor"] { background: var(--blue-50); color: var(--blue-800); }
.badge-plain::before { display: none; }
.live-dot::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------------------
 * 8. Alertas, avisos, toasts, vazios, carregamento
 * ------------------------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); font-size: .9375rem; line-height: 1.5; }
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert strong { display: block; color: var(--ink); }
.alert p, .alert span { color: var(--text); }
.alert ul { margin-top: 6px; padding-left: 18px; }
.alert-info { border-left-color: var(--blue); background: var(--blue-50); }
.alert-info .icon { color: var(--blue); }
.alert-success { border-left-color: var(--green-500); background: var(--green-50); }
.alert-success .icon { color: var(--green); }
.alert-warning { border-left-color: var(--yellow-700); background: var(--yellow-50); }
.alert-warning .icon { color: var(--yellow-700); }
.alert-danger { border-left-color: var(--red); background: var(--red-50); }
.alert-danger .icon { color: var(--red); }
.alert-body { min-width: 0; flex: 1; }
.alert-body a { font-weight: 600; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notice-errors { margin: 16px auto 0; }

.toast-region { position: fixed; top: calc(var(--header-h) + 10px); right: 12px; left: 12px; z-index: 120; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
@media (min-width: 640px) { .toast-region { left: auto; width: min(400px, 92vw); } }
.toast { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); pointer-events: auto; animation: toastIn .22s var(--ease); font-size: .9375rem; }
.toast.is-leaving { animation: toastOut .22s var(--ease) forwards; }
.toast-success { border-left-color: var(--green-500); }
.toast-warning { border-left-color: var(--yellow-700); }
.toast-info { border-left-color: var(--blue); }
.toast-error { border-left-color: var(--red); }
.toast-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast-success .toast-icon { color: var(--green); }
.toast-warning .toast-icon { color: var(--yellow-700); }
.toast-info .toast-icon { color: var(--blue); }
.toast-error .toast-icon { color: var(--red); }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; color: var(--ink); font-size: .875rem; }
.toast-body span { display: block; color: var(--text); font-size: .875rem; }
.toast-close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin: -6px -6px -6px 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.toast-close:hover { background: var(--surface-2); color: var(--ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

.empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; }
.empty .icon { width: 36px; height: 36px; color: var(--faint); }
.empty strong { color: var(--ink); }
.empty p { max-width: 44ch; color: var(--muted); font-size: .9375rem; }
.empty .btn { margin-top: 8px; }
.empty-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.empty-inline strong { display: block; color: var(--ink); }
.empty-inline span { display: block; font-size: .875rem; color: var(--muted); }

.skeleton { position: relative; overflow: hidden; border-radius: 6px; background: #e9eef2; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0, 92, 169, .25); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e6ebef; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-500); transition: width .4s var(--ease); }
.progress-blue i { background: var(--blue); }

/* ---------------------------------------------------------------------------
 * 9. Tabelas
 * ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfd; }
.table td strong { color: var(--ink); }
.table .cell-sub { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.table .cell-money { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .cell-actions { white-space: nowrap; text-align: right; }
.table .cell-empty { padding: 32px 14px; text-align: center; color: var(--muted); }
.table .cell-nowrap { white-space: nowrap; }
.row-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.row-actions form { display: inline-flex; margin: 0; }
.action-lock { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--faint); }
/* Tabela empilhada no celular: cada linha vira um cartão */
@media (max-width: 767px) {
    .table-stack, .table-stack thead, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
    .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table-stack tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
    .table-stack tr:last-child { border-bottom: 0; }
    .table-stack td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; padding: 8px 14px; border: 0; text-align: left; }
    .table-stack td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
    .table-stack td:not([data-label]) { grid-template-columns: 1fr; }
    .table-stack td.cell-actions { text-align: left; white-space: normal; }
    .table-stack .row-actions { justify-content: flex-start; }
    .table-stack td.cell-empty { display: block; }
}

/* ---------------------------------------------------------------------------
 * 10. Cabeçalho, navegação, menu móvel, barra inferior
 * ------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 40px; max-width: 150px; object-fit: contain; }
.brand-text { display: none; line-height: 1.15; }
.brand-text strong { display: block; font-size: .875rem; }
.brand-text small { display: block; font-size: .75rem; color: var(--muted); }
@media (min-width: 400px) { .brand-text { display: block; } }
.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 10px; border-radius: 6px; font-size: .875rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); background: var(--blue-50); }
.site-nav a.is-active { color: var(--blue-800); background: var(--blue-50); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .account-link { display: none; }
.header-menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.header-menu-btn .icon { width: 22px; height: 22px; }
@media (min-width: 1024px) {
    .site-nav { display: flex; }
    .site-actions .account-link { display: inline-flex; }
    .header-menu-btn { display: none; }
}
@media (max-width: 1023px) { .site-actions .btn-donate-header span { display: none; } .site-actions .btn-donate-header { padding-inline: 12px; } }

/* Gaveta (menu móvel e admin) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(23, 35, 47, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(88vw, 360px); display: flex; flex-direction: column; background: var(--surface); box-shadow: -12px 0 40px rgba(23, 35, 47, .18); transform: translateX(100%); visibility: hidden; transition: transform .24s var(--ease), visibility .24s; overflow: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head strong { display: block; font-size: .9375rem; }
.drawer-head small { display: block; color: var(--muted); font-size: .8125rem; }
.drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.drawer-close:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 10px calc(16px + var(--safe-b)); }
.drawer-section { padding: 12px 8px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.drawer-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.drawer-link .icon { width: 22px; height: 22px; color: var(--blue); }
.drawer-link:hover, .drawer-link.is-active { background: var(--blue-50); color: var(--blue-800); }
.drawer-link small { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.drawer-foot { padding: 12px 10px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-logout { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--red); font-weight: 600; cursor: pointer; text-align: left; }
.drawer-logout:hover { background: var(--red-50); }

/* Barra inferior (celular) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: var(--safe-b); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bottom-nav a { display: grid; justify-items: center; gap: 3px; min-height: var(--bottom-nav-h); padding: 8px 4px 6px; color: var(--muted); font-size: .6875rem; font-weight: 600; text-decoration: none; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--blue); }
.bottom-nav .bottom-nav-donate { color: var(--blue); }
.bottom-nav .bottom-nav-donate .icon-wrap { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--ink); margin-top: -4px; }
.bottom-nav .bottom-nav-donate .icon-wrap .icon { width: 20px; height: 20px; }
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-b)); }
@media (min-width: 768px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }

/* ---------------------------------------------------------------------------
 * 11. Rodapé
 * ------------------------------------------------------------------------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; padding: 40px 0 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: auto; height: 44px; max-width: 160px; object-fit: contain; }
.footer-brand strong { display: block; font-size: .9375rem; color: var(--ink); }
.footer-brand span { display: block; font-size: .8125rem; color: var(--muted); }
.footer-about p { max-width: 42ch; color: var(--muted); }
.footer-col h3 { margin-bottom: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.footer-col a, .footer-col address { display: block; color: var(--text); text-decoration: none; font-style: normal; line-height: 1.5; padding: 4px 0; }
.footer-col a:hover { color: var(--blue); }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 0 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-bottom img.asaas-logo { height: 16px; width: auto; }
.footer-bottom .developer img { height: 22px; width: auto; max-width: 160px; object-fit: contain; }

/* ---------------------------------------------------------------------------
 * 12. Home
 * ------------------------------------------------------------------------- */
.home-intro { padding: 28px 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.home-intro-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .home-intro { padding: 44px 0 52px; } .home-intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(400px, 480px); gap: 48px; align-items: start; } }
.home-copy h1 { max-width: 18ch; font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); }
.home-copy .lead { margin-top: 14px; max-width: 52ch; }
.home-copy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (min-width: 1024px) { .home-copy-actions .btn-scroll-donate { display: none; } }
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 560px; }
.home-facts div { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.home-facts strong { display: block; font-size: .9375rem; color: var(--ink); }
.home-facts small { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 639px) { .home-facts { grid-template-columns: 1fr; gap: 6px; margin-top: 20px; } .home-facts div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 8px 12px; } .home-facts small { margin: 0; } }
.home-photo { display: none; margin-top: 28px; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: var(--surface-2); }
@media (min-width: 1024px) { .home-photo { display: block; } }
.home-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-checkout { position: relative; }
@media (min-width: 1024px) { .home-checkout { position: sticky; top: calc(var(--header-h) + 16px); } }
.home-thanks { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--green-500); border-radius: var(--radius-lg); background: var(--green-50); }
.home-thanks .icon { width: 40px; height: 40px; color: var(--green); }
.home-thanks h2 { font-size: 1.25rem; }
.home-thanks small { color: var(--muted); font-size: .8125rem; }
.home-ways { display: grid; gap: 12px; }
@media (min-width: 640px) { .home-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.way-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: inherit; }
.way-card .icon { width: 26px; height: 26px; flex: none; color: var(--blue); margin-top: 2px; }
.way-card strong { display: block; color: var(--ink); }
.way-card span { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); }
.home-impact { padding: 28px 0; background: var(--blue-800); color: #fff; }
.home-impact-inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .home-impact-inner { grid-template-columns: 1fr auto; } }
.home-impact small { display: block; font-size: .8125rem; opacity: .8; }
.home-impact strong { display: block; margin-top: 2px; font-size: 1.375rem; letter-spacing: -.02em; }
.home-impact .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.home-impact .btn:hover { background: #ecd000; }
.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; justify-items: center; }
.team-card .avatar { width: 72px; height: 72px; font-size: 1.25rem; }
.team-card strong { color: var(--ink); font-size: .9375rem; }
.team-card small { color: var(--muted); font-size: .8125rem; }

/* ---------------------------------------------------------------------------
 * 13. Checkout de doação
 * ------------------------------------------------------------------------- */
.checkout { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 640px) { .checkout { padding: 24px; } }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-head h2 { font-size: 1.25rem; }
.checkout-head p { margin-top: 2px; font-size: .875rem; color: var(--muted); }
.checkout-head .icon { width: 30px; height: 30px; color: var(--blue); flex: none; }
.checkout-step { display: grid; gap: 10px; }
.checkout-step-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checkout-step-title legend, .checkout-step-title > span:first-child, .checkout-step-title label { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.checkout-step-title small { font-size: .8125rem; color: var(--muted); text-align: right; }
.checkout-legend { display: block; width: 100%; padding: 0; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.checkout-hint { margin-top: -6px; font-size: .8125rem; color: var(--muted); }
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 359px) { .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.amount-chip { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 8px 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.amount-chip strong { font-size: .9375rem; }
.amount-chip small { font-size: .6875rem; color: var(--muted); }
.amount-chip:hover { border-color: var(--blue); }
.amount-chip.amount-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.amount-chip.amount-active small { color: rgba(255, 255, 255, .8); }
.amount-custom { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.amount-custom:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.amount-custom span { padding: 0 8px 0 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.amount-custom input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px 8px 0; border: 0; background: transparent; font-size: 1.0625rem; font-weight: 700; color: var(--ink); outline: 0; }
.recurring-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--green-50); border: 1px solid #d5e5c5; font-size: .875rem; }
.recurring-note .icon { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.recurring-note strong { display: block; color: #3f5d24; }
.recurring-note span { color: #4c5f3b; }
.recurring-date { display: grid; gap: 10px; }
@media (min-width: 480px) { .recurring-date { grid-template-columns: 150px minmax(0, 1fr); align-items: end; } }
.recurring-date-preview { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .8125rem; color: var(--muted); }
.recurring-date-preview strong { display: block; color: var(--ink); font-size: .875rem; }
.recurring-date-preview span { display: block; margin-top: 2px; }
.recurring-date-preview small { display: block; margin-top: 4px; font-size: .75rem; }
.contributor-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: .875rem; }
.contributor-notice .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--green); }
.contributor-notice.is-pending .icon { color: var(--yellow-700); }
.contributor-notice strong { display: block; color: var(--ink); }
.contributor-notice a { display: inline-block; margin-top: 4px; font-weight: 600; }
.fee-box { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 10px; }
.fee-box .form-check { font-size: .875rem; }
.fee-box .form-check strong { display: block; color: var(--ink); }
.fee-box .form-check small { display: block; color: var(--muted); font-size: .8125rem; }
.fee-lines { display: grid; gap: 4px; font-size: .875rem; }
.fee-lines > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.fee-lines > div span { display: inline-flex; align-items: center; gap: 6px; }
.fee-lines strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.fee-lines .fee-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.fee-lines .fee-total strong { font-size: 1.125rem; color: var(--blue-800); }
.fee-box .asaas-logo { height: 14px; width: auto; }
.fee-note { font-size: .75rem; color: var(--faint); line-height: 1.4; }
.optional-block summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; list-style: none; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--muted); }
.optional-block summary::-webkit-details-marker { display: none; }
.optional-block summary .icon { transition: transform .15s; }
.optional-block[open] summary .icon { transform: rotate(180deg); }
.optional-body { display: grid; gap: 12px; padding-bottom: 8px; }
.checkout-consent { display: grid; gap: 8px; }
.checkout-submit { margin-top: 4px; }
.checkout-submit .icon { color: var(--yellow); }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: .75rem; color: var(--faint); text-align: center; }
.checkout-secure .icon { width: 14px; height: 14px; color: var(--green); }
.checkout-secure .asaas-logo { height: 13px; width: auto; }
.donation-ajax-error { padding: 12px 14px; border: 1px solid #f0c4c4; border-left: 4px solid var(--red); border-radius: var(--radius-sm); background: var(--red-50); font-size: .875rem; color: #7d2323; }
.donation-ajax-error ul { margin: 4px 0 0; padding-left: 18px; }
.card-fields { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.card-fields-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-fields-head strong { font-size: .9375rem; color: var(--ink); }
.card-fields-head small { display: block; font-size: .8125rem; color: var(--muted); }
.card-fields .form-grid { gap: 10px; }
.secure-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--green-50); color: #3f5d24; font-size: .75rem; font-weight: 700; }
.secure-tag .icon { width: 14px; height: 14px; }

/* Resultado inline do pagamento (Pix / cartão) */
.pay-result { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--blue-100); border-radius: var(--radius); background: var(--blue-50); }
.pay-result-head { display: flex; gap: 10px; align-items: center; }
.pay-result-head .pay-badge { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--surface); color: var(--blue); }
.pay-result-head strong { display: block; color: var(--ink); }
.pay-result-head small { display: block; font-size: .8125rem; color: var(--muted); }
.pay-result p { font-size: .875rem; color: var(--text); }
.pix-qr { display: grid; place-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--surface); }
.pix-qr img { width: min(100%, 240px); aspect-ratio: 1; object-fit: contain; }
.pay-state { display: flex; gap: 8px; align-items: center; font-size: .875rem; font-weight: 600; color: var(--muted); }
.pay-state::before { content: ""; width: 14px; height: 14px; flex: none; border: 2px solid rgba(0, 92, 169, .25); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.pay-state.is-paid { color: var(--green); }
.pay-state.is-paid::before { border: 0; animation: none; background: var(--green); border-radius: 50%; }

/* Página de acompanhamento do pagamento */
.pay-page { max-width: 640px; margin: 0 auto; }
.pay-page .card-body { display: grid; gap: 16px; text-align: center; justify-items: center; }
.pay-status-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-50); color: var(--yellow-700); }
.pay-status-icon.is-success { background: var(--green-50); color: var(--green); }
.pay-status-icon.is-danger { background: var(--red-50); color: var(--red); }
.pay-status-icon .icon { width: 28px; height: 28px; }
.pay-page h1 { font-size: 1.5rem; }
.pay-page .pix-qr { width: 100%; }
.pay-page .form-field { width: 100%; text-align: left; }
.raffle-numbers-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.raffle-numbers-list span { padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------------------------
 * 14. Cartões de conteúdo (notícias, vaquinhas, eventos, rifas, leilões)
 * ------------------------------------------------------------------------- */
.tile-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.tile-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e7edf2; }
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; }
.tile-media-tag { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(23, 35, 47, .78); color: #fff; font-size: .75rem; font-weight: 700; }
.tile-media-date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 8px; background: var(--surface); color: var(--ink); line-height: 1.05; }
.tile-media-date strong { font-size: 1.25rem; }
.tile-media-date small { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.tile-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.tile-meta .badge { font-size: .6875rem; }
.tile h2, .tile h3 { font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.tile h2 a, .tile h3 a { color: inherit; text-decoration: none; }
.tile h2 a:hover, .tile h3 a:hover { color: var(--blue); }
.tile p { font-size: .875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-link { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.tile-money { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--muted); }
.tile-money strong { display: block; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-money div:last-child { text-align: right; }
.tile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: .75rem; color: var(--muted); }
.tile-stats strong { display: block; font-size: .9375rem; color: var(--ink); }
.media-play { position: absolute; left: 50%; top: 50%; display: grid; width: 52px; height: 52px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 92, 169, .9); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); pointer-events: none; }
.media-play .icon { width: 24px; height: 24px; fill: #fff; stroke: none; margin-left: 2px; }
.video-tile-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0b1722; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video-tile-btn img, .video-tile-btn video { width: 100%; height: 100%; object-fit: cover; }
.supporters { display: flex; align-items: center; }
.supporters span { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; background: var(--blue-100); color: var(--blue-800); font-size: .6875rem; font-weight: 700; }
.supporters span:first-child { margin-left: 0; }
.supporters b { margin-left: 6px; font-size: .8125rem; color: var(--muted); font-weight: 600; }

/* Páginas de detalhe */
.detail-layout { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; } .detail-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.detail-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 18px 0; }
.detail-cover { overflow: hidden; border-radius: var(--radius-lg); background: #e7edf2; aspect-ratio: 16 / 9; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: grid; gap: 10px; margin-top: 20px; }
.detail-head h1 { overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.prose-sm { font-size: .9375rem; line-height: 1.65; }
.progress-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.progress-card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.progress-card-top strong { font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.progress-card-top span { font-size: .875rem; color: var(--muted); }
.progress-card-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--muted); }
.progress-card-facts strong { color: var(--ink); }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share > span { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share button, .share a { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); cursor: pointer; text-decoration: none; }
.share button:hover, .share a:hover { border-color: var(--blue); color: var(--blue); }
.share .icon { width: 20px; height: 20px; }
.share button.is-copied { border-color: var(--green-500); color: var(--green); }
.share-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-pill:hover { border-color: var(--blue); color: var(--blue); }
.share-pill .icon { width: 18px; height: 18px; }
.video-embed { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #000; aspect-ratio: 16 / 9; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--text); }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist .icon { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.info-strip { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
@media (min-width: 768px) { .info-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-strip strong { display: block; font-size: .9375rem; color: var(--ink); }
.info-strip span { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.big-number { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 700; color: var(--blue-800); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.bid-box { display: grid; gap: 12px; }
.bid-box .bid-current { display: grid; gap: 2px; }
.bid-box .bid-current span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.event-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rifa: seletor de números */
.raffle-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .raffle-layout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .raffle-checkout { position: sticky; top: calc(var(--header-h) + 16px); } }
.raffle-picker { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.raffle-picker.needs-selection { border-color: var(--red); box-shadow: 0 0 0 3px rgba(184, 50, 50, .18); }
.raffle-picker.is-loading .raffle-grid { opacity: .45; }
.raffle-loading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.raffle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.raffle-number { min-height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
.raffle-number:hover { border-color: var(--blue); color: var(--blue); }
.raffle-number.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.raffle-number.is-occupied { background: var(--surface-2); border-color: var(--line); color: var(--faint); text-decoration: line-through; cursor: not-allowed; }
.raffle-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.raffle-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .75rem; color: var(--muted); }
.raffle-legend span { display: inline-flex; align-items: center; gap: 5px; }
.raffle-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); }
.raffle-legend i.is-selected { background: var(--blue); border-color: var(--blue); }
.raffle-legend i.is-occupied { background: var(--surface-2); }
.raffle-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .raffle-packages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.raffle-package { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); text-align: left; cursor: pointer; }
.raffle-package:hover { border-color: var(--blue); }
.raffle-package:disabled { opacity: .5; cursor: not-allowed; }
.raffle-package small { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.raffle-package strong { color: var(--ink); }
.raffle-package span { font-size: .8125rem; color: var(--muted); }
.raffle-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; padding: 8px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .8125rem; }
.raffle-selected span { padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.raffle-selected b { padding: 3px 8px; font-weight: 700; color: var(--muted); }
.raffle-selected em { color: var(--muted); font-style: normal; }
.raffle-lines { display: grid; gap: 6px; font-size: .9375rem; }
.raffle-lines > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.raffle-lines strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.raffle-lines .is-total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.0625rem; }
.raffle-lines .is-total strong { font-size: 1.25rem; color: var(--blue-800); }
.draw-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--blue-800); color: #fff; }
.draw-card small { font-size: .75rem; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.draw-card strong { font-size: 1.25rem; }
.draw-card .draw-number { font-size: 2.5rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--yellow); }
.draw-card hr { border-top-color: rgba(255, 255, 255, .2); margin: 8px 0; }

/* Vaquinha encerrada / avisos de estado */
.state-card { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.state-card h2 { font-size: 1.125rem; }
.state-card p { font-size: .9375rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * 15. Sócio Contribuinte (página pública)
 * ------------------------------------------------------------------------- */
.contributor-layout { display: grid; gap: 28px; padding: 28px 0 40px; }
@media (min-width: 1024px) { .contributor-layout { grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; align-items: start; padding-top: 44px; } .contributor-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.contributor-story h1 { max-width: 20ch; }
.contributor-story .lead { margin-top: 12px; max-width: 54ch; }
.contributor-story figure { margin: 24px 0 0; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: var(--surface-2); }
.contributor-story figure img { width: 100%; height: 100%; object-fit: cover; }
.benefit-list { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefit { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.benefit .icon { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }
.benefit strong { display: block; color: var(--ink); font-size: .9375rem; }
.benefit span { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.membership { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.membership-status { display: flex; gap: 12px; align-items: center; }
.membership-status .pay-status-icon { width: 48px; height: 48px; }
.membership-status .pay-status-icon .icon { width: 24px; height: 24px; }
.membership-status h2 { font-size: 1.25rem; }
.membership-status p { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.membership .facts { padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.membership-actions { display: grid; gap: 8px; }
@media (min-width: 480px) { .membership-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .membership-actions .span-2 { grid-column: span 2; } }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq details + details { margin-top: 8px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--muted); transition: transform .15s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 16px 14px; font-size: .9375rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * 16. Autenticação
 * ------------------------------------------------------------------------- */
.auth-layout { display: grid; gap: 24px; padding: 32px 0 48px; max-width: 460px; margin-inline: auto; }
@media (min-width: 1024px) { .auth-layout { max-width: 1000px; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; padding: 56px 0 72px; } }
.auth-story { display: none; }
@media (min-width: 1024px) { .auth-story { display: block; } }
.auth-story h1 { max-width: 16ch; }
.auth-story p { margin-top: 12px; max-width: 44ch; color: var(--muted); }
.auth-story .checklist { margin-top: 20px; }
.auth-card { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .auth-card { padding: 28px; } }
.auth-card h1, .auth-card h2 { font-size: 1.5rem; }
.auth-card > p { color: var(--muted); font-size: .9375rem; margin-top: -8px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8125rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; font-size: .9375rem; color: var(--muted); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row a { font-size: .8125rem; font-weight: 600; }

/* ---------------------------------------------------------------------------
 * 17. Área do doador
 * ------------------------------------------------------------------------- */
.account-layout { display: grid; gap: 20px; padding: 24px 0 40px; }
@media (min-width: 1024px) { .account-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 32px; } .account-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.account-side { display: grid; gap: 12px; }
.account-profile { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.account-identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.account-identity strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.account-identity span { display: block; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.account-nav { display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.account-nav a .icon { width: 20px; height: 20px; color: var(--blue); }
.account-nav a:hover { background: var(--blue-50); color: var(--blue-800); }
@media (max-width: 1023px) { .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-main { display: grid; gap: 20px; min-width: 0; }
.account-section { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 640px) { .account-section { padding: 24px; } }
.account-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.account-section-head h2 { font-size: 1.125rem; }
.account-section-head p { margin-top: 4px; font-size: .875rem; color: var(--muted); max-width: 56ch; }
.account-section-head a { flex: none; font-size: .875rem; font-weight: 600; text-decoration: none; }
.history { display: grid; }
.history-item { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.history-item:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .history-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; } }
.history-main strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.history-main small { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: .8125rem; color: var(--muted); }
.history-main small span { display: inline-flex; align-items: center; gap: 4px; }
.history-amount { font-size: 1.0625rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.history-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .875rem; }
.history-actions a { font-weight: 600; text-decoration: none; }
@media (min-width: 640px) { .history-amount { text-align: right; } .history-actions { grid-column: 1 / -1; } }
.subscription-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.subscription-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.subscription-card-top strong { display: block; font-size: 1.125rem; color: var(--ink); }
.subscription-card-top small { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.subscription-card .facts { padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-preview { display: grid; gap: 10px; }
@media (min-width: 640px) { .data-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.data-preview div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.data-preview span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-preview strong { display: block; margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; }
.account-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.account-details > summary::-webkit-details-marker { display: none; }
.account-details > summary .btn { flex: none; }
.account-details[open] > summary { margin-bottom: 16px; }
.pwa-box { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.pwa-box strong { font-size: .9375rem; color: var(--ink); }
.pwa-box small { font-size: .8125rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
 * 18. Carteirinha de Sócio Contribuinte (tela + impressão)
 * Proporção real de cartão (85,6 × 53,98 mm). Dimensões internas em % para
 * escalar sem cortar texto.
 * ------------------------------------------------------------------------- */
.contributor-card-stack { display: grid; gap: 20px; justify-items: center; }
.contributor-id-card { position: relative; width: min(100%, 620px); aspect-ratio: 85.6 / 53.98; overflow: hidden; border: 1px solid #d5e2e9; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(0, 62, 115, .16); color: #003e73; isolation: isolate; font-family: var(--font); }
.contributor-card-header { position: relative; display: flex; height: 29%; min-height: 0; align-items: center; gap: 2.1%; padding: 2.7% 4%; overflow: hidden; background: #005ca9; border-bottom: 6px solid #079447; color: #fff; }
.contributor-card-header::after { content: ""; position: absolute; right: -4%; top: -38%; width: 24%; height: 180%; background: #f8dc00; transform: skewX(-18deg); z-index: 0; }
.contributor-card-logo { position: relative; z-index: 4; display: grid; width: 11.5%; height: 84%; place-items: center; padding: .65%; border-radius: 12%; background: #fff; box-shadow: 0 5px 12px rgba(0, 0, 0, .12); }
.contributor-card-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contributor-card-brand { position: relative; z-index: 4; min-width: 0; line-height: 1.04; }
.contributor-card-brand span { display: block; font-size: clamp(7px, 1vw, 11px); font-weight: 800; letter-spacing: .12em; }
.contributor-card-brand strong { display: block; margin-top: 4px; font-size: clamp(12px, 2vw, 20px); font-weight: 800; letter-spacing: .015em; white-space: nowrap; color: #fff; }
.contributor-card-brand small { display: block; margin-top: 4px; font-size: clamp(6px, .8vw, 8px); font-weight: 700; opacity: .82; letter-spacing: .05em; text-transform: uppercase; }
.contributor-card-watermark { position: absolute; right: 3.2%; top: 50%; z-index: 2; width: 11.5%; height: 88%; transform: translateY(-50%); opacity: .24; overflow: hidden; pointer-events: none; }
.contributor-card-watermark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contributor-card-body { position: relative; display: grid; height: 60%; grid-template-columns: 15% minmax(0, 1fr) 14%; grid-template-rows: 30% 18% 52%; column-gap: 3.2%; row-gap: 0; padding: 3.5% 4% 2.4%; }
.contributor-card-photo { grid-row: 1 / 4; display: grid; width: 100%; aspect-ratio: .82; align-self: start; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 14%; background: linear-gradient(135deg, #eaf4fa, #edf7e5); box-shadow: 0 4px 16px rgba(0, 62, 115, .16); color: #005ca9; font-size: clamp(15px, 3vw, 28px); font-weight: 800; }
.contributor-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.contributor-card-person { grid-column: 2; grid-row: 1; min-width: 0; align-self: start; }
.contributor-card-label, .contributor-card-fields span { display: block; color: #6c808d; font-size: clamp(6px, .85vw, 9px); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
.contributor-card-name { display: block; margin-top: 2%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #003e73; font-size: clamp(17px, 3.3vw, 31px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.contributor-card-chipline { grid-column: 2; grid-row: 2; display: flex; align-items: center; align-self: center; gap: 7px; min-width: 0; margin: 0; color: #718490; font-size: clamp(5px, .75vw, 8px); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.contributor-card-chip { display: inline-block; width: 20px; height: 14px; border: 1px solid #c6aa49; border-radius: 3px; background: linear-gradient(90deg, #e8cf72 0 46%, #c8ad52 47% 53%, #e8cf72 54%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.contributor-card-fields { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10% 8%; min-width: 0; padding-top: 5px; }
.contributor-card-fields > div { min-width: 0; }
.contributor-card-fields strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #003e73; font-size: clamp(7px, 1.35vw, 13px); line-height: 1.15; font-weight: 800; }
.contributor-card-status { display: inline-flex !important; width: max-content; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: #eaf6df; color: #39720c !important; }
.contributor-card-qr { display: grid; place-items: center; text-align: center; }
.contributor-card-qr-front { grid-column: 3; grid-row: 1 / 4; align-self: center; }
.contributor-card-qr img { display: block; width: 100%; aspect-ratio: 1; padding: 4%; border: 1px solid #dce7ed; border-radius: 10%; background: #fff; object-fit: contain; }
.contributor-card-qr small { display: block; margin-top: 5px; color: #627985; font-size: clamp(5px, .7vw, 7px); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.contributor-card-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; height: 11%; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4%; border-top: 1px solid #d9e5ea; background: #f0f6f9; color: #567487; font-size: clamp(5px, .75vw, 8px); font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.contributor-card-footer strong { color: #005ca9; font-size: inherit; text-transform: none; letter-spacing: 0; }
.contributor-id-card-back { background: linear-gradient(150deg, #fff 0 68%, #f3f8fa 100%); }
.contributor-card-back-band { position: relative; display: flex; height: 26%; align-items: center; gap: 8px; padding: 0 5%; overflow: hidden; border-bottom: 6px solid #079447; background: #005ca9; color: #fff; }
.contributor-card-back-band::after { content: ""; position: absolute; right: -4%; top: -55%; width: 24%; height: 220%; background: #f8dc00; transform: skewX(-18deg); }
.contributor-card-back-band > span, .contributor-card-back-band > strong { position: relative; z-index: 4; }
.contributor-card-back-band > span { font-size: clamp(7px, 1vw, 10px); font-weight: 800; letter-spacing: .12em; }
.contributor-card-back-band > strong { font-size: clamp(12px, 1.8vw, 18px); font-weight: 800; color: #fff; }
.contributor-card-back-watermark { position: absolute; right: 3.5%; top: 50%; z-index: 2; width: 10.5%; height: 86%; transform: translateY(-50%); opacity: .22; overflow: hidden; pointer-events: none; }
.contributor-card-back-watermark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contributor-card-back-body { display: grid; height: 55%; grid-template-columns: minmax(0, 1fr) 22%; gap: 5%; padding: 3.8% 5% 2%; }
.contributor-card-back-copy { min-width: 0; }
.contributor-card-back-copy > strong { display: block; margin-top: 2%; color: #003e73; font-size: clamp(9px, 1.5vw, 14px); font-weight: 800; }
.contributor-card-back-copy ul { display: grid; gap: 4px; margin: 2.5% 0 0; padding-left: 16px; color: #4e6674; font-size: clamp(6px, .9vw, 9px); line-height: 1.25; }
.contributor-card-back-qr { align-content: center; }
.contributor-card-back-qr img { width: 74%; }
.contributor-card-back-qr strong { display: block; margin-top: 5px; color: #003e73; font-size: clamp(6px, .85vw, 9px); }
.contributor-card-back-qr small { margin-top: 2px; text-transform: none; }
.contributor-card-contact { position: absolute; left: 0; right: 0; bottom: 0; display: grid; height: 19%; grid-template-columns: .72fr 1.35fr; align-items: center; gap: 6%; padding: 0 5%; border-top: 1px solid #d9e5ea; background: #f0f6f9; }
.contributor-card-contact span { display: block; color: #6d7f8b; font-size: clamp(5px, .7vw, 7px); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.contributor-card-contact strong { display: block; margin-top: 2px; color: #003e73; font-size: clamp(6px, 1vw, 10px); font-weight: 800; line-height: 1.15; }
@media (max-width: 640px) {
    .contributor-id-card { border-radius: 16px; }
    .contributor-card-header, .contributor-card-back-band { border-bottom-width: 4px; }
    .contributor-card-chip { width: 14px; height: 10px; }
    .contributor-card-status { padding: 2px 5px; }
}
@media (max-width: 420px) {
    .contributor-card-header { padding-left: 3.3%; padding-right: 3.3%; }
    .contributor-card-brand small { display: none; }
    .contributor-card-body { grid-template-columns: 15% minmax(0, 1fr) 15%; column-gap: 2.5%; padding-left: 3.3%; padding-right: 3.3%; }
    .contributor-card-fields { gap: 8% 5%; padding-top: 4px; }
    .contributor-card-back-copy ul { gap: 2px; padding-left: 12px; }
}
.card-actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------------------------
 * 19. Administração
 * ------------------------------------------------------------------------- */
body.is-admin { background: var(--bg); }
.admin-layout { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 256px minmax(0, 1fr); } }
.admin-sidebar { display: none; }
@media (min-width: 1024px) {
    .admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
}
.admin-nav { display: flex; flex-direction: column; flex: 1; }
.admin-nav-brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.admin-nav-brand img { width: auto; height: 34px; max-width: 120px; object-fit: contain; }
.admin-nav-brand strong { display: block; font-size: .875rem; }
.admin-nav-brand small { display: block; font-size: .75rem; color: var(--muted); }
.admin-nav-group { padding: 12px 10px 4px; }
.admin-nav-label { display: block; padding: 0 10px 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.admin-nav-group a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.admin-nav-group a .icon { width: 20px; height: 20px; color: var(--muted); }
.admin-nav-group a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav-group a.is-active { background: var(--blue-50); color: var(--blue-800); }
.admin-nav-group a.is-active .icon { color: var(--blue); }
.admin-nav-foot { margin-top: auto; padding: 12px 10px 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.admin-nav-foot a, .admin-nav-foot button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.admin-nav-foot a:hover, .admin-nav-foot button:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav-foot .icon { width: 20px; height: 20px; color: var(--muted); }
.admin-nav-user { padding: 10px; font-size: .8125rem; color: var(--muted); }
.admin-nav-user strong { display: block; color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
@media (min-width: 1024px) { .admin-topbar { display: none; } }
.admin-content { flex: 1; width: 100%; max-width: 1280px; margin-inline: auto; padding: 20px 16px 48px; }
@media (min-width: 640px) { .admin-content { padding: 24px 24px 56px; } }
@media (min-width: 1280px) { .admin-content { padding: 32px 36px 64px; } }
.admin-content-narrow { max-width: 900px; margin-inline: auto; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.admin-head h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.admin-head p { margin-top: 4px; font-size: .9375rem; color: var(--muted); max-width: 70ch; }
.admin-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-head-actions form { display: inline-flex; margin: 0; }
@media (max-width: 639px) { .admin-head-actions { width: 100%; } .admin-head-actions > *, .admin-head-actions form { flex: 1 1 140px; } .admin-head-actions .btn, .admin-head-actions form .btn { width: 100%; } }
.admin-section { margin-top: 28px; }
.admin-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.admin-section-head h2 { font-size: 1.125rem; }
.admin-section-head p { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.admin-section-head > span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.filter-bar { display: grid; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 768px) { .filter-bar { grid-template-columns: minmax(0, 1fr) repeat(auto-fit, minmax(150px, max-content)); align-items: center; } .filter-bar .form-field { display: contents; } }
.filter-bar .form-input { min-height: 42px; }
.filter-bar .btn { min-height: 42px; }
.filter-bar .filter-actions { display: flex; gap: 8px; }
.filter-bar .filter-actions .btn { flex: 1; }
.filter-grid { display: grid; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 640px) { .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.filter-grid .form-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.filter-grid .form-input { min-height: 42px; }
.filter-grid .filter-actions { display: flex; gap: 8px; align-self: end; }
.filter-grid .filter-actions .btn { flex: 1; min-height: 42px; }
.tab-links { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; scrollbar-width: thin; }
.tab-links a { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tab-links a:hover { border-color: var(--blue); color: var(--blue); }
.tab-links a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.admin-form { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 640px) { .admin-form { padding: 28px; } }
.admin-form h1 { font-size: 1.375rem; }
.upload-field { display: grid; gap: 10px; }
.upload-preview { position: relative; display: grid; place-items: center; min-height: 120px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--faint); font-size: .8125rem; }
.upload-preview img, .upload-preview video { width: 100%; max-height: 220px; object-fit: cover; }
.upload-preview span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(23, 35, 47, .78); color: #fff; font-size: .6875rem; font-weight: 700; }
.upload-preview.is-empty span { position: static; background: none; color: var(--faint); font-weight: 500; font-size: .8125rem; padding: 16px; }
.upload-preview-small { min-height: 80px; }
.upload-preview-small img { width: 64px; height: 64px; object-fit: contain; }
.content-list { display: grid; gap: 10px; }
.content-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 768px) { .content-row { grid-template-columns: 120px minmax(0, 1fr) auto; } }
.content-row-media { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #e7edf2; aspect-ratio: 16 / 10; }
.content-row-media img { width: 100%; height: 100%; object-fit: cover; }
.content-row-media .media-play { width: 34px; height: 34px; }
.content-row-media .media-play .icon { width: 16px; height: 16px; }
.content-row-copy { min-width: 0; display: grid; gap: 4px; }
.content-row-copy strong { color: var(--ink); overflow-wrap: anywhere; }
.content-row-copy small { font-size: .8125rem; color: var(--muted); }
.content-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 767px) { .content-row-actions { grid-column: 1 / -1; } }
.inline-form { display: inline; }
.access-form { display: grid; gap: 8px; }
@media (min-width: 640px) { .access-form { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.access-form .form-input { min-height: 40px; font-size: .9rem; }
.integration-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--yellow-50); color: #6f5f00; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.integration-state.is-ready { background: var(--green-50); color: #3f5d24; }
.health-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .health-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.health-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
a.health-card:hover { border-color: var(--blue); }
.health-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--yellow-700); }
.health-dot.is-ok { background: var(--green-500); }
.health-card strong { display: block; font-size: .875rem; color: var(--ink); }
.health-card small { display: block; font-size: .75rem; color: var(--muted); }
.attention-grid { display: grid; gap: 10px; }
@media (min-width: 768px) { .attention-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.attention-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.attention-card.has-issue { border-color: #ecc9c9; background: #fff8f8; }
.attention-card strong { display: block; font-size: .9375rem; color: var(--ink); }
.attention-card small { display: block; font-size: .8125rem; color: var(--muted); }
.attention-number { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.attention-card.has-issue .attention-number { background: var(--red-50); color: var(--red); }
.settings-tabs { position: sticky; top: 60px; z-index: 40; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 8px 16px; background: var(--bg); scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .settings-tabs { top: 0; margin: 0 0 16px; padding-inline: 0; } }
.settings-tabs a { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.settings-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.settings-stack { display: grid; gap: 20px; }
.settings-section { scroll-margin-top: 120px; }
.settings-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.settings-section-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.125rem; }
.settings-section-head p { margin-top: 4px; font-size: .875rem; color: var(--muted); max-width: 64ch; }
.settings-section-head .asaas-logo { height: 20px; width: auto; }
.savebar { position: sticky; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 12px 16px; padding-bottom: calc(12px + var(--safe-b)); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.savebar strong { display: block; font-size: .9375rem; color: var(--ink); }
.savebar span { display: block; font-size: .8125rem; color: var(--muted); }
.tool-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-grid form { margin: 0; display: grid; }
.tool-grid .btn { width: 100%; white-space: normal; text-align: center; }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .08); background: var(--swatch); }
.audit-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .audit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .audit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.audit-grid > div { padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); font-size: .8125rem; }
.audit-grid > div.is-ok { border-left-color: var(--green-500); }
.audit-grid > div.is-error { border-left-color: var(--red); }
.audit-grid strong { display: block; color: var(--ink); }
.audit-grid span { color: var(--muted); }
.code-block { display: block; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #e8eef4; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-stack details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.template-stack details + details { margin-top: 8px; }
.template-stack summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.template-stack summary::-webkit-details-marker { display: none; }
.template-stack summary .icon { transition: transform .15s; color: var(--muted); }
.template-stack details[open] summary .icon { transform: rotate(180deg); }
.template-stack .form-grid { padding: 0 14px 14px; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 8px; }
.chart-bars > div { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.chart-bars > div span { display: block; border-radius: 3px 3px 0 0; background: var(--blue); min-height: 3px; opacity: .85; }
.chart-bars > div:hover span { opacity: 1; }
.chart-bars > div small { position: absolute; top: 100%; left: 0; margin-top: 4px; font-size: .625rem; color: var(--faint); white-space: nowrap; }
.chart-wrap { padding-bottom: 22px; }
.ranking { display: grid; gap: 8px; }
.ranking > div { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ranking > div:last-child { border-bottom: 0; }
.ranking > div > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--blue-50); color: var(--blue-800); font-size: .8125rem; font-weight: 700; }
.ranking strong { display: block; font-size: .9375rem; color: var(--ink); overflow-wrap: anywhere; }
.ranking small { font-size: .8125rem; color: var(--muted); }
.raffle-admin-numbers { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; color: var(--muted); }
.raffle-admin-numbers strong { color: var(--ink); }

/* ---------------------------------------------------------------------------
 * 20. Diálogos (modal)
 * ------------------------------------------------------------------------- */
.dialog { width: min(92vw, 560px); max-height: min(90vh, 90dvh); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(23, 35, 47, .3); overflow: hidden; }
.dialog::backdrop { background: rgba(23, 35, 47, .55); backdrop-filter: blur(2px); }
.dialog-inner { display: flex; flex-direction: column; max-height: min(90vh, 90dvh); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.125rem; }
.dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; font-size: .9375rem; line-height: 1.6; white-space: pre-line; }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close:hover { background: var(--surface-2); color: var(--ink); }
.dialog-wide { width: min(96vw, 960px); }
.dialog-video .dialog-body { padding: 0; white-space: normal; }
.dialog-video .video-embed { border-radius: 0; }
@media (max-width: 640px) { .dialog { width: 100vw; max-width: 100vw; max-height: 100vh; max-height: 100dvh; border-radius: 0; } .dialog-inner { max-height: 100dvh; } .dialog-foot .btn { flex: 1; } }
.dialog-confirm .dialog-body { white-space: normal; }

/* ---------------------------------------------------------------------------
 * 21. PWA, consentimento
 * ------------------------------------------------------------------------- */
.pwa-banner { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface-2); }
.pwa-banner-inner { display: grid; gap: 12px; padding: 20px 0; }
@media (min-width: 768px) { .pwa-banner-inner { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; } }
.pwa-banner img { width: 48px; height: 48px; border-radius: 12px; }
.pwa-banner strong { display: block; font-size: .9375rem; color: var(--ink); }
.pwa-banner small { display: block; font-size: .8125rem; color: var(--muted); }
.pwa-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-banner:not(:has(.pwa-banner-actions button:not([hidden]))) { display: none; }
.pwa-steps { display: grid; gap: 6px; font-size: .875rem; }
.pwa-steps span { display: flex; align-items: center; gap: 8px; }
.pwa-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; }
.cookie-consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 85; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); font-size: .875rem; }
@media (min-width: 640px) { .cookie-consent { left: auto; width: 380px; bottom: 16px; } }
@media (max-width: 767px) { .cookie-consent { bottom: calc(var(--bottom-nav-h) + 12px + var(--safe-b)); } }
.cookie-consent strong { display: block; color: var(--ink); }
.cookie-consent p { color: var(--muted); margin-top: 2px; }
.cookie-consent-actions { display: flex; gap: 8px; }
.cookie-consent-actions .btn { flex: 1; }

/* ---------------------------------------------------------------------------
 * 22. Paginação
 * ------------------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 24px; }
.pagination-info { font-size: .8125rem; color: var(--muted); }
.pagination-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pagination-list a, .pagination-list span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: none; }
.pagination-list a:hover { border-color: var(--blue); color: var(--blue); }
.pagination-list .is-current span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination-list .is-disabled span { color: var(--faint); background: var(--surface-2); }
.pagination-list .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------------
 * 23. Notícias (detalhe) e utilidades editoriais
 * ------------------------------------------------------------------------- */
.article { padding-bottom: 40px; }
.article-head { display: grid; gap: 12px; max-width: 820px; padding: 20px 0 8px; }
.article-head .lead { font-size: 1.125rem; }
.article-media { margin: 20px 0 24px; overflow: hidden; border-radius: var(--radius-lg); }
.article-media img { width: 100%; height: auto; }
.article-body { max-width: 720px; }
.featured-news { display: grid; }
@media (min-width: 768px) { .featured-news { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .featured-news .tile-media { aspect-ratio: auto; height: 100%; min-height: 320px; } .featured-news .tile-body { padding: 24px; justify-content: center; } .featured-news h2 { font-size: 1.5rem; } .featured-news p { -webkit-line-clamp: 4; } }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.share-box > strong { font-size: .875rem; color: var(--ink); margin-right: 4px; }
.share-box-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 480px) { .share-box-actions { width: 100%; } .share-box-actions .share-pill { flex: 1 1 calc(50% - 6px); justify-content: center; } }

/* ---------------------------------------------------------------------------
 * 24. Impressão
 * ------------------------------------------------------------------------- */
@media print {
    body { background: #fff !important; padding: 0 !important; }
    .site-header, .site-footer, .bottom-nav, .pwa-banner, .cookie-consent, .toast-region, .drawer, .drawer-backdrop, .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .card, .account-section { box-shadow: none !important; }
    a { color: inherit; text-decoration: none; }
}

/* ---------------------------------------------------------------------------
 * 25. Preferências do usuário
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .pay-state::before { animation: none; }
}
