/* ==========================================================
   NOVA HOMEPAGE WOW FACTOR — ESTÉTICA MODERNA & RESPONSIVA
   Tipografia: Plus Jakarta Sans & Playfair Display
   Fidelidade Estrita ao Mock-up Aprovado
   ========================================================== */

:root,
html[data-tema="claro"],
body[data-tema="claro"] {
  --primary: #005930;
  --primary-dark: #003e22;
  --primary-light: #058248;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --gold: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 89, 48, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html[data-tema="escuro"],
body[data-tema="escuro"] {
  --bg: #090d16;
  --surface: #111827;
  --surface-subtle: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

/* CABEÇALHO NOBRE: Gradiente Invertido Simétrico (Padrão IPB) */
.site-header {
  background: linear-gradient(180deg, #001c0d 0%, #003319 100%) !important;
  color: #ffffff !important;
  padding: 24px 20px 32px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 40, 20, 0.25) !important;
  border-bottom: 3px solid var(--ipb-verde-principal, #005930) !important;
  text-align: center;
}

@media (min-width: 769px) {
  .site-header {
    padding: 30px 48px 40px 48px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

.site-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px auto !important;
  position: relative;
  z-index: 2;
  gap: 14px !important;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* GRUPO LOGO + TEXTO: LADO A LADO PERFEITO E CENTRALIZADO NO CABEÇALHO */
.header-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 14px !important;
  margin: 0 auto !important;
}

.brand-logo-frame {
  width: 78px;
  height: 78px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 3px;
}

.brand-title-row,
.brand-subtitle-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

.brand-title-row h1 {
  display: inline !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #ffffff !important;
  margin: 0 !important;
  text-align: left !important;
}

.brand-subtitle-row p {
  display: inline !important;
  font-size: 0.74rem !important;
  opacity: 0.92;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* BOTÕES DE ATALHOS RÁPIDOS NA PARTE INFERIOR DO CABEÇALHO (EMBAIXO DO LOGO+TEXTO) */
.header-quick-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 auto !important;
  z-index: 5;
}

.cv-btn-conta-destaque {
  border: 1.5px solid #eab308 !important;
  color: #fef08a !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.4) !important;
}

/* Mobile: Alinhamento Nobre em 3 Linhas (Nome, Subtítulo e Linha de Ícones Dedicada) */
@media (max-width: 640px) {
  #view-hub .site-header {
    padding: 8px 12px 8px 12px !important;
  }

  .header-top,
  #view-hub .header-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
  }

  .header-brand,
  #view-hub .header-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .brand-logo-frame {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 8px !important;
    padding: 1px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
    flex-shrink: 0 !important;
  }

  .brand-logo-frame img {
    width: 100% !important;
    height: 100% !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 7px !important;
  }

  .brand-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-align: left !important;
  }

  .brand-title-row h1 {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-align: left !important;
    white-space: normal !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
  }

  .brand-subtitle-row p {
    font-size: 0.60rem !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: normal !important;
    opacity: 0.85 !important;
    margin: 2px 0 0 0 !important;
    letter-spacing: 0.2px !important;
  }

  /* 3ª Linha Dedicada: Ícones e Ações (Fonte A-/A+, Tema, Login, etc.) */
  .cv-header-actions-right-stack,
  #view-hub .cv-header-actions-right-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 2px 0 0 0 !important;
    padding-top: 5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .header-quick-links,
  #view-hub .header-quick-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .cv-admin-header-toolbar,
  #view-hub .cv-admin-header-toolbar {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    margin-top: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .cv-admin-header-toolbar .cv-btn-admin-unified {
    font-size: 0.67rem !important;
    padding: 0 7px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
  }

  /* No mobile, preserva os botões essenciais: A-/A+, Tema, Ajuda/Manuais e Login */
  .header-quick-links #cv-btn-zap-header,
  .header-quick-links #cv-btn-email-header,
  #cv-btn-instalar-pwa-header {
    display: none !important;
  }

  .header-quick-links .icon-action-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.78rem !important;
    padding: 0 !important;
  }

  .header-quick-links .cv-hub-fonte-pill {
    padding: 1px 3px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-quick-links .cv-btn-fonte-step {
    padding: 2px 5px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    min-width: 22px !important;
    height: 24px !important;
    line-height: 24px !important;
  }

  /* Solução 2: Badge Solene Discreto e Elegante (30px) */
  .welcome-banner,
  #view-hub .welcome-banner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 2px 10px !important;
    font-size: 0.68rem !important;
    line-height: 26px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    margin: 2px auto 0 auto !important;
    letter-spacing: 0.01em !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  }

  .welcome-banner .welcome-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
  }

  .welcome-banner span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
  }
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 1rem;
}

