/* =========================================================
   Portal de contribuições · design system do PRODUTO
   Telas: contribua (público) · projeto · login · portal · painel
   Convenção: BEM (bloco__elemento--modificador)

   Este arquivo não conhece cliente nenhum. Toda cor de marca e
   toda fonte entram por token, e o tema do cliente sobrescreve
   em tema.css (carregado depois). Os valores de marca abaixo são
   um cinza-neutro de fallback, só para o produto abrir sozinho.
   Se você precisar escrever um hex de marca aqui, é sinal de que
   falta um token.
   ========================================================= */

:root {
  /* ---------- MARCA (fallback neutro, sobrescrito por tema.css) ---------- */
  --brand:        #334155;   /* cor principal: CTA, links, cabeçalhos */
  --brand-2:      #475569;   /* variação média, hover do primário */
  --brand-ink:    #1E293B;   /* títulos */
  --brand-soft:   #EEF2F7;   /* fundo tingido de marca */
  --brand-line:   #DCE3EC;   /* borda sobre fundo de marca */

  --accent:       #94A3B8;   /* destaque: barras de progresso, CTA de doação */
  --accent-ink:   #475569;   /* texto de destaque sobre claro */
  --accent-soft:  #F1F5F9;
  --accent-line:  #E2E8F0;
  --accent-deep:  #64748B;   /* início do gradiente das barras */
  --accent-lite:  #CBD5E1;   /* topo das colunas do gráfico */
  --gold:         var(--accent);
  --on-brand-soft:#C5D2E8;   /* texto secundário sobre bloco de marca cheio */
  --on-accent:    #1E293B;   /* texto/ícone sobre fundo de destaque cheio */

  --welcome-a:    #EEF2F7;   /* gradiente do bloco de boas-vindas */
  --welcome-b:    #F1F5F9;

  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);

  /* ---------- SEMÂNTICAS (do produto, iguais para todo cliente) ---------- */
  --ok:           #18794A;   /* confirmado, concluído */
  --ok-soft:      #E3F3EA;
  --warn-ink:     #8A5A12;   /* em andamento, atenção */
  --warn-soft:    #FCF1DC;
  --warn-soft-2:  #FBF1DE;
  --danger:       #B23B30;
  --info:         var(--brand-2);
  --live:         #6FE0A8;   /* ponto pulsante "em andamento" */
  --cover-ink:    #16263F;   /* fim do gradiente de capa quando não há foto */
  --media-a:      #22324D;   /* placeholder de vídeo */
  --media-b:      #33486D;

  /* ---------- SUPERFÍCIE E NEUTROS ---------- */
  --bg:           #F5F7FA;
  --surface:      #FFFFFF;
  --surface-2:    #EFF2F6;
  --border:       #E3E7EE;
  --border-strong:#D2D8E2;
  --text:         #1A2433;
  --muted:        #586273;
  --faint:        #626D7D;

  /* ---------- FORMA ---------- */
  --radius:       9px;
  --radius-sm:    6px;
  --radius-pill:  7px;   /* era pílula; reto comunica mais precisão */
  --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:         1360px;
  --topbar-h:     76px;  /* altura da topbar; os offsets fixos derivam daqui */
  --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; }
/* títulos e números de destaque na fonte de display do tema */
h1, h2, h3, h4,
.welcome__title, .hero__title, .greeting__title, .auth__title,
.section-title, .fund__title, .acard__title, .donate__title, .give-card__title,
.brand__text b, .pcard__title, .statcard__num, .progress__raised,
.progress__big, .progress__pct, .acard__hero-row .val {
  font-family: var(--font-head);
  font-weight: 600;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }

/* Área logada (portal e lâmina do projeto): o membro está trabalhando, não
   lendo uma vitrine. Menu mais à esquerda e mais área útil. A home pública
   fica no container estreito, que é melhor para leitura corrida. */
body.app { --maxw: 1600px; }
.muted { color: var(--muted); }

