/* ============================================================
   SEÇÃO ADEPTOS DA COVA - ESTILOS OFICIAIS
   Identidade: Tema Litúrgico Vinho Seco Fosco & Pedra
   Área Restrita, Proteção Anti-Vazamento e Administração
============================================================ */

/* Cabeçalho da Seção */
.adeptos-hero {
  padding: 120px 0 40px;
  background: radial-gradient(circle at 50% 20%, rgba(92, 20, 30, 0.15) 0%, rgba(11, 9, 11, 0) 70%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.adeptos-hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.adeptos-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.adeptos-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-title);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.adeptos-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Barra de Status de Autenticação */
.auth-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 4px;
  margin-top: 24px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-title);
}

.auth-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(92, 20, 30, 0.3);
  border: 1px solid var(--border-focus);
  color: var(--text-accent);
}

.auth-badge.badge-admin {
  background: #3d0d14;
  border-color: #8c2535;
  color: #ffb8c3;
  font-weight: 600;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-auth-sm {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-auth-sm:hover {
  background: var(--bg-card);
  color: var(--text-title);
  border-color: var(--border-focus);
}

.btn-auth-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--btn-primary-text);
}

.btn-auth-primary:hover {
  background: var(--btn-primary-hover-bg);
  color: #fff;
}

/* Painel de Filtros e Busca */
.adeptos-toolbar {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(43, 23, 28, 0.6);
  margin-bottom: 32px;
}

.search-box-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
}

.search-box-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-title);
  padding: 10px 14px 10px 38px;
  font-size: 0.9rem;
  border-radius: 2px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-title);
}

.filter-btn.active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--text-title);
  font-weight: 500;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 18px;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-title);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Admin Dashboard Bar */
.admin-review-bar {
  background: #140d10;
  border: 1px solid #4a1520;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.admin-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-review-header h4 {
  font-size: 1rem;
  color: #ffc2cc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.admin-stat-item {
  background: #0d080a;
  border: 1px solid #2b171c;
  padding: 8px 12px;
  border-radius: 2px;
  text-align: center;
}

.admin-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
}

.admin-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid de Adeptos */
.adeptos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* Card Individual */
.adepto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.adepto-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: #0f0b0e;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.adepto-card:hover .card-img {
  transform: scale(1.02);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(180deg, #160f13 0%, #0c080a 100%);
  gap: 8px;
}

.card-img-placeholder i {
  font-size: 2.2rem;
  color: #42161f;
}

.card-img-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.card-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.badge-grau {
  background: rgba(18, 14, 17, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-title);
}

.badge-tradicao {
  background: rgba(61, 13, 20, 0.85);
  border: 1px solid #731a28;
  color: #f7e6e9;
}

.badge-status-admin {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-confirmado {
  background: rgba(16, 48, 24, 0.9);
  border: 1px solid #287a3e;
  color: #92e6aa;
}

.badge-sugerido {
  background: rgba(60, 40, 10, 0.9);
  border: 1px solid #9c6c18;
  color: #ffd885;
}

.badge-nao-localizado {
  background: rgba(30, 30, 35, 0.9);
  border: 1px solid #50505c;
  color: #bbb;
}

.card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-dijina {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.card-grau-desc {
  font-size: 0.82rem;
  color: var(--text-accent);
  margin-bottom: 12px;
}

.card-btn {
  margin-top: auto;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.card-btn:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: var(--text-title);
}

/* Estado Vazio / Sem Resultados */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--border-focus);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-title);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 16px;
  font-size: 0.9rem;
}

/* ============================================================
   MODAL DE FICHA INDIVIDUAL & PROTEÇÃO ANTI-VAZAMENTO
============================================================ */
.ficha-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 5, 0.88);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ficha-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ficha-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  border-radius: 4px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

/* Marca d'água anti-vazamento */
.anti-leak-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.07;
  overflow: hidden;
  background-repeat: repeat;
}