.icon-action-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-acervo-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-acervo-pill:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.welcome-banner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.78rem;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
  flex-shrink: 0;
}

/* Selo de Conexão e Estado Offline Claro (WP-04) */
.cv-selo-estado-conexao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 6px auto 0 auto;
  width: fit-content;
  max-width: 90%;
  box-sizing: border-box;
}

.cv-selo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.cv-selo-dot.offline {
  background: #fbbf24;
}

.cv-selo-dot.sincronizando {
  background: #38bdf8;
}

/* BARRA DE ATALHOS RÁPIDOS */
/* BARRA DE ATALHOS RÁPIDOS */
.quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin: 14px auto 16px auto;
  padding: 0 12px;
  max-width: 1200px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  clear: both;
}

.action-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px clamp(10px, 1.8vw, 14px);
  font-size: clamp(0.72rem, 1.8vw, 0.77rem);
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.action-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--primary);
}

.cv-hub-fonte-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex: 0 0 auto;
}

/* Arraste tátil dos botões rápidos (Admin) */
.cv-quick-chip-draggable {
  cursor: grab !important;
  user-select: none;
}

.cv-quick-chip-draggable:active {
  cursor: grabbing !important;
}

.cv-quick-chip-dragging {
  opacity: 0.45 !important;
  transform: scale(0.95) !important;
}