/* ---------- marca / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { height: 38px; width: auto; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 16px; font-weight: 700; color: var(--brand-ink); letter-spacing: .04em; text-transform: uppercase; }
.brand__text span { font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* ---------- 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: var(--on-accent); --bd: var(--accent); font-weight: 700; }
.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: var(--topbar-h); }
.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: 36px 88px; }
.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: 18px; }
.section-title { font-size: 17px; font-weight: 600; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .05em; }
.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: linear-gradient(120deg, var(--welcome-a) 0%, var(--welcome-b) 100%); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 46px 44px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.welcome::after { content: ""; position: absolute; right: -50px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(220,170,2,.12), transparent 70%); }
.welcome__kicker { font-size: 12px; font-weight: 600; color: var(--accent-ink); letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-head); }
.welcome__title { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 10px; max-width: 22ch; color: var(--brand-ink); }
.welcome__text { color: var(--muted); max-width: 56ch; }
.welcome__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.welcome .btn--ghost { color: var(--brand); border-color: var(--border-strong); background: rgba(255,255,255,.55); }
.welcome .btn--ghost:hover { background: #fff; color: var(--brand-ink); }

.lead-grid { display: grid; grid-template-columns: minmax(0,1fr) 344px; gap: 30px; align-items: start; margin-top: 30px; }
.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-ink); }
.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: 20px; }
.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 var(--brand-line); border-radius: var(--radius-sm); padding: 16px 16px 14px; }
.pixbox__head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--brand-line); }
.pixbox__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.pixbox__key { display: block; font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--brand-ink); letter-spacing: .01em; }
.pixbox__grid { display: grid; grid-template-columns: auto 1fr; row-gap: 9px; column-gap: 14px; margin: 0; font-size: 13.5px; }
.pixbox__grid dt { color: var(--muted); }
.pixbox__grid dd { margin: 0; text-align: right; color: var(--brand-ink); font-weight: 600; }

/* ---------- 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-deep), var(--accent)); 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) 384px; gap: 30px; 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: calc(var(--topbar-h) + 18px); }

.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; font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.org__meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); background: var(--ok-soft); color: var(--ok); }
.badge .ti { font-size: 14px; }
.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: 9px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; font-size: 13.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-pill); }
.chip .ti { font-size: 16px; color: var(--accent-ink); }

.block { padding: 26px 28px; }
.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-ink); 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-ink); }
.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: var(--on-accent); border-color: var(--accent); }
.phase--active .phase__marker { background: #fff; color: var(--accent-ink); border-color: var(--accent-ink); }
.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-ink); }
.tag--active { background: var(--warn-soft); color: var(--warn-ink); }

.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, var(--media-a), var(--media-b)); 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 { display: inline-flex; align-items: center; justify-content: center; height: 48px; font: inherit; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--text); border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface); cursor: pointer; transition: .12s; }
.amount:hover { border-color: var(--brand); color: var(--brand); }
.amount.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); box-shadow: inset 0 0 0 1px 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-ink); 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-ink); }
.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; }
.link-explore { display: inline-flex; align-items: center; gap: 5px; color: var(--info); text-decoration: none; font-weight: 600; font-size: 13px; }
.link-explore .ti { font-size: 15px; }
.link-explore: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: 328px minmax(0,1fr); gap: 34px; padding-block: 36px 88px; align-items: start; }
.sidenav { display: flex; flex-direction: column; gap: 3px; padding-left: 12px;
  max-height: calc(100vh - var(--topbar-h) - 38px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }

/* Fixo de verdade, como a topbar. Com 'sticky' o menu escapava no fim da página,
   porque elemento sticky não sai do bloco que o contém e a grade do portal acaba
   antes do rodapé. Fixed resolve; o 'left' repete a conta do container centrado,
   e a coluna da grade continua reservando a largura. */
@media (min-width: 921px) {
  .sidenav { position: fixed; top: calc(var(--topbar-h) + 18px); width: 328px;
    left: max(32px, calc((100vw - var(--maxw)) / 2 + 32px)); }
  /* fora do fluxo, o menu deixa de ocupar a coluna 1: o conteúdo precisa ser
     mandado para a coluna 2, senão sobe para baixo do menu. */
  .portal__main { grid-column: 2; }
}
.sidenav::-webkit-scrollbar { width: 4px; }
.sidenav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.sidenav::-webkit-scrollbar-track { background: transparent; }
.sidenav__item { display: flex; align-items: center; gap: 11px; margin-left: -12px; padding: 10px 12px; 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); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.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 { margin-bottom: 24px; }
.greeting__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-ink); }
.greeting__sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; max-width: 60ch; }

.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.statcard { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.statcard__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.statcard__num { font-size: 31px; font-weight: 700; line-height: 1; color: var(--brand-ink); }
.statcard__label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 9px; }
.statcard__hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 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-ink); 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-ink); }
.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).
   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; position: relative; }
.icon-btn:hover { color: var(--brand); border-color: var(--border-strong); }
.icon-btn[data-bell]:not(.is-read)::after { content: ""; position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }

