/* Área Pessoal (Ezor Ishi) e página de entrada. Mesma identidade do site: navy, azul-claro, Figtree. */
:root { --navy: #0E2A4F; --sky: #8EC9F5; --sky2: #A9D3F5; --blue: #2F6FB5; --mist: #F3F8FD; --line: #E2ECF6; --white: #FFFFFF; --muted: #4A6585; --ease: cubic-bezier(.2,.7,.2,1); --accent: #8EC9F5; --accent-light: #A9D3F5; --accent-dark: #2F6FB5; --tint: #EEF6FD; color-scheme: light }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--mist); color: var(--navy); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.55; overflow-x: hidden }
h1, h2, h3 { margin: 0; text-wrap: balance }
h1, h2 { font-weight: 800 }
h3 { font-weight: 700 }
a, a:visited { color: var(--navy) }
a:hover { color: var(--blue) }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #3B82D6; outline-offset: 2px }
[hidden] { display: none !important }

/* topo */
.topo { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20 }
.topo-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0 }
.marca img { height: 48px; width: auto; display: block }
.marca span { display: flex; flex-direction: column; gap: 2px; line-height: 1.1 }
.marca b { font-family: 'Google Sans', 'Figtree', sans-serif; font-weight: 600; font-size: 16px; color: #4A93D2 }
.marca small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-weight: 700 }
.topo-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end }
.topo-acoes a { font-weight: 700; font-size: 15px; text-decoration: none }

/* botões */
.btn { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), filter .2s var(--ease), background .2s }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06) }
.btn:disabled { opacity: .6; cursor: default; transform: none }
.btn-navy, .btn-navy:visited { background: var(--navy); color: var(--white) }
.btn-navy:hover { color: var(--white) }
.btn-claro, .btn-claro:visited { background: var(--white); color: var(--navy); border: 1px solid #CFE0F1 }
.btn-sky, .btn-sky:visited { background: var(--sky); color: var(--navy) }
.btn-txt { background: none; color: var(--navy); padding: 8px 10px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px }
.btn-perigo { background: none; color: #A3342B; padding: 8px 10px; min-height: 40px }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px }

/* faixa navy */
.faixa { background: var(--navy); color: var(--white); position: relative; overflow: hidden }
.faixa::after { content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; background: url(../../assets/logo-web.png) center / contain no-repeat; opacity: .08; pointer-events: none }
.faixa-in { max-width: 1120px; margin: 0 auto; padding: 40px 20px 44px; position: relative; z-index: 1 }
.faixa .rotulo { color: var(--accent-light); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase }
.faixa h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin-top: 6px }
.faixa p { color: #CFE3F7; margin: 10px 0 0; max-width: 620px }
.selo { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: rgba(142, 201, 245, .16); color: var(--white); border: 1px solid rgba(169, 211, 245, .4); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px }
.selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); display: inline-block }
.selo.pendente i { background: #F3C969 }

/* layout */
.conteudo { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start }
.coluna { display: grid; gap: 24px; min-width: 0 }
@media (max-width: 960px) { .conteudo { grid-template-columns: minmax(0, 1fr) } }

.cartao { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 24px; min-width: 0 }
.cartao-topo { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px }
.cartao-topo h2 { font-size: 22px }
.cartao-topo p { margin: 2px 0 0; color: var(--muted); font-size: 14px }
.vazio { background: var(--mist); border: 1px dashed #C7DBEE; border-radius: 16px; padding: 20px; color: var(--muted); text-align: center; font-size: 15px }

/* próximas datas */
.linha-tempo { display: grid; gap: 10px }
.evento { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: var(--mist) }
.evento .dia { background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: center; padding: 6px 0; line-height: 1.1 }
.evento .dia b { display: block; font-size: 24px; font-weight: 800 }
.evento .dia small { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--blue) }
.evento h3 { font-size: 16px }
.evento .meta { font-size: 14px; color: var(--muted); margin-top: 2px }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px }
.chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--white); border: 1px solid #CFE0F1; color: var(--navy) }
.chip.forte { background: var(--navy); color: var(--white); border-color: var(--navy) }
.chip.ceu { background: #DDEEFC; border-color: #DDEEFC }

/* família */
.pessoas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) }
.pessoa { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 6px; align-content: start; transition: box-shadow .3s var(--ease), transform .3s var(--ease) }
.pessoa:hover { box-shadow: 0 12px 30px rgba(14, 42, 79, .1); transform: translateY(-2px) }
.pessoa .topo-p { display: flex; gap: 12px; align-items: center }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #DDEEFC; color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 17px }
.pessoa h3 { font-size: 16px; line-height: 1.2 }
.pessoa .papel { font-size: 13px; color: var(--muted) }
.pessoa .det { font-size: 14px; color: var(--muted) }
.pessoa .det b { color: var(--navy); font-weight: 600 }
.pessoa .falta { font-size: 13px; color: #8A5A00; background: #FFF6DE; border-radius: 10px; padding: 4px 8px; justify-self: start }

/* lista de datas */
.lista { display: grid; gap: 8px }
.item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px }
.item > div { min-width: 0 }
.item h3 { font-size: 15px }
.item p { margin: 0; font-size: 14px; color: var(--muted) }