.cv-quick-chip-target {
  outline: 2px dashed var(--ipb-verde-principal, #005930) !important;
  outline-offset: 2px !important;
  background: rgba(0, 89, 48, 0.08) !important;
}

.cv-quick-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  cursor: grab;
  margin-right: 2px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.cv-quick-drag-handle:hover {
  opacity: 1;
  color: var(--ipb-verde-principal, #005930);
}

@media (max-width: 480px) {
  .quick-actions-bar {
    gap: 6px 8px;
    padding: 0 8px;
    margin: 10px auto 14px auto;
  }

  .action-chip {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }
}

@media (min-width: 769px) {
  .quick-actions-bar {
    gap: 10px;
    margin: 14px auto 18px auto;
  }

  .action-chip {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}

/* GRID RESPONSIVO DO CONTEÚDO */
.main-content-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 16px 36px 16px;
}

.cv-hub-col-principal,
.cv-hub-col-lateral {
  display: contents;
}

/* Ordem no Mobile Dinâmica e Customizável com gap uniforme */
.cv-hub-col-principal > *,
.cv-hub-col-lateral > *,
.main-content-grid > article {
  order: var(--hub-mobile-order, 50);
  margin: 0 !important;
}

#cv-ticker-versiculo-hub,
.hero-culto-card,
#cv-card-acervo-biblico-hub,
#cv-card-horarios-hub,
#cv-membro-card-container,
#cv-card-fotos-templo-hub,
#cv-card-contato-hub,
#cv-card-videos-hub,
#cv-card-redes-sociais-hub,
#cv-card-localizacao-hub,
#cv-card-pix-hub {
  order: var(--hub-mobile-order, 50);
  margin: 0 !important;
}

/* Estilos de Drag-and-Drop Exclusivos do Administrador */
.cv-hub-drag-handle {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 28px;
  height: 28px;
  padding: 2px 6px;
  background: rgba(0, 89, 48, 0.12);
  color: var(--primary, #005930);
  border: 1px solid rgba(0, 89, 48, 0.25);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: grab;
  z-index: 20;
  transition: all 0.2s ease;
  user-select: none;
}

.cv-hub-mobile-arrows {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.cv-hub-arrow-btn {
  background: rgba(0, 89, 48, 0.16);
  border: 1px solid rgba(0, 89, 48, 0.35);
  color: var(--primary, #005930);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.cv-hub-arrow-btn:active {
  background: var(--primary, #005930);
  color: #ffffff;
}

.cv-hub-drag-handle:active {
  cursor: grabbing;
  background: var(--primary, #005930);
  color: #ffffff;
}

.cv-hub-card-draggable {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Garante espaço seguro para a alça de mover à esquerda sem sobrepor títulos ou emojis */
.cv-hub-card-draggable .sidebar-header,
.cv-hub-card-draggable .pix-card-header,
.cv-hub-card-draggable .hero-culto-header,
.cv-hub-card-draggable .verse-header {
  padding-left: 38px !important;
}

.cv-hub-card-draggable img,
.cv-hub-card-draggable a,
.cv-hub-card-draggable button {
  -webkit-user-drag: none;
  user-drag: none;
}

.cv-hub-card-draggable.cv-hub-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  box-shadow: 0 12px 32px rgba(0, 89, 48, 0.3);
}

/* Botões de Ação Admin Específicos nos Cards (Alinhados estritamente no Canto Direito) */
.cv-card-admin-action-btn {
  order: 99 !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
  transition: all 0.2s ease !important;
}

.cv-card-admin-action-btn:hover {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  transform: translateY(-1px) !important;
}

[data-tema="escuro"] .cv-card-admin-action-btn,
.cv-dark-mode .cv-card-admin-action-btn {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.55) !important;
}

[data-tema="escuro"] .cv-card-admin-action-btn:hover,
.cv-dark-mode .cv-card-admin-action-btn:hover {
  background: rgba(16, 185, 129, 0.40) !important;
  color: #6ee7b7 !important;
}

.cv-hub-drop-target {
  outline: 2px dashed var(--primary, #005930) !important;
  outline-offset: 4px;
}

/* Toast de Feedback de Salvamento Automático do Hub */
.cv-hub-toast-save {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #064e3b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-hub-toast-save.visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 769px) {
  .main-content-grid {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    padding: 24px 0 60px 0 !important;
    gap: 28px !important;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start !important;
  }

  .cv-hub-col-principal,
  .cv-hub-col-lateral {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .cv-hub-col-principal > *,
  .cv-hub-col-lateral > * {
    margin: 0 !important;
  }

  #cv-ticker-versiculo-hub,
  .hero-culto-card,
  #cv-card-acervo-biblico-hub,
  #cv-membro-card-container,
  #cv-card-contato-hub,
  #cv-card-pix-hub,
  #cv-card-horarios-hub,
  #cv-card-fotos-templo-hub,
  #cv-card-videos-hub,
  #cv-card-redes-sociais-hub,
  #cv-card-localizacao-hub {
    order: unset !important;
  }

  /* Palavra do Dia / Pão Diário ocupa 100% da largura das duas colunas horizontais superiores quando no grid raiz */
  .cv-hub-desktop-grid > #cv-ticker-versiculo-hub,
  .cv-ticker-topo-span {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .cv-hub-col-principal #cv-ticker-versiculo-hub,
  .cv-hub-col-lateral #cv-ticker-versiculo-hub {
    grid-column: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Barra de atalhos rápidos quando dentro do grid */
  .quick-actions-bar,
  #cv-hub-quick-bar-unified {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .cv-hub-col-principal {
    grid-column: 1 !important;
  }

  .cv-hub-col-lateral {
    grid-column: 2 !important;
  }
}

/* Itens de Culto Clicáveis no Card de Horários -> Liturgia Direta */
.cv-horario-clicavel {
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin: -4px -6px;
}

.cv-horario-clicavel:hover {
  background-color: var(--surface-subtle);
  transform: translateX(3px);
}

.cv-horario-clicavel:active {
  transform: scale(0.985);
}

.cv-horario-link-action {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.18s ease;
}

.cv-horario-clicavel:hover .cv-horario-link-action {
  color: var(--primary-hover, #005930);
  text-decoration: underline;
}

[data-tema="escuro"] .cv-horario-clicavel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-tema="escuro"] .cv-horario-link-action {
  color: #10b981;
}

/* CARD HERO DO CULTO DE HOJE */
.hero-culto-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.hero-culto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-culto-header {
  background: linear-gradient(135deg, rgba(0,89,48,0.06) 0%, rgba(16,185,129,0.08) 100%);
  padding: 14px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.culto-badge-live,
.culto-badge-proximo {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
}

.culto-badge-live {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #b91c1c !important;
  animation: pulseLive 2s infinite !important;
}

@keyframes pulseLive {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.culto-badge-live.culto-badge-proximo,
.culto-badge-proximo {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
  box-shadow: none !important;
  animation: none !important;
}

[data-tema="escuro"] .culto-badge-live.culto-badge-proximo,
[data-tema="escuro"] .culto-badge-proximo,
body[data-tema="escuro"] .culto-badge-proximo {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.40) !important;
}

.hero-culto-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.culto-date-edition {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#cv-txt-edicao {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  display: inline-flex !important;
  align-items: center !important;
}
[data-tema="escuro"] #cv-txt-edicao {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.40) !important;
}

#cv-txt-data-domingo,
.cv-txt-data-domingo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: rgba(16, 185, 129, 0.10) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
}
[data-tema="escuro"] #cv-txt-data-domingo,
[data-tema="escuro"] .cv-txt-data-domingo {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

.culto-sermon-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, color 0.2s ease;
  user-select: text;
}

.culto-sermon-title:hover {
  opacity: 0.9;
  color: var(--primary) !important;
}

.culto-sermon-title:active {
  transform: scale(0.99);
}

[data-tema="escuro"] .culto-sermon-title:hover {
  color: #34d399 !important;
}

.culto-sermon-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* BOTÃO PRIMÁRIO DE LEITURA HERO */
.hero-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: auto;
}

@media (max-width: 480px) {
  .hero-culto-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .culto-badge-live,
  .culto-badge-proximo {
    font-size: 0.64rem !important;
    padding: 3px 8px !important;
    letter-spacing: 0.03em !important;
  }
  #cv-txt-data-domingo,
  .cv-txt-data-domingo {
    font-size: 0.67rem !important;
    padding: 2px 7px !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }
  .hero-action-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .hero-culto-header {
    padding: 8px 10px !important;
    gap: 6px 8px !important;
  }
  .culto-badge-live,
  .culto-badge-proximo {
    font-size: 0.60rem !important;
    padding: 2px 6px !important;
  }
  #cv-txt-data-domingo,
  .cv-txt-data-domingo {
    font-size: 0.63rem !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
  }
}

.btn-hero-action {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-hero-action.primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.28) !important;
}

.btn-hero-action.primary .btn-hero-text h4,
.btn-hero-action.primary .btn-hero-text p,
.btn-hero-action.primary span {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 50, 20, 0.35);
}

.btn-hero-action:hover {
  transform: translateY(-2px);
}

.btn-hero-action.primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.38) !important;
  transform: translateY(-2px);
}