/* popover de notificações */
.notif-pop { position: fixed; z-index: 60; width: 330px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notif-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--brand-ink); font-size: 14px; }
.notif-pop__count { font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; }
.notif-pop__list { max-height: 320px; overflow-y: auto; }
.notif { display: flex; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: none; }
.notif__ico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; }
.notif__t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.notif__s { font-size: 12.5px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.notif__w { font-size: 11.5px; color: var(--faint); margin-top: 3px; display: block; }
.notif-pop__all { display: block; text-align: center; padding: 12px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; border-top: 1px solid var(--border); }
.notif-pop__all:hover { background: var(--surface-2); }

/* menu lateral estilo painel */
.sidenav__label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 2px 0 12px; }
.sidenav__item .ti { font-size: 18px; flex: none; }
.sidenav__item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.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--featured { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(0,42,110,.20); }
.statcard--featured .statcard__ico { background: rgba(255,255,255,.14); color: var(--accent); }
.statcard--featured .statcard__num { color: #fff; }
.statcard--featured .statcard__label { color: #fff; }
.statcard--featured .statcard__hint { color: var(--on-brand-soft); }

/* 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-ink); }
.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); }

/* ====== telas Recibos / Dados / Ajuda ====== */
.card.pad { padding: 26px; }
.dados-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; align-items: start; }

/* recibos */
.receipt { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.receipt:first-child { border-top: none; }
.receipt__ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; }
.receipt__body { flex: 1; min-width: 0; }
.receipt__proj { font-weight: 600; color: var(--text); font-size: 14px; }
.receipt__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.receipt__status { color: var(--ok); font-weight: 600; }
.receipt__val { font-weight: 700; color: var(--brand-ink); font-size: 15px; white-space: nowrap; }
.receipt__dl { flex: none; }

/* dados bancários */
.paymethod { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--border); }
.paymethod:first-of-type { border-top: none; padding-top: 4px; }
.paymethod__brand { width: 46px; height: 32px; flex: none; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); color: var(--brand); display: grid; place-items: center; font-size: 19px; }
.paymethod__body { flex: 1; min-width: 0; }
.paymethod__name { font-weight: 600; font-size: 14px; }
.paymethod__meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.paymethod__badge { flex: none; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }

/* ajuda, FAQ + contato */
.faq__item { border-top: 1px solid var(--border); }
.faq__item:first-child { border-top: none; }
.faq__q { cursor: pointer; list-style: none; padding: 13px 0; font-weight: 600; font-size: 14px; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--brand-2); font-weight: 700; font-size: 19px; line-height: 1; flex: none; }
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { margin: 0; padding: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact__row { display: flex; align-items: center; gap: 13px; padding: 9px 0; }
.contact__ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; }
.contact__t { font-size: 12px; color: var(--faint); }
.contact__s { font-weight: 600; font-size: 13.5px; color: var(--text); margin-top: 1px; }

/* ====== dashboard admin ====== */
.greeting--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.statgrid--4 { grid-template-columns: repeat(4, 1fr); }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; margin: 22px 0 6px; }
.dash-grid > .card { margin: 0; }

/* gráfico de barras (entradas recentes) */
.chart { display: flex; align-items: stretch; gap: 7px; height: 172px; margin-top: 8px; }
.chart__col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chart__barwrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.chart__bar { width: 64%; max-width: 22px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent-lite), var(--accent-deep)); min-height: 4px; transition: filter .12s; }
.chart__col:hover .chart__bar { filter: brightness(1.07); }
.chart__x { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 7px; font-variant-numeric: tabular-nums; }

/* próximo repasse */
.nextpay { display: flex; flex-direction: column; height: 100%; }
.nextpay__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 22px; margin-bottom: 13px; }
.nextpay__label { font-size: 12.5px; color: var(--muted); }
.nextpay__date { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--brand-ink); margin: 2px 0 0; }
.nextpay__rows { display: flex; flex-direction: column; gap: 9px; padding: 14px 0; margin: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nextpay__rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.nextpay__rows span { color: var(--muted); }
.nextpay__rows b { color: var(--brand-ink); font-weight: 700; }
.nextpay .btn { margin-top: auto; }

/* tabela financeira por projeto */
.table--fin .fin-cat { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; margin-top: 1px; }
.fin-muted { color: var(--muted); }
.fin-pct { display: flex; align-items: center; gap: 9px; }
.fin-pct > span { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); min-width: 34px; }
.bar--mini { width: 72px; height: 6px; }
.fin-total td { border-top: 2px solid var(--border-strong); font-weight: 700; color: var(--brand-ink); padding-top: 12px; }