/* lateral */
.lado .cartao h2 { font-size: 19px; margin-bottom: 10px }
.dados dl { margin: 0; display: grid; gap: 10px }
.dados dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.dados dd { margin: 0; font-weight: 600; overflow-wrap: anywhere }
.em-breve { display: grid; gap: 10px }
.em-breve div { border-radius: 14px; background: var(--mist); padding: 12px 14px }
.em-breve b { display: block }
.em-breve span { font-size: 14px; color: var(--muted) }
.etiqueta { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #DDEEFC; color: var(--navy); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px }

/* formulários */
.form { display: grid; gap: 14px }
.grade { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end }
.grade .cheia { grid-column: 1 / -1 }
@media (max-width: 560px) { .grade { grid-template-columns: minmax(0, 1fr) } }
label.campo { display: grid; gap: 6px; font-weight: 700; font-size: 14px }
label.campo small { font-weight: 500; color: var(--muted) }
input, select, textarea { font: inherit; font-size: 16px; color: var(--navy); background: var(--white); border: 1px solid #C9DBEC; border-radius: 12px; padding: 11px 12px; min-height: 46px; width: 100%; min-width: 0 }
textarea { min-height: 80px; resize: vertical }
/* dropdown com aparência própria: igual no Chrome, Safari e iPhone */
select { -webkit-appearance: none; appearance: none; padding-right: 42px; line-height: 1.3; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E2A4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px }
select::-ms-expand { display: none }
select:hover { border-color: #9FC0E0 }
input[type="date"]::-webkit-date-and-time-value { text-align: left }
input:focus, select:focus, textarea:focus { border-color: var(--blue) }
.marcar { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; cursor: pointer }
.marcar input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--navy) }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; min-width: 0 }
legend { font-weight: 700; font-size: 14px; padding: 0 6px }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px 18px }
.ajuda { font-size: 13px; color: var(--muted); margin: -6px 0 0 }
.heb { font-size: 14px; color: var(--blue); font-weight: 600; min-height: 1.4em; margin: -4px 0 0 }
.acoes-form { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 4px }
.acoes-form > div { display: flex; gap: 10px; margin-left: auto }
.erro { background: #FCEBEA; color: #8C2A22; border-radius: 12px; padding: 10px 14px; font-size: 14px }

/* diálogos */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--navy); box-shadow: 0 30px 80px rgba(14, 42, 79, .3) }
dialog::backdrop { background: rgba(14, 42, 79, .45) }
dialog form { padding: 24px }
dialog h2 { font-size: 22px; margin-bottom: 4px }

/* aviso de demonstração */
.demo { background: #FFF6DE; color: #6B4700; font-size: 14px; text-align: center; padding: 8px 16px }
.demo button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0 4px }