.btn-hero-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
}

.btn-hero-text p {
  font-size: 0.68rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* PALAVRA VIVA / PÃO DIÁRIO NOBRE */
.verse-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  margin-top: 20px;
}

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

.verse-pill {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verse-text {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.15rem !important;
  font-style: italic !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
  margin-bottom: 12px;
}

.verse-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  font-style: normal;
}

/* COLUNA LATERAL: HORÁRIOS & ATIVIDADES */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

body[data-tema="escuro"] .card-badge-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

/* ── Pilar Vida da Igreja / Agenda / Comunidade (Acento Azul Celeste / Safira) ── */
.cv-card-eventos-hub {
  border-left: 3.5px solid #0284c7 !important;
}
[data-tema="escuro"] .cv-card-eventos-hub {
  border-left: 3.5px solid #38bdf8 !important;
}

#cv-badge-eventos-igreja,
#cv-badge-mes-aniversariantes {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
}

[data-tema="escuro"] #cv-badge-eventos-igreja,
[data-tema="escuro"] #cv-badge-mes-aniversariantes,
body[data-tema="escuro"] #cv-badge-eventos-igreja,
body[data-tema="escuro"] #cv-badge-mes-aniversariantes {
  background: rgba(2, 132, 199, 0.22) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.40) !important;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sidebar-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.schedule-item.featured {
  background: var(--surface-subtle);
  border-color: var(--border);
}

