/* Devoto Conectado — layout PHP. Cores/variáveis = tema original (src/index.css, tema claro). */
:root {
  --background: 36 30% 96%;
  --foreground: 222 47% 11%;
  --card: 40 25% 99%;
  --primary: 224 72% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 217 80% 58%;
  --muted: 36 20% 92%;
  --muted-foreground: 220 18% 36%;
  --accent: 42 52% 56%;
  --sanctuary: 224 58% 13%;
  --sanctuary-foreground: 42 45% 92%;
  --sanctuary-muted: 40 18% 72%;
  --flame: 38 85% 56%;
  --success: 158 72% 38%;
  --destructive: 0 72% 51%;
  --border: 36 18% 88%;
  --radius: 1rem;
  --shadow-card: 0 2px 20px -6px hsl(30 10% 20% / 0.06), 0 1px 4px 0 hsl(30 10% 20% / 0.02);
  --gradient-cta: linear-gradient(135deg, hsl(224 72% 36%) 0%, hsl(221 80% 46%) 50%, hsl(236 60% 50%) 100%);
  --landing-overlay: linear-gradient(90deg, hsl(222 55% 7% / 0.94) 0%, hsl(222 50% 8% / 0.78) 48%, hsl(222 45% 8% / 0.48) 100%);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.sem-nav { padding-bottom: 0; }
h1, h2, h3, .serif { font-family: Lora, Georgia, serif; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
a { color: hsl(var(--primary)); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.pular:focus { left: 8px; }

/* ------------------------------------------------ topo */
.topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: hsl(var(--background) / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.marca img { width: 34px; height: 34px; border-radius: 10px; }
.marca small { display: block; font-weight: 500; font-size: .72rem; color: hsl(var(--muted-foreground)); }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
.saldo-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: hsl(var(--accent) / .14); color: hsl(32 60% 30%); font-weight: 600; font-size: .85rem; text-decoration: none;
}
.topo-nav-desktop { display: none; gap: 4px; }
.topo-nav-desktop a { text-decoration: none; color: hsl(var(--foreground)); padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.topo-nav-desktop a.ativo, .topo-nav-desktop a:hover { background: hsl(var(--primary) / .08); color: hsl(var(--primary)); }

/* ------------------------------------------------ navegação inferior (mobile) */
.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: hsl(var(--card) / .97);
  border-top: 1px solid hsl(var(--border));
  backdrop-filter: blur(12px);
}
.nav-inferior a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .7rem; font-weight: 600; color: hsl(var(--muted-foreground)); text-decoration: none;
}
.nav-inferior a svg { width: 22px; height: 22px; }
.nav-inferior a.ativo { color: hsl(var(--primary)); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .nav-inferior { display: none; }
  .topo-nav-desktop { display: flex; }
}

/* ------------------------------------------------ conteúdo */
.conteudo { max-width: 680px; margin: 0 auto; padding: 18px 16px 32px; }
.conteudo.largo { max-width: 1100px; }
.cartao {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 16px;
}
.cartao h2 { margin-bottom: .75rem; }
.muted { color: hsl(var(--muted-foreground)); }
.pequeno { font-size: .85rem; }
.centro { text-align: center; }
.linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grade-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grade-4 { grid-template-columns: repeat(4, 1fr); } }
.cabecalho-pagina { margin: 4px 0 16px; }
.cabecalho-pagina p { color: hsl(var(--muted-foreground)); margin: 0; }

/* ------------------------------------------------ botões e formulários */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--gradient-cta); color: #fff; transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.carregando { opacity: .6; pointer-events: none; }
.btn.bloco { width: 100%; }
.btn.secundario { background: hsl(var(--card)); color: hsl(var(--primary)); border-color: hsl(var(--primary) / .3); }
.btn.dourado { background: var(--tema-dourado, linear-gradient(135deg, hsl(42 60% 56%), hsl(32 80% 42%))); }
.btn.perigo { background: hsl(var(--destructive)); }
.btn.pequeno { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-google { background: #fff; color: #222; border-color: hsl(var(--border)); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.campo { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=month], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid hsl(var(--border)); background: #fff; color: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 2px solid hsl(var(--primary) / .55); outline-offset: 2px;
}
.ajuda { font-size: .8rem; color: hsl(var(--muted-foreground)); margin-top: 4px; }

/* opções (vela, rosa, pacote) como cartões selecionáveis */
.opcoes { display: grid; gap: 10px; margin-bottom: 16px; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; }
.opcao span.caixa {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  border: 1.5px solid hsl(var(--border)); background: #fff; cursor: pointer;
}
.opcao input:checked + span.caixa { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .12); }
.opcao input:focus-visible + span.caixa { outline: 2px solid hsl(var(--primary)); }
.opcao .icone { font-size: 1.5rem; width: 36px; text-align: center; }
.opcao .txt { flex: 1; }
.opcao .txt strong { display: block; }
.opcao .txt small { color: hsl(var(--muted-foreground)); }
.opcao .preco { font-weight: 700; color: hsl(var(--primary)); white-space: nowrap; }
.formas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.formas .caixa { justify-content: center; text-align: center; flex-direction: column; gap: 2px; }

.rosa-cor { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid #0002; }
.rosa-red { background: #c8102e; } .rosa-white { background: #f7f3ea; } .rosa-yellow { background: #f2c230; } .rosa-pink { background: #f19cb7; }

/* ------------------------------------------------ alertas / toasts */
.alerta { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .92rem; }
.alerta.info { background: hsl(var(--primary) / .08); color: hsl(var(--primary)); }
.alerta.erro { background: hsl(var(--destructive) / .1); color: hsl(0 60% 38%); }
.alerta.ok { background: hsl(var(--success) / .12); color: hsl(158 70% 24%); }
#toasts { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 12px; background: hsl(var(--foreground)); color: #fff; box-shadow: 0 10px 30px -10px #0006; font-size: .92rem; }
.toast.erro { background: hsl(0 62% 42%); }

/* ------------------------------------------------ PIX */
.pix-painel { text-align: center; }
.pix-qr { width: 240px; height: 240px; margin: 8px auto 14px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid hsl(var(--border)); }
.pix-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pix-codigo { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .75rem; padding: 10px; border-radius: 10px; border: 1px dashed hsl(var(--border)); background: hsl(var(--muted)); word-break: break-all; min-height: 70px; resize: none; }
.pix-status { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0; font-weight: 600; color: hsl(var(--muted-foreground)); }
.pulso { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--accent)); animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 0%,100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
.sucesso { text-align: center; padding: 10px 0; }
.sucesso .grande { font-size: 3rem; }

/* ------------------------------------------------ home: cartão do santuário com as 3 chamas */
.santuario {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; margin-bottom: 16px;
  isolation: isolate;
}
.santuario > img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.santuario .sanctuary-photo-overlay { position: absolute; inset: 0; z-index: 1; }
.santuario .sanctuary-light { z-index: 2; }
.santuario-texto { position: relative; z-index: 6; padding: 22px 150px 22px 20px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.santuario-texto h1 { font-size: 1.6rem; }
.santuario-texto p { font-size: .92rem; }
.chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.contador { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; margin-top: 8px; align-self: flex-start; }
.contador strong { font-size: 1.3rem; line-height: 1.1; }
.contador span { font-size: .75rem; }
@media (max-width: 380px) { .santuario-texto { padding-right: 120px; } .santuario .sanctuary-candle-cluster { transform: scale(.85); transform-origin: bottom right; } }

.atalhos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 560px) { .atalhos { grid-template-columns: repeat(4, 1fr); } }
.atalho {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; text-decoration: none; color: inherit;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-card);
}
.atalho .em { font-size: 1.6rem; }
.atalho strong { font-size: .95rem; }
.atalho small { color: hsl(var(--muted-foreground)); font-size: .78rem; }