/* entrar */
.entrar { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 500px at 50% -10%, #DDEEFC, transparent), var(--mist) }
.entrar .cartao { width: min(440px, 100%); padding: 32px 28px; text-align: center; box-shadow: 0 20px 60px rgba(14, 42, 79, .1) }
.entrar img { height: 84px; width: auto }
.entrar h1 { font-size: 28px; margin-top: 12px; line-height: 1.15 }
.entrar .sub { color: var(--muted); margin: 8px 0 22px }
.entrar .form { text-align: left }
.divisor { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 }
.divisor::before, .divisor::after { content: ""; height: 1px; background: var(--line); flex: 1 }
.btn-google { width: 100%; background: var(--white); color: var(--navy); border: 1px solid #C9DBEC }
.btn-google svg { width: 20px; height: 20px }
.enviado { background: var(--mist); border-radius: 16px; padding: 18px; text-align: left }
.rodape-entrar { margin-top: 18px; font-size: 14px }

.carregando { padding: 80px 20px; text-align: center; color: var(--muted) }

@media (max-width: 560px) {
  .marca img { height: 40px }
  .marca b { font-size: 17px }
  .marca small { display: none }
  .cartao { padding: 18px; border-radius: 18px }
  .faixa-in { padding: 30px 16px 34px }
  .conteudo { padding: 20px 16px 48px }
  .topo-in { padding: 12px 16px }
  .item { flex-wrap: wrap }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* ---------- Área administrativa ---------- */
.numeros { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px }
.numeros div { background: rgba(142, 201, 245, .14); border: 1px solid rgba(169, 211, 245, .35); border-radius: 16px; padding: 12px 18px; min-width: 120px }
.numeros b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1 }
.numeros span { font-size: 13px; color: #CFE3F7 }
.painel-in { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; display: grid; gap: 20px }
.abas { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; justify-self: start; max-width: 100%; overflow-x: auto }
.abas button { font: inherit; font-weight: 700; font-size: 15px; color: var(--navy); background: none; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 42px; cursor: pointer; white-space: nowrap }
.abas button[aria-selected="true"] { background: var(--navy); color: var(--white) }
.filtros { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; margin-bottom: 14px }
@media (max-width: 560px) { .filtros { grid-template-columns: minmax(0, 1fr) } }
.item-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none }
.item h3 .status { margin-left: 6px; vertical-align: 2px }
.status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap }
.status-chaver { background: var(--navy); color: var(--white) }
.status-visitante { background: #DDEEFC; color: var(--navy) }
.status-pendente { background: #FFF1CC; color: #6B4700 }
.status-inativo { background: #ECEFF3; color: #4A5868 }
.papel-tag { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px }

.mes-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center }
.mes-nav h2 { font-size: 24px }
.mes-nav p { margin: 2px 0 0; color: var(--blue); font-weight: 600; font-size: 14px }
.mes-nav .btn { font-size: 22px; width: 44px; padding: 0 }
.filtros-tipo { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line) }
.filtros-tipo .marcar { font-size: 14px }

.shabatot { display: grid; gap: 12px }
.shabat { border: 1px solid var(--line); border-radius: 16px; overflow: hidden }
.shabat-topo { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; background: var(--mist); padding: 10px 14px }
.shabat-topo span { color: var(--blue); font-weight: 600; font-size: 14px }
.shabat-item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line) }
.shabat-item > div:first-child { display: grid; gap: 2px; min-width: 0 }
.shabat-item span { font-size: 14px; color: var(--muted) }
.shabat-item .chips { margin-top: 0; flex: none; justify-content: flex-end }
.shabat-vazio { padding: 10px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line) }
.btn-link { font: inherit; font-size: 12px; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 3px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }

