/* Agenda das Igrejas — estilos base (Fase 0)
   Regras da identidade: Urbanist de 300 a 800, nunca itálico, nenhum texto acima de 14px no site,
   hierarquia por peso e cor, barras de rolagem ocultas. */

@font-face {
  font-family: "Urbanist";
  src: url("/assets/fonts/Urbanist.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #3A3FB0;
  --brand-deep: #2F3392;
  --brand-tint: #ECEDFB;
  --brand-tint-strong: #DCDDF6;
  --highlight: #F4B740;
  --highlight-tint: #FDF0D5;
  --highlight-ink: #6B4A0C;
  --ink: #161A2E;
  --ink-soft: #3A3F52;
  --muted: #5A6072;
  --line: #E3E5EC;
  --surface: #FFFFFF;
  --ground: #F3F4F8;
  --success: #1E7A4C;
  --alert: #D9480F;
  --alert-tint: #FCE9E1;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-float: 0 6px 18px rgba(22, 26, 46, 0.08);
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --brand: #5B60D6;
    --brand-deep: #3A3FB0;
    --brand-tint: #23275A;
    --brand-tint-strong: #2E3370;
    --highlight-tint: #3A2E12;
    --highlight-ink: #F4D08A;
    --ink: #EEF0F7;
    --ink-soft: #C7CAD8;
    --muted: #9EA3B5;
    --line: #2C3147;
    --surface: #191D30;
    --ground: #0F1220;
    --alert: #FF7A4D;
    --alert-tint: #3A1C12;
    --shadow-float: 0 6px 18px rgba(0, 0, 0, 0.40);
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --brand: #5B60D6; --brand-deep: #3A3FB0; --brand-tint: #23275A; --brand-tint-strong: #2E3370;
  --highlight-tint: #3A2E12; --highlight-ink: #F4D08A; --ink: #EEF0F7; --ink-soft: #C7CAD8;
  --muted: #9EA3B5; --line: #2C3147; --surface: #191D30; --ground: #0F1220;
  --alert: #FF7A4D; --alert-tint: #3A1C12; --shadow-float: 0 6px 18px rgba(0, 0, 0, 0.40);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { font-style: normal !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; -ms-overflow-style: none; overflow-x: hidden; }
html::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { scrollbar-width: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 14px; font-weight: 800; line-height: 1.3; }
a { color: var(--brand); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* Texto */
.titulo { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.subtitulo { font-size: 13px; font-weight: 700; line-height: 1.3; }
.corpo { font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--ink-soft); }
.rotulo { font-size: 12px; font-weight: 700; }
.legenda { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.detalhe { font-size: 11px; font-weight: 300; color: var(--muted); }
.slogan { font-size: 12px; font-weight: 700; color: var(--muted); }

/* Símbolo da marca (SVG em linha) */
.simbolo { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.simbolo-grande { width: 56px; height: 56px; color: var(--brand); }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.marca:hover { text-decoration: none; }
.marca-icone { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.marca-icone .simbolo { width: 20px; height: 20px; }
.marca-nome { font-size: 14px; font-weight: 800; white-space: nowrap; }
.icone { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 46px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primario { background: var(--brand); color: #FFFFFF; }
.btn-primario:hover { background: var(--brand-deep); }
.btn-secundario { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 700; }
.btn-secundario:hover { border-color: var(--muted); }
.btn-bloco { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-icone { width: 44px; min-height: 44px; padding: 0; border-radius: var(--radius-md); background: var(--ground); border: 0; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Campos de formulário (100% estilizados) */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 12px; font-weight: 700; color: var(--ink); }
.campo .ajuda { font-size: 11px; font-weight: 500; color: var(--muted); }
.entrada {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entrada::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
.entrada:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.campo.com-erro .entrada { border-color: var(--alert); }
.campo .erro { font-size: 11px; font-weight: 700; color: var(--alert); }
.campo-senha { position: relative; }
.campo-senha .entrada { padding-right: 52px; }
.campo-senha .ver-senha { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 360px) { .grade-2 { grid-template-columns: 1fr; } }

/* Avisos */
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; line-height: 1.45; }
.aviso .icone { width: 16px; height: 16px; margin-top: 1px; }
.aviso-erro { background: var(--alert-tint); color: var(--ink); }
.aviso-erro .icone { color: var(--alert); }
.aviso-info { background: var(--brand-tint); color: var(--ink); }
.aviso-info .icone { color: var(--brand); }
.aviso-ok { background: #E3F2EA; color: #14402A; }
:root[data-tema="escuro"] .aviso-ok { background: #13301F; color: #CDEBD9; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .aviso-ok { background: #13301F; color: #CDEBD9; } }

/* Cartão */
.cartao { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-4); }

/* Telas centralizadas (instalador, login, sem conexão) */
.tela-centro { display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 48px; }
.caixa-centro { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; margin-top: 12vh; }
.caixa { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: var(--space-4); }
.caixa-topo { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 2px; }
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.acoes { display: flex; gap: var(--space-2); }
.acoes .btn { flex: 1; }

/* Passos do instalador */
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.passo { display: flex; flex-direction: column; gap: 6px; }
.passo-barra { height: 4px; border-radius: 2px; background: var(--line); }
.passo.feito .passo-barra, .passo.atual .passo-barra { background: var(--brand); }
.passo-nome { font-size: 11px; font-weight: 600; color: var(--muted); }
.passo.atual .passo-nome { color: var(--ink); font-weight: 800; }

/* Lista de requisitos */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist .marcador { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checklist .ok .marcador { background: #E3F2EA; color: var(--success); }
.checklist .falha .marcador { background: var(--alert-tint); color: var(--alert); }
.checklist .alerta .marcador { background: var(--highlight-tint); color: var(--highlight-ink); }
.checklist .marcador .icone { width: 13px; height: 13px; stroke-width: 3; }
.checklist .item-texto { display: flex; flex-direction: column; gap: 2px; }
.checklist .item-nome { font-size: 13px; font-weight: 700; }

/* Página inicial (provisória) */
.topo { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.topo-dentro { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
body:not(.tela-centro) { display: flex; flex-direction: column; }
.conteudo { flex: 1 0 auto; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: var(--space-4); }
.destaque-inicio { background: var(--brand-deep); color: #FFFFFF; border-radius: var(--radius-lg); padding: 24px 20px; display: flex; flex-direction: column; gap: var(--space-3); }
.destaque-inicio .titulo { color: #FFFFFF; }
.destaque-inicio .corpo { color: #D8DAF7; }
.destaque-inicio .slogan { color: var(--highlight); }
.grade-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 280px; }
.grade-dias span { aspect-ratio: 1; border-radius: 7px; background: var(--brand); }
.grade-dias .m { background: #5B60D6; }
.grade-dias .h { background: var(--highlight); }
.rodape { border-top: 1px solid var(--line); background: var(--surface); }
.rodape-dentro { max-width: 1200px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: var(--space-2); }
.rodape-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rodape-links a { font-size: 12px; font-weight: 600; color: var(--ink-soft); }

/* Botão de voltar ao topo */
.voltar-topo {
  position: fixed; right: 16px; bottom: 20px; z-index: 20; width: 44px; height: 44px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.voltar-topo.visivel { opacity: 1; transform: none; pointer-events: auto; }

/* Convite de instalação do app */
.convite-app { display: none; align-items: center; justify-content: space-between; gap: var(--space-3); }
.convite-app.visivel { display: flex; }

/* Painel administrativo (Fase 0) */
.painel-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.numero { display: flex; flex-direction: column; gap: 2px; }
.numero strong { font-size: 14px; font-weight: 800; }

.oculto, [hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ================================================================
   Fase 1 — componentes do painel, formulários e perfil público
   ================================================================ */

.centro { text-align: center; align-self: center; }
.forte { font-weight: 800; letter-spacing: .3px; }
.btn-pequeno { min-height: 38px; padding: 0 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-pequeno .icone { width: 16px; height: 16px; }
.btn-suave { background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; min-height: 40px; }
:root[data-tema="escuro"] .btn-suave { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .btn-suave { color: var(--ink); } }
.btn-suave:hover { background: var(--brand-tint-strong); }
.link-botao { border: 0; background: none; padding: 0; color: var(--brand); font-size: 12px; font-weight: 700; cursor: pointer; }
.link-botao:hover { text-decoration: underline; }
.link-botao.perigo, .texto-perigo { color: var(--alert) !important; }
.link-seta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 8px; }
.link-seta .icone { width: 14px; height: 14px; }
.so-desktop { display: none; }
@media (min-width: 640px) { .so-desktop { display: inline-flex; } }

.topo-acoes { display: flex; align-items: center; gap: 6px; }
.topo-acoes form { display: flex; }
.faixa-admin { background: var(--highlight-tint); color: var(--highlight-ink); font-size: 12px; font-weight: 700; padding: 8px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.faixa-admin .link-botao { color: var(--highlight-ink); text-decoration: underline; }

.conteudo-largo { max-width: 880px; }
.texto-longo { display: flex; flex-direction: column; gap: 12px; }

/* Cabeçalho e abas dos painéis */
.painel-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.painel-titulo { display: flex; flex-direction: column; min-width: 0; }
.painel-titulo .titulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abas-rolagem { position: relative; display: flex; align-items: center; }
.abas, .chips { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 2px; flex: 1; -webkit-overflow-scrolling: touch; }
.aba, .chip-link { flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.aba:hover, .chip-link:hover { text-decoration: none; border-color: var(--muted); }
.aba.ativa, .chip-link.ativo { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 800; }
.rolar { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); display: none; align-items: center; justify-content: center; cursor: pointer; }
.rolar .icone { width: 14px; height: 14px; stroke-width: 2.5; }
.rolar-esq { left: -4px; }
.rolar-dir { right: -4px; }
.abas-rolagem.pode-esq .rolar-esq, .abas-rolagem.pode-dir .rolar-dir { display: flex; }

/* Agrupamentos de formulário */
.grupo { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grupo legend { font-size: 12px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.campo-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.campo-com-botao { display: flex; align-items: flex-end; gap: 8px; }
.campo-com-botao .campo { flex: 1; min-width: 0; }
.campo-com-botao .btn { flex-shrink: 0; }
.campo-com-botao .com-erro ~ .btn { margin-bottom: 22px; }
.grade-3 { display: grid; grid-template-columns: 0.6fr 1fr 1fr; gap: var(--space-3); }
@media (max-width: 380px) { .grade-3 { grid-template-columns: 1fr 1fr; } .grade-3 > :first-child { grid-column: 1 / -1; } }
.area { min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; font-weight: 500; }
.barra-salvar { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--line); }
.barra-salvar.acoes { display: flex; gap: 8px; }

/* Caixa de marcar */
.marcar { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.marcar-caixa { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--muted); background: var(--surface); cursor: pointer; display: grid; place-content: center; transition: background-color .15s ease, border-color .15s ease; }
.marcar-caixa::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #FFFFFF; border-bottom: 2.5px solid #FFFFFF; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.marcar-caixa:checked { background: var(--brand); border-color: var(--brand); }
.marcar-caixa:checked::after { opacity: 1; }
.marcar-caixa:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.com-erro .marcar-caixa { border-color: var(--alert); }
.marcar-texto a { font-weight: 700; }

/* Chips de escolha (rádio e caixa) */
.chips-quebra, .dias-semana { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .segmento, .opcao { position: relative; cursor: pointer; }
.chip input, .segmento input, .opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink); transition: all .15s ease; }
.chip input:checked + span { border: 1.5px solid var(--brand); background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; }
:root[data-tema="escuro"] .chip input:checked + span { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .chip input:checked + span { color: var(--ink); } }
.chip input:focus-visible + span, .segmento input:focus-visible + span, .opcao input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.chip-dia span { min-width: 44px; justify-content: center; padding: 0 6px; }
.dias-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dias-semana .chip span { width: 100%; min-width: 0; }
.segmentos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--line); }
.segmento span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 36px; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.segmento input:checked + span { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: 0 1px 3px rgba(22, 26, 46, .12); }
.opcoes-coluna { display: flex; flex-direction: column; gap: 6px; }
.opcao span { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; }
.opcao span::before { content: ""; width: 16px; height: 16px; border-radius: 8px; border: 1.5px solid var(--muted); flex-shrink: 0; box-sizing: border-box; }
.opcao input:checked + span { border-color: var(--brand); font-weight: 800; }
.opcao input:checked + span::before { border: 5px solid var(--brand); }

/* Seletor próprio */
.seletor { position: relative; }
.seletor-botao { display: flex; align-items: center; text-align: left; cursor: pointer; }
.seletor-valor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seletor-valor.vazio { color: var(--muted); font-weight: 500; }
.seletor-painel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.seletor-painel[hidden] { display: none; }
.seletor-busca { min-height: 40px; }
.seletor-lista { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.seletor-lista li { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; outline: none; }
.seletor-lista li:hover, .seletor-lista li.foco { background: var(--brand-tint); }
.seletor-lista li[aria-selected="true"] { color: var(--brand); font-weight: 800; }
.seletor-nada { padding: 8px 12px; }

/* Calendário próprio */
.calendario { position: absolute; z-index: 40; width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 12px; }
.calendario-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendario-topo strong { font-size: 13px; font-weight: 800; text-transform: capitalize; }
.calendario-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.calendario-grade .dia-nome { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.calendario-grade button { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.calendario-grade button:hover { background: var(--brand-tint); }
.calendario-grade button.hoje { box-shadow: inset 0 0 0 1.5px var(--brand); }
.calendario-grade button.escolhido { background: var(--brand); color: #FFFFFF; font-weight: 800; }
.calendario-grade button:disabled { opacity: .3; cursor: default; }

/* Listas */
.lista-secao { display: flex; flex-direction: column; gap: 8px; }
.secao-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mes-rotulo { margin-top: 8px; padding: 0 2px; }
.vazio { text-align: center; padding: 24px 16px; }
.evento-linha { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 12px; }
a.evento-linha:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.evento-linha.cancelado .rotulo { text-decoration: line-through; color: var(--muted); }
.data-bloco { width: 48px; flex-shrink: 0; align-self: stretch; min-height: 52px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.data-bloco strong { font-size: 14px; font-weight: 800; }
.data-bloco span { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.evento-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.icone-fim { width: 16px; height: 16px; color: var(--muted); }
.selo-status { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--line); color: var(--ink-soft); }
.status-rascunho { background: var(--line); color: var(--ink-soft); }
.status-agendado { background: var(--brand-tint); color: var(--brand-deep); }
.status-cancelado, .status-oculto { background: var(--alert-tint); color: var(--alert); }
.lista-simples { display: flex; flex-direction: column; }
.lista-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lista-item:first-of-type { border-top: 0; padding-top: 0; }
.lista-simples > .subtitulo + .lista-item { border-top: 0; }
.lista-item.inativo .rotulo { color: var(--muted); }
.lista-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lista-texto .rotulo { overflow-wrap: anywhere; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 20px; background: var(--brand-tint-strong); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; overflow: hidden; }
:root[data-tema="escuro"] .avatar { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .avatar { color: var(--ink); } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-grande { width: 84px; height: 84px; border-radius: 22px; font-size: 14px; border: 4px solid var(--surface); }
.painel-grade .numero { padding: 14px; }
.aviso-bloco { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--highlight); }
.zona-perigo { margin-top: 8px; }

/* Fotos do perfil no painel */
.fotos-bloco { display: flex; flex-direction: column; gap: 12px; }
.capa-previa { position: relative; height: 120px; border-radius: var(--radius-md); background: var(--brand-deep); margin-bottom: 30px; }
.capa-previa img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.capa-previa.sem-foto { display: flex; align-items: center; justify-content: center; }
.capa-previa.sem-foto .legenda { color: #C9CBF2; }
.perfil-sobre-capa { position: absolute; left: 12px; bottom: -30px; }
.fotos-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foto-form { display: flex; }
.foto-form label { cursor: pointer; }

/* Horários fixos */
.horario-linha { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.horario-linha:last-child { border-bottom: 0; padding-bottom: 0; }
.horario-campos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.horario-linha .link-botao { align-self: flex-start; }

/* Perfil público da igreja */
.conteudo-perfil { padding-top: 0; }
.perfil { background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); margin: 0 -16px; overflow: hidden; }
@media (min-width: 672px) { .perfil { margin: 16px 0 0; border-radius: var(--radius-lg); } }
.perfil-capa { height: 140px; background: var(--brand-deep); }
@media (min-width: 672px) { .perfil-capa { height: 200px; } }
.perfil-capa img { width: 100%; height: 100%; object-fit: cover; }
.perfil-corpo { padding: 0 16px 16px; }
.perfil-linha { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -42px; }
.perfil-info { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.perfil-nome { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.selo { width: 16px; height: 16px; flex-shrink: 0; }
.selo circle { fill: var(--brand); }
.selo path { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rotulo .selo { width: 14px; height: 14px; vertical-align: -2px; }
.icone-linha { display: flex; align-items: flex-start; gap: 8px; }
.icone-linha .icone { width: 17px; height: 17px; color: var(--brand); margin-top: 1px; }
.botoes-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.horarios-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.horario-dia { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; }
.etiqueta { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--ground); font-size: 11px; font-weight: 600; color: var(--ink); }
.etiqueta-link { color: var(--brand); font-weight: 700; }

/* Administração */
.igreja-admin { display: flex; flex-direction: column; gap: 12px; }
.igreja-admin-topo { display: flex; gap: 12px; align-items: flex-start; }
.igreja-admin-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.igreja-admin-acoes form { display: flex; }
.convite-linha { display: flex; gap: 6px; }
.convite-linha .entrada { min-height: 40px; }
.convite-linha .btn { min-height: 40px; flex-shrink: 0; }
.paginacao { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* Modal de confirmação */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 32, .55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-caixa { width: 100%; max-width: 400px; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-float); }
@media (min-width: 640px) { .modal { align-items: center; } }

/* Computador: mesmo visual, mais espaço */
@media (min-width: 900px) {
  .conteudo { padding-top: 32px; }
  .painel-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .barra-salvar { margin: 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
}
.ajuda { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.4; }
body:has(.barra-salvar) .voltar-topo { bottom: 92px; }

/* ============================================================
   Fase 2 — agenda pública, destaques, mapa, busca e cookies
   ============================================================ */

/* Layout do feed: uma coluna no celular, três no computador (mesmo visual do celular ao centro) */
.feed-layout { flex: 1 0 auto; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.feed-centro { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 640px; width: 100%; margin: 0 auto; }
.feed-lateral { display: none; }
@media (min-width: 1100px) {
  .feed-layout { grid-template-columns: 220px minmax(0, 600px) 300px; justify-content: center; align-items: start; }
  .feed-lateral { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
  .feed-centro { max-width: none; }
}
.menu-lateral { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.menu-lateral a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu-lateral a:hover { background: var(--ground); text-decoration: none; }
.menu-lateral a.ativo { background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; }
.menu-lateral .icone { width: 18px; height: 18px; }

.local-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.local-barra .icone { color: var(--brand); }
.local-barra strong { font-weight: 800; }
.chip-filtros { gap: 6px; cursor: pointer; font-family: inherit; }
.chip-filtros .icone { width: 14px; height: 14px; }
.painel-filtros { box-shadow: var(--shadow-float); }

.dia-rotulo { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 2px 0; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.destaques-topo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .destaques-topo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .destaques-topo > :only-child { grid-column: 1 / -1; } }

.card-evento { padding: 0; overflow: hidden; }
.card-evento a { color: inherit; text-decoration: none; }
.card-evento a:hover { text-decoration: none; }
.card-linha { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.card-linha:hover { box-shadow: inset 0 0 0 1.5px var(--brand-tint-strong); border-radius: inherit; }
.hora-bloco { width: 56px; flex-shrink: 0; min-height: 56px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.hora-bloco strong { font-size: 14px; font-weight: 800; }
.hora-bloco span { font-size: 10px; font-weight: 700; text-transform: uppercase; }
:root[data-tema="escuro"] .hora-bloco { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .hora-bloco { color: var(--ink); } }
.evento-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.evento-texto .titulo { overflow-wrap: anywhere; }
.evento-texto .rotulo { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.card-evento.cancelado .titulo { text-decoration: line-through; color: var(--muted); }
.card-destaque { border: 1.5px solid var(--highlight); background: linear-gradient(180deg, var(--highlight-tint), var(--surface) 70%); display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.selo-destaque { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--highlight); color: #3B2905; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.selo-destaque svg { width: 12px; height: 12px; fill: currentColor; }
.card-igreja { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.card-igreja:hover { text-decoration: none; }
.card-igreja .rotulo { display: inline-flex; align-items: center; gap: 4px; }
.card-corpo { display: flex; flex-direction: column; gap: 4px; }
.texto-marca { color: var(--brand); }
.avatar-pequeno { width: 32px; height: 32px; border-radius: 16px; font-size: 11px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.carregando-mais { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; }
.carregando-mais.ocupado .legenda::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: girar .8s linear infinite; }
.js .carregando-mais [data-mais-manual] { display: none; }
.js .carregando-mais.falhou [data-mais-manual] { display: inline-flex; }
@keyframes girar { to { transform: rotate(360deg); } }
.fim-feed { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 16px; }
.acoes-quebra { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.mini-evento { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mini-evento:first-of-type { border-top: 0; }
.mini-evento:hover { text-decoration: none; }
.mini-evento strong { width: 44px; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--brand); }
.mini-evento > span { display: flex; flex-direction: column; min-width: 0; }

.convite-flutuante { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 30; box-shadow: var(--shadow-float); max-width: 480px; margin: 0 auto; }

/* Navegação inferior (só celular) */
.nav-inferior { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav-inferior a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 10px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-inferior a:hover { text-decoration: none; }
.nav-inferior .icone { width: 22px; height: 22px; }
.nav-inferior a.ativo { color: var(--brand); font-weight: 800; }
body.com-nav { padding-bottom: 68px; }
body.com-nav .voltar-topo { bottom: 84px; }
@media (min-width: 1100px) {
  .nav-inferior { display: none; }
  body.com-nav { padding-bottom: 0; }
  body.com-nav .voltar-topo { bottom: 24px; }
  .convite-flutuante { bottom: 24px; left: auto; right: 24px; width: 360px; }
}

/* Tela de localização */
.local-tela { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 32, .55); display: flex; align-items: flex-end; justify-content: center; }
.local-caixa { width: 100%; max-width: 440px; max-height: 100vh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.local-caixa .form { width: 100%; text-align: left; }
@media (min-width: 600px) { .local-tela { align-items: center; } .local-caixa { border-radius: 20px; } }
.local-ilustracao { width: 120px; height: 120px; }
.local-ilustracao .l1 { fill: var(--brand-tint); }
.local-ilustracao .l2 { fill: var(--brand-tint-strong); }
.local-ilustracao .l3 { fill: var(--surface); }
.local-ilustracao .l4 { fill: var(--brand); }
.local-ilustracao .l5 { fill: var(--surface); }
.local-ilustracao .l6 { fill: var(--highlight); }
.separador { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Página do evento */
.evento-pagina { gap: 14px; }
.form-apertado { gap: 4px; }
.info-bloco { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ground); min-width: 0; }
.info-bloco strong { font-size: 13px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.riscado { text-decoration: line-through; color: var(--muted); }
.cards-previa { display: flex; gap: 12px; align-items: flex-end; }
.card-previa { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.card-previa img { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ground); }
.card-previa.quadrado img { width: 120px; height: 120px; }
.card-previa.stories img { width: 72px; height: 128px; }

/* Busca */
.busca-topo { display: flex; gap: 8px; }
.busca-caixa { position: relative; flex: 1; display: flex; align-items: center; }
.busca-caixa .icone { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.busca-caixa .entrada { padding-left: 38px; }
.busca-caixa input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
a.lista-item { color: var(--ink); text-decoration: none; }
a.lista-item:hover { text-decoration: none; background: var(--ground); }

/* Mapa */
.conteudo-mapa { max-width: 1200px; padding-top: 12px; }
.mapa { position: relative; height: calc(100vh - 200px); min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: #E8E6E0; border: 1px solid var(--line); touch-action: none; user-select: none; cursor: grab; }
.mapa.arrastando { cursor: grabbing; }
.mapa-camada { position: absolute; inset: 0; }
.mapa-camada img { position: absolute; width: 256px; height: 256px; max-width: none; }
.mapa-pino { position: absolute; width: 28px; height: 34px; margin: -34px 0 0 -14px; border: 0; padding: 0; background: none; cursor: pointer; }
.mapa-pino svg { width: 28px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.mapa-pino path { fill: var(--brand); stroke: #FFFFFF; stroke-width: 2; }
.mapa-pino.ativo path { fill: var(--highlight); }
.mapa-voce { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1A73E8; border: 3px solid #FFFFFF; box-shadow: 0 0 0 6px rgba(26,115,232,.2); pointer-events: none; }
.mapa-controles { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.mapa-controles .btn-icone { background: var(--surface); box-shadow: var(--shadow-float); }
.mapa-creditos { position: absolute; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 2px 6px; font-size: 10px; background: rgba(255,255,255,.8); color: #333; }
.mapa-creditos a { color: #333; }
.mapa-ficha { position: absolute; left: 12px; right: 12px; bottom: 24px; z-index: 4; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-float); max-width: 420px; }
.mapa-ficha .fechar { position: absolute; top: 8px; right: 8px; }
.mapa-legenda { text-align: center; }

/* Agenda de vagas de destaque */
.semanas-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .semanas-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.semana { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.semana.atual { border: 1.5px solid var(--brand); }
.semana.lotada { background: var(--ground); }
.semana-topo { display: flex; flex-direction: column; gap: 2px; }
.vagas { display: flex; gap: 4px; }
.vaga { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.vaga.ocupada { background: var(--highlight); }
.reserva { display: flex; align-items: flex-start; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.reserva .rotulo { color: var(--ink); }
.semanas-grade + .legenda, .lista-secao > .semanas-grade { margin-top: 0; }
.destaque-numeros .grade-3 > :first-child { grid-column: auto; }
.status-no-ar { background: var(--highlight); color: #3B2905; }
.status-reservado { background: var(--brand-tint); color: var(--brand-deep); }

/* Banner de cookies */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; justify-content: center; }
.cookies-caixa { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cookies-opcoes { display: flex; flex-direction: column; gap: 8px; }
.cookies-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
body.com-nav .cookies { bottom: 80px; }
body:has(.local-tela:not([hidden])) .cookies { top: 12px; bottom: auto; }
@media (min-width: 1100px) { body.com-nav .cookies { bottom: 12px; } }
@media (max-width: 699px) { .semanas-admin { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Fase 3 — membros, interações, notificações e moderação
   ============================================================ */

.btn-perigo { background: var(--alert); color: #FFFFFF; border-color: var(--alert); }
.btn-perigo:hover { filter: brightness(.95); }
.btn.marcado .icone { stroke-width: 2.4; }

/* Vou / Tenho interesse / reações */
.interacoes { gap: 12px; }
.presenca-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presenca-botoes form { display: flex; }
.btn-presenca { flex: 1; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 700; }
.btn-presenca:hover { border-color: var(--brand); }
.btn-presenca.marcado { background: var(--brand); border-color: var(--brand); color: #FFFFFF; font-weight: 800; }
.contagens:empty { display: none; }
.reacoes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-reacao { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip-reacao .icone { width: 16px; height: 16px; }
.chip-reacao:hover { border-color: var(--muted); }
.chip-reacao.marcado { background: var(--highlight-tint); border-color: var(--highlight); color: var(--highlight-ink); font-weight: 800; }
.reacao-n { font-weight: 500; color: var(--muted); }
.reacao-n:empty { display: none; }
.reacao-n::before { content: "· "; }
.chip-reacao.marcado .reacao-n { color: var(--highlight-ink); }
.seguir-linha { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.btn-secundario.marcado { border-color: var(--brand); color: var(--brand-deep); }
.link-denunciar { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px; }
.link-denunciar .icone { width: 14px; height: 14px; }
.link-denunciar:hover { color: var(--alert); text-decoration: none; }
.texto-alerta { color: var(--alert); display: inline-flex; align-items: center; gap: 6px; }
.texto-alerta .icone { width: 14px; height: 14px; }

/* Navegação com 5 itens e ponto de notificação */
.nav-inferior { grid-template-columns: repeat(5, 1fr); }
.nav-icone { position: relative; display: inline-flex; }
.nav-icone .ponto { position: absolute; top: -1px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--alert); border: 2px solid var(--surface); }
.nav-inferior span:last-child { white-space: nowrap; }

/* Conta do membro */
.consentimento { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--brand-tint); }
.consentimento .icone { width: 16px; height: 16px; color: var(--brand); }
:root[data-tema="escuro"] .consentimento .legenda { color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .consentimento .legenda { color: var(--ink-soft); } }
a.numero { text-decoration: none; color: inherit; }
a.numero:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--brand-tint-strong); }
a.aviso-bloco { text-decoration: none; color: inherit; display: flex; gap: 10px; align-items: center; }
a.aviso-bloco .icone { color: var(--brand); flex-shrink: 0; }
.icone-grande { width: 64px; height: 64px; border-radius: 32px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.icone-grande .icone { width: 30px; height: 30px; }

/* Notificações */
.notificacao { align-items: flex-start; }
.notificacao-icone { width: 32px; height: 32px; flex-shrink: 0; border-radius: 16px; background: var(--ground); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.notificacao-icone .icone { width: 16px; height: 16px; }
.notificacao.nova .notificacao-icone { background: var(--brand-tint); color: var(--brand); }
.notificacao.nova .rotulo { font-weight: 800; }
.push-bloco .icone-linha .icone { color: var(--brand); }
.passo-a-passo { padding: 12px; border-radius: var(--radius-md); background: var(--ground); display: flex; flex-direction: column; gap: 6px; }
.lista-passos { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.lista-passos strong { font-weight: 700; color: var(--ink); }

/* Verificação e comprovantes */
.codigo-copiar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); border: 1.5px dashed var(--brand); background: var(--brand-tint); }
.codigo-copiar code, .dados-lista code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; color: var(--brand-deep); letter-spacing: .04em; }
:root[data-tema="escuro"] .codigo-copiar code { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .codigo-copiar code { color: var(--ink); } }
.arquivo { position: relative; display: block; cursor: pointer; }
.arquivo input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.arquivo-botao { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md); border: 1.5px dashed var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-soft); overflow: hidden; }
.arquivo-botao span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arquivo-botao .icone { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.arquivo:hover .arquivo-botao, .arquivo input:focus-visible + .arquivo-botao { border-color: var(--brand); }
.arquivo.escolhido .arquivo-botao { border-style: solid; border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.destaque-verificada .selo { width: 18px; height: 18px; }

/* Painel: moderação */
.dados-lista { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.dados-lista dt { font-weight: 700; color: var(--muted); }
.dados-lista dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.motivos { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.motivos strong { font-weight: 700; color: var(--ink); }
.citacao { padding: 8px 12px; border-left: 3px solid var(--line); background: var(--ground); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.status-oculto { background: var(--alert-tint); color: var(--alert); }
.pendencias .link-seta { display: flex; align-items: center; gap: 8px; }
.pendencias .link-seta .icone:first-child { color: var(--alert); width: 16px; height: 16px; }
.membro-linha { flex-wrap: wrap; }
.membro-linha .acoes-quebra { justify-content: flex-end; }
.membro-linha .acoes-quebra form { display: inline-flex; }

/* ============================================================
   Fase 4 — perfis, convidados e comentários
   ============================================================ */

.avatar-redondo { border-radius: 50%; }
.avatar-mini { width: 24px; height: 24px; border-radius: 12px; font-size: 10px; }
.perfil-avatar.avatar-redondo { border-radius: 50%; }
.fotos-perfil-linha { display: flex; align-items: center; gap: 12px; }
.fotos-perfil-linha form { flex: 1; min-width: 0; }

/* Linha "com Fulano" nos cards */
.com-convidado { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-deep); font-weight: 700; }
.com-convidado .icone { width: 13px; height: 13px; flex-shrink: 0; }
:root[data-tema="escuro"] .com-convidado { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .com-convidado { color: var(--ink); } }

/* Seletor de convidados no formulário do evento */
.convidados-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.convidados-lista:empty { display: none; }
.chip-convidado { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.chip-convidado > span:not(.avatar) { padding-right: 2px; }
.chip-tirar { width: 24px; height: 24px; border-radius: 12px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip-tirar:hover { background: var(--brand-tint-strong); }
.chip-tirar .icone { width: 14px; height: 14px; }
.busca-convidado { position: relative; }
.convidados-resultados { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.resultado-convidado { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.resultado-convidado:hover, .resultado-convidado:focus-visible { background: var(--ground); }
.resultado-convidado.criar { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.resultado-convidado.criar .avatar { background: var(--highlight-tint); color: var(--highlight-ink); }
.novo-convidado { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--ground); }

/* Convidados na página do evento */
.convidados-evento { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.convidado-linha { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.convidado-linha:hover { text-decoration: none; }
.convidado-linha .rotulo { display: inline-flex; align-items: center; gap: 4px; }

/* Perfis ligados à igreja */
.perfis-carrossel { position: relative; }
.perfis-trilho { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px; }
.perfil-mini { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; text-align: center; color: var(--ink); text-decoration: none; }
.perfil-mini:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--brand-tint-strong); }
.perfil-mini .rotulo { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Comentários */
.comentarios { gap: 14px; scroll-margin-top: 80px; }
.comentario { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.comentario-corpo { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.comentario-corpo .corpo { overflow-wrap: anywhere; }
.comentario-acoes { display: flex; gap: 12px; align-items: center; }
.comentario-acoes .link-denunciar { padding: 0; align-self: auto; }
.comentario-linha .corpo { overflow-wrap: anywhere; }

/* Painel: juntar perfis */
.juntar { display: inline-flex; gap: 6px; align-items: center; }
.entrada-mini { width: 92px; min-height: 36px; padding: 0 10px; font-size: 12px; }

/* ============================================================
   Fase 5 — Pix, pedidos, planos, estatísticas e financeiro
   ============================================================ */

.preco-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--ground); }
.preco-linha strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.preco-grande { background: var(--brand-tint); }
.preco-grande strong { color: var(--brand-deep); }
:root[data-tema="escuro"] .preco-grande strong { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .preco-grande strong { color: var(--ink); } }
.valor { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.alinhar-fim { align-items: flex-end; text-align: right; }

/* Página do Pix */
.pix-bloco { align-items: stretch; }
.pix-bloco .icone-linha .icone { color: #32BCAD; }
.pix-qr { align-self: center; width: 232px; max-width: 100%; padding: 8px; border-radius: var(--radius-md); background: #FFFFFF; border: 1px solid var(--line); }
.pix-qr svg { display: block; width: 100%; height: auto; }
.pix-qr.pequeno { width: 168px; }
.pix-copia { padding: 10px 12px; border-radius: var(--radius-md); border: 1.5px dashed var(--line); background: var(--ground); max-height: 96px; overflow-y: auto; }
.pix-copia code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; color: var(--ink-soft); word-break: break-all; line-height: 1.5; }
.pix-previa { display: flex; gap: 12px; align-items: center; }
.etapas-pedido { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.etapas-pedido li { position: relative; padding-top: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.etapas-pedido li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.etapas-pedido li.feita { color: var(--ink); }
.etapas-pedido li.feita::before { background: var(--success); }
.status-pedido-aguardando { background: var(--highlight-tint); color: var(--highlight-ink); }
.status-pedido-informado { background: var(--brand-tint); color: var(--brand-deep); }
.status-pedido-liberado { background: #DDF3E7; color: var(--success); }
.status-pedido-recusado, .status-pedido-cancelado { background: var(--alert-tint); color: var(--alert); }
.status-pedido-expirado { background: var(--line); color: var(--muted); }
.status-aguardando-pagamento { background: var(--highlight-tint); color: var(--highlight-ink); }
:root[data-tema="escuro"] .status-pedido-liberado { background: #173528; color: #7FD8A8; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .status-pedido-liberado { background: #173528; color: #7FD8A8; } }
.pedido-admin .secao-topo { align-items: flex-start; }

/* Planos */
.plano-cartao { border: 1.5px solid var(--brand-tint-strong); }
.plano-cartao.ativo { border-color: var(--success); }
.beneficios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.beneficios li { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.beneficios .icone { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; stroke-width: 2.4; }
.premium-links .btn .icone { color: var(--brand); }
.upsell { align-items: center; text-align: center; }

/* Cores do Premium (sem estilo embutido, por causa da política de segurança) */
.cores { display: flex; flex-wrap: wrap; gap: 10px; }
.cor-opcao { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.cor-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cor-amostra { width: 36px; height: 36px; border-radius: 18px; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.cor-opcao input:checked + .cor-amostra { box-shadow: 0 0 0 2.5px var(--ink); }
.cor-opcao input:focus-visible + .cor-amostra { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.cor-padrao { background: var(--brand); }
.amostra-vinho { background: #8E2C48; }
.amostra-verde { background: #1E7A4C; }
.amostra-oceano { background: #1F5FA8; }
.amostra-terracota { background: #B4532A; }
.amostra-violeta { background: #6A3FB0; }
.amostra-grafite { background: #3A3F52; }
.perfil.cor-vinho { --cor-perfil: #8E2C48; --cor-perfil-tint: #F5E3E8; }
.perfil.cor-verde { --cor-perfil: #1E7A4C; --cor-perfil-tint: #DDF3E7; }
.perfil.cor-oceano { --cor-perfil: #1F5FA8; --cor-perfil-tint: #E1ECF8; }
.perfil.cor-terracota { --cor-perfil: #B4532A; --cor-perfil-tint: #F8E6DC; }
.perfil.cor-violeta { --cor-perfil: #6A3FB0; --cor-perfil-tint: #EDE6F8; }
.perfil.cor-grafite { --cor-perfil: #3A3F52; --cor-perfil-tint: #E6E7EC; }
.perfil[class*="cor-"] .perfil-capa.sem-foto { background: var(--cor-perfil); }
.perfil[class*="cor-"] .perfil-avatar { background: var(--cor-perfil-tint); color: var(--cor-perfil); }
.perfil[class*="cor-"] .btn-primario { background: var(--cor-perfil); border-color: var(--cor-perfil); }
.perfil[class*="cor-"] .texto-marca { color: var(--cor-perfil); }

/* Estatísticas */
.numero-grande { font-size: 14px; font-weight: 800; color: var(--ink); }
.grafico-barras { width: 100%; height: auto; display: block; }
.grafico-barras .barra { fill: var(--brand); }
.grafico-barras .barra-pouco { fill: var(--brand-tint-strong); }
.grafico-barras .grafico-base { stroke: var(--line); stroke-width: 1; }
.grafico-barras .grafico-rotulo { fill: var(--muted); font-size: 7px; font-weight: 600; font-family: var(--font); }
.origem-linha { display: grid; grid-template-columns: minmax(0, 120px) 1fr auto; gap: 10px; align-items: center; }
.origem-linha .rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.origem-barra { height: 8px; border-radius: 4px; background: var(--ground); overflow: hidden; }
.origem-preenchido { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.origem-0 { width: 4%; } .origem-1 { width: 10%; } .origem-2 { width: 20%; } .origem-3 { width: 30%; } .origem-4 { width: 40%; } .origem-5 { width: 50%; }
.origem-6 { width: 60%; } .origem-7 { width: 70%; } .origem-8 { width: 80%; } .origem-9 { width: 90%; } .origem-10 { width: 100%; }

/* Banner patrocinado */
.banner-cidade { display: flex; flex-direction: column; gap: 4px; padding: 14px; text-decoration: none; color: inherit; border: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-tint), var(--surface) 75%); }
a.banner-cidade:hover { text-decoration: none; border-color: var(--brand-tint-strong); }
.banner-rotulo { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Segurança do painel */
.chave-totp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--ink); word-break: break-all; }

/* Recibo para imprimir */
.recibo .dados-lista dd strong { font-weight: 800; }
@media print {
  .nao-imprimir, .cookies, .voltar-topo, .modal { display: none !important; }
  body { background: #FFFFFF; }
  .cartao { box-shadow: none; border: 1px solid #DDD; }
}
@media (max-width: 639px) { .topo-acoes .so-desktop { display: none; } }

/* ============================================================
   Fase 6 — acabamento
   ============================================================ */

/* Esqueleto de carregamento (aparece enquanto a próxima página do feed chega) */
.carregando-mais { align-items: stretch; }
.carregando-mais > .legenda, .carregando-mais > .btn { align-self: center; }
.esqueletos { display: none; flex-direction: column; gap: 10px; }
.carregando-mais.ocupado .esqueletos { display: flex; }
.carregando-mais.ocupado .legenda::before { display: none; }
.esqueleto { display: flex; gap: 12px; padding: 12px; }
.esq-bloco { width: 56px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0; }
.esq-linhas { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.esq-linhas span { height: 10px; border-radius: 5px; }
.esq-linhas span:nth-child(1) { width: 30%; }
.esq-linhas span:nth-child(2) { width: 80%; }
.esq-linhas span:nth-child(3) { width: 55%; }
.esq-bloco, .esq-linhas span { background: linear-gradient(90deg, var(--ground) 0%, var(--line) 50%, var(--ground) 100%); background-size: 200% 100%; animation: brilho 1.2s ease-in-out infinite; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .esq-bloco, .esq-linhas span, .carregando-mais.ocupado .legenda::before { animation: none; } }

/* Aviso de nova versão do app */
.aviso-versao { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 80; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-float); }
@media (min-width: 1100px) { .aviso-versao { bottom: 24px; left: auto; right: 24px; } }

/* Sugestões da busca */
.busca-caixa { position: relative; }
.sugestoes { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; display: flex; flex-direction: column; padding: 6px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); max-height: 360px; overflow-y: auto; }
.sugestao { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.sugestao:hover, .sugestao.ativa { background: var(--brand-tint); text-decoration: none; }
.sugestao .legenda.forte { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }

/* Perguntas frequentes */
.faq-item { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 0; padding-top: 0; }

/* ============================================================
   Fase 7 — correções e novidades
   ============================================================ */

/* Página sempre com pelo menos a altura da tela; o rodapé fica no fim */
html, body { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
body:not(.tela-centro) > main, body:not(.tela-centro) > .feed-layout { flex: 1 0 auto; }

/* O seletor vazio usava a classe .vazio dos avisos de lista vazia e ficava mais alto */
.seletor-valor.vazio { padding: 0; text-align: left; }
.seletor-botao { height: 46px; }

/* Telas de conta no mesmo layout do site */
.conteudo-conta { max-width: 520px; }
.conteudo-conta .caixa-topo { padding: 0 2px; }
.conteudo-mensagem { max-width: 480px; align-items: center; text-align: center; justify-content: center; padding-top: 48px; }
.centro-bloco { align-items: stretch; text-align: center; }

/* Botões em grade: no máximo 2 por linha no celular */
.botoes-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .botoes-grade { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.botoes-grade .btn { white-space: normal; text-align: center; line-height: 1.2; }

/* Vou e Tenho interesse com o texto à esquerda */
.btn-presenca { justify-content: flex-start; text-align: left; padding: 0 14px; }

/* Hoje perto de você: horário em bloco com contorno */
.mini-lista { display: flex; flex-direction: column; }
.mini-evento { align-items: center; padding: 10px 0; }
.mini-evento:first-child { border-top: 0; padding-top: 2px; }
.mini-hora { flex-shrink: 0; width: 56px; min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1.5px solid var(--brand-tint-strong); background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
:root[data-tema="escuro"] .mini-hora { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .mini-hora { color: var(--ink); } }
.mini-texto { display: flex; flex-direction: column; min-width: 0; }
.mini-texto .rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-evento:hover .mini-hora { border-color: var(--brand); }

/* Quadro de divulgação da coluna direita */
.divulgacao { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--brand-tint-strong); background: linear-gradient(180deg, var(--brand-tint), var(--surface) 60%); }
.divulgacao-selo { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--brand); color: #FFFFFF; font-size: 11px; font-weight: 800; }
.divulgacao-selo .icone { width: 14px; height: 14px; }
.divulgacao .btn { align-self: flex-start; }
.divulgacao-redes { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.redes-linha { display: flex; flex-wrap: wrap; gap: 6px; }
.rede-botao { width: 38px; min-height: 38px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); }
.rede-botao:hover { border-color: var(--brand); }
.divulgacao-parceiros { display: flex; flex-direction: column; gap: 6px; }
.links-lateral { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px; }
.links-lateral a { font-size: 11px; font-weight: 600; color: var(--muted); }

/* Convite para instalar o app: botões à direita */
.convite-flutuante.visivel { flex-direction: column; align-items: stretch; gap: 10px; }
.convite-acoes { display: flex; justify-content: flex-end; gap: 8px; }

/* Busca dentro da agenda */
.busca-feed { position: relative; z-index: 6; }
.busca-feed .entrada { padding-right: 44px; }
.busca-feed input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.busca-limpar { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.busca-limpar .icone { position: static; width: 16px; height: 16px; color: currentColor; }
.busca-limpar:hover { background: var(--ground); color: var(--ink); }
.busca-area, .feed-area, .busca-resultados { display: flex; flex-direction: column; gap: 12px; }

/* Mapa dentro de cartão e mapa pequeno no evento e na igreja */
.voltar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.voltar-link .icone { width: 16px; height: 16px; }
.mapa-cartao { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.mapa-cartao .mapa { height: calc(100vh - 290px); min-height: 340px; border: 0; border-radius: var(--radius-md); }
.mapa-mini { height: 200px; min-height: 0; touch-action: auto; cursor: default; }
@media (min-width: 640px) { .mapa-mini { height: 240px; } }
.mapa-mini .mapa-pino { cursor: default; }
.mapa-ampliar { position: absolute; left: 10px; bottom: 10px; z-index: 3; box-shadow: var(--shadow-float); }

/* Preço do evento */
.selo-preco { align-self: flex-start; display: inline-flex; align-items: center; min-height: 22px; margin-top: 4px; padding: 0 8px; border-radius: 6px; background: var(--highlight-tint); color: var(--highlight-ink); font-size: 11px; font-weight: 800; }
.selo-preco.gratis { background: #DDF3E7; color: var(--success); }
:root[data-tema="escuro"] .selo-preco.gratis { background: #173528; color: #7FD8A8; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .selo-preco.gratis { background: #173528; color: #7FD8A8; } }
.info-preco { border: 1.5px solid var(--highlight); background: var(--highlight-tint); }
.info-preco.gratis { border-color: var(--success); background: var(--ground); }
.erro-texto { font-size: 11px; font-weight: 700; color: var(--alert); }

/* Anúncio de parceiro no meio da agenda */
.anuncio-cartao { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px dashed var(--line); color: inherit; text-decoration: none; }
a.anuncio-cartao:hover { text-decoration: none; border-color: var(--brand-tint-strong); }
.anuncio-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.anuncio-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.anuncio-rodape .rotulo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); min-width: 0; }
.anuncio-rodape .rotulo .icone { width: 15px; height: 15px; color: var(--brand); }
.anuncio-rodape .link-seta { margin-top: 0; flex-shrink: 0; }

/* Página Anuncie e escolha da abrangência */
.destaque-anuncie .btn { align-self: flex-start; }
.preco-opcao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.escolha-preco { position: relative; display: block; cursor: pointer; }
.escolha-preco input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.escolha-caixa { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.escolha-caixa::before { content: ""; width: 16px; height: 16px; border-radius: 8px; border: 1.5px solid var(--muted); flex-shrink: 0; box-sizing: border-box; }
.escolha-preco input:checked + .escolha-caixa { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.escolha-preco input:checked + .escolha-caixa::before { border: 5px solid var(--brand); }
.escolha-preco input:focus-visible + .escolha-caixa { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.escolha-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.escolha-valor { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.escolha-preco.indisponivel { opacity: .5; cursor: not-allowed; }
.acoes-fim { justify-content: flex-end; }
.status-anuncio-no-ar { background: #DDF3E7; color: var(--success); }
.status-anuncio-agendado { background: var(--brand-tint); color: var(--brand-deep); }
.status-anuncio-aguardando-pagamento { background: var(--highlight-tint); color: var(--highlight-ink); }
.status-anuncio-pausado, .status-anuncio-cancelado, .status-anuncio-recusado { background: var(--alert-tint); color: var(--alert); }

/* Semanas do banner */
.semana-escolha { position: relative; cursor: pointer; border: 1.5px solid var(--line); }
.semana-escolha input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.semana-escolha:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.semana-escolha:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.semana-escolha.lotada { cursor: not-allowed; opacity: .6; }
.semana-estado { font-size: 11px; font-weight: 800; color: var(--success); }
.semana-escolha.lotada .semana-estado { color: var(--muted); }
.semana-escolha:has(input:checked) .semana-estado::before { content: "✓ "; }
@media (min-width: 700px) { .semanas-banner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aviso-bloco-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: inherit; text-decoration: none; }
.aviso-bloco-link:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--brand-tint-strong); }
/* A coluna da direita ficou mais alta que a tela: rola junto com a página para tudo ficar ao alcance */
@media (min-width: 1100px) { .feed-direita { position: static; } }
