/* =========================================================
   IP Lapa · Portal de contribuições — design system
   Telas: contribua (público) · projeto · login · portal
   Marca: azul presbiteriano + branco · verde p/ progresso
   Convenção: BEM (bloco__elemento--modificador)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand:        #1C3A63;   /* azul IP Lapa — marca, CTA, headers */
  --brand-2:      #2A5288;
  --brand-ink:    #142A47;   /* títulos */
  --brand-soft:   #EAF0F7;   /* fundo azul claro */

  --accent:       #2E7D55;   /* verde — progresso, sucesso, "entrada" */
  --accent-soft:  #E6F2EB;
  --gold:         #B0832B;
  --danger:       #B23B30;
  --info:         #2A5288;

  --bg:           #F5F7FA;
  --surface:      #FFFFFF;
  --surface-2:    #EFF2F6;
  --border:       #E3E7EE;
  --border-strong:#D2D8E2;
  --text:         #1A2433;
  --muted:        #586273;
  --faint:        #8A93A2;

  --radius:       14px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --shadow-sm:    0 1px 2px rgba(20,42,71,.06);
  --shadow:       0 1px 2px rgba(20,42,71,.05), 0 8px 24px rgba(20,42,71,.06);
  --maxw:         1140px;

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

/* ---------- marca / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 15px; font-weight: 800; color: var(--brand-ink); letter-spacing: -.01em; }
.brand__text span { font-size: 11px; font-weight: 600; color: var(--faint); }

/* ---------- botões ---------- */
.btn { --bg: var(--surface); --fg: var(--text); --bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; line-height: 1;
  padding: 11px 16px; border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  cursor: pointer; text-decoration: none; transition: filter .15s, background .15s, border-color .15s; }