/* Proteção contra cópia e seleção */
.protected-content {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.ficha-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.ficha-modal-title {
  font-size: 1.1rem;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ficha-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.ficha-modal-close:hover {
  color: var(--text-title);
}

.ficha-modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  position: relative;
}

@media (max-width: 768px) {
  .ficha-modal-body {
    grid-template-columns: 1fr;
  }
}

.ficha-profile-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ficha-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: #0a0709;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.ficha-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ficha-meta-list {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 2px;
  font-size: 0.85rem;
}

.ficha-meta-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(43, 23, 28, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ficha-meta-list li:last-child {
  border-bottom: none;
}

.ficha-meta-label {
  color: var(--text-muted);
}

.ficha-meta-val {
  color: var(--text-title);
  font-weight: 500;
}

.ficha-content-col {
  display: flex;
  flex-direction: column;
}

.ficha-dijina-main {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-title);
  margin-bottom: 4px;
}

.ficha-grau-main {
  font-size: 0.95rem;
  color: var(--text-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ficha-historico-box {
  background: #0f0b0d;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 18px;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--text-body);
  flex: 1;
}

.ficha-historico-box p {
  margin-bottom: 12px;
}

.ficha-historico-box p:last-child {
  margin-bottom: 0;
}

/* Painel de Controle Administrativo no Modal */
.admin-modal-controls {
  margin-top: 16px;
  background: #180d11;
  border: 1px solid #5c141e;
  padding: 14px;
  border-radius: 3px;
}

.admin-modal-controls h5 {
  font-size: 0.85rem;
  color: #ffb8c3;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.admin-toggle-row:last-child {
  margin-bottom: 0;
}

/* Modal de Login CovaNET */
.login-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  width: 100%;
  max-width: 440px;
  border-radius: 4px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
}

.login-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 8px;
  text-align: center;
}

.login-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-title);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-title);
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  font-family: var(--font-body);
}

.login-form-input:focus {
  border-color: var(--border-focus);
}

.login-alert {
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-alert.alert-error {
  background: rgba(80, 15, 25, 0.4);
  border: 1px solid #731a28;
  color: #ffb8c3;
  display: block;
}

.login-alert.alert-success {
  background: rgba(20, 60, 30, 0.4);
  border: 1px solid #287a3e;
  color: #a8f0be;
  display: block;
}

/* Toast de Aviso de Cópia / Sigilo */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #240a0f;
  border: 1px solid #731a28;
  color: #f7e6e9;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.85rem;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Gerador de PIN Dinâmico de 6 Dígitos (Reseta a cada 3h) */
.pin-display-box {
  background: #140b0f;
  border: 1px dashed #731a28;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.pin-display-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #ffb8c3;
  margin: 8px 0;
  display: block;
  text-shadow: 0 0 10px rgba(196, 100, 112, 0.3);
}

.pin-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #240a0f;
  border: 1px solid #52111b;
  color: #d47e8a;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 3px;
}

.admin-pin-banner {
  background: #1e0d13;
  border: 1px solid #731a28;
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #f7e6e9;
}

/* Regra Estrita de Impressão (Anti-Vazamento) */
@media print {
  .ficha-modal-container,
  .ficha-modal-backdrop,
  .adeptos-grid,
  .anti-leak-watermark,
  .protected-content {
    display: none !important;
  }
  body::after {
    content: "Documento Confidencial - Reprodução não autorizada pelo Templo de Quimbanda Cova de Tiriri e Maria Padilha.";
    display: block;
    text-align: center;
    font-size: 14pt;
    padding: 50px;
  }
}