@media (max-width: 1100px) {
  .statgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ============ PAINEL DA IGREJA, app shell ============ */
.adminshell { display: flex; min-height: 100vh; align-items: stretch; }
.rail { width: 246px; flex: none; background: var(--brand); color: #fff; display: flex; flex-direction: column; padding: 18px 14px 16px; position: sticky; top: 0; height: 100vh; }
.rail__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 2px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.13); }
.rail__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.rail__brandtxt { display: flex; flex-direction: column; line-height: 1.12; }
.rail__brandtxt b { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rail__brandtxt small { font-size: 11px; color: rgba(255,255,255,.6); }
.rail__nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.rail__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: rgba(255,255,255,.74); font-weight: 500; font-size: 14px; transition: background .12s, color .12s; }
.rail__item .ti { font-size: 19px; flex: none; }
.rail__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.rail__item.is-active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.rail__cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 4px 6px; padding: 11px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; text-decoration: none; transition: filter .12s; }
.rail__cta:hover { filter: brightness(1.05); }
.rail__cta .ti { font-size: 18px; }
.rail__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); display: flex; flex-direction: column; gap: 2px; }

.adminmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 40px; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.adtop__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--brand-ink); }
.adtop__actions { display: flex; align-items: center; gap: 10px; }
.adbody { padding: 34px 40px 76px; flex: 1; min-width: 0; }

.adhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.adhead__title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--brand-ink); }
.adhead__sub { color: var(--muted); margin-top: 5px; font-size: 14.5px; max-width: 72ch; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.panel--pad { padding: 26px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel__head--pad { padding: 18px 20px 0; margin-bottom: 12px; }
.panel__title { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink); }
.panel__title .ti { font-size: 18px; color: var(--accent-ink); }
.panel__link { font-size: 13px; color: var(--brand); font-weight: 600; text-decoration: none; }
.panel__sub { font-size: 13px; color: var(--muted); }
.chip-count { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 11px; }

/* financeiro: dízimo x campanhas */
.fin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.finbox { border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; }
.finbox--dizimo { background: var(--brand-soft); border-color: var(--brand-line); }
.finbox--proj { background: var(--accent-soft); border-color: var(--accent-line); }
.finbox__head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.finbox__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 23px; }
.finbox--dizimo .finbox__ico { background: var(--brand); color: #fff; }
.finbox--proj .finbox__ico { background: var(--accent); color: var(--on-accent); }
.finbox__kicker { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.finbox__big { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--brand-ink); line-height: 1.05; margin-top: 2px; }
.finbox__rows { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; margin: 2px 0 14px; border-top: 1px solid rgba(0,42,110,.10); }
.finbox__rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.finbox__rows span { color: var(--muted); }
.finbox__rows b { color: var(--brand-ink); font-weight: 700; }
.finbox__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }

.visao-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }

/* acompanhamento das campanhas */
.track { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.track:first-child { border-top: none; }
.track__cover { width: 46px; height: 46px; flex: none; border-radius: 11px; background-size: cover; background-position: center; }
.track__main { flex: 1; min-width: 0; }
.track__title { font-weight: 600; font-size: 14px; color: var(--brand-ink); display: flex; align-items: center; gap: 8px; }
.track__cat { font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.track__barrow { display: flex; align-items: center; gap: 9px; margin: 7px 0 5px; }
.track__barrow .bar--mini { width: 130px; }
.track__pct { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.track__meta { font-size: 12.5px; color: var(--muted); }
.track__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* atalhos */
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shortcut { display: flex; flex-direction: column; gap: 9px; padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--brand-ink); font-weight: 600; font-size: 13px; transition: border-color .12s, background .12s, transform .12s; }
.shortcut:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.shortcut__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 19px; }

/* novidades */
.nv-item { padding: 14px 20px; border-top: 1px solid var(--border); }
.nv-item:first-child { border-top: none; }
.nv-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.nv-item__proj { font-weight: 600; font-size: 13.5px; color: var(--brand-ink); }
.nv-item__date { font-size: 12px; color: var(--faint); white-space: nowrap; }
.nv-item__txt { font-size: 13px; color: var(--muted); line-height: 1.5; }
.nv-item__tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.declare { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); margin: 2px 0 16px; cursor: pointer; }
.declare input { margin-top: 2px; flex: none; }
.declare span { display: flex; flex-direction: column; }
.declare b { font-size: 13.5px; color: var(--text); }
.declare small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.dropzone--sm { padding: 16px; }
.contact__row > div { flex: 1; min-width: 0; }