.mural { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mural li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: hsl(var(--muted) / .6); }
.mural .em { font-size: 1.3rem; }
.mural small { color: hsl(var(--muted-foreground)); display: block; }

/* ------------------------------------------------ landing */
.landing-hero { position: relative; isolation: isolate; min-height: calc(100svh - 58px); overflow: hidden; display: flex; align-items: center; }
.landing-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.landing-hero .landing-hero-overlay { position: absolute; inset: 0; z-index: -1; }
.landing-hero .dentro { max-width: 1100px; margin: 0 auto; padding: 48px 20px; color: #fff; width: 100%; }
.landing-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 14ch; margin-bottom: 16px; }
.landing-hero p { max-width: 44ch; color: hsl(40 30% 88%); font-size: 1.05rem; }
.landing-hero .kicker { color: hsl(var(--accent)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.landing-recursos { max-width: 1100px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 14px; }
@media (min-width: 760px) { .landing-recursos { grid-template-columns: repeat(3, 1fr); } }
.landing-secondary { border: 1px solid; }

/* ------------------------------------------------ admin */
.tabela-wrap { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th, .tabela td { padding: 10px 8px; border-bottom: 1px solid hsl(var(--border)); text-align: left; vertical-align: top; }
.tabela th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); }
.tabela td.num, .tabela th.num { text-align: right; white-space: nowrap; }
.tabela input[type=text], .tabela input[type=number] { padding: 7px 9px; min-width: 70px; }
.selo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.selo.pago, .selo.paid, .selo.confirmed { background: hsl(var(--success) / .14); color: hsl(158 70% 26%); }
.selo.pendente, .selo.pending, .selo.aguardando_pagamento { background: hsl(var(--accent) / .18); color: hsl(32 60% 30%); }
.selo.expirado, .selo.failed, .selo.cancelado, .selo.divergente, .selo.blocked { background: hsl(var(--destructive) / .12); color: hsl(0 60% 38%); }
.kpi { padding: 14px; border-radius: 14px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.kpi span { display: block; font-size: .78rem; color: hsl(var(--muted-foreground)); }
.kpi strong { font-size: 1.25rem; }
.rodape { text-align: center; font-size: .8rem; color: hsl(var(--muted-foreground)); padding: 24px 16px 8px; }

/* ajustes de legibilidade sobre o CSS original */
.santuario .sanctuary-photo-overlay {
  background:
    linear-gradient(90deg, hsl(var(--sanctuary) / .92) 0%, hsl(var(--sanctuary) / .72) 50%, hsl(var(--sanctuary) / .15) 100%),
    linear-gradient(180deg, hsl(var(--sanctuary) / .2) 0%, hsl(var(--sanctuary) / .08) 34%, hsl(var(--sanctuary) / .82) 74%, hsl(var(--sanctuary) / .98) 100%);
}
.btn.landing-secondary { background: hsl(0 0% 100% / .08); border-color: hsl(0 0% 100% / .45); color: #fff; }
.btn.landing-secondary:hover { background: hsl(0 0% 100% / .14); border-color: hsl(var(--accent) / .75); }
#painel-pix, #painel-sucesso { scroll-margin-top: 72px; }

/* ------------------------------------------------ eventos */
.eventos-lista { display: grid; gap: 14px; }
.evento-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; text-decoration: none; color: inherit;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
}
.evento-card.passado { opacity: .72; }
.evento-capa {
  position: relative; min-height: 112px; background: linear-gradient(135deg, hsl(var(--sanctuary)), hsl(224 60% 30%)) center/cover no-repeat;
}
.evento-data {
  position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: center; line-height: 1;
  padding: 6px 8px; border-radius: 10px; background: #fff; color: hsl(var(--primary)); font-size: .7rem; font-weight: 700;
}
.evento-data strong { font-size: 1.3rem; }
.evento-info { padding: 12px 12px 12px 0; }
.evento-info h2 { font-size: 1.05rem; margin-bottom: 4px; }
.selo.foto { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.evento-topo {
  margin-top: 8px; height: 200px; border-radius: 18px;
  background: linear-gradient(135deg, hsl(var(--sanctuary)), hsl(224 60% 30%)) center/cover no-repeat;
}
@media (min-width: 640px) { .evento-topo { height: 280px; } }
.codigo { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: .12em; }

.pacotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.pacote { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1.5px solid hsl(var(--accent) / .45); background: hsl(var(--accent) / .07); }
.pacote .preco { font-size: 1.2rem; font-weight: 700; color: hsl(var(--primary)); }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 640px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
.foto-item {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; cursor: zoom-in;
  background: hsl(var(--muted)) center/cover no-repeat;
}
.foto-item.minha { outline: 3px solid hsl(var(--success)); outline-offset: -3px; }
.foto-item .selo { position: absolute; left: 6px; bottom: 6px; }

/* proteção: sem seleção, sem menu de toque longo, sem arrastar */
.galeria-protegida, .galeria-protegida * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
body.protecao-ativa .foto-item, body.protecao-ativa .lightbox-foto { filter: blur(22px) brightness(.6); transition: filter .05s; }
@media print { .galeria-protegida, .lightbox, .modal { display: none !important; } }

.sem-rolagem { overflow: hidden; }
.lightbox, .modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: hsl(222 47% 6% / .92); padding: 16px;
}
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox { flex-direction: column; gap: 12px; }
.lightbox-foto { width: min(96vw, 1000px); height: min(62vh, 680px); background: center/contain no-repeat; }
.lightbox .fechar, .modal .fechar {
  position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: hsl(0 0% 100% / .14); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.lightbox .nav {
  position: absolute; top: 40%; width: 44px; height: 64px; border: 0; border-radius: 12px; cursor: pointer;
  background: hsl(0 0% 100% / .12); color: #fff; font-size: 2rem;
}
.lightbox .ant { left: 8px; } .lightbox .prox { right: 8px; }
.lightbox-acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; color: #fff; }
.lightbox-acoes a.pequeno { color: hsl(var(--accent)); }
.lb-codigo { width: 100%; text-align: center; font-size: .8rem; color: hsl(0 0% 100% / .65); }
.modal-caixa { position: relative; width: min(420px, 100%); max-height: 94vh; overflow: auto; background: hsl(var(--card)); border-radius: 20px; padding: 20px; }
.modal .modal-caixa .fechar { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.atalhos.seis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .atalhos.seis { grid-template-columns: repeat(3, 1fr); } }
.upload-area { display: block; padding: 28px 16px; text-align: center; border: 2px dashed hsl(var(--primary) / .35); border-radius: 16px; cursor: pointer; background: hsl(var(--primary) / .03); font-weight: 400; }
.upload-area.arrastando { background: hsl(var(--primary) / .1); border-color: hsl(var(--primary)); }
.galeria.admin { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .galeria.admin { grid-template-columns: repeat(5, 1fr); } }
.foto-admin { display: grid; gap: 6px; }
.foto-admin.oculta .foto-item { opacity: .4; }
.subtitulo { font-size: 1rem; margin: 14px 0 8px; }
.itens-pedido { display: grid; gap: 8px; }
.item-pedido { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: #fff; }
.item-pedido .txt { flex: 1; }
.item-pedido .txt strong, .item-pedido .txt small { display: block; }
.item-pedido.esgotado { opacity: .55; }
.stepper { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: hsl(var(--muted)); font-size: 1.2rem; cursor: pointer; color: hsl(var(--primary)); }
.stepper button:disabled { cursor: not-allowed; opacity: .5; }
.stepper input { width: 46px; height: 40px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bloco-form { padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid hsl(var(--border)); }

/* ingresso (tela e impressão) */
.ingressos { display: grid; gap: 16px; }
.ingresso {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: 18px;
  background: #fff; border: 2px dashed hsl(var(--primary) / .35); page-break-inside: avoid; break-inside: avoid; position: relative;
}
.ingresso.usado { opacity: .55; }
.ingresso .tipo { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: hsl(var(--accent) / .18); color: hsl(32 60% 30%); }
.ingresso.refeicao .tipo { background: hsl(var(--success) / .14); color: hsl(158 70% 26%); }
.ingresso h2 { font-size: 1.1rem; margin: 8px 0 4px; }
.ingresso .qr { width: 132px; height: 132px; }
.ingresso .qr svg { width: 100%; height: 100%; display: block; }
.ingresso .cod { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; letter-spacing: .14em; font-weight: 700; }
.ingresso .carimbo { position: absolute; right: 14px; top: 12px; font-weight: 800; color: hsl(0 60% 42%); transform: rotate(-8deg); }
@media (max-width: 380px) { .ingresso { grid-template-columns: 1fr; justify-items: start; } }
@media print {
  .topo, .nav-inferior, .rodape, .nao-imprimir, #toasts { display: none !important; }
  body { background: #fff; padding: 0; }
  .conteudo { max-width: none; padding: 0; }
  .ingresso { border-color: #999; }
}

/* validação na portaria */
.validacao { text-align: center; padding: 22px 16px; border-radius: 20px; color: #fff; margin-bottom: 14px; }
.validacao.ok { background: hsl(158 72% 32%); }
.validacao.usado, .validacao.invalido { background: hsl(0 66% 44%); }
.validacao .grande { font-size: 3rem; line-height: 1; }
.validacao h1 { color: #fff; margin: 8px 0 4px; }
.leitor { width: 100%; max-height: 50vh; border-radius: 16px; background: #000; object-fit: cover; }

/* ------------------------------------------------ comum: avatar, seção */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, hsl(224 72% 42%), hsl(217 80% 58%)); border: 2px solid #fff; box-shadow: 0 1px 4px #0002;
}
.avatar.pequeno { width: 32px; height: 32px; font-size: .75rem; }
.secao-titulo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 26px 0 12px; }
.secao-titulo span { color: hsl(var(--accent)); font-size: 1rem; }
.secao-titulo::after { content: ""; flex: 1; height: 1px; background: hsl(var(--border)); }
.kicker { display: block; color: hsl(var(--accent)); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.icone-btn { border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; padding: 6px; border-radius: 8px; color: hsl(var(--muted-foreground)); }
.icone-btn:hover { background: hsl(var(--muted)); }
.link-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; font: inherit; color: hsl(var(--muted-foreground)); }
.link-btn:hover { color: hsl(var(--primary)); }

/* ------------------------------------------------ campanhas */
.campanha { border-radius: 24px; overflow: hidden; background: hsl(var(--card)); box-shadow: 0 10px 34px -14px hsl(222 47% 11% / .28); margin-bottom: 18px; border: 1px solid hsl(var(--border)); }
.campanha-topo {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 230px; padding: 20px 24px;
  background: hsl(var(--sanctuary)) center/cover no-repeat; color: #fff; text-decoration: none;
}
.campanha-topo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, hsl(222 50% 8% / .85) 100%); }
.campanha-topo > * { position: relative; }
.campanha-chip { background: hsl(222 40% 12% / .75); color: #fff; border: 1px solid hsl(0 0% 100% / .15); }
.campanha-titulo strong { display: block; font-family: Lora, Georgia, serif; font-size: 1.55rem; line-height: 1.2; }
.campanha-titulo span { display: block; color: hsl(0 0% 100% / .82); font-size: .95rem; margin-top: 4px; max-width: 40ch; }
.campanha-corpo { padding: 20px 24px 18px; }
.progresso { background: hsl(var(--muted) / .7); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; }
.kicker-cinza { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.pct { color: hsl(var(--primary)); font-size: 1.15rem; }
.barra { height: 16px; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; margin-top: 10px; }
.barra.pequena { height: 8px; margin: 0 0 2px; }
.barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, hsl(224 72% 42%), hsl(217 80% 70%), hsl(236 60% 50%)); }
.versiculo { font-style: italic; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.doar-agora { min-height: 58px; font-size: 1.1rem; border-radius: 18px; box-shadow: 0 10px 24px -10px hsl(224 72% 42% / .7); }
.compartilhe { margin-top: 16px; }
.redes { display: inline-flex; gap: 8px; }
.rede { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rede svg { width: 22px; height: 22px; }
.rede.whatsapp { background: #25d366; } .rede.facebook { background: #1877f2; } .rede.link { background: hsl(224 72% 42%); }
.rede.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ------------------------------------------------ comunidade na home */
.comunidade-card { border-radius: 24px; overflow: hidden; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: 0 10px 34px -14px hsl(222 47% 11% / .28); }
.comunidade-topo {
  position: relative; padding: 22px 24px; color: #fff;
  background: linear-gradient(90deg, hsl(var(--sanctuary) / .9), hsl(var(--sanctuary) / .55)), var(--com-img, url('/assets/img/hero-santuario.jpg')) center/cover;
}
.comunidade-topo h3 { font-size: 1.6rem; margin: 6px 0 4px; color: #fff; }
.comunidade-topo p { color: hsl(0 0% 100% / .8); max-width: 36ch; }
.kicker-claro { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: hsl(0 0% 100% / .85); }
.total-devotos { position: absolute; right: 16px; top: 16px; padding: 4px 12px; border-radius: 999px; background: hsl(0 0% 100% / .16); border: 1px solid hsl(0 0% 100% / .25); font-size: .85rem; }
.compartilhar-agora { border-radius: 999px; margin-top: 6px; }
.comunidade-rostos { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid hsl(var(--border)); flex-wrap: wrap; }
.rostos { display: inline-flex; }
.rostos .avatar { width: 38px; height: 38px; font-size: .78rem; margin-left: -8px; }
.rostos .avatar:first-child { margin-left: 0; }
.rostos .avatar.mais { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: .7rem; }
.comunidade-compor { display: flex; align-items: center; gap: 12px; padding: 16px 24px; }
.campo-falso {
  flex: 1; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .6);
  color: hsl(var(--muted-foreground)); font: inherit;
}
.campo-falso span { width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); display: inline-flex; align-items: center; justify-content: center; }
.comunidade-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.comunidade-links a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; border-radius: 20px; text-decoration: none; color: inherit;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-card);
}
.comunidade-links .ic { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.comunidade-links .ic.azul { background: hsl(var(--primary) / .1); } .comunidade-links .ic.laranja { background: hsl(32 90% 55% / .15); }
.comunidade-links small { color: hsl(var(--muted-foreground)); font-size: .78rem; }

/* ------------------------------------------------ mural */
.mural-cabecalho { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.mural-icone { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1px solid hsl(var(--border)); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.mural-cabecalho h1 { font-size: 1.8rem; margin: 2px 0 4px; }
.compor-atalho {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px; margin-bottom: 14px; cursor: pointer; text-align: left;
  border-radius: 20px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card);
  font: inherit; font-weight: 600; color: hsl(var(--muted-foreground));
}
.avatar-lapis { width: 42px; height: 42px; border-radius: 50%; background: hsl(var(--muted)); display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--foreground)); }
.abas { display: flex; gap: 4px; overflow-x: auto; padding: 5px; border-radius: 16px; background: hsl(var(--muted)); margin-bottom: 16px; scrollbar-width: none; }
.abas a { flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: hsl(var(--muted-foreground)); font-size: .9rem; white-space: nowrap; }
.abas a.ativa { background: hsl(var(--card)); color: hsl(var(--foreground)); font-weight: 600; box-shadow: 0 1px 4px #0001; }
.post { position: relative; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.post.fixado { border-color: hsl(var(--accent) / .55); box-shadow: 0 0 0 3px hsl(var(--accent) / .12), var(--shadow-card); }
.post.oculto { opacity: .6; }
.post-destaque { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: hsl(32 60% 34%); background: hsl(var(--accent) / .15); border: 1px solid hsl(var(--accent) / .35); }
.post-topo { display: flex; gap: 12px; align-items: flex-start; }
.post-autor { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.post-autor strong { width: 100%; }
.post-menu { display: flex; }
.cat { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; background: hsl(217 80% 58%); }
.cat-oracao { background: hsl(262 60% 58%); } .cat-testemunho { background: hsl(217 80% 55%); } .cat-reflexao { background: hsl(205 75% 48%); }
.post-texto { margin: 12px 0 6px; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.55; }
.post-texto.recolhido { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.post-img { width: 100%; border-radius: 18px; margin-top: 10px; max-height: 520px; object-fit: cover; background: hsl(var(--muted)); }
.post-acoes { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid hsl(var(--border)); }
.reacoes { display: flex; gap: 8px; flex-wrap: wrap; }
.reacao { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .5); cursor: pointer; font: inherit; }
.reacao b { font-weight: 600; color: hsl(var(--muted-foreground)); }
.reacao.ativa { border-color: hsl(var(--primary) / .5); background: hsl(var(--primary) / .08); }
.reacao.ativa b { color: hsl(var(--primary)); }
.comentarios-btn { margin-top: 6px; }
.comentarios { margin-top: 8px; display: grid; gap: 10px; }
.comentario { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: hsl(var(--muted) / .55); font-size: .92rem; }
.comentario > div { flex: 1; }
.comentar { display: flex; gap: 8px; align-items: center; }
.comentar input { flex: 1; border-radius: 999px !important; padding: 10px 14px !important; }
.cats-escolha { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip-opcao input { position: absolute; opacity: 0; }
.chip-opcao span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid hsl(var(--border)); cursor: pointer; font-size: .9rem; }
.chip-opcao input:checked + span { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.chip-opcao input:focus-visible + span { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.lista-membros { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista-membros li { display: flex; align-items: center; gap: 12px; }
.lista-membros small { display: block; }
.ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: hsl(var(--muted) / .5); }
.ranking li.eu { outline: 2px solid hsl(var(--primary) / .4); }
.ranking .pos { width: 34px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.ranking .pontos { font-weight: 700; color: hsl(var(--primary)); }

/* ------------------------------------------------ perfil */
.avatar.com-foto { padding: 0; overflow: hidden; background: hsl(var(--muted)); }
.avatar.com-foto img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grande { width: 120px; height: 120px; font-size: 2.6rem; font-family: Lora, Georgia, serif; border-width: 4px; }
.perfil-btn { display: inline-flex; border-radius: 50%; }
.perfil-btn .avatar { width: 38px; height: 38px; font-size: .85rem; }
.perfil-btn.ativo .avatar { box-shadow: 0 0 0 3px hsl(var(--accent) / .55); }
.perfil-card { position: relative; text-align: center; background: hsl(var(--card)); border-radius: 26px; overflow: hidden; box-shadow: 0 12px 40px -16px hsl(222 47% 11% / .3); padding-bottom: 24px; margin-bottom: 16px; }
.perfil-capa { height: 150px; background: radial-gradient(circle at 92% 8%, hsl(0 0% 100% / .12) 0 60px, transparent 61px), radial-gradient(circle at 6% 100%, hsl(0 0% 100% / .08) 0 70px, transparent 71px), linear-gradient(120deg, hsl(224 72% 42%), hsl(222 60% 52%)); }
.perfil-foto { margin-top: -64px; display: flex; justify-content: center; }
.perfil-foto .avatar { box-shadow: 0 0 0 3px hsl(var(--accent) / .45), 0 8px 20px -8px #0005; }
.perfil-kicker { display: block; margin-top: 12px; font-family: Lora, Georgia, serif; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: hsl(var(--accent)); }
.perfil-card h1 { margin: 6px 0 4px; }
.papel { display: inline-block; padding: 4px 12px; border-radius: 999px; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-weight: 700; font-size: .85rem; margin: 2px; }
.nivel-card { display: flex; align-items: center; gap: 14px; text-align: left; max-width: 320px; margin: 16px auto; padding: 14px 16px; border-radius: 20px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.nivel-emoji { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 4px 12px -4px #0002; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.pct-verde { color: hsl(var(--success)); font-weight: 700; }
.pct-ouro { color: hsl(var(--accent)); font-weight: 700; }
.barra.verde span { background: hsl(var(--success)); }
.editar-perfil { border-radius: 999px; padding-left: 26px; padding-right: 26px; color: hsl(var(--foreground)); }
.grade-atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grade-atalhos a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: hsl(var(--muted) / .55); text-decoration: none; color: inherit; font-size: .85rem; font-weight: 600; text-align: center; }
.grade-atalhos a span { font-size: 1.5rem; }
.badge { position: absolute; top: 6px; right: 10px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: hsl(var(--destructive)); color: #fff; font-size: .7rem; }
.admin-perfil { border-color: hsl(var(--primary) / .25); }
.combo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.combo a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; border: 1.5px dashed hsl(var(--border)); text-decoration: none; color: inherit; font-weight: 600; }
.combo a span { font-size: 1.6rem; filter: grayscale(1); opacity: .6; }
.combo a b { font-size: .78rem; color: hsl(var(--primary)); }
.combo a.feito { border-style: solid; border-color: hsl(var(--success) / .5); background: hsl(var(--success) / .07); }
.combo a.feito span { filter: none; opacity: 1; }
.combo a.feito b { color: hsl(var(--success)); }
.grade-numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grade-numeros { grid-template-columns: repeat(4, 1fr); } }
.grade-numeros div { padding: 12px; border-radius: 14px; background: hsl(var(--muted) / .55); }
.grade-numeros strong { display: block; font-size: 1.25rem; }
.grade-numeros span { font-size: .8rem; color: hsl(var(--muted-foreground)); }
.trofeu { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: hsl(var(--accent) / .8); margin-right: 6px; font-size: 1.1rem; }
.contagem { padding: 4px 12px; border-radius: 999px; background: hsl(var(--accent) / .15); color: hsl(32 60% 34%); font-weight: 700; }
.cat-conquista { font-size: .78rem; letter-spacing: .12em; color: hsl(var(--muted-foreground)); margin: 18px 0 10px; }
.medalhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.medalha { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px; background: hsl(var(--muted) / .6); border: 1px solid hsl(var(--border)); text-align: center; }
.medalha .ic { position: relative; font-size: 1.8rem; filter: grayscale(1); opacity: .55; }
.medalha .ic i { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: .8rem; font-style: normal; filter: none; }
.medalha strong { font-size: .8rem; line-height: 1.2; color: hsl(var(--muted-foreground)); }
.medalha small { font-size: .68rem; color: hsl(var(--muted-foreground)); }
.medalha.ganha { background: #fff; border-color: hsl(var(--accent) / .45); }
.medalha.ganha .ic { filter: none; opacity: 1; }
.medalha.ganha strong { color: hsl(var(--foreground)); }

/* Páginas jurídicas (Termos / Privacidade) */
.juridico-voltar { display: inline-block; color: hsl(var(--foreground)); text-decoration: none; font-size: .95rem; margin: 4px 0 18px; }
.juridico-topo { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.juridico-icone { flex: 0 0 52px; height: 52px; border-radius: 50%; background: hsl(var(--card)); box-shadow: var(--shadow-card); display: grid; place-items: center; color: hsl(var(--primary)); }
.juridico-kicker { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700; color: hsl(var(--accent)); margin-bottom: 4px; }
.juridico-topo h1 { font-size: 1.9rem; margin: 0 0 6px; }
.juridico-topo p { margin: 0; color: hsl(var(--muted-foreground)); }
.juridico-texto { padding: 22px 22px 18px; }
.juridico-texto section + section { margin-top: 18px; }
.juridico-texto h2 { font-family: Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.juridico-texto p { margin: 0 0 6px; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.juridico-texto a { color: hsl(var(--foreground)); }
.juridico-data { margin-top: 20px !important; font-size: .85rem; opacity: .8; }
.juridico-outro { text-align: center; font-size: .9rem; margin: 14px 0 0; }
.rodape .rodape-legal { display: block; margin-top: 6px; font-size: .85em; }

/* Menu do avatar no topo */
.perfil-menu { position: relative; }
.perfil-menu > summary { list-style: none; cursor: pointer; }
.perfil-menu > summary::-webkit-details-marker { display: none; }
.perfil-menu[open] > summary .avatar { box-shadow: 0 0 0 3px hsl(var(--accent) / .55); }
.perfil-menu-caixa {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 230px; max-width: calc(100vw - 24px);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 14px;
  box-shadow: 0 12px 32px -8px hsl(222 40% 15% / .22); padding: 6px; animation: menu-entra .14s ease-out;
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(-4px); } }
.perfil-menu-quem { padding: 10px 12px 10px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 4px; }
.perfil-menu-quem strong { display: block; font-size: .95rem; }
.perfil-menu-quem small { display: block; color: hsl(var(--muted-foreground)); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil-menu-caixa a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: hsl(var(--foreground)); text-decoration: none; font-size: .93rem; }
.perfil-menu-caixa a span { width: 20px; text-align: center; }
.perfil-menu-caixa a:hover, .perfil-menu-caixa a:focus-visible { background: hsl(var(--muted)); outline: none; }
.perfil-menu-caixa .perfil-menu-sair { border-top: 1px solid hsl(var(--border)); border-radius: 0 0 10px 10px; margin-top: 4px; color: hsl(var(--destructive)); }

/* Admin › Usuários */
.filtros-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtros-chips .chip { margin: 0; text-decoration: none; color: hsl(var(--foreground)); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; padding: 7px 12px; }
.filtros-chips .chip b { color: hsl(var(--muted-foreground)); font-weight: 600; }
.filtros-chips .chip.ativo { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.filtros-chips .chip.ativo b { color: #fff; opacity: .85; }
.usuarios-busca { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.usuarios-busca input { flex: 1 1 240px; padding: 10px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; font: inherit; background: hsl(var(--card)); }
.usuarios-lista { display: grid; gap: 10px; }
.usuario-item { display: grid; grid-template-columns: minmax(220px, 1.3fr) 1fr auto; gap: 12px 18px; align-items: center; padding: 14px 16px; margin: 0; }
.usuario-item.bloqueado { opacity: .78; border-left: 4px solid hsl(var(--destructive)); }
.usuario-quem { display: flex; gap: 12px; align-items: center; min-width: 0; }
.usuario-quem .avatar { width: 44px; height: 44px; flex: 0 0 44px; font-size: .9rem; }
.usuario-quem div { min-width: 0; }
.usuario-quem strong { display: block; }
.usuario-quem small { display: block; color: hsl(var(--muted-foreground)); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.usuario-info small { flex-basis: 100%; font-size: .78rem; }
.usuario-motivo { color: hsl(0 60% 38%); }
.usuario-acoes { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.usuario-funcao { display: flex; flex-direction: column; font-size: .72rem; color: hsl(var(--muted-foreground)); gap: 2px; }
.usuario-funcao select { padding: 7px 8px; border-radius: 8px; border: 1px solid hsl(var(--border)); font: inherit; font-size: .85rem; background: hsl(var(--card)); color: hsl(var(--foreground)); }
.selo.funcao-admin { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.selo.funcao-financeiro { background: hsl(42 70% 50% / .18); color: hsl(32 60% 30%); }
.selo.funcao-colaborador { background: hsl(200 60% 50% / .14); color: hsl(200 60% 28%); }
@media (max-width: 760px) {
  .usuario-item { grid-template-columns: 1fr; }
  .usuario-acoes { justify-content: flex-start; }
}

/* Vela acesa (vela-acesa.php) — reaproveita a vela/chama original do santuário */
.vela-palco {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 420px;
  display: grid; grid-template-columns: 200px 1fr; align-items: end; gap: 8px;
  padding: 28px 24px 30px; color: hsl(var(--sanctuary-foreground));
  background: radial-gradient(ellipse at 22% 30%, hsl(38 70% 30% / .55), transparent 60%), linear-gradient(160deg, hsl(222 55% 12%), hsl(224 58% 7%));
  box-shadow: var(--shadow-card); margin-bottom: 14px;
}
.vela-palco-luz { position: absolute; left: 100px; top: 90px; width: 320px; height: 320px; margin: -160px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--flame) / .38), hsl(var(--flame) / .08) 45%, transparent 70%);
  animation: sanctuary-candle-glow 3.4s ease-in-out infinite; pointer-events: none; }
.vela-palco.apagada .vela-palco-luz { display: none; }
.vela-grande { position: relative; height: 330px; width: 200px; display: flex; justify-content: center; align-items: flex-end; filter: drop-shadow(0 16px 18px hsl(var(--sanctuary) / .72)); }
.vela-grande .vela-corpo { position: relative; right: auto; width: 74px; height: calc(250px * var(--altura, 1)); margin-bottom: 14px; transition: height 1s; }
.vela-grande .vela-chama { top: -78px; width: 38px; height: 70px; }
.vela-grande .sanctuary-wick { top: -14px; height: 16px; }
.vela-pires { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, hsl(40 30% 75%), hsl(35 20% 45%) 70%); box-shadow: 0 6px 14px hsl(222 60% 4% / .6); }
.vela-palco.apagada .vela-corpo { filter: saturate(.4) brightness(.8); }
.vela-palco.apagada .sanctuary-wick::after { animation: none; background: hsl(0 0% 20%); box-shadow: none; }
.vela-fumaca { position: absolute; left: 50%; top: -60px; width: 10px; height: 50px; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(0deg, hsl(0 0% 80% / .35), transparent); filter: blur(4px); animation: vela-fumaca 3s ease-in-out infinite; }
@keyframes vela-fumaca { 0% { opacity: 0; transform: translate(-50%, 10px) scaleX(.6); } 40% { opacity: .8; } 100% { opacity: 0; transform: translate(-30%, -30px) scaleX(1.6); } }
.vela-palco-texto { position: relative; z-index: 2; padding-bottom: 10px; }
.vela-palco-texto h1 { color: hsl(var(--sanctuary-foreground)); font-size: 2rem; margin: 10px 0 2px; }
.vela-tipo { margin: 0 0 14px; color: hsl(var(--sanctuary-muted)); }
.vela-intencao { margin: 0; font-family: Lora, Georgia, serif; font-style: italic; font-size: 1.12rem; line-height: 1.55; color: hsl(var(--sanctuary-foreground)); border-left: 3px solid hsl(var(--accent)); padding-left: 14px; }
.vela-intencao.muted-claro { color: hsl(var(--sanctuary-muted)); border-left-color: hsl(var(--accent) / .5); }
.vela-tempo-linha { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid hsl(var(--border)); }
.vela-tempo-linha span { color: hsl(var(--muted-foreground)); }
.vela-barra { height: 8px; border-radius: 999px; background: hsl(var(--muted)); margin-top: 14px; overflow: hidden; }
.vela-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--flame)), hsl(var(--accent))); }
.velas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vela-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 14px; border-radius: 18px; text-decoration: none;
  color: hsl(var(--sanctuary-foreground)); background: linear-gradient(160deg, hsl(222 55% 14%), hsl(224 58% 8%)); box-shadow: var(--shadow-card); }
.vela-mini small { color: hsl(var(--sanctuary-muted)); }
.vela-mini-chama { position: relative; height: 70px; width: 40px; }
.vela-mini-chama .sanctuary-flame { top: 14px; }
.mural a.mural-link { display: flex; gap: 12px; align-items: center; flex: 1; color: inherit; text-decoration: none; }
.mural a.mural-link::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 640px) {
  .vela-palco { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 0; padding-top: 30px; }
  .vela-palco-luz { left: 50%; }
  .vela-grande { height: 300px; }
  .vela-intencao { border-left: 0; padding-left: 0; }
}
.mural li.minha { background: hsl(var(--accent) / .16); box-shadow: inset 3px 0 0 hsl(var(--accent)); }

/* Liturgia diária */
.liturgia-topo { position: relative; overflow: hidden; border-radius: 22px; padding: 24px 22px 18px; margin-bottom: 14px; color: hsl(var(--sanctuary-foreground));
  background: linear-gradient(150deg, hsl(222 55% 14%), hsl(224 58% 8%)); box-shadow: var(--shadow-card); --cor-lit: hsl(var(--accent)); }
.liturgia-topo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--cor-lit); }
.liturgia-topo.cor-verde { --cor-lit: hsl(140 55% 40%); } .liturgia-topo.cor-vermelho { --cor-lit: hsl(0 70% 48%); }
.liturgia-topo.cor-roxo { --cor-lit: hsl(275 45% 48%); } .liturgia-topo.cor-rosa { --cor-lit: hsl(335 65% 68%); } .liturgia-topo.cor-branco { --cor-lit: hsl(45 40% 92%); }
.liturgia-kicker { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; font-weight: 700; color: hsl(var(--accent)); }
.liturgia-topo h1 { color: hsl(var(--sanctuary-foreground)); font-size: 1.65rem; margin: 8px 0 4px; }
.liturgia-celebracao { margin: 0 0 8px; font-family: Lora, Georgia, serif; font-size: 1.08rem; color: hsl(var(--sanctuary-foreground) / .92); }
.liturgia-cor { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: hsl(var(--sanctuary-muted)); }
.liturgia-cor i { width: 12px; height: 12px; border-radius: 50%; background: var(--cor-lit); box-shadow: 0 0 0 2px hsl(0 0% 100% / .25); }
.liturgia-dias { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 16px; }
.liturgia-dias a { color: hsl(var(--sanctuary-foreground)); text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid hsl(0 0% 100% / .2); font-size: .88rem; }
.liturgia-dias a.hoje { background: hsl(var(--accent)); color: hsl(222 50% 12%); border-color: transparent; font-weight: 700; }
.liturgia-escolher { display: flex; justify-content: center; min-width: 0; }
.liturgia-dias a.hoje { grid-column: 1 / -1; order: 4; text-align: center; }
.liturgia-dias a { white-space: nowrap; }
.liturgia-escolher input { width: 100%; max-width: 190px; min-width: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid hsl(0 0% 100% / .2); background: transparent; color: hsl(var(--sanctuary-foreground)); font: inherit; font-size: .85rem; color-scheme: dark; }
.liturgia-indice { position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin-bottom: 6px; background: hsl(var(--background) / .94); backdrop-filter: blur(8px); scrollbar-width: none; }
.liturgia-indice a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); text-decoration: none; font-size: .86rem; font-weight: 600; }
.leitura { scroll-margin-top: 120px; padding: 22px; }
.leitura header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.leitura-rotulo { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; font-weight: 700; color: hsl(var(--accent)); }
.leitura-ref { font-family: Lora, Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.leitura-titulo { margin: 0 0 10px; font-style: italic; color: hsl(var(--muted-foreground)); }
.leitura-refrao { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: hsl(var(--accent) / .14); font-weight: 600; }
.leitura-texto { font-family: Lora, Georgia, serif; font-size: 1.1rem; line-height: 1.8; color: hsl(var(--foreground)); }
.leitura-aclamacao { margin: 14px 0 0; color: hsl(var(--muted-foreground)); font-size: .95rem; }
.leitura-evangelho { border: 1px solid hsl(var(--accent) / .55); box-shadow: 0 0 0 4px hsl(var(--accent) / .08), var(--shadow-card); }
.leitura-evangelho .leitura-rotulo::before { content: "✠ "; }
.leitura.reflexao { background: hsl(var(--accent) / .08); }
.liturgia-acoes { display: grid; gap: 10px; }
.grande-emoji { font-size: 2.6rem; margin: 0; }
.leitura-form { border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 12px 14px 4px; margin: 0 0 12px; }
.leitura-form legend { font-weight: 700; padding: 0 6px; }
.campo-data { padding: 8px 10px; border-radius: 10px; border: 1px solid hsl(var(--border)); font: inherit; }
.liturgia-home { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-bottom: 14px; }
.liturgia-home .em { font-size: 2rem; }
.liturgia-home small { display: block; color: hsl(var(--muted-foreground)); }
.liturgia-home::after { content: "›"; margin-left: auto; font-size: 1.6rem; color: hsl(var(--muted-foreground)); }

/* Local do evento + mapa */
.evento-local-nome { margin: 0; font-weight: 700; }
.evento-local-end { margin: 2px 0 12px; }
.mapa-moldura { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); aspect-ratio: 16 / 10; margin: 8px 0 12px; }
.mapa-moldura iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.evento-local-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media print { .mapa-moldura { display: none; } }

/* ------------------------------------------------ busca de fotos por rosto (selfie) */
.busca-rosto { margin: 6px 0 14px; padding: 14px; border-radius: 14px; border: 1px dashed hsl(var(--primary) / .35); background: hsl(var(--primary) / .04); }
.busca-rosto-topo { display: flex; gap: 12px; align-items: flex-start; }
.busca-rosto-topo strong { display: block; font-size: 1.02rem; }
.busca-rosto-topo small { display: block; margin-top: 2px; }
.busca-rosto-icone { font-size: 1.6rem; line-height: 1; }
.busca-rosto-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.busca-rosto-botoes .btn { flex: 1 1 160px; justify-content: center; }
.busca-rosto.buscando .busca-rosto-botoes .btn { opacity: .6; pointer-events: none; }
.busca-rosto-consent { margin: 10px 0 0; }
.link-sublinhado { text-decoration: underline; color: hsl(var(--primary)); padding: 0; }
.busca-rosto-status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; background: hsl(var(--muted)); }
.busca-rosto-status.erro { background: hsl(var(--destructive) / .1); color: hsl(0 60% 38%); }
.busca-rosto-status.aviso { background: hsl(var(--accent) / .18); color: hsl(32 60% 28%); }
.busca-rosto-status .btn { margin-top: 8px; }
.filtro-rosto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; scroll-margin-top: 80px; }
.filtro-rosto[hidden] { display: none; }
.galeria .foto-item[hidden] { display: none !important; }
.galeria.filtrada .foto-item.parecida { outline: 3px solid hsl(var(--primary)); outline-offset: -3px; }
.galeria.filtrada .foto-item.parecida.minha { outline-color: hsl(var(--success)); }
.termo-rosto { width: min(520px, 100%); }
.termo-rosto h2 { margin-top: 0; padding-right: 36px; }
.termo-rosto ul { padding-left: 18px; font-size: .92rem; }
.termo-rosto li { margin-bottom: 6px; }
.termo-rosto .aceite { align-items: flex-start; font-weight: 600; margin: 12px 0; gap: 10px; flex-wrap: nowrap; }
.termo-rosto .aceite input { margin-top: 3px; flex: none; width: 20px; height: 20px; }
.selfie-caixa h2 { margin-top: 0; }
.selfie-video { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; margin-bottom: 10px; }
.selfie-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.selfie-guia { position: absolute; left: 50%; top: 46%; width: 58%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed hsl(0 0% 100% / .8); border-radius: 50%; pointer-events: none; }
.selo.rostos { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-weight: 600; }
.busca-facial-admin { margin-top: 12px; padding-top: 12px; border-top: 1px solid hsl(var(--border)); }
.btn[hidden] { display: none !important; }

/* ------------------------------------------------ Roteiro do Santuário (check-in por QR Code) */
.roteiro-pagina .roteiro-ponto { padding: 0; overflow: hidden; }
.roteiro-ponto > :not(.roteiro-fotos) { margin-left: 18px; margin-right: 18px; }
.roteiro-ponto > :last-child { margin-bottom: 18px; }
.roteiro-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; background: hsl(var(--muted)); }
.roteiro-fotos img { flex: 0 0 88%; width: 88%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; display: block; }
.roteiro-fotos.uma img { flex-basis: 100%; width: 100%; }
.roteiro-dica-fotos { margin: 6px 0 0; }
.roteiro-titulo { margin-top: 14px; margin-bottom: 8px; }
.roteiro-texto { line-height: 1.6; }
.roteiro-versiculo { margin: 16px 18px 0; padding: 14px 16px; border-left: 4px solid hsl(var(--accent)); border-radius: 0 12px 12px 0; background: hsl(var(--accent) / .1); font-family: Lora, Georgia, serif; font-style: italic; }
.roteiro-versiculo p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.roteiro-versiculo cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.roteiro-checkin { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; margin: 10px 0 14px; background: hsl(var(--muted)); }
.roteiro-checkin.novo { background: linear-gradient(120deg, hsl(152 60% 92%), hsl(48 95% 90%)); animation: roteiro-surge .5s ease-out; }
.roteiro-checkin strong { display: block; font-size: 1.05rem; }
.roteiro-checkin small { display: block; color: hsl(var(--muted-foreground)); }
.roteiro-checkin-pts { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: hsl(152 60% 38%); }
.roteiro-checkin-pts.ja { background: hsl(var(--muted-foreground)); }
@keyframes roteiro-surge { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.roteiro-premio { text-align: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, hsl(45 100% 94%), hsl(36 95% 86%)); border: 1px solid hsl(40 80% 70%); margin-bottom: 14px; }
.roteiro-premio.festa .em { font-size: 2.6rem; }
.roteiro-premio h2 { margin: 4px 0; }
.roteiro-premio-texto { font-weight: 600; }
.roteiro-codigo small { display: block; color: hsl(32 40% 30%); }
.roteiro-codigo strong { display: inline-block; margin: 6px 0; padding: 6px 16px; border-radius: 12px; background: #fff; border: 2px dashed hsl(36 80% 50%); font-size: 1.8rem; letter-spacing: .2em; font-family: ui-monospace, monospace; }
.roteiro-premio-dica { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: hsl(var(--accent) / .14); }
.roteiro-acoes h2 { margin-top: 0; }
.roteiro-acao { padding: 12px 0; border-top: 1px solid hsl(var(--border)); }
.roteiro-acao:first-of-type { border-top: 0; padding-top: 0; }
.roteiro-acao > .linha strong { display: block; }
.roteiro-acao > .linha small { display: block; }
.selo.pts { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); font-size: .85rem; }
.roteiro-redes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; width: 100%; }
.roteiro-redes .rede { width: auto; height: auto; border-radius: 12px; padding: 10px 4px; flex-direction: column; gap: 4px; font: inherit; font-size: .75rem; font-weight: 600; }
.roteiro-redes .rede svg { width: 22px; height: 22px; }
.rede.outros { background: hsl(262 52% 50%); }
.roteiro-foto-escolher { display: block; margin: 10px 0 8px; padding: 14px; border: 2px dashed hsl(var(--border)); border-radius: 12px; text-align: center; font-weight: 600; cursor: pointer; }
.roteiro-foto-escolher input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roteiro-foto-escolher:focus-within { outline: 2px solid hsl(var(--primary)); }
.roteiro-foto-previa { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 8px; border-radius: 12px; }
.roteiro-foto-previa[hidden] { display: none; }
#form-foto textarea { width: 100%; margin-bottom: 8px; }
.roteiro-progresso h2 { font-size: 1.15rem; }
.roteiro-total { font-size: .95rem; color: hsl(var(--muted-foreground)); }
.roteiro-total strong { font-size: 1.4rem; color: hsl(var(--primary)); }
.roteiro-lista { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.roteiro-lista a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: hsl(var(--muted) / .55); color: inherit; text-decoration: none; }
.roteiro-lista li.atual a { outline: 2px solid hsl(var(--primary) / .45); }
.roteiro-lista .marca { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid hsl(var(--border)); display: grid; place-items: center; font-weight: 800; color: #fff; }
.roteiro-lista li.feito .marca { background: hsl(152 60% 38%); border-color: hsl(152 60% 38%); }
.roteiro-lista img, .roteiro-lista .sem-foto { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: hsl(var(--border)); font-size: 1.3rem; }
.roteiro-lista li:not(.feito) img { filter: grayscale(.7); opacity: .75; }
.roteiro-lista .nome strong, .roteiro-lista .nome small { display: block; }
.roteiro-lista .nome small { color: hsl(var(--muted-foreground)); font-size: .8rem; }
.roteiro-convite .em { font-size: 2.4rem; }
.roteiro-como ol { padding-left: 20px; margin-bottom: 0; }
.roteiro-como li { margin-bottom: 6px; }
.roteiro-rk-visitas { display: block; font-weight: 500; font-size: .78rem; }
/* admin */
.stats-roteiro { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-roteiro .cartao { margin: 0; }
.stats-roteiro strong { display: block; font-size: 1.8rem; }
.roteiro-colunas { display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) { .roteiro-colunas { grid-template-columns: 1fr 1fr; } .roteiro-colunas.ponto-admin { grid-template-columns: 1.4fr 1fr; } }
.roteiro-colunas > .cartao { margin: 0; }
.mini-ponto { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fotos-ponto-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.fotos-ponto-admin figure { margin: 0; display: grid; gap: 4px; }
.fotos-ponto-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.qr-ponto { position: sticky; top: 80px; }
.qr-ponto .qr-svg { max-width: 280px; margin: 0 auto; }
.qr-ponto .qr-svg svg { width: 100%; height: auto; display: block; }
.roteiro-acao > .linha { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.roteiro-acao > .linha .selo { flex: none; margin-top: 2px; }

/* ------------------------------------------------ Rádio */
:root { --radio-h: 64px; }
.radio-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); display: inline-grid; place-items: center; font-size: 1.1rem; cursor: pointer; text-decoration: none; padding: 0; position: relative; }
.radio-btn.tocando { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.radio-btn.tocando::after { content: ''; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: hsl(152 70% 45%); border: 2px solid hsl(var(--card)); animation: radio-pulso 1.6s infinite; }
@keyframes radio-pulso { 50% { transform: scale(1.35); opacity: .6; } }
.radio-barra { position: fixed; left: 0; right: 0; z-index: 45; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); height: var(--radio-h);
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: linear-gradient(90deg, hsl(224 64% 22%), hsl(230 55% 32%)); color: #fff; box-shadow: 0 -6px 20px -8px rgb(0 0 0 / .35); }
.radio-barra[hidden] { display: none; }
body.sem-nav .radio-barra { bottom: env(safe-area-inset-bottom); }
@media (min-width: 900px) { .radio-barra { bottom: 0; } }
body.radio-aberta { padding-bottom: calc(var(--nav-h) + var(--radio-h) + env(safe-area-inset-bottom)); }
body.sem-nav.radio-aberta { padding-bottom: var(--radio-h); }
@media (min-width: 900px) { body.radio-aberta { padding-bottom: var(--radio-h); } }
.radio-barra-abrir { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.radio-barra-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.radio-barra-info { flex: 1; min-width: 0; display: block; }
.radio-barra-info strong, .radio-barra-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-barra-info small { opacity: .85; font-size: .78rem; }
.radio-barra-escolha { max-width: 140px; border-radius: 8px; padding: 6px; font-size: .8rem; border: 0; color: hsl(224 64% 22%); background: #fff; }
@media (max-width: 520px) { .radio-barra-escolha { display: none; } }   /* no celular, troca de rádio pela página (toque no nome) */
.radio-play { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: hsl(224 64% 28%); font-size: 1.2rem; font-weight: 800; flex: none; display: grid; place-items: center; padding: 0; }
.radio-play.tocando { background: hsl(45 95% 60%); }
.radio-fechar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; cursor: pointer; flex: none; }
/* moldura: a barra fica por fora e o app abre por dentro */
html.radio-com-moldura, html.radio-com-moldura body { height: 100%; overflow: hidden; padding: 0; margin: 0; }
[data-radio-escondido] { display: none !important; }
.radio-moldura { position: fixed; top: 0; left: 0; width: 100%; height: calc(100% - var(--radio-h) - env(safe-area-inset-bottom)); border: 0; display: block; background: hsl(var(--background)); }
html.radio-com-moldura .radio-barra { bottom: 0; height: calc(var(--radio-h) + env(safe-area-inset-bottom)); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
html.em-moldura .radio-barra { display: none !important; }
/* página da rádio */
.radio-player { text-align: center; padding: 26px 18px; background: linear-gradient(180deg, hsl(224 64% 22%), hsl(230 55% 34%)); color: #fff; }
.radio-player h1 { color: #fff; margin-top: 14px; }
.radio-player .muted { color: rgb(255 255 255 / .8); }
.radio-player-logo { width: 180px; height: 180px; border-radius: 24px; object-fit: cover; background: #fff; box-shadow: 0 14px 34px -12px rgb(0 0 0 / .5); }
.radio-play.grande { width: 84px; height: 84px; font-size: 2rem; margin: 10px auto 6px; }
.radio-player-status { font-weight: 600; min-height: 1.5em; }
.radio-estacoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 16px; }
.radio-estacao { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 2px solid transparent; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; text-align: left; }
.radio-estacao img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; }
.radio-estacao.ativa { border-color: hsl(45 95% 60%); }
.radio-dicas ul { padding-left: 18px; margin-bottom: 0; }
.radio-dicas li { margin-bottom: 6px; }
/* admin */
.radio-modos { display: grid; gap: 8px; }
.radio-modo { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 12px; cursor: pointer; }
.radio-modo:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .05); }
.radio-modo input { margin-top: 4px; }
.radio-modo strong, .radio-modo small { display: block; }
.radio-modo small { color: hsl(var(--muted-foreground)); }
.radio-logo-mini { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.trecho-codigo { white-space: pre-wrap; word-break: break-all; background: hsl(var(--muted)); padding: 12px; border-radius: 10px; font-size: .8rem; }

/* ------------------------------------------------ Transmissões ao vivo */
.aovivo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: hsl(0 78% 50%); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.aovivo-chip .ponto { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: radio-pulso 1.2s infinite; }
@media (max-width: 380px) { .aovivo-chip { padding: 5px 7px; font-size: .65rem; } }
.aovivo-aviso { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; text-decoration: none; color: inherit;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: 0 8px 24px -16px rgb(0 0 0 / .35); }
.aovivo-aviso.no-ar { background: linear-gradient(110deg, hsl(0 75% 45%), hsl(350 70% 38%)); color: #fff; border: 0; }
.aovivo-aviso-icone { font-size: 1.6rem; flex: none; }
.aovivo-aviso.no-ar .aovivo-aviso-icone { animation: radio-pulso 1.4s infinite; }
.aovivo-aviso-texto { flex: 1; min-width: 0; }
.aovivo-aviso-texto small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.aovivo-aviso-texto strong { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aovivo-aviso-acao { flex: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: hsl(var(--primary)); color: #fff; font-size: .85rem; }
.aovivo-aviso.no-ar .aovivo-aviso-acao { background: #fff; color: hsl(0 75% 40%); }
.aovivo-destaque { padding: 0; overflow: hidden; }
.aovivo-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.aovivo-destaque .aovivo-player { border-radius: 0; }
.aovivo-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aovivo-info { padding: 16px 18px 18px; }
.aovivo-info h2 { margin: 8px 0 6px; }
.aovivo-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: hsl(var(--muted)); }
.aovivo-status.no-ar { background: hsl(0 78% 50%); color: #fff; }
.aovivo-status.agendada { background: hsl(var(--accent) / .2); color: hsl(32 60% 28%); }
.aovivo-audio { margin-top: 10px; }
.aovivo-lista { display: grid; gap: 8px; }
.aovivo-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: hsl(var(--muted) / .55); color: inherit; text-decoration: none; }
.aovivo-item.atual { outline: 2px solid hsl(var(--primary) / .45); }
.aovivo-item strong, .aovivo-item small { display: block; }
.aovivo-item small { color: hsl(var(--muted-foreground)); font-size: .8rem; }
.aovivo-item-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--card)); font-size: 1.2rem; }
.aovivo-item-ic.no-ar { background: hsl(0 78% 50%); }
.selo.aovivo { background: hsl(0 78% 50%); color: #fff; }
.aovivo-btn { background: hsl(0 75% 45%); border-color: hsl(0 75% 45%); }
/* topo apertado no celular (selo AO VIVO + 🎧 + saldo + perfil) */
.topo .marca { min-width: 0; flex: 1 1 auto; }
.topo .marca span { min-width: 0; overflow: hidden; }
.topo .marca span, .topo .marca small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.topo-acoes { flex: none; }
@media (max-width: 420px) { .aovivo-chip { padding: 5px 7px; font-size: .62rem; gap: 4px; } .topo-acoes { gap: 6px; } .radio-btn { width: 34px; height: 34px; } }

/* ------------------------------------------------ PWA: instalar o app */
.pwa-faixa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-card); }
.pwa-faixa[hidden] { display: none; }
.pwa-faixa img { border-radius: 12px; flex: none; }
.pwa-faixa-txt { flex: 1; min-width: 0; }
.pwa-faixa-txt strong, .pwa-faixa-txt small { display: block; }
.pwa-faixa-txt small { color: hsl(var(--muted-foreground)); font-size: .8rem; }
.pwa-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: hsl(var(--muted)); cursor: pointer; color: hsl(var(--muted-foreground)); }
.pwa-ios { text-align: center; max-width: 420px; }
.pwa-ios img { border-radius: 16px; }
.pwa-ios ol { text-align: left; padding-left: 20px; }
.pwa-ios li { margin-bottom: 8px; }
.pwa-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-weight: 700; }
[data-pwa-instalar][hidden] { display: none !important; }

/* ------------------------------------------------ temas (Admin › Temas) */
.tema-faixa { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: .92rem; color: hsl(var(--primary-foreground));
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary))); box-shadow: 0 8px 20px -12px hsl(var(--primary) / .8); }
.tema-efeito { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.tema-efeito i { position: absolute; top: -8%; display: block; font-style: normal; line-height: 1; opacity: .85; will-change: transform; }
.tema-efeito--neve i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff9; animation: tema-cair linear infinite; }
.tema-efeito--petalas i { width: 12px; height: 9px; border-radius: 12px 0 12px 0; background: linear-gradient(135deg, #f9c6d9, #f39bbd); animation: tema-cair-gira linear infinite; }
.tema-efeito--estrelas i { top: auto; width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--accent)); box-shadow: 0 0 8px 2px hsl(var(--accent) / .7); animation: tema-piscar ease-in-out infinite; }
.tema-efeito--luzes i { top: auto; bottom: -6%; width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c2, hsl(var(--flame)) 55%, transparent 72%); animation: tema-subir linear infinite; }
@keyframes tema-cair { to { transform: translate3d(30px, 115vh, 0); } }
@keyframes tema-cair-gira { 0% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(-30px, 60vh, 0) rotate(200deg); } 100% { transform: translate3d(25px, 118vh, 0) rotate(400deg); } }
@keyframes tema-piscar { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes tema-subir { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate3d(-20px, -110vh, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tema-efeito { display: none; } }
.tema-previa-aviso { position: fixed; left: 50%; transform: translateX(-50%); top: 8px; z-index: 60; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: #111827; color: #fff; font-size: .85rem; box-shadow: 0 8px 24px -8px #0008; max-width: calc(100% - 16px); }
.tema-previa-aviso a { color: #fde68a; font-weight: 700; white-space: nowrap; }