/* ============================================================
   TIMELINE CANÔNICA DE APRONTAMENTOS LITÚRGICOS
   Apresentação visual rica para eventos, iniciações e facas
============================================================ */
.liturgical-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.liturgical-timeline-title {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: var(--text-title);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-edit-liturgico {
  background: rgba(92, 20, 30, 0.35);
  border: 1px solid #7a1e2b;
  color: #ffb8c3;
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-edit-liturgico:hover {
  background: #5c141e;
  color: #fff;
  border-color: #ff6b81;
}

.liturgical-timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.liturgical-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #8c2535 0%, #3d0d14 60%, rgba(61, 13, 20, 0.2) 100%);
  border-radius: 2px;
}

.timeline-event-card {
  position: relative;
  background: #110c0e;
  border: 1px solid rgba(140, 37, 53, 0.35);
  border-radius: 4px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.2s ease;
}

.timeline-event-card:hover {
  border-color: #8c2535;
  background: #160e11;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Medalhão de Marcador na Linha do Tempo */
.timeline-event-node {
  position: absolute;
  left: -28px;
  top: 16px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #18090c;
  border: 2px solid #8c2535;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #ff8a9c;
  box-shadow: 0 0 10px rgba(140, 37, 53, 0.5);
}

.timeline-event-card:hover .timeline-event-node {
  border-color: #ff6b81;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 107, 129, 0.8);
}

.timeline-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-aprontamento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 2px;
  background: rgba(140, 37, 53, 0.25);
  border: 1px solid #731a28;
  color: #ffb8c3;
}

.timeline-aprontamento-badge.badge-batismo {
  background: rgba(26, 68, 92, 0.3);
  border-color: #21668c;
  color: #8cd8ff;
}

.timeline-aprontamento-badge.badge-iniciacao {
  background: rgba(140, 37, 53, 0.35);
  border-color: #9e2a3c;
  color: #ff99a8;
}

.timeline-aprontamento-badge.badge-faca {
  background: rgba(100, 30, 80, 0.3);
  border-color: #8c2a72;
  color: #f7a8e7;
}

.timeline-aprontamento-badge.badge-sacerdote {
  background: rgba(110, 80, 20, 0.35);
  border-color: #9e731b;
  color: #ffd885;
}

.timeline-aprontamento-badge.badge-mestre {
  background: rgba(120, 20, 20, 0.45);
  border-color: #b82323;
  color: #ff8585;
}

.timeline-date-tag {
  font-size: 0.8rem;
  color: #e6c8ce;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.timeline-event-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #d6cbd0;
  margin-bottom: 10px;
}

.timeline-event-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(60, 30, 36, 0.5);
  padding-top: 8px;
}

.timeline-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b89ca4;
}

.timeline-trad-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 20, 24, 0.6);
  border: 1px solid #4a222a;
  padding: 1px 7px;
  border-radius: 2px;
  color: #d1a8b2;
}

/* ============================================================
   FORMULÁRIO DE EDIÇÃO INLINE DE HISTÓRICO & APRONTAMENTOS
============================================================ */
.ficha-editor-panel {
  background: #11090c;
  border: 1px solid #731a28;
  border-radius: 4px;
  padding: 18px;
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.ficha-editor-title {
  font-size: 1rem;
  font-family: var(--font-heading);
  color: #ffb8c3;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ficha-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ficha-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ficha-edit-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #b89ca4;
  letter-spacing: 0.05em;
}

.ficha-edit-input,
.ficha-edit-select,
.ficha-edit-textarea {
  background: #080507;
  border: 1px solid #4d1c25;
  color: #f7e6e9;
  padding: 7px 10px;
  font-size: 0.88rem;
  border-radius: 2px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.ficha-edit-input:focus,
.ficha-edit-select:focus,
.ficha-edit-textarea:focus {
  border-color: #ff6b81;
  outline: none;
}

.ficha-edit-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
  font-size: 0.88rem;
}

.ficha-editor-helpers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-insert-aprontamento {
  background: rgba(92, 20, 30, 0.3);
  border: 1px dashed #7a1e2b;
  color: #ffb8c3;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-insert-aprontamento:hover {
  background: #5c141e;
  border-style: solid;
  color: #fff;
}

.ficha-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid #361017;
  padding-top: 12px;
}