@media (max-width: 1000px) {
  .fin-split, .visao-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .adminshell { flex-direction: column; }
  .rail { width: auto; height: auto; position: static; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 12px; }
  .rail__brand { border: none; margin: 0; padding: 0 6px 0 2px; flex: none; }
  .rail__brandtxt, .rail__cta, .rail__foot { display: none; }
  .rail__nav { flex-direction: row; gap: 4px; margin: 0; }
  .rail__item { white-space: nowrap; padding: 8px 11px; }
  .rail__item.is-active { box-shadow: none; }
  .adtop { padding: 0 16px; height: 58px; }
  .adtop__title { display: none; }
  .adbody { padding: 18px 16px 40px; }
  .shortcuts { grid-template-columns: 1fr; }
}

/* ====== Visão geral (dashboard BI) ====== */
.dashrow { display: grid; gap: 24px; margin-bottom: 24px; align-items: start; }
.dashrow--2-1 { grid-template-columns: 1.5fr 1fr; }
.dashrow--1-1 { grid-template-columns: 1fr 1fr; }

/* barras empilhadas */
.bars { display: flex; align-items: stretch; gap: 10px; height: 204px; margin-top: 8px; }
.bars__col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bars__stack { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.bars__seg { width: 60%; max-width: 30px; margin: 0 auto; min-height: 2px; transition: filter .12s; }
.bars__seg--proj { background: linear-gradient(180deg, var(--accent-lite), var(--accent-deep)); border-radius: 5px 5px 0 0; }
.bars__seg--diz { background: var(--brand); }
.bars__col:hover .bars__seg { filter: brightness(1.07); }
.bars__x { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 8px; }

/* rosca */
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 8px 0 4px; }
.donut { width: 200px; height: 200px; flex: none; }
.donut__v { text-anchor: middle; font-family: var(--font-head); font-weight: 700; font-size: 22px; fill: var(--brand-ink); }
.donut__l { text-anchor: middle; font-size: 9.5px; fill: var(--muted); letter-spacing: .1em; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend--col { flex-direction: column; gap: 11px; flex: 1; min-width: 0; }
.legend__i { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.legend--col .legend__i b { margin-left: auto; color: var(--brand-ink); font-weight: 700; }
.legend__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend__dot--diz { background: var(--brand); }
.legend__dot--proj { background: var(--accent-deep); }

/* progresso das campanhas */
.hbar { display: block; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none; }
.hbar:first-child { border-top: none; padding-top: 2px; }
.hbar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.hbar__name { font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }
.hbar__pct { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.hbar__meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* tarefas compactas */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); text-decoration: none; }
.task:first-child { border-top: none; padding-top: 2px; }
.task__ico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; }
.task__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task__title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.task__act { font-size: 12px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.task:hover .task__title { color: var(--brand); }

@media (max-width: 1000px) {
  .dashrow--2-1, .dashrow--1-1 { grid-template-columns: 1fr; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .donut { align-self: center; }
}

/* ===== card de ativo (disposição estilo lâmina) ===== */
.fundgrid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.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: 20px 20px 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-ink); 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 var(--accent-line); border-bottom: 1px solid var(--accent-line); }
.acard__hero-row { display: flex; align-items: baseline; justify-content: space-between; }
.acard__hero-row .lbl { font-size: 13px; color: var(--muted); }
.acard__hero-row .val { font-size: 23px; font-weight: 800; color: var(--accent-ink); letter-spacing: -.3px; }
.acard__hero-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); 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: 14px; }
.donate__head-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; }
.donate__title { font-size: 18px; margin-bottom: 0; }
.donate__goal { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 11px 14px 12px; margin: 0 0 18px; }
.goal__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.goal__pct { font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.goal__rest { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); opacity: .82; }
.goal__bar { height: 6px; border-radius: 999px; background: rgba(138,106,5,.16); margin-top: 9px; overflow: hidden; }
.goal__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.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(220,170,2,.28); }
.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: 0; }
.acard__title, .fund__title, .donate__title, .statcard__num, .progress__pct { letter-spacing: .005em; }

