/* =============================================================================
 * Elo Potiguar — Estilos
 * As cores principais vêm das variáveis abaixo (também definidas via config.js).
 * ========================================================================== */
:root {
  --c-primary: #0e7c66;
  --c-primary-dark: #0a5c4b;
  --c-accent: #f4a531;
  --c-danger: #d64545;
  --c-info: #2f6fed;
  --c-bg: #f6f8f7;
  --c-surface: #ffffff;
  --c-text: #1d2b27;
  --c-muted: #6b7d77;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,40,34,.06), 0 6px 20px rgba(16,40,34,.06);
  --shadow-lg: 0 10px 40px rgba(16,40,34,.14);
  --maxw: 1140px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--c-bg); color: var(--c-text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.12rem; }
p { margin: 0 0 .6em; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--c-muted); }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.link { color: var(--c-primary); font-weight: 600; cursor: pointer; }
.empty { padding: 2rem; text-align: center; color: var(--c-muted); background: var(--c-surface); border-radius: var(--radius); border: 1px dashed #d6e0dc; }

/* ---- Layout ---- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.container, .header__inner, .page { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 20px; }
main { flex: 1; padding: 26px 0 60px; }
.section { margin: 30px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.list { display: flex; flex-direction: column; gap: 10px; }
.page__head { margin-bottom: 12px; }
.page__title { font-size: 1.6rem; }
.page__actions { margin-top: 8px; display: flex; gap: 8px; }

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #e7eeeb; }
.header__inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--c-text); }
.brand:hover { text-decoration: none; }
.brand__logo { font-size: 1.5rem; }
.brand__name { font-size: 1.15rem; letter-spacing: -.3px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav__link { padding: 8px 12px; border-radius: 9px; color: var(--c-text); font-weight: 600; font-size: .92rem; }
.nav__link:hover { background: #eef4f1; text-decoration: none; }
.nav__link--active { background: var(--c-primary); color: #fff; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---- Botões ---- */
.btn { font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; cursor: pointer; background: #eef2f0; color: var(--c-text); transition: transform .05s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: 13px 22px; font-size: 1.02rem; }
.btn--block { display: block; width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); filter: none; }
.btn--accent { background: var(--c-accent); color: #4a2e00; }
.btn--info { background: var(--c-info); color: #fff; }
.btn--danger { background: var(--c-danger); color: #fff; }
.btn--ghost { background: #fff; border-color: #d8e2de; color: var(--c-text); }
.btn--ghost:hover { background: #f3f7f5; }
.icon-btn { background: #fff; border: 1px solid #d8e2de; border-radius: 9px; width: 38px; height: 38px; cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { background: #f3f7f5; }

/* ---- Cards ---- */
.card { background: var(--c-surface); border: 1px solid #e8efec; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.subcard { margin-top: 12px; background: #f9fbfa; }

/* ---- Avatar / chips / badges / pills ---- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid #d3ddd9; background: #fff; font-size: .8rem; color: var(--c-muted); }
.chip--active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid; font-size: .76rem; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; border: 1px solid; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.verified { color: var(--c-info); font-weight: 800; }

.trust-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid; font-size: .8rem; }
.trust-badge__pts { opacity: .8; font-weight: 600; }

.vuln, .urg { display: inline-flex; gap: 3px; vertical-align: middle; }
.vuln__dot, .urg__dot { width: 9px; height: 9px; border-radius: 50%; background: #dde6e2; display: inline-block; }
.vuln__dot--on { background: var(--c-danger); }
.urg__dot--on { background: var(--c-accent); }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: linear-gradient(135deg, #0e7c66 0%, #0a5c4b 100%); color: #fff; border-radius: 22px; padding: 38px; margin-top: 6px; box-shadow: var(--shadow-lg); }
.hero__badge { display: inline-block; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.hero__title { font-size: 2.1rem; line-height: 1.15; margin-bottom: 12px; }
.hero__sub { font-size: 1.05rem; opacity: .92; margin-bottom: 20px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.24); }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: rgba(255,255,255,.14); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 10px; }
.stat__icon { font-size: 1.6rem; }
.stat__value { font-size: 1.5rem; font-weight: 800; }
.stat__label { color: rgba(255,255,255,.85); font-size: .82rem; }

/* ---- How cards ---- */
.how-card { text-align: center; }
.how-card__icon { font-size: 2rem; }
.how-card__step { font-size: .74rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .5px; margin: 4px 0; }

/* ---- Org card ---- */
.org-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.org-card__top { display: flex; gap: 12px; align-items: center; }
.org-card__name { font-weight: 800; }
.org-card__meta { font-size: .82rem; color: var(--c-muted); }
.org-card__desc { font-size: .9rem; color: #46554f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.org-card__needs { font-size: .8rem; color: var(--c-muted); }
.org-card__vuln { display: flex; align-items: center; gap: 6px; font-size: .8rem; }

/* ---- Ranking ---- */
.ranking { display: flex; flex-direction: column; gap: 6px; }
.ranking__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--c-surface); border: 1px solid #e8efec; border-radius: var(--radius-sm); cursor: pointer; }
.ranking__row:hover { background: #f3f7f5; }
.ranking__pos { font-weight: 800; color: var(--c-muted); width: 34px; }
.ranking__name { flex: 1; font-weight: 700; }

/* ---- Need card ---- */
.need-card { display: flex; flex-direction: column; gap: 7px; }
.need-card--closed { opacity: .55; }
.need-card__head { display: flex; justify-content: space-between; align-items: center; }
.need-type { font-size: .8rem; font-weight: 700; color: var(--c-primary); background: #e7f3ef; padding: 3px 9px; border-radius: 999px; }
.need-card__title { font-size: 1.02rem; margin: 0; }
.need-card__desc { font-size: .88rem; color: #46554f; margin: 0; }
.need-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.need-card__org { font-size: .82rem; }

/* ---- Org detail ---- */
.org-header { display: flex; gap: 18px; align-items: flex-start; }
.org-header__main { flex: 1; }
.org-header__badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.org-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 18px; }
.tier-card { position: sticky; top: 80px; }
.tier-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tier-progress__item { display: flex; align-items: center; gap: 8px; opacity: .4; }
.tier-progress__item.is-on { opacity: 1; font-weight: 700; }

/* ---- Donate ---- */
.donate-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.seg { display: inline-flex; background: #eef2f0; border-radius: 10px; padding: 4px; gap: 4px; }
.seg__btn { border: none; background: transparent; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; color: var(--c-muted); }
.seg__btn--active { background: #fff; color: var(--c-text); box-shadow: var(--shadow); }
.aside-step { padding: 7px 0; border-bottom: 1px dashed #e3ebe8; }
.deliv-opt { margin: 10px 0; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* ---- Forms ---- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; }
.field__hint { display: block; margin-top: 4px; }
.input { width: 100%; padding: 10px 12px; border: 1px solid #d3ddd9; border-radius: 10px; font: inherit; background: #fff; color: var(--c-text); }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,124,102,.13); }
textarea.input { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form__actions, .form-grid + .field { margin-top: 6px; }
.form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.points-hint { color: var(--c-accent); font-weight: 700; }

/* ---- Auth ---- */
.auth-page { display: flex; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card--wide { max-width: 640px; }
.demo-box { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e3ebe8; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.role-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.role-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid #e0e8e5; background: #fff; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; }
.role-btn__emoji { font-size: 1.4rem; }
.role-btn--on { border-color: var(--c-primary); background: #eaf5f1; color: var(--c-primary-dark); }

/* ---- Dashboard ---- */
.dash-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dash-tabs { display: flex; gap: 6px; border-bottom: 2px solid #e8efec; margin-bottom: 18px; flex-wrap: wrap; }
.dash-tab { border: none; background: transparent; padding: 10px 16px; font: inherit; font-weight: 700; color: var(--c-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dash-tab--active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.subtabs { display: flex; gap: 6px; margin: 6px 0 14px; flex-wrap: wrap; }
.subtab { border: 1px solid #d8e2de; background: #fff; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--c-muted); }
.subtab--active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.org-summary, .org-don, .org-summary__main { }
.org-summary { display: flex; align-items: center; gap: 14px; }
.org-summary__main { flex: 1; }
.org-summary__trust { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.org-don__head { display: flex; align-items: center; gap: 12px; }
.org-don__info { flex: 1; }
.org-don__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vol-profile .chips { margin-bottom: 8px; }

/* ---- Donation rows / detail ---- */
.don-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.don-row:hover { background: #f7faf9; }
.don-row__icon { font-size: 1.5rem; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #eef4f1; border-radius: 10px; }
.don-row__main { flex: 1; }
.don-row__title { font-weight: 700; }
.don-detail__head { display: flex; align-items: center; gap: 14px; }
.don-detail__head h2 { margin: 0; }
.don-detail__head > :last-child { margin-left: auto; }

/* ---- Timeline ---- */
.timeline { display: flex; flex-direction: column; }
.timeline__row { display: flex; gap: 14px; align-items: flex-start; }
.timeline__marker { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: 0 0 auto; }
.timeline__line { width: 2px; height: 22px; background: #dfe6e3; margin-left: 18px; }
.timeline__line.is-done { background: var(--c-primary); }
.timeline__body { padding-top: 6px; }
.timeline__row.is-current .timeline__label strong { color: var(--c-primary); }
.timeline__desc { font-size: .85rem; }

/* ---- Match score ---- */
.match-score { background: linear-gradient(90deg, #fff6e6, #fffdf8); border: 1px solid #f4e2bf; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.match-score__badge { font-weight: 800; color: #b9791a; font-size: .85rem; }

/* ---- Posts ---- */
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card__head { display: flex; align-items: center; gap: 10px; }
.post-card__org strong { font-weight: 800; }
.post-card__emoji { margin-left: auto; font-size: 1.8rem; }
.post-card__title { margin: 0; }
.post-card__body { font-size: .92rem; color: #3f4e49; }
.post-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.like-btn { border: 1px solid #f0d3d3; background: #fff; color: var(--c-danger); border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.like-btn:hover { background: #fdf0f0; }

/* ---- Delivery / GPS ---- */
/* position+isolation cria um contexto de empilhamento: o Leaflet (zoom/controles)
   fica preso DENTRO do mapa e nunca aparece na frente de modais/popups. */
.gps-map { position: relative; z-index: 0; isolation: isolate; width: 100%; height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid #dbe6e1; background: #e8f0ed; margin: 10px 0; }
.leaflet-container { z-index: 0; }
.gps-canvas-wrap { display: block; }
.gps-canvas { display: block; width: 100%; height: 100%; }
.deliv-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code-box { grid-column: 1 / -1; background: #eef4f1; border-radius: 10px; padding: 10px 14px; }
.code { font-size: 1.8rem; font-weight: 800; letter-spacing: 8px; color: var(--c-primary-dark); }
.deliv-status { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.deliv-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.deliv-active__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deliv-route { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.deliv-open { display: flex; align-items: center; gap: 12px; }
.deliv-open__main { flex: 1; }
.deliv-done { display: flex; align-items: center; justify-content: space-between; }
.code-hint { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.org-deliv-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; background: #fff7e9; border: 1px solid #f4dca8; border-radius: 10px; padding: 8px 12px; }
.code-inline { font-weight: 800; letter-spacing: 4px; font-size: 1.2rem; color: var(--c-primary-dark); background: #fff; border: 1px dashed #cfdcd7; border-radius: 8px; padding: 2px 10px; }

/* mapa: pinos do Leaflet (pino circular simples, sem rotação) */
.map-pin-wrap { background: none !important; border: none !important; }
.map-pin {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff;
}
.pin--pickup { background: var(--c-primary); }
.pin--drop { background: var(--c-danger); }
.pin--courier { background: var(--c-info); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,111,237,.5); } 70% { box-shadow: 0 0 0 12px rgba(47,111,237,0); } 100% { box-shadow: 0 0 0 0 rgba(47,111,237,0); } }

/* ---- Points ---- */
.points-summary { text-align: center; }
.points-big { font-size: 2.4rem; font-weight: 800; color: var(--c-primary); }
.point-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--c-surface); border: 1px solid #e8efec; border-radius: var(--radius-sm); }
.point-row__amt { font-weight: 800; color: var(--c-primary); width: 44px; }

/* ---- Filtros ---- */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

/* ---- Menus ---- */
.menu-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #d8e2de; border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font: inherit; font-weight: 700; }
.user-btn__name { font-size: .9rem; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid #e3ebe8; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px; z-index: 60; }
.menu--right { right: 0; }
.menu--hidden { display: none; }
.menu__item { display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none; font: inherit; cursor: pointer; border-radius: 8px; color: var(--c-text); }
.menu__item:hover { background: #f1f6f4; text-decoration: none; }
.menu__sep { height: 1px; background: #eef2f0; margin: 4px 0; }
.menu__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--c-muted); padding: 6px 12px; font-weight: 700; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,32,28,.5); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; transition: opacity .2s; padding: 16px; }
.modal-overlay--in { opacity: 1; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .2s; }
.modal-overlay--in .modal { transform: translateY(0); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eef2f0; }
.modal__title { margin: 0; font-size: 1.15rem; }
.modal__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--c-muted); line-height: 1; }
.modal__body { padding: 18px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid #eef2f0; }

/* ---- Toast ---- */
#toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2600; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #23332e; color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); transition: all .3s; max-width: 90vw; }
.toast--in { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--c-primary); }
.toast--danger { background: var(--c-danger); }
.toast--info { background: var(--c-info); }

/* ---- Footer ---- */
.footer { border-top: 1px solid #e7eeeb; background: #fff; padding: 24px 0; color: var(--c-muted); font-size: .88rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.error-box { background: #fdf0f0; border: 1px solid #f3caca; border-radius: 12px; padding: 16px; }
.error-box pre { white-space: pre-wrap; }

/* ---- Sininho de notificações ---- */
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--c-danger); color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.notif-badge--hidden { display: none; }
.notif-menu { width: 320px; max-height: 70vh; overflow: auto; padding: 6px; }
.notif-empty { padding: 18px; text-align: center; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 9px; color: var(--c-text); align-items: flex-start; }
.notif-item:hover { background: #f1f6f4; text-decoration: none; }
.notif-item--unread { background: #eaf5f1; }
.notif-item--unread:hover { background: #e0efe9; }
.notif-item__icon { font-size: 1.1rem; }
.notif-item__text { font-size: .86rem; line-height: 1.35; }

/* ---- Candidaturas de voluntário ---- */
.appl__head { display: flex; align-items: center; gap: 12px; }
.appl__info { flex: 1; }
.appl__info .chips { margin-top: 6px; }
.appl__msg { margin: 10px 0 0; font-style: italic; color: #46554f; background: #f7faf9; border-left: 3px solid var(--c-primary); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.appl__actions { display: flex; gap: 8px; margin-top: 10px; }
.appl-mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.appl-mine:hover { background: #f7faf9; }

/* ---- Alocação financeira ---- */
.alloc-summary { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 12px; background: #f3f7f5; border-radius: 10px; margin-bottom: 10px; font-size: .9rem; }
.alloc-bar { height: 10px; background: #e4ece9; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.alloc-bar__fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 999px; transition: width .4s; }
.alloc-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--c-surface); border: 1px solid #e8efec; border-radius: var(--radius-sm); }
.alloc-row strong { color: var(--c-primary-dark); }
.alloc-row > :first-child { flex: 1; }

/* ---- Tela de carregamento (boot Supabase) ---- */
.boot-overlay { position: fixed; inset: 0; background: linear-gradient(135deg, #0e7c66, #0a5c4b); display: flex; align-items: center; justify-content: center; z-index: 3000; padding: 20px; }
.boot-overlay__box { background: #fff; border-radius: 16px; padding: 28px 32px; max-width: 460px; text-align: center; box-shadow: var(--shadow-lg); }
.boot-overlay__box h3 { margin-top: 6px; }
.boot-overlay__box code { background: #eef4f1; padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.boot-overlay__box .btn { margin-top: 14px; }
.boot-spinner { width: 42px; height: 42px; border: 4px solid #e4ece9; border-top-color: var(--c-primary); border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Segurança / LGPD ---- */
.pw-meter { margin: -6px 0 12px; display: flex; align-items: center; gap: 10px; }
.pw-meter__track { flex: 1; height: 7px; background: #e4ece9; border-radius: 999px; overflow: hidden; }
.pw-meter__bar { height: 100%; width: 0; border-radius: 999px; transition: width .25s, background .25s; }
.pw-meter__label { white-space: nowrap; font-weight: 700; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 14px; font-size: .88rem; color: #46554f; cursor: pointer; background: #f7faf9; border: 1px solid #e3ebe8; border-radius: 10px; padding: 11px 13px; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; }
.legal-doc h3 { margin-top: 18px; color: var(--c-primary-dark); }
.legal-doc h3:first-child { margin-top: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef2f0; font-size: .9rem; vertical-align: top; }
.legal-table th { color: var(--c-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }
.legal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mydata-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.mydata-grid .stat { background: #f3f7f5; }
.mydata-grid .stat__value { color: var(--c-primary); }
.mydata-grid .stat__label { color: var(--c-muted); }
.danger-zone { border-color: #f0d3d3; background: #fdf7f7; }
.danger-zone h3 { color: var(--c-danger); }
.footer__links a { color: var(--c-muted); font-weight: 600; }
.footer__links a:hover { color: var(--c-primary); }

/* ---- Chatbot (Eloá) ---- */
.cbot-root { position: fixed; right: 20px; bottom: 20px; z-index: 150; }
.cbot-fab { width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--c-primary); color: #fff; font-size: 1.7rem; cursor: pointer; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.cbot-fab:hover { transform: scale(1.06); background: var(--c-primary-dark); }
.cbot-fab--open { background: var(--c-primary-dark); }
.cbot-panel { position: absolute; right: 0; bottom: 74px; width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); background: var(--c-surface); border: 1px solid #e3ebe8; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transition: opacity .18s, transform .18s; }
.cbot-panel--hidden { opacity: 0; transform: scale(.92) translateY(10px); pointer-events: none; }
.cbot-head { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.cbot-head__id { display: flex; align-items: center; gap: 10px; }
.cbot-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.cbot-head__sub { font-size: .74rem; opacity: .85; }
.cbot-head__tools { display: flex; gap: 4px; }
.cbot-iconbtn { width: 32px; height: 32px; border: none; background: rgba(255,255,255,.15); color: #fff; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.cbot-iconbtn:hover { background: rgba(255,255,255,.28); }
.cbot-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f8f7; }
.cbot-msg { display: flex; }
.cbot-msg--user { justify-content: flex-end; }
.cbot-bubble { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow); }
.cbot-msg--assistant .cbot-bubble { background: #fff; border-bottom-left-radius: 4px; }
.cbot-msg--user .cbot-bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.cbot-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cbot-chip { border: 1px solid var(--c-primary); background: #fff; color: var(--c-primary); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.cbot-chip:hover { background: var(--c-primary); color: #fff; }
.cbot-typing { display: flex; gap: 4px; align-items: center; }
.cbot-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c6c1; animation: cbot-blink 1.2s infinite both; }
.cbot-typing span:nth-child(2) { animation-delay: .2s; } .cbot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cbot-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.cbot-inputbar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef2f0; background: #fff; }
.cbot-input { flex: 1; border: 1px solid #d3ddd9; border-radius: 999px; padding: 9px 14px; font: inherit; outline: none; }
.cbot-input:focus { border-color: var(--c-primary); }
.cbot-send { width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--c-primary); color: #fff; cursor: pointer; font-size: 1rem; flex: 0 0 auto; }
.cbot-send:hover { background: var(--c-primary-dark); }
@media (max-width: 480px) {
  .cbot-root { right: 14px; bottom: 14px; }
  .cbot-panel { width: calc(100vw - 28px); height: calc(100vh - 100px); }
}

/* ---- Ícones + botões com ícone ---- */
.icon { vertical-align: middle; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn--block { display: flex; }
.nav__link, .menu__item { display: flex; align-items: center; gap: 8px; }

/* ---- Logo / capa de organização ---- */
.brand-logo { border-radius: 12px; object-fit: cover; display: block; flex: 0 0 auto; box-shadow: var(--shadow); background: #eef2f0; }
.org-card__top .brand-logo { width: 46px; height: 46px; }
.org-cover { height: 180px; border-radius: 18px; background-size: cover; background-position: center; box-shadow: var(--shadow); margin-bottom: -52px; }
.org-header--cover { position: relative; }
.org-header--cover .brand-logo { width: 84px; height: 84px; border: 4px solid #fff; }
.logo-pick { display: inline-block; }
.cover-prevbox { width: 100%; height: 90px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid #e3ebe8; margin-bottom: 8px; }

/* ---- Mídia em postagens ---- */
.post-media { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.post-media--1 { grid-template-columns: 1fr; }
.post-media--2, .post-media--3 { grid-template-columns: 1fr 1fr; }
.post-media__cell { position: relative; aspect-ratio: 16/10; cursor: zoom-in; background: #eef2f0; overflow: hidden; }
.post-media--1 .post-media__cell { aspect-ratio: 16/9; }
.post-media__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media__more { position: absolute; inset: 0; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; }
.post-video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; margin: 8px 0; background: #000; }
.post-video iframe, .post-video video, video.post-video { width: 100%; height: 100%; border: 0; display: block; aspect-ratio: 16/9; }
.post-card__hid { flex: 1; }
.badge--media { font-size: .72rem; }
.media-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.media-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb__x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; font-size: 1rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ---- Empresa / ESG / Selo ---- */
.seal { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; border: 1px solid; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.seal--sm { font-size: .74rem; padding: 2px 9px; }
.esg-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.esg-header .brand-logo { width: 64px; height: 64px; border-radius: 16px; }
.esg-header__main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.esg-header__main h2 { margin: 0; }
.esg-highlight { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: linear-gradient(135deg, #eafaf4, #f2fbf8); border-color: #bfe6d8; color: var(--c-primary-dark); }
.esg-highlight .icon { color: var(--c-primary); }
.esg-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.esg-metrics .stat { background: var(--c-surface); border: 1px solid #e8efec; box-shadow: var(--shadow); }
.esg-metrics .stat__value { color: var(--c-primary); font-size: 1.25rem; }
.esg-metrics .stat__label { color: var(--c-muted); }
.esg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seal-track { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.seal-step { display: flex; align-items: center; gap: 8px; opacity: .4; }
.seal-step.is-on { opacity: 1; font-weight: 700; }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .org-detail-grid, .donate-grid, .esg-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .tier-card { position: static; }
  .esg-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .grid--2, .grid--3, .grid--4, .form-grid, .role-pick, .demo-grid, .deliv-info { grid-template-columns: 1fr; }
  .hero__stats, .esg-metrics { grid-template-columns: 1fr 1fr; }
  .hero { padding: 24px; }
  .hero__title { font-size: 1.6rem; }
  .header__right .btn { padding: 7px 10px; }
  .org-cover { height: 130px; margin-bottom: -46px; }
}