.btn-save-ficha {
  background: var(--btn-primary-bg);
  border: 1px solid var(--btn-primary-border);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-save-ficha:hover {
  background: #8a1f2e;
}

.btn-cancel-ficha {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-ficha:hover {
  color: var(--text-title);
  border-color: var(--border-focus);
}

/* Badge de Editor no Header */
.auth-badge.badge-editor {
  background: #2b1329;
  border-color: #7b2975;
  color: #f3bdf0;
  font-weight: 600;
}

/* Indicador e Controle de Ocultação */
.badge-oculto-site {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(220, 120, 20, 0.2);
  border: 1px solid #d47a16;
  color: #ffb86c;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 8px;
}

.card-oculto-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(180, 90, 10, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.toggle-ocultar-container {
  background: rgba(40, 16, 22, 0.5);
  border: 1px dashed #7a2230;
  padding: 10px 12px;
  border-radius: 3px;
  margin-top: 10px;
}

.toggle-ocultar-container label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #f7c8d2;
  cursor: pointer;
  font-weight: 500;
}

.toggle-ocultar-container small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================================
   MÓDULO DE CREDENCIAMENTO LITÚRGICO (SACERDOTES & MESTRES)
   Prerrogativas Canônicas, Atendimento Público e Opt-in
============================================================ */
.badge-credenciado-card {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, rgba(82, 18, 28, 0.95), rgba(138, 30, 48, 0.95));
  border: 1px solid #d4af37;
  color: #ffd885;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.badge-credenciado-card i {
  color: #ffd885;
  font-size: 0.75rem;
}

/* Bloco de Credenciamento no Modal da Ficha */
.ficha-credenciamento-box {
  background: radial-gradient(circle at 10% 20%, rgba(92, 20, 30, 0.25) 0%, rgba(17, 9, 12, 0.85) 100%);
  border: 1px solid #731a28;
  border-left: 3px solid #d4af37;
  border-radius: 3px;
  padding: 16px;
  margin-top: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ficha-credenciamento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(115, 26, 40, 0.5);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ficha-credenciamento-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #ffd885;
  letter-spacing: 0.04em;
}

.ficha-credenciamento-toggles {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(10, 5, 7, 0.6);
  padding: 8px 12px;
  border-radius: 3px;
  border: 1px solid rgba(115, 26, 40, 0.4);
  margin-bottom: 12px;
}

.cred-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #f7e6e9;
  cursor: pointer;
}

.cred-toggle-item input[type="checkbox"] {
  accent-color: #d4af37;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.cred-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.cred-meta-item {
  background: rgba(15, 8, 11, 0.7);
  padding: 8px 10px;
  border: 1px solid rgba(77, 28, 37, 0.5);
  border-radius: 2px;
}

.cred-meta-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #b89ca4;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.cred-meta-val {
  color: #fcebed;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-meta-val a {
  color: #ffd885;
  text-decoration: none;
  transition: color 0.2s;
}

.cred-meta-val a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Badges de Prerrogativas Litúrgicas */
.cred-prerrogativas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge-prerrogativa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(43, 14, 20, 0.7);
  border: 1px solid #631823;
  color: #ffc2cc;
}

.badge-prerrogativa.prerrogativa-mestre {
  background: rgba(74, 52, 10, 0.6);
  border-color: #d4af37;
  color: #ffe6a3;
  font-weight: 600;
}

.badge-prerrogativa.disabled {
  opacity: 0.45;
  text-decoration: line-through;
  background: rgba(20, 20, 20, 0.5);
  border-color: #333;
  color: #888;
}

/* Painel de Edição do Credenciamento dentro da Ficha */
.ficha-editor-cred-section {
  background: rgba(20, 10, 14, 0.8);
  border: 1px solid #731a28;
  border-left: 3px solid #d4af37;
  padding: 16px;
  border-radius: 3px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.ficha-editor-cred-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #ffd885;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(115, 26, 40, 0.4);
  padding-bottom: 8px;
}