/* ===== 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; align-items: center; gap: 7px; }
.cover-tag { display: inline-flex; align-items: center; gap: 7px; height: 29px; padding: 0 14px; font-size: 13px; font-weight: 600; line-height: 1; color: #fff; background: rgba(12,20,34,.48); border-radius: 999px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cover-tag--status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.acard__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.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-ink); }
.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-ink); 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; }
  .dados-grid { 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; }
}

/* O respiro do desktop sufoca a tela pequena: 32px de container mais 44px do
   bloco comeriam metade de um aparelho de 375px. A folga encolhe por faixa. */
@media (max-width: 900px) {
  .container { padding-inline: 24px; }
  .welcome { padding: 34px 28px; }
  .page, .portal { padding-block: 26px 64px; }
  .adbody { padding: 26px 24px 60px; }
  .adtop { padding: 0 24px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .welcome { padding: 28px 22px; }
  .block { padding: 20px 18px; }
  .card.pad, .panel--pad { padding: 20px 18px; }
  .adbody { padding: 22px 18px 56px; }
  .adtop { padding: 0 18px; }
}

/* =========================================================
   Painel da igreja (admin): pendências, cards de gestão,
   formulário de novo projeto e prévia ao vivo
   ========================================================= */
/* ações pendentes */
.pend-list { display: flex; flex-direction: column; gap: 12px; }
.pend { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.pend__ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--warn-soft-2); color: var(--gold); display: grid; place-items: center; font-size: 20px; }
.pend__body { flex: 1; min-width: 0; }
.pend__title { font-weight: 600; font-size: 14.5px; color: var(--brand-ink); }
.pend__desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* cards de gestão de projeto */
.pcard-list { display: flex; flex-direction: column; gap: 16px; }
.pcard { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pcard__cover { width: 168px; flex: none; display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 34px; }
.pcard__body { flex: 1; min-width: 0; padding: 16px 18px; }
.pcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pcard__title { font-size: 16px; font-weight: 700; color: var(--brand-ink); }
.pcard__cat { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pcard__barrow { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.pcard__barrow b { color: var(--text); }
.pcard__metrics { display: flex; gap: 26px; margin-top: 14px; }
.pcard__metrics span { display: flex; flex-direction: column; }
.pcard__metrics b { font-size: 15px; font-weight: 700; color: var(--text); }
.pcard__metrics small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.pcard__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* formulário de novo projeto */
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.form-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-main .input { margin-bottom: 0; }
.form-section { padding: 20px 22px; }
.form-section__title { font-size: 16px; font-weight: 700; color: var(--brand-ink); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-step { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
.form-help { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.money-field { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 14px; }
.money-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }

/* regra de meta (radio cards) */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; display: block; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.radio-card:hover { border-color: var(--brand); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card__body b { display: block; font-size: 14px; color: var(--brand-ink); margin-bottom: 3px; }
.radio-card__body span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.reco { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

/* dropzone (capa) */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; cursor: pointer; transition: .12s; }
.dropzone:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.dropzone i { font-size: 26px; }
.dropzone span { font-size: 13.5px; }
.dropzone b { color: var(--brand); font-weight: 600; }
.dropzone small { font-size: 11.5px; color: var(--faint); }

/* fases dinâmicas */
.fase-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fase-row__num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fase-row__titulo { flex: 1; }
.money-sm { display: flex; align-items: center; gap: 5px; width: 132px; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 11px; }
.money-sm:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,58,99,.12); }
.money-sm__cur { color: var(--faint); font-weight: 600; font-size: 13px; }
.money-sm input { width: 100%; border: none; outline: none; font: inherit; padding: 10px 0; background: transparent; }
.fase-row__del { width: 36px; height: 36px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--faint); display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.fase-row__del:hover { color: var(--danger); border-color: var(--danger); }
.fases-sum { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.fases-sum b { color: var(--text); font-weight: 600; }
.fases-sum.is-ok, .fases-sum.is-ok b { color: var(--accent-ink); }
.fases-sum.is-warn, .fases-sum.is-warn b { color: var(--warn-ink); }

/* prévia ao vivo */
.form-preview { position: sticky; top: calc(var(--topbar-h) + 18px); }
.preview-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.preview-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-preview { position: static; max-width: 380px; }
}
@media (max-width: 680px) {
  .pcard { flex-direction: column; }
  .pcard__cover { width: 100%; aspect-ratio: 16/7; }
  .form-2col, .radio-cards { grid-template-columns: 1fr; }
  .pcard__metrics { gap: 18px; }
}

/* ===== doadores (admin) ===== */
.toplist { display: flex; flex-direction: column; }
.topdoador { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.topdoador + .topdoador { border-top: 1px solid var(--border); }
.topdoador__rank { width: 22px; flex: none; text-align: center; font-weight: 700; color: var(--faint); font-size: 13px; }
.topdoador__body { flex: 1; min-width: 0; }
.topdoador__name { font-weight: 600; font-size: 14px; color: var(--text); }
.topdoador__meta { font-size: 12.5px; color: var(--muted); }
.topdoador__val { font-weight: 700; color: var(--text); }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; border-radius: 50%; }
.donor { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.anon-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-pill); padding: 3px 10px; }
.anon-badge .ti { font-size: 14px; }

/* =========================================================
   Resumo do portal: dízimo, impacto e painel de recorrência.
   Diretriz: densidade e sobriedade. Sem gradiente decorativo,
   sem quadrado colorido de ícone, sem cartão sólido de cor.
   A cor entra em um lugar por bloco, não em três.
   ========================================================= */

/* ---------- dízimo: três colunas com régua, fundo branco ---------- */
.tithe { display: grid; grid-template-columns: 1fr 1.15fr 264px; padding: 0; overflow: hidden; }
.tithe__col { display: flex; flex-direction: column; padding: 24px 26px; border-right: 1px solid var(--border); }
.tithe__col:last-child { border-right: 0; }
.tithe__col--acao { justify-content: center; gap: 9px; }
.tithe__label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tithe__val { font-family: var(--font-head); font-size: 33px; font-weight: 700; color: var(--text); line-height: 1.1; margin-top: 10px; }
.tithe__val small { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.tithe__state { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.tithe__state .ti { font-size: 15px; color: var(--ok); }
.tithe__state--off .ti { color: var(--warn-ink); }
.tithe__meta { margin-top: auto; padding-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) {
  .tithe { grid-template-columns: 1fr; }
  .tithe__col { border-right: 0; border-bottom: 1px solid var(--border); }
  .tithe__meta { margin-top: 12px; padding-top: 0; }
}

/* ---------- impacto: faixa única dividida, não grade de cartões ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
/* divisória por sombra em vez de borda: funciona em qualquer quebra de linha,
   sem borda dobrada na última coluna nem regra de :nth-child. */
.impact { display: flex; flex-direction: column; padding: 20px 22px;
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }

.impact__num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
/* substantivo em negrito, destinatário em peso leve logo em seguida: uma frase
   só, sem virar mais uma linha na célula. */
.impact__unit { margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.impact__unit b { font-weight: 700; }
.impact__unit span { color: var(--muted); }
.impact__src { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--text); }
.impact__val { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.impact-note { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--faint); max-width: 96ch; }

/* ---------- marco concluído: fato verificável, sem caixa verde ---------- */
.milestones { margin-top: 14px; display: grid; gap: 8px; }
.milestone { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.milestone__ico { flex: none; color: var(--ok); font-size: 19px; display: grid; place-items: center; }
.milestone__t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.milestone__s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- painel de recorrência ---------- */
.modal--panel { max-width: 540px; text-align: left; padding: 28px 28px 22px; }
.modal--panel .modal__title, .modal--panel .modal__text { text-align: left; }
.modal--panel .modal__hint { text-align: center; }
.method { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 15px 16px; margin-bottom: 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s; }
.method:hover { border-color: var(--brand); }
.method.is-on { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.method__ico { flex: none; color: var(--muted); font-size: 20px; padding-top: 2px; }
.method.is-on .method__ico { color: var(--brand); }
.method__t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.method__s { display: block; font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.method__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--muted); }

/* ---------- números do portal na mesma língua das outras faixas ---------- */
.statgrid--strip { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.statgrid--strip .statcard { border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 20px 22px; }
.statgrid--strip .statcard:last-child { border-right: 0; }
.statcard__cap { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.statcard__cap .ti { font-size: 14px; }
.statgrid--strip .statcard__num { margin-top: 12px; font-family: var(--font-head); color: var(--text); }
.statgrid--strip .statcard__hint { margin-top: 6px; }
@media (max-width: 820px) {
  .statgrid--strip { grid-template-columns: 1fr; }
  .statgrid--strip .statcard { border-right: 0; border-bottom: 1px solid var(--border); }
  .statgrid--strip .statcard:last-child { border-bottom: 0; }
}

/* ---------- menu lateral: uma campanha por vez, trocando sozinha ---------- */
.sidenav__campanhas { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.promo__stage { position: relative; height: 372px; }
.promo__slide { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: opacity .55s ease, visibility .55s, border-color .15s; }
.promo__slide.is-on { opacity: 1; visibility: visible; }
.promo__slide:hover { border-color: var(--brand); }
.promo__img { position: relative; display: block; height: 214px; flex: none; background-size: cover; background-position: center; }
.promo__img .cover-tag { position: absolute; top: 12px; left: 12px; height: 26px; padding: 0 11px; font-size: 12px; }
.promo__body { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 17px; }
.promo__t { font-size: 15.5px; font-weight: 700; line-height: 1.28; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo__row { display: flex; align-items: baseline; gap: 7px; }
.promo__pct { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1; }
.promo__of { font-size: 12.5px; color: var(--muted); }
.promo__meta { font-size: 12.5px; color: var(--muted); }
.promo__dots { display: flex; justify-content: center; gap: 6px; margin-top: 13px; }
.promo__dot { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: var(--border-strong); cursor: pointer; transition: background .2s; }
.promo__dot.is-on { background: var(--brand); }
.promo__dot:hover { background: var(--muted); }

/* ---------- filtros: situação e categoria em eixos separados ---------- */
.filterbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.segmented--sit { display: inline-grid; grid-auto-flow: column; width: auto; flex: none; }
.segmented--sit .seg { padding: 0 15px; white-space: nowrap; }
.empty { padding: 30px 4px; color: var(--muted); font-size: 14px; }
.acard__solo { grid-column: 1 / -1; }
@media (max-width: 920px) { .sidenav__campanhas { display: none; } }

/* ---------- salmo do dia na topbar ---------- */
.verse { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 24px; font-size: 13px; color: var(--muted); }
.verse__txt { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verse__ref { flex: none; font-size: 11.5px; font-weight: 700; color: var(--faint); white-space: nowrap; }
@media (max-width: 1200px) { .verse { display: none; } }

/* frase de impacto que troca sozinha dentro do cartão */
.statcard__hint--fade { transition: opacity .25s ease; min-height: 2.6em; }

/* ---------- as duas formas de contribuição, lado a lado ---------- */
.metodos { display: grid; gap: 8px; margin-top: 10px; }
.metodo { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 11px;
  width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, background .15s; }
.metodo:hover { border-color: var(--brand); }
.metodo.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.metodo__ico { font-size: 19px; color: var(--muted); }
.metodo.is-on .metodo__ico { color: var(--brand); }
.metodo__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.metodo__txt b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.metodo__txt small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.metodo__on { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 700;
  color: var(--ok); }
.metodo__off { flex: none; font-size: 11.5px; font-weight: 700; color: var(--brand); opacity: 0; transition: opacity .15s; }
.metodo:hover .metodo__off { opacity: 1; }

/* rótulo do versículo do dia */
.verse__cap { flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.verse__cap .ti { font-size: 14px; }

/* ---------- paginação da tabela de contribuições ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px 16px; border-top: 1px solid var(--border); }
.pager__info { font-size: 12.5px; color: var(--muted); }
.pager__nav { display: flex; align-items: center; gap: 8px; }
.pager__num { font-size: 12.5px; font-weight: 700; color: var(--text); min-width: 62px; text-align: center; }
.pager__btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; font-size: 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color .15s, color .15s; }
.pager__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager__btn:disabled { opacity: .38; cursor: default; }
@media (max-width: 620px) { .pager { flex-direction: column; align-items: stretch; } .pager__nav { justify-content: space-between; } }

/* ---------- projeto técnico da obra ---------- */
.rt { display: flex; align-items: center; gap: 13px; padding: 13px 15px; margin-bottom: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); }
.rt__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); color: var(--brand); font-size: 20px; }
.rt__nome { font-size: 14px; font-weight: 700; color: var(--text); }
.rt__reg { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rt__art { margin-left: auto; flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.doc__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface-2); color: var(--muted); font-size: 19px; }
.doc__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc__nome { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__meta { font-size: 12px; color: var(--faint); }
.doc__acao { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 18px; text-decoration: none; transition: background .15s, color .15s; }
.doc__acao:hover { background: var(--brand-soft); color: var(--brand); }

.vazio { text-align: center; padding: 26px 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.vazio__ico { font-size: 26px; color: var(--faint); }
.vazio__t { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.vazio__s { margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 56ch; margin-inline: auto; }