.btn:hover { filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--brand); --fg: #fff; --bd: var(--brand); }
.btn--primary:hover { --bg: var(--brand-2); filter: none; }
.btn--accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn--ghost { --bg: transparent; --bd: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--lg { padding: 14px 18px; font-size: 16px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.topbar__nav { display: flex; gap: 22px; margin-left: 6px; }
.navlink { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.navlink:hover, .navlink.is-active { color: var(--brand); }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.usermenu { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); text-decoration: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.usermenu__name { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---------- página / grid ---------- */
.page { padding-block: 26px 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--brand-ink); letter-spacing: -.01em; }
.section-sub { font-size: 13px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ============ LANDING (contribua) ============ */
.welcome { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 34px 32px; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.05); }
.welcome__kicker { font-size: 13px; font-weight: 600; color: #aebfd8; letter-spacing: .02em; }
.welcome__title { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 10px; max-width: 22ch; }
.welcome__text { color: #cdd8ec; max-width: 56ch; }
.welcome__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.welcome .btn--ghost { color: #cdd8ec; border-color: rgba(255,255,255,.25); }
.welcome .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.lead-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; margin-top: 22px; }
.lead-grid__main { min-width: 0; }

/* grade de projetos */
.fundgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.fund { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.fund:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.fund__cover { aspect-ratio: 16/7; display: grid; place-items: center; color: rgba(255,255,255,.92); position: relative; }
.fund__cat { position: absolute; left: 12px; top: 12px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: var(--radius-pill); }
.fund__cover svg { width: 40px; height: 40px; opacity: .9; }
.fund__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.fund__title { font-size: 16px; font-weight: 700; color: var(--brand-ink); line-height: 1.25; }
.fund__resumo { font-size: 13.5px; color: var(--muted); flex: 1; }
.fund__foot { margin-top: 4px; }
.fund__amounts { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 7px; }
.fund__raised { font-weight: 700; color: var(--text); }
.fund__pct { font-weight: 700; color: var(--accent); }
.fund__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--faint); margin-top: 9px; }

/* card dízimo / lateral */
.aside-card { display: flex; flex-direction: column; gap: 14px; }
.give-card { padding: 20px; }
.give-card__title { font-size: 16px; font-weight: 700; color: var(--brand-ink); }
.give-card__text { font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; }
.pixbox { background: var(--brand-soft); border: 1px solid #D6E1EF; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 13px; }
.pixbox__row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.pixbox__row span { color: var(--muted); }
.pixbox__row b { color: var(--brand-ink); font-weight: 600; }
.pixbox__key { font-family: var(--mono); }

/* ---------- barra de progresso (compartilhado) ---------- */
.bar { height: 9px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--accent), #3a9a6a); border-radius: inherit; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar--lg { height: 12px; }
.bar--sm { height: 6px; }

/* ============ PROJETO (detalhe) ============ */
.grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; align-items: start; }
.grid__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.grid__aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 82px; }

.hero { overflow: hidden; }
.hero__cover { aspect-ratio: 16/5.6; display: grid; place-items: center; color: rgba(255,255,255,.92); position: relative; }
.hero__cover svg { width: 52px; height: 52px; opacity: .9; }
.hero__cover-tag { position: absolute; bottom: 12px; right: 14px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: var(--radius-pill); }
.hero__body { padding: 20px 22px 22px; }
.org { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.org__avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.org__name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.org__meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.hero__title { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--brand-ink); margin: 2px 0 10px; }
.hero__lead { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-2); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: var(--radius-pill); }
.chip__ico { color: var(--accent); font-size: 8px; }

.block { padding: 20px 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--muted); }
.pill--live { color: var(--accent); background: var(--accent-soft); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.progress__amounts { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progress__raised { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.progress__goal { font-size: 13.5px; color: var(--muted); margin-left: 6px; }
.progress__pct { font-size: 18px; font-weight: 700; color: var(--accent); }
.stats { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat__num { font-weight: 700; }
.stat__label { font-size: 12.5px; color: var(--muted); }

.phase-list { list-style: none; margin: 0; padding: 0; }
.phase { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; }
.phase + .phase { border-top: 1px solid var(--border); }
.phase__marker { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--faint); border: 1px solid var(--border); }
.phase--done .phase__marker { background: var(--accent); color: #fff; border-color: var(--accent); }
.phase--active .phase__marker { background: #fff; color: var(--accent); border-color: var(--accent); }
.phase__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.phase__title { font-size: 15px; font-weight: 600; }
.phase__value { font-weight: 700; white-space: nowrap; }
.phase__meta { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--faint); }
.tag--done { background: var(--accent-soft); color: var(--accent); }
.tag--active { background: #FCF1DC; color: #8A5A12; }

.update + .update { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.update__head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.update__avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.update__author { font-weight: 600; font-size: 14px; }
.update__date { font-size: 12.5px; color: var(--faint); }
.update__media { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); background: linear-gradient(135deg,#22324d,#33486d); margin-bottom: 11px; display: grid; place-items: center; }
.update__media-tag { position: absolute; bottom: 10px; right: 10px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.4); padding: 3px 9px; border-radius: var(--radius-pill); }
.play { width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.play svg { width: 21px; height: 21px; margin-left: 2px; }
.update__text { color: var(--muted); }
.update__text strong { color: var(--text); }

/* doação (aside) */
.donate { padding: 20px; }
.donate__title { font-size: 17px; font-weight: 700; color: var(--brand-ink); margin-bottom: 16px; }
.field { border: none; margin: 0 0 16px; padding: 0; }
.field__label { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.field__hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.amount { font: inherit; font-weight: 700; font-size: 14px; padding: 11px 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; transition: .12s; }
.amount:hover { border-color: var(--brand); }
.amount.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.input-money { display: flex; align-items: center; gap: 6px; margin-top: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 12px; }
.input-money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }
.input-money__prefix { color: var(--faint); font-weight: 600; }
.input-money__field { flex: 1; border: none; outline: none; font: inherit; padding: 11px 0; background: transparent; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--radius-sm); }
.seg { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 0; border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.seg.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.tab { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 12px; border: none; background: transparent; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.switch { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 16px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { flex: none; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--border-strong); position: relative; transition: background .15s; margin-top: 1px; }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.switch__text { display: flex; flex-direction: column; font-size: 13.5px; }
.switch__sub { color: var(--muted); font-size: 12.5px; }
.donate__summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--brand); color: #fff; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 13.5px; }
.donate__summary strong { font-size: 15px; }
.donate__trust { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.donate__trust strong { color: var(--text); font-weight: 600; }
.ico-shield { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }

/* ledger / histórico do projeto */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; }
.ledger__row + .ledger__row { border-top: 1px solid var(--border); }
.ledger__type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: var(--radius-pill); }
.ledger__type--in { background: var(--accent-soft); color: var(--accent); }
.ledger__type--out { background: var(--brand-soft); color: var(--brand); }
.ledger__val { font-weight: 600; }
.ledger__hash { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ledger__link { text-decoration: none; color: var(--info); font-weight: 700; }
.link-proof { color: var(--info); text-decoration: none; font-weight: 600; }
.link-proof:hover { text-decoration: underline; }

/* ============ LOGIN ============ */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth__card { width: 100%; max-width: 400px; padding: 30px 28px; }
.auth__head { text-align: center; margin-bottom: 22px; }
.auth__title { font-size: 21px; font-weight: 700; color: var(--brand-ink); }
.auth__sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; background: var(--surface); margin-bottom: 14px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }
.auth__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 18px; }
.auth__row a { color: var(--info); text-decoration: none; }
.checkrow { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.auth__divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 18px 0; }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.auth__foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth__foot a { color: var(--info); text-decoration: none; font-weight: 600; }

/* ============ PORTAL (logado) ============ */
.portal { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 24px; padding-block: 26px 64px; align-items: start; }
.sidenav { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 3px; }
.sidenav__item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.sidenav__item svg { width: 18px; height: 18px; flex: none; }
.sidenav__item:hover { background: var(--surface-2); color: var(--text); }
.sidenav__item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidenav__sep { height: 1px; background: var(--border); margin: 8px 4px; }

.portal__main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.greeting__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.greeting__sub { color: var(--muted); margin-top: 3px; }

.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.statcard { padding: 16px 18px; }
.statcard__label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.statcard__label svg { width: 15px; height: 15px; color: var(--brand-2); }
.statcard__num { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.statcard__hint { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* recorrências */
.recur { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.recur + .recur { border-top: 1px solid var(--border); }
.recur__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.recur__ico svg { width: 19px; height: 19px; }
.recur__body { flex: 1; min-width: 0; }
.recur__title { font-weight: 600; }
.recur__meta { font-size: 12.5px; color: var(--muted); }
.recur__val { font-weight: 700; text-align: right; }
.recur__val small { display: block; font-weight: 500; font-size: 11.5px; color: var(--faint); }

/* tabela de histórico */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table__date { color: var(--muted); white-space: nowrap; }
.table__proj { font-weight: 600; }
.table__val { font-weight: 700; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.method { font-size: 12.5px; color: var(--muted); }
.hashlink { font-family: var(--mono); font-size: 12px; color: var(--info); text-decoration: none; }
.hashlink:hover { text-decoration: underline; }

/* views do portal (Resumo / Projetos / Meu perfil) */
.view { display: none; }
.view.is-active { display: block; }

/* filtros de categoria (marketplace) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { font: inherit; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; transition: .12s; }
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* perfil */
.profile { display: flex; align-items: center; gap: 16px; padding: 20px; }
.profile__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; flex: none; }
.profile__info { flex: 1; min-width: 0; }
.profile__name { font-size: 18px; font-weight: 700; color: var(--brand-ink); }
.profile__meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* atividade recente (resumo) */
.actrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.actrow + .actrow { border-top: 1px solid var(--border); }
.actrow__main { display: flex; flex-direction: column; }
.actrow__proj { font-weight: 600; font-size: 14px; }
.actrow__date { font-size: 12.5px; color: var(--muted); }
.actrow__val { font-weight: 700; }

/* =========================================================
   v2 — disposição estilo "painel" (inspirada na demo Banco Fiscal),
   mantendo a paleta azul/verde da IP Lapa. Foco em UX 30–50:
   ações explícitas, hierarquia, dados escaneáveis.
   ========================================================= */
.ti { font-style: normal; line-height: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--border-strong); }

/* menu lateral estilo painel */
.sidenav__label { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin: 2px 0 12px; padding-left: 8px; }
.sidenav__item .ti { font-size: 18px; flex: none; }
.sidenav__item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding-left: 10px; }
.sidenav__cta { margin: 12px 0; width: 100%; }
.sidenav__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }

/* stat cards estilo painel (1 em destaque) */
.statgrid { gap: 16px; }
.statcard { min-height: 138px; display: flex; flex-direction: column; padding: 18px 20px; }
.statcard__label { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
.statcard__label svg, .statcard__label .ti { font-size: 17px; }
.statcard__num { margin-top: auto; }
.statcard--featured { background: var(--brand); border-color: var(--brand); color: #fff; }
.statcard--featured .statcard__label { color: #b9c6da; }
.statcard--featured .statcard__label svg { color: #b9c6da; }
.statcard--featured .statcard__num { color: #fff; }
.statcard--featured .statcard__hint { color: #aab8cf; }

/* banners de ação (nudges) */
.banners { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 16px 0 4px; }
.banner-nudge { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.banner-nudge:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.banner-nudge__ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 21px; }
.banner-nudge__ico--accent { background: var(--accent-soft); color: var(--accent); }
.banner-nudge__ico--brand { background: var(--brand-soft); color: var(--brand); }
.banner-nudge__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.banner-nudge__t { font-weight: 600; font-size: 14.5px; color: var(--text); }
.banner-nudge__s { font-size: 13px; color: var(--muted); margin-top: 1px; }
.banner-nudge__chev { color: var(--faint); font-size: 20px; }

/* section head com ícone */
.section-title .ti { color: var(--brand); font-size: 19px; vertical-align: -3px; margin-right: 8px; }
.see-all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.see-all:hover { color: var(--brand-2); }

/* ===== card de ativo (disposição estilo lâmina) ===== */
.fundgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .18s, transform .18s, box-shadow .18s; }
.acard:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.acard__top { padding: 18px 18px 0; }
.acard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acard__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--brand-ink); }
.acard__issuer { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.acard__issuer b { color: var(--text); font-weight: 600; }
.acard__badge { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 22px; }
.acard__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.atag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 4px 11px; line-height: 1.5; }
.atag--status { color: var(--accent); background: var(--accent-soft); }
.atag--status::before { content: "●"; font-size: 8px; margin-right: 5px; vertical-align: 1px; }
.atag--out { color: var(--muted); border: 1px solid var(--border-strong); }
.acard__hero { margin-top: 16px; padding: 13px 18px; background: var(--accent-soft); border-top: 1px solid #CFE8DB; border-bottom: 1px solid #CFE8DB; }
.acard__hero-row { display: flex; align-items: baseline; justify-content: space-between; }
.acard__hero-row .lbl { font-size: 13px; color: #4a6a5b; }
.acard__hero-row .val { font-size: 23px; font-weight: 800; color: var(--accent); letter-spacing: -.3px; }
.acard__hero-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: #5d7a6c; margin: 6px 0 9px; }
.acard__rows { padding: 14px 18px 0; }
.kv { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; }
.acard__actions { display: flex; gap: 10px; padding: 16px 18px 18px; margin-top: auto; }
.acard__actions .btn { flex: 1; padding: 11px; }
.btn--line { background: transparent; color: var(--brand); border: 1px solid var(--border-strong); }
.btn--line:hover { background: var(--surface-2); border-color: var(--brand); filter: none; }

/* ===== card de doação em destaque (ação principal) ===== */
.donate--hero { box-shadow: var(--shadow); border-top: 3px solid var(--brand); }
.donate__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.donate__head-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; }
.donate__title { font-size: 18px; margin-bottom: 0; }
.donate__subtitle { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.money { margin-top: 12px; }
.money__label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.money__field { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 14px; transition: border-color .12s, box-shadow .12s; }
.money__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }
.money__cur { font-size: 16px; font-weight: 700; color: var(--brand); margin-right: 8px; }
.money__input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 18px; font-weight: 700; padding: 12px 0; color: var(--text); }
.money__input::placeholder { color: var(--faint); font-weight: 500; }
.btn--xl { padding: 15px 18px; font-size: 16.5px; }
.donate__cta { margin-top: 2px; box-shadow: 0 8px 18px rgba(46,125,85,.22); }
.donate__cta .ti { font-size: 19px; }

/* progresso — pares label/valor simétricos */
.progress__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.progress__cap { font-size: 13px; font-weight: 600; color: var(--muted); }
.progress__big { font-size: 28px; font-weight: 800; letter-spacing: -.022em; color: var(--text); margin-bottom: 12px; }
.progress__foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 10px; }
.progress__foot b { color: var(--text); font-weight: 600; }

/* tracking refinado dos títulos (Plus Jakarta Sans) */
.welcome__title, .greeting__title, .hero__title, .auth__title { letter-spacing: -.022em; }
.acard__title, .fund__title, .donate__title, .section-title, .statcard__num, .progress__pct { letter-spacing: -.012em; }

/* ===== card de ativo (imagem em destaque · progresso secundário) ===== */
.acard__cover { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: rgba(255,255,255,.92); overflow: hidden; }
.acard__cover-ico { font-size: 44px; opacity: .92; }
.acard__cover-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.cover-tag { font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(12,20,34,.42); border-radius: 999px; padding: 4px 11px; line-height: 1.5; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cover-tag--status::before { content: "●"; font-size: 8px; margin-right: 5px; color: #6fe0a8; vertical-align: 1px; }
.acard__body { flex: 1; display: flex; flex-direction: column; padding: 15px 18px 18px; }
.acard__title { font-size: 16.5px; font-weight: 700; color: var(--brand-ink); line-height: 1.3; }
.acard__resumo { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.acard__progress { margin-top: auto; padding-top: 14px; }
.acard__progress-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.acard__raised { font-weight: 700; color: var(--text); }
.acard__of { color: var(--faint); font-weight: 500; }
.acard__pct { font-weight: 700; color: var(--accent); }
.acard__meta { font-size: 12.5px; color: var(--faint); margin-top: 9px; }
.acard__actions { display: flex; gap: 10px; margin-top: 16px; padding: 0; }
.acard__actions .btn { flex: 1; padding: 11px; }

@media (max-width: 720px) {
  .banners { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 44px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer__nav { display: flex; gap: 18px; }
.footer__nav a { text-decoration: none; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }

/* ---------- modal ---------- */
.modal { border: none; border-radius: var(--radius); padding: 26px 24px 22px; max-width: 380px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(20,42,71,.25); text-align: center; }
.modal::backdrop { background: rgba(20,42,71,.45); backdrop-filter: blur(2px); }
.modal__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.modal__icon svg { width: 26px; height: 26px; }
.modal__title { font-size: 19px; font-weight: 700; color: var(--brand-ink); margin-bottom: 6px; }
.modal__text { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal__proof { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.modal__proof code { font-family: var(--mono); color: var(--text); }
.modal__hint { font-size: 11.5px; color: var(--faint); margin-top: 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 920px) {
  .grid, .lead-grid { grid-template-columns: 1fr; }
  .grid__aside { position: static; }
  .portal { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .sidenav__label, .sidenav__cta, .sidenav__foot { display: none; }
  .sidenav__item { white-space: nowrap; }
  .sidenav__item.is-active { border-left: none; border-radius: 8px; padding-left: 13px; }
  .statgrid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fundgrid { grid-template-columns: 1fr; }
  .topbar__nav { display: none; }
  .topbar__actions .btn--primary { display: none; }
  .usermenu__name { display: none; }
  .brand__text span { display: none; }
  .welcome__title { font-size: 24px; }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 14px; }
}