.mestre-exclusivo-notice {
  font-size: 0.74rem;
  color: #ffd885;
  background: rgba(70, 40, 10, 0.4);
  border: 1px solid #8f6a15;
  padding: 6px 10px;
  border-radius: 2px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sacerdote-restricted-notice {
  font-size: 0.74rem;
  color: #ff99aa;
  background: rgba(70, 15, 25, 0.4);
  border: 1px dashed #7a2230;
  padding: 6px 10px;
  border-radius: 2px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   MODAL DE ELEIÇÃO RÁPIDA DE SACERDOTES EM MASSA
   ========================================================================== */
.mass-cred-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
}

.mass-cred-modal-backdrop.active {
  display: flex;
}

.mass-cred-modal-container {
  background: #15090d;
  border: 1px solid #731a28;
  border-top: 3px solid #d4af37;
  border-radius: 4px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  color: #f7e6e9;
  overflow: hidden;
}

.mass-cred-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(115, 26, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 12, 17, 0.8);
}

.mass-cred-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mass-cred-modal-title h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffd885;
  margin: 0;
  letter-spacing: 0.03em;
}

.mass-cred-modal-title p {
  font-size: 0.78rem;
  color: #c7aeb4;
  margin: 2px 0 0 0;
}

.mass-cred-close-btn {
  background: transparent;
  border: none;
  color: #a89097;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 6px;
}

.mass-cred-close-btn:hover {
  color: #ffd885;
}

.mass-cred-toolbar {
  padding: 12px 20px;
  background: rgba(18, 8, 12, 0.9);
  border-bottom: 1px solid rgba(115, 26, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mass-cred-stats {
  font-size: 0.82rem;
  color: #ffd885;
  display: flex;
  gap: 12px;
}

.mass-cred-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(90vh - 180px);
}

.mass-cred-card {
  background: rgba(22, 11, 15, 0.85);
  border: 1px solid rgba(115, 26, 40, 0.5);
  border-radius: 4px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.mass-cred-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(30, 15, 20, 0.95);
}

.mass-cred-card.is-active-priest {
  border-left: 3px solid #d4af37;
  background: rgba(35, 18, 12, 0.5);
}

.mass-cred-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #731a28;
}

.mass-cred-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(77, 28, 37, 0.6);
  border: 1px solid #731a28;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd885;
  font-size: 1.1rem;
}

.mass-cred-priest-info h4 {
  font-size: 0.92rem;
  color: #f7e6e9;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mass-cred-priest-info span {
  font-size: 0.74rem;
  color: #b59ba2;
  display: block;
  margin-top: 2px;
}

.mass-cred-toggle-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mass-cred-toggle-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #a89097;
  letter-spacing: 0.05em;
}

.mass-cred-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

.mass-cred-switch-wrap input[type="checkbox"] {
  accent-color: #d4af37;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mass-cred-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mass-cred-btn-action {
  background: rgba(43, 14, 20, 0.6);
  border: 1px solid #731a28;
  color: #ffd885;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.mass-cred-btn-action:hover {
  background: #731a28;
  color: #fff;
}

.mass-cred-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(115, 26, 40, 0.6);
  background: rgba(22, 10, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Botão de 1 clique no Card Principal de Adeptos */
.btn-card-quick-cred {
  margin-top: 8px;
  width: 100%;
  padding: 5px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  background: rgba(25, 10, 15, 0.7);
  border: 1px dashed rgba(212, 175, 55, 0.5);
  color: #ffd885;
  font-weight: 500;
}

.btn-card-quick-cred:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #ffd885;
}

.btn-card-quick-cred.is-authorized {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(99, 24, 35, 0.5));
  border: 1px solid #d4af37;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-card-quick-cred.is-authorized:hover {
  background: rgba(115, 26, 40, 0.8);
  border-color: #ff6b81;
  color: #ffccd5;
}