.schedule-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 48px;
  text-align: center;
}

.time-badge.green {
  background: rgba(0, 89, 48, 0.12);
  border-color: rgba(0, 89, 48, 0.24);
  color: var(--ipb-verde-principal);
}

[data-tema="escuro"] .time-badge.green {
  background: rgba(16, 185, 129, 0.20);
  border-color: rgba(16, 185, 129, 0.38);
  color: #34d399;
}

.schedule-info h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.schedule-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-proximo-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: max-content;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* CARD DE DOAÇÕES E PIX */
.pix-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.06) 0%, rgba(217, 119, 6, 0.02) 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
}

.pix-btn {
  width: 100%;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  transition: all 0.2s;
}

.pix-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

/* FOTO DO TEMPLO E WIDGET DE MAPAS */
.templo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #0f172a;
  cursor: pointer;
}

.templo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
}

.templo-frame img.fade-out {
  opacity: 0.1;
  transform: scale(0.98);
}

.templo-frame:hover img:not(.fade-out) {
  transform: scale(1.02);
}

.templo-expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.templo-expand-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

.templo-dots-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  padding: 3px 6px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

.templo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
}

.templo-dot.active {
  width: 14px;
  border-radius: 999px;
  background: #34d399;
}

.mapa-frame {
  width: 100%;
  height: 175px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
  position: relative;
  background: var(--surface-subtle);
}

.mapa-frame iframe,
.mapa-frame img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* CARDS DE CONTATO HARMONIZADOS (FALE CONOSCO) */
.contato-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .contato-chips-grid {
    grid-template-columns: 1fr;
  }
}

.contato-channel-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contato-channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.contato-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato-channel-icon.zap {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contato-channel-icon.email {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.contato-channel-icon.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
}

.contato-channel-icon.facebook {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.contato-channel-icon.canal-zap {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.contato-channel-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.contato-channel-info h6 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 2px 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contato-channel-info strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ajuste harmonioso para textos mais longos (como e-mail oficial) */
#cv-txt-email-hub {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 521px) and (max-width: 768px) {
  #cv-txt-email-hub {
    font-size: 0.65rem;
  }
}

/* FOTO COMUNHÃO & CULTO */
.comunhao-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  min-width: 0;
}

.comunhao-thumb {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* RODAPÉ ELEGANTE */
.site-footer {
  text-align: center;
  padding: 28px 20px calc(48px + var(--safe-bottom)) 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  background: var(--surface);
}

/* ── EDIÇÃO DIRETA / INLINE NA PÁGINA PARA ADMIN ── */
.cv-editable-host {
  position: relative;
  transition: outline 0.2s ease, background 0.2s ease;
}

.cv-editable-host:hover {
  outline: 1.5px dashed var(--ipb-verde-principal, #005930);
  outline-offset: 3px;
  border-radius: 4px;
}

.cv-inline-edit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--ipb-verde-principal, #005930) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
  vertical-align: middle !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  flex-shrink: 0 !important;
}

.cv-inline-edit-btn:hover {
  transform: scale(1.15) !important;
  background: #007a42 !important;
}

/* Ocultação irrestrita para visitantes e membros comuns */
body:not(.cv-admin-mode-active) .cv-inline-edit-btn,
body:not(.cv-admin-mode-active) .cv-card-admin-action-btn {
  display: none !important;
}

/* Modal tátil de edição rápida inline */
.cv-modal-inline-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cv-modal-inline-edit-overlay.active {
  display: flex;
}

.cv-modal-inline-edit-dialog {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: cvFadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cvFadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cv-inline-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface-subtle, rgba(0, 89, 48, 0.04));
}