dialog.largo { width: min(760px, calc(100vw - 24px)) }
.dlg-in { padding: 24px }
.cartao-suave { background: var(--mist); border-radius: 18px; padding: 18px }
.cartao-suave h3, .titulo-sec { font-size: 17px }
.titulo-sec { margin: 22px 0 10px }
.dados-grade { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.dados-grade dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.dados-grade dd { margin: 0; font-weight: 600; overflow-wrap: anywhere }
.nada { color: var(--muted); font-weight: 500 }
.ok-salvo { color: #1F7A4D; font-weight: 700; font-size: 14px }
@media (max-width: 560px) {
  .dlg-in { padding: 18px }
  .dados-grade { grid-template-columns: minmax(0, 1fr) }
  .numeros div { min-width: 0; flex: 1 1 40% }
  .shabat-item { flex-direction: column }
  .item-acoes { justify-content: flex-start }
}

/* convites */
.convite { border-color: #BFDDF6; background: linear-gradient(180deg, #F3F8FD, #FFFFFF); display: grid; gap: 10px; justify-items: start }
.convite h2 { font-size: 22px }
.convite p { margin: 0 }
.conteudo > .cheio { grid-column: 1 / -1 }
.convite-msg { background: var(--mist); border-radius: 14px; padding: 14px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere }
.opcoes-convite { display: flex; flex-wrap: wrap; gap: 10px }
.pessoa .acesso { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px }
.pessoa .acesso .btn { margin: 0 }

/* Eventos (painel) */
.evento-flyer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--mist); border-radius: 16px; padding: 14px }
.flyer-previa { width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; background: #DDEAF7; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600 }
.flyer-previa img { width: 100%; height: 100%; object-fit: cover; display: block }
.item-evento { justify-content: flex-start }
.item-evento .miniatura { width: 56px; height: 70px; flex: none; border-radius: 10px; background: #DDEAF7 center / cover no-repeat }
.item-evento > div:nth-child(2) { flex: 1 }
.item-evento .chips { margin-top: 4px }
@media (max-width: 560px) { .evento-flyer { grid-template-columns: 90px minmax(0, 1fr) } .flyer-previa { width: 90px } }

/* eventos: cartões e janela de detalhes */
.card-evento { cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease) }
.card-evento:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 42, 79, .14) }
#dlg-evento { border: 0; padding: 0; border-radius: 24px; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: #0E2A4F; font-family: 'Figtree', system-ui, sans-serif; box-shadow: 0 30px 80px rgba(4, 16, 36, .4) }
#dlg-evento::backdrop { background: rgba(14, 42, 79, .6) }
.dlg-ev { display: flex; flex-wrap: wrap; position: relative }
.dlg-ev-flyer { flex: 1 1 320px; min-width: 0; background: #0E2A4F; display: flex; align-items: center; justify-content: center }
.dlg-ev-flyer img { display: block; width: 100%; max-height: 80vh; object-fit: contain }
.dlg-ev-txt { flex: 1 1 300px; min-width: 0; padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box }
.dlg-ev-txt h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; font-size: 30px; line-height: 1.15 }
.dlg-ev-txt p { margin: 0; color: #34506F; font-size: 16px; white-space: pre-line }
.dlg-ev-cat { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #2F6FB5 }
.dlg-ev .dlg-ev-quando { font-weight: 700; color: #0E2A4F }
.dlg-ev-btn { align-self: flex-start; margin-top: 8px; text-decoration: none; background: #0E2A4F; color: #FFFFFF; font-weight: 800; padding: 14px 26px; border-radius: 999px }
.dlg-ev-fechar { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #FFFFFF; color: #0E2A4F; font: 800 24px/1 'Figtree', sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(4, 16, 36, .25) }

/* Complete seu cadastro */
.completar { border-color: #D3E5F6; background: linear-gradient(180deg, #FFFFFF, var(--tint)) }
.barra { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 14px }
.barra i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .4s var(--ease) }
.passos { display: grid; gap: 10px }
.passo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px }
.passo.feito { background: transparent; border-style: dashed }
.marca-passo { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid #C7DBEE; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--white) }
.passo.feito .marca-passo { background: var(--blue); border-color: var(--blue) }
.passo-txt { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px }
.passo-txt span { color: var(--muted); font-size: 14px }
.passo.feito .passo-txt b { color: var(--muted) }
.passo-acoes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
@media (prefers-reduced-motion: reduce) { .barra i { transition: none } }


/* Doações e kidush (Área Pessoal) */
.contribuir { display: grid; gap: 10px; margin-top: 12px }
.contribuir > div { border-radius: 14px; background: var(--mist); padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.contribuir span { font-size: 14px; color: var(--muted) }
.contribuir .btn { margin-top: 4px }
.sub-cartao { font-size: 15px; margin: 18px 0 10px }
.item .recado { margin-top: 4px; font-size: 13px; color: var(--navy) }