.cv-inline-edit-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.cv-inline-edit-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cv-inline-edit-body {
  padding: 18px;
}

.cv-inline-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 0.92rem;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 10px;
  background: var(--surface, #ffffff);
  color: var(--text, #1e293b);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cv-inline-edit-input:focus {
  border-color: var(--ipb-verde-principal, #005930);
  box-shadow: 0 0 0 3px rgba(0, 89, 48, 0.15);
}

.cv-inline-edit-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--surface-subtle, rgba(0, 0, 0, 0.02));
}

.cv-btn-inline-cancel {
  background: transparent;
  border: 1px solid var(--border, #cbd5e1);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.cv-btn-inline-save {
  background: var(--ipb-verde-principal, #005930);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 89, 48, 0.25);
  transition: opacity 0.2s;
}

.cv-btn-inline-save:hover {
  background: #007a42;
}

.cv-btn-inline-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Botão de Atalho + @gmail.com com Alto Contraste */
.cv-btn-sufixo-gmail {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.cv-btn-sufixo-gmail:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

[data-tema="escuro"] .cv-btn-sufixo-gmail,
.cv-dark-mode .cv-btn-sufixo-gmail {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.6) !important;
}

[data-tema="escuro"] .cv-btn-sufixo-gmail:hover,
.cv-dark-mode .cv-btn-sufixo-gmail:hover {
  background: rgba(16, 185, 129, 0.38) !important;
  color: #6ee7b7 !important;
}

/* ── CARDS DO HUB: VÍDEOS YOUTUBE & REDES SOCIAIS / IPB ── */
.cv-videos-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cv-video-item:hover {
  transform: translateY(-2px);
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.cv-video-thumb-frame {
  position: relative;
  width: 96px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cv-video-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.25s ease;
}

.cv-video-item:hover .cv-video-thumb-frame img {
  transform: scale(1.06);
}

.cv-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  padding-left: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cv-video-info {
  flex: 1;
  min-width: 0;
}

.cv-video-info h5 {
  margin: 0 0 3px 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-video-meta {
  font-size: 0.70rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.cv-btn-canal-yt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(204, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cv-btn-canal-yt:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.35);
}

/* Redes Sociais & Portal IPB */
.cv-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-subtle, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, #e2e8f0);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cv-social-btn:hover {
  transform: translateY(-1.5px);
  border-color: var(--ipb-verde-principal, #005930);
  box-shadow: 0 4px 12px rgba(0, 89, 48, 0.1);
}

.cv-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv-social-icon.insta {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: #fff;
}

.cv-social-icon.zap {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
}

.cv-social-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cv-social-text strong {
  font-size: 0.80rem;
  color: var(--text, #1e293b);
}

.cv-social-text span {
  font-size: 0.70rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-social-arrow {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  transition: transform 0.15s ease, color 0.15s ease;
}

.cv-social-btn:hover .cv-social-arrow {
  transform: translateX(3px);
  color: var(--ipb-verde-principal, #005930);
}

.cv-btn-portal-ipb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ipb-verde-profundo, #003d1e);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 61, 30, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cv-btn-portal-ipb:hover {
  transform: translateY(-1.5px);
  background: var(--ipb-verde-escuro, #004022);
}

/* ── Feed de Notícias & Portal da IPB Nacional ── */
.cv-ipb-noticias-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-ipb-noticia-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-subtle, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cv-ipb-noticia-item:hover {
  transform: translateY(-1.5px);
  border-color: var(--ipb-verde-principal, #10b981);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cv-ipb-noticia-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-ipb-noticia-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-ipb-noticia-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-ipb-noticia-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
}

.cv-ipb-noticia-cat {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ipb-verde-principal, #10b981);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.cv-ipb-noticia-data {
  color: var(--text-muted, #94a3b8);
}

.cv-ipb-noticia-titulo {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #1e293b);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-ipb-noticia-autor {
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

