/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
input, textarea, select { user-select: text; font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --gold: #D97706;
  --gold-light: #F59E0B;
  --gold-dark: #B45309;
  --amber: #FBBF24;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --dark4: #2a2a2a;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --text-light: #d1d5db;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --topbar-h: 56px;
  --bottomnav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== HIDDEN UTIL ===== */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ===== SPLASH ===== */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.splash-inner { text-align: center; }
.splash-logo {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 16px;
  animation: pulse-gold 2s ease-in-out infinite;
}
.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 6px;
}
.splash-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.splash-loader {
  width: 40px; height: 40px;
  border: 3px solid var(--dark3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes pulse-gold {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== AUTH ===== */
.auth-screen {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.auth-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.auth-logo { font-size: 48px; color: var(--gold); text-align: center; margin-bottom: 12px; }
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: var(--amber);
  text-align: center; margin-bottom: 4px;
}
.auth-subtitle { color: var(--text-muted); text-align: center; font-size: 14px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 44px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px;
}
.auth-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.auth-switch { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.auth-switch a { color: var(--gold); font-weight: 600; }
.btn-back {
  background: var(--dark3); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.btn-outline {
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-danger {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold {
  background: var(--gold); color: #000;
  font-weight: 700; padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}
.btn-icon-gold {
  background: var(--gold); color: #000;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.btn-icon-sm {
  background: var(--dark3);
  color: var(--text-muted);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.btn-text-gold { color: var(--gold); font-size: 13px; font-weight: 600; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-logout {
  width: 100%; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ===== APP LAYOUT ===== */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--black);
}

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  padding-top: var(--safe-top);
  flex-shrink: 0;
  z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-menu-btn {
  color: var(--text); font-size: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.topbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.topbar-brand i { color: var(--gold); font-size: 18px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-icon-btn {
  position: relative; color: var(--text);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* SIDEBAR */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0.6);
  display: none;
}
.sidebar-overlay.active { display: block; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; z-index: 99;
  background: var(--dark);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  padding-top: var(--safe-top);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.sidebar-menu {
  flex: 1; overflow-y: auto;
  padding: 12px 0;
  list-style: none;
}
.sidebar-menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active-link {
  background: var(--dark3); color: var(--amber);
}
.sidebar-menu li a i { width: 18px; color: var(--gold); }
.admin-link { color: var(--gold) !important; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

/* PAGES */
.pages-container {
  flex: 1; overflow: hidden; position: relative;
}
.page {
  position: absolute; inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px);
}
.page.hidden { display: none; }
.page.active { display: block; }

/* PAGE HEADER */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
  position: sticky; top: 0;
  background: var(--black); z-index: 10;
  border-bottom: 1px solid var(--border);
}
.page-header h2 { font-size: 18px; font-weight: 700; color: var(--amber); }

/* BOTTOM NAV */
.bottom-nav {
  height: var(--bottomnav-h);
  background: var(--dark);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr);
  flex-shrink: 0;
  padding-bottom: var(--safe-bottom);
  z-index: 50;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-muted); font-size: 10px; font-weight: 500;
  transition: color 0.2s;
  padding: 8px 4px;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--gold); }
.nav-item.active i { transform: scale(1.1); }

/* ===== ROLE BADGE ===== */
.role-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.role-admin { background: rgba(239,68,68,0.2); color: #f87171; }
.role-pastor { background: rgba(217,119,6,0.2); color: var(--amber); }
.role-lider { background: rgba(59,130,246,0.2); color: #93c5fd; }
.role-midia { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.role-membro { background: rgba(107,114,128,0.2); color: #9ca3af; }

/* ===== BIRTHDAY BANNER ===== */
.birthday-banner {
  background: linear-gradient(135deg, #1a0f00, #2a1800);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm);
  margin: 12px 12px 0;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--amber);
  font-weight: 500;
}
.birthday-banner i { color: var(--gold); font-size: 18px; flex-shrink: 0; }

/* ===== STORIES BAR ===== */
.stories-bar {
  display: flex; gap: 12px;
  padding: 12px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
}
.story-ring {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  padding: 2px;
}
.story-ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 22px; color: var(--gold);
}
.story-label { font-size: 10px; color: var(--text-muted); max-width: 60px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== NEW POST BAR ===== */
.new-post-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.new-post-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.new-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.new-post-btn {
  flex: 1; background: var(--dark3); border-radius: 20px;
  color: var(--text-muted); font-size: 14px;
  padding: 10px 14px; text-align: left;
  border: 1px solid var(--border);
}
.new-post-media-btn {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px;
}

/* ===== FEED LIST ===== */
.feed-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.feed-end { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; }

/* POST CARD */
.post-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.post-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author { flex: 1; }
.post-author-name { font-size: 14px; font-weight: 600; }
.post-author-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.post-time { font-size: 11px; color: var(--text-muted); }
.post-content { padding: 0 14px 12px; font-size: 14px; line-height: 1.6; color: var(--text-light); }
.post-media { width: 100%; max-height: 360px; object-fit: cover; }
.post-media video { width: 100%; max-height: 360px; }
.post-actions {
  display: flex; align-items: center; gap: 0;
  padding: 4px 8px 8px;
  border-top: 1px solid var(--border);
}
.post-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; padding: 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.post-action-btn.liked { color: var(--gold); }
.post-action-btn i { font-size: 16px; }
.post-category-chip {
  display: inline-flex; align-items: center;
  background: rgba(217,119,6,0.15);
  color: var(--gold); font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase;
}
.post-pending-badge {
  background: rgba(251,191,36,0.15);
  color: var(--amber); font-size: 11px;
  padding: 4px 10px;
  display: flex; align-items: center; gap: 6px;
}
.post-pending-badge i { font-size: 12px; }

/* Post photo count badge */
.post-photo-count {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(217,119,6,0.15);
  color: var(--gold); font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}

/* Botão apagar post */
.post-delete-btn {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.post-delete-btn:hover, .post-delete-btn:active {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}

/* Post highlight (deep link) */
.post-highlight { animation: highlight-pulse 1.5s ease 2; }
@keyframes highlight-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px var(--gold); }
}

/* ===================================================================
   CARROSSEL INSTAGRAM — feed
   =================================================================== */
.post-media-wrap { overflow: hidden; background: var(--dark3); }
.post-media-wrap video {
  width: 100%; max-height: 420px; display: block; background: #000;
}
.post-media-single {
  width: 100%; max-height: 480px;
  object-fit: cover; display: block; cursor: zoom-in;
}

/* Container do carrossel */
.post-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  user-select: none;
  touch-action: pan-y;
  background: var(--dark3);
}

/* Track deslizante */
.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Cada slide ocupa exatamente 100% da largura */
.carousel-slide {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;    /* quadrado, estilo Instagram */
  overflow: hidden;
  background: var(--dark1);
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
  -webkit-user-drag: none;
}

/* Setas de navegação */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.48);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  z-index: 4;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s, background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.carousel-btn:active { background: rgba(0,0,0,0.75); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Dots — centralizados na base */
.carousel-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 4;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.carousel-dot.active {
  background: #fff;
  width: 18px; border-radius: 3px; /* pill ativo — igual Instagram */
}

/* Contador "1 / 4" no canto superior direito */
.carousel-counter {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(0,0,0,0.52);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 12px;
  z-index: 4;
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

/* Badge de álbum no post-card */
.post-album-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.12);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}

/* ===================================================================
   PREVIEW DE UPLOAD NO MODAL — grade de miniaturas
   =================================================================== */

/* Container de preview (substituiu .media-carousel-preview) */
#media-carousel-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

/* Cada miniatura */
.cp-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--dark1);
}
.cp-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cp-thumb-remove {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.72); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; z-index: 2;
}
.cp-thumb-cap {
  position: absolute; bottom: 3px; left: 3px;
  background: var(--gold); color: #000; font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px; letter-spacing: 0.3px;
}

/* Célula "adicionar mais" */
.cp-add-more {
  aspect-ratio: 1/1;
  border-radius: 8px;
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  background: var(--dark3);
}
.cp-add-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--gold); cursor: pointer; background: none; border: none;
  font-size: 11px;
}
.cp-add-btn i { font-size: 20px; }
.cp-count { font-size: 10px; color: var(--text-muted); }

/* Destaque iOS para botão de upload */
.upload-btn-highlight {
  border-color: var(--gold) !important;
  background: rgba(217,119,6,0.14) !important;
  animation: upload-pulse 0.5s ease infinite alternate;
}
@keyframes upload-pulse {
  from { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
  to   { box-shadow: 0 0 0 4px rgba(217,119,6,0.3); }
}

/* Classes antigas mantidas como alias */
.media-carousel-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.carousel-preview-thumb { position: relative; aspect-ratio:1/1; border-radius:8px; overflow:hidden; border:2px solid var(--border); }
.carousel-preview-thumb img { width:100%; height:100%; object-fit:cover; }
.carousel-thumb-remove { position:absolute; top:3px; right:3px; width:22px; height:22px; border-radius:50%; background:rgba(0,0,0,0.72); color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center; }
.carousel-thumb-first { position:absolute; bottom:3px; left:3px; background:var(--gold); color:#000; font-size:9px; font-weight:800; padding:1px 6px; border-radius:4px; }

/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.18s ease;
}
.lightbox-inner {
  width: 100%; max-width: 680px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px;
}
.lightbox-img {
  max-width: 100%; max-height: 88vh;
  object-fit: contain; border-radius: 6px;
  pointer-events: none;
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.13); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.14); color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); z-index: 9999;
  transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.26); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.56); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 5px 16px; border-radius: 14px;
  backdrop-filter: blur(4px); z-index: 9999; letter-spacing: 0.5px;
}
.lightbox-dots {
  position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 9999;
}
.lb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.lb-dot.active { background: #fff; }


/* ===== DEVOCIONAL MODAL TABS ===== */
.dev-modal-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin: 12px 0 8px;
}
.dev-modal-tab {
  flex: 1; padding: 9px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.2s, color 0.2s;
  border: none;
}
.dev-modal-tab.active {
  background: var(--gold); color: #000; font-weight: 700;
}
.sched-info-box {
  background: rgba(217,119,6,0.1);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.5;
}
.sched-info-box i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.sched-info-box code {
  background: var(--dark3); padding: 1px 5px; border-radius: 4px;
  font-size: 11px; color: var(--amber); word-break: break-all;
}

/* Dev admin sub-tabs */
.dev-admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.dev-admin-tab {
  flex: 1; padding: 10px 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.dev-admin-tab.active {
  color: var(--gold); border-bottom-color: var(--gold);
}

/* ===== LOADING ===== */
.loading-spinner { display: flex; justify-content: center; padding: 40px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--dark3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== EVENTS ===== */
.filter-tabs {
  display: flex; gap: 8px;
  padding: 12px 12px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted); padding: 7px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.filter-tab.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

.events-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.event-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; gap: 14px;
}
.event-date-box {
  background: var(--dark3);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0; min-width: 50px;
}
.event-date-day { font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1; }
.event-date-month { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.event-info { flex: 1; }
.event-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.event-meta { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.event-meta i { color: var(--gold); width: 14px; }
.event-category-chip {
  display: inline-flex; align-items: center;
  background: rgba(217,119,6,0.15);
  color: var(--gold); font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase;
  margin-top: 6px;
}
.event-confirm-btn {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--gold-dark);
  color: var(--gold); background: rgba(217,119,6,0.1);
  margin-top: 8px;
}
.event-confirm-btn.confirmed { background: var(--gold-dark); color: #000; }

/* ===== MEMBERS ===== */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--dark2); border-bottom: 1px solid var(--border);
}
.search-bar i { color: var(--text-muted); font-size: 15px; }
.search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 15px;
}
.search-bar input:focus { outline: none; }
.members-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.member-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px; text-align: center;
  cursor: pointer; transition: border-color 0.2s;
}
.member-card:active { border-color: var(--gold); }
.member-card.birthday-today { border-color: var(--gold-dark); background: linear-gradient(135deg, #1a0f00, var(--dark2)); }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; border: 2px solid var(--dark4); }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.member-ministry { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.member-birthday-tag { font-size: 11px; color: var(--amber); font-weight: 600; }

/* ===== CHAT ===== */
.ministry-cards { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; }

/* Rótulo de seção dentro da lista de canais */
.chat-section-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  padding: 12px 4px 4px;
}

/* Card de canal */
.ministry-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.ministry-card:active { border-color: var(--gold); }

/* Destaque visual por tipo */
.chat-type-general  { border-left: 3px solid var(--gold); }
.chat-type-multimidia { border-left: 3px solid #7C3AED; }
.chat-type-department { border-left: 3px solid #3B82F6; }

.ministry-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.ministry-info { flex: 1; min-width: 0; }
.ministry-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.ministry-desc { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Badge de tipo na sala */
.chat-type-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  flex-shrink: 0;
}
.chat-badge-general   { background: rgba(217,119,6,0.18); color: var(--amber); }
.chat-badge-multimidia{ background: rgba(124,58,237,0.18); color: #c4b5fd; }
.chat-badge-department{ background: rgba(59,130,246,0.18); color: #93c5fd; }

/* Sala de chat */
.chat-room {
  position: absolute; inset: 0;
  background: var(--black);
  display: flex; flex-direction: column;
}
.chat-room-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.btn-back-chat {
  color: var(--text); font-size: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-room-name { font-size: 15px; font-weight: 700; }
.chat-room-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Área de mensagens */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}

/* Divisor de data */
.chat-date-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 10px 0 6px;
}
.chat-date-divider span {
  background: var(--dark3); color: var(--text-muted);
  font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 12px;
  border: 1px solid var(--border);
}

/* Linha de mensagem (row = avatar + bubble) */
.chat-msg-row {
  display: flex; align-items: flex-end; gap: 7px;
  max-width: 85%;
}
.chat-msg-row.mine   { align-self: flex-end;  flex-direction: row-reverse; }
.chat-msg-row.theirs { align-self: flex-start; }

.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  margin-bottom: 2px;
}

/* Bubble */
.chat-msg {
  padding: 8px 11px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.4;
  max-width: 100%;
  word-break: break-word;
}
.chat-msg.mine {
  background: var(--gold-dark); color: #000;
  border-bottom-right-radius: 4px;
}
.chat-msg.theirs {
  background: var(--dark3); color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg-sender { font-size: 11px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.chat-msg.mine .chat-msg-sender { color: rgba(0,0,0,0.6); }
.chat-msg-text  { word-break: break-word; }
.chat-msg-time  { font-size: 10px; opacity: 0.55; margin-top: 3px; text-align: right; }

/* Barra de input */
.chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: calc(10px + var(--safe-bottom));
}
.chat-input-wrap {
  flex: 1; background: var(--dark3);
  border: 1px solid var(--border); border-radius: 22px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 6px 0 14px;
}
.chat-input-wrap input {
  flex: 1; background: none; border: none;
  color: var(--text); font-size: 14px;
  padding: 10px 0;
}
.chat-input-wrap input:focus { outline: none; }
.chat-media-btn { color: var(--text-muted); font-size: 16px; padding: 8px; cursor: pointer; }
.chat-send-btn {
  background: var(--gold); color: #000;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* Banner "Somente leitura" quando usuário não pode enviar */
.chat-readonly-banner {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-shrink: 0;
  padding-bottom: calc(12px + var(--safe-bottom));
}
.chat-readonly-banner i { color: var(--gold-dark); }

/* ===== NOTIFICATIONS ===== */
.notifications-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.notif-item.unread { border-left: 3px solid var(--gold); background: linear-gradient(135deg, #1a1200, var(--dark2)); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.notif-icon.birthday { background: rgba(217,119,6,0.2); color: var(--gold); }
.notif-icon.approved { background: rgba(16,185,129,0.2); color: #34d399; }
.notif-icon.rejected { background: rgba(239,68,68,0.2); color: #f87171; }
.notif-icon.event { background: rgba(59,130,246,0.2); color: #93c5fd; }
.notif-icon.system { background: rgba(107,114,128,0.2); color: #9ca3af; }
.notif-body { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.notif-msg { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ===== PROFILE ===== */
.profile-cover {
  background: linear-gradient(180deg, #1a0f00 0%, var(--black) 100%);
  height: 100px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0;
  position: relative;
}
.profile-avatar-wrap {
  position: absolute; bottom: -40px;
  width: 84px; height: 84px;
}
.profile-avatar-wrap img {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--gold);
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  background: var(--gold); color: #000;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer;
}
.profile-body { padding: 52px 16px 16px; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.profile-ministry { font-size: 13px; color: var(--text-muted); margin: 6px 0 12px; }
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 20px;
}
.stat-item {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px; text-align: center;
}
.stat-item span { display: block; font-size: 18px; font-weight: 700; color: var(--amber); }
.stat-item small { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: block; }
.profile-section { margin-bottom: 20px; }
.profile-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.profile-section h3 { font-size: 15px; font-weight: 700; }
.profile-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.profile-bio-edit {
  width: 100%; background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 10px; font-size: 14px; resize: vertical;
}
.profile-info-list { display: flex; flex-direction: column; gap: 10px; }
.profile-info-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.profile-info-item i { color: var(--gold); width: 18px; font-size: 16px; }

/* ===== PROFILE POSTS GRID ===== */
.profile-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.profile-post-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--dark3);
  cursor: pointer;
  overflow: hidden;
}
.profile-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.profile-post-thumb:hover img { transform: scale(1.05); }
.profile-post-thumb-text {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; text-align: center;
  font-size: 11px; color: var(--text-muted); line-height: 1.3;
  background: var(--dark3);
  overflow: hidden;
}
.profile-post-album-icon {
  position: absolute; top: 4px; right: 4px;
  color: #fff; font-size: 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.profile-post-delete {
  position: absolute; bottom: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(239,68,68,0.85);
  color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1.5px solid rgba(255,255,255,0.3);
  opacity: 0; transition: opacity 0.15s;
  z-index: 2;
}
.profile-post-thumb:hover .profile-post-delete { opacity: 1; }

/* ===== BÍBLIA ===== */
.biblia-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow: hidden;
}

.biblia-controls {
  padding: 10px 12px 6px;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.biblia-select-row, .biblia-nav-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.biblia-select {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  flex: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.biblia-select:focus { outline: none; border-color: var(--gold); }
.biblia-select-livro { flex: 2; }
.biblia-select-cap   { flex: 1; max-width: 110px; }

.biblia-reader {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scroll-behavior: smooth;
}

.biblia-chapter-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--dark2), transparent);
  position: sticky;
  top: 0;
  z-index: 2;
}
.biblia-livro-nome {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}
.biblia-cap-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  margin-top: 2px;
}

.biblia-verses {
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.biblia-verse {
  display: flex;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: flex-start;
}
.biblia-verse:hover   { background: rgba(217,119,6,0.07); }
.biblia-verse.selected { background: rgba(217,119,6,0.15); border-left: 3px solid var(--gold); padding-left: 9px; }

.biblia-verse-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  min-width: 22px;
  line-height: 1.8;
  flex-shrink: 0;
}
.biblia-verse-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
  flex: 1;
}

.biblia-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.biblia-nav-btn {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.biblia-nav-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.biblia-nav-btn:disabled { opacity: 0.4; cursor: default; }
.biblia-cap-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
}

/* Modal de versículo */
.biblia-verse-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  animation: slideUp 0.2s ease;
}
.biblia-verse-modal-inner { display: flex; flex-direction: column; gap: 12px; }
.biblia-verse-modal-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.biblia-verse-modal-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
}
.biblia-verse-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.biblia-verse-modal-actions button {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.biblia-verse-modal-actions button:hover { border-color: var(--gold); color: var(--gold); }

/* Barra de busca */
.biblia-search-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.biblia-search-input {
  flex: 1;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
}
.biblia-search-input:focus { outline: none; border-color: var(--gold); }
.biblia-search-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px 8px;
  cursor: pointer;
}
.biblia-search-ref {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 3px;
}
.biblia-highlight {
  background: rgba(217,119,6,0.3);
  color: var(--gold);
  border-radius: 2px;
  padding: 0 2px;
}

/* Tela de vazio / sem arquivos */
.biblia-empty {
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.biblia-empty i { font-size: 48px; color: var(--gold); }
.biblia-empty h3 { font-size: 18px; font-weight: 700; }
.biblia-empty p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.biblia-instrucoes {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  width: 100%;
  max-width: 400px;
}
.biblia-instrucoes ul { padding-left: 16px; margin-top: 6px; }
.biblia-instrucoes li { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.biblia-instrucoes code {
  background: var(--dark4);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--gold);
}

/* ===== ADMIN ===== */
.admin-tabs {
  display: flex; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  padding: 0 4px;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex-shrink: 0; padding: 12px 14px;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.admin-tab-content { padding: 12px; }
.admin-tab-content.hidden { display: none; }
.admin-section-title {
  font-size: 14px; font-weight: 700; color: var(--amber);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* Moderation */
.moderation-list { display: flex; flex-direction: column; gap: 10px; }
.mod-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.mod-card-header { display: flex; align-items: center; gap: 10px; padding: 12px; }
.mod-card-author-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.mod-card-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mod-card-info { flex: 1; }
.mod-card-name { font-size: 13px; font-weight: 600; }
.mod-card-time { font-size: 11px; color: var(--text-muted); }
.mod-card-content { padding: 0 12px 10px; font-size: 13px; color: var(--text-muted); }
.mod-card-media img, .mod-card-media video { width: 100%; max-height: 200px; object-fit: cover; }
.mod-card-actions { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.mod-btn-approve {
  flex: 1; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  color: #34d399; padding: 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}
.mod-btn-reject {
  flex: 1; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 8px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}

/* Admin users */
.admin-users-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.admin-user-item {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.admin-user-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { flex: 1; }
.admin-user-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.admin-user-meta { font-size: 12px; color: var(--text-muted); }
.admin-user-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.btn-change-role {
  background: rgba(217,119,6,0.15); border: 1px solid rgba(217,119,6,0.3);
  color: var(--gold); font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px;
}
.btn-toggle-active {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px;
}
.btn-toggle-active.active { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.btn-toggle-active.inactive { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stat-card-value { font-size: 32px; font-weight: 800; color: var(--amber); }
.stat-card-label { font-size: 12px; color: var(--text-muted); text-align: center; }
.stat-card-icon { font-size: 22px; color: var(--gold); }

/* Admin events list */
.admin-events-list { display: flex; flex-direction: column; gap: 8px; }
.admin-event-item {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.admin-event-date {
  background: var(--dark4); border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm); padding: 6px 10px;
  text-align: center; flex-shrink: 0; min-width: 44px;
}
.admin-event-day { font-size: 18px; font-weight: 700; color: var(--gold); line-height: 1; }
.admin-event-month { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.admin-event-info { flex: 1; }
.admin-event-title { font-size: 14px; font-weight: 600; }
.admin-event-sub { font-size: 12px; color: var(--text-muted); }
.admin-event-actions { display: flex; gap: 6px; }
.btn-icon-edit { background: rgba(217,119,6,0.15); color: var(--gold); border: 1px solid rgba(217,119,6,0.3); width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.btn-icon-delete { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.modal-center-overlay { align-items: center; }
.modal {
  background: var(--dark2);
  width: 100%; max-width: 500px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92vh;
  display: flex; flex-direction: column;
  animation: slideUp 0.3s ease;
}
.modal.modal-center {
  border-radius: var(--radius-lg);
  margin: 20px;
  width: calc(100% - 40px);
}
.modal.modal-tall { max-height: 85vh; }
.modal-slide-up { }
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--amber); }
.modal-close {
  color: var(--text-muted); font-size: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--dark3);
}
.modal-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  padding-bottom: calc(12px + var(--safe-bottom));
}

/* Post modal specifics */
.post-author-info { display: flex; align-items: center; gap: 10px; }
.post-author-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author-info p { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.post-textarea {
  width: 100%; background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 12px; font-size: 15px; resize: vertical; line-height: 1.5;
  min-height: 80px; box-sizing: border-box;
}
.post-textarea:focus { outline: none; border-color: var(--gold); }
.select-sm {
  background: var(--dark4); border: 1px solid var(--border);
  color: var(--text-muted); padding: 4px 8px;
  border-radius: 6px; font-size: 12px;
}
/* Zona container da mídia — nunca colapsa */
#post-media-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.media-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 16px 12px;
  transition: border-color 0.2s;
  display: flex; gap: 12px; justify-content: center;
  box-sizing: border-box;
}
.media-upload-area:hover { border-color: var(--gold); }

/* Botões separados foto / vídeo */
.media-upload-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; max-width: 140px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 8px;
  cursor: pointer; color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  -webkit-appearance: none;
}
.media-upload-btn:hover { border-color: var(--gold); background: var(--dark4); }
.media-upload-btn i { font-size: 22px; }
.media-upload-photo i { color: #60a5fa; }
.media-upload-video i { color: #a78bfa; }
.media-upload-btn span { font-size: 13px; font-weight: 600; color: var(--text); }
.media-upload-btn small { font-size: 11px; color: var(--text-muted); }

.media-upload-label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; color: var(--text-muted);
}
.media-upload-label i { font-size: 28px; color: var(--gold-dark); }
.media-upload-label span { font-size: 14px; }
.media-upload-label small { font-size: 12px; }

/* ── Preview zone (MPZ) — nova área de preview do modal ────── */
#media-preview-zone {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--dark3);
  padding: 10px;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
  box-sizing: border-box;
  /* JS alterna display:flex / display:none */
}

/* Header: label + botão remover */
.mpz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mpz-label {
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
/* Botão "Remover tudo" — vermelho discreto */
.mpz-remove-btn {
  background: rgba(239,68,68,0.10);
  border: 1.5px solid rgba(239,68,68,0.5);
  color: #f87171;
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
  white-space: nowrap;
}
.mpz-remove-btn i { font-size: 12px; }
.mpz-remove-btn:active { background: rgba(239,68,68,0.25); }

/* Foto única grande */
.mpz-single-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--dark1);
}

/* Vídeo */
.mpz-video {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  display: block;
  background: #000;
}

/* Botão "Adicionar mais fotos" (1 foto) — verde */
.mpz-add-more {
  width: 100%;
  padding: 9px;
  background: rgba(16,185,129,0.10);
  border: 1.5px dashed #10b981;
  border-radius: 8px;
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.mpz-add-more i { font-size: 15px; }
.mpz-add-more:active { background: rgba(16,185,129,0.22); }

/* Grade de miniaturas (múltiplas fotos) */
.mpz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mpz-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark1);
}
.mpz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mpz-cap {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}
/* Botão remover miniatura — X branco sobre fundo escuro */
.mpz-thumb-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,0.85);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.mpz-thumb-del:active { background: rgba(239,68,68,1); }

/* Célula "+" verde para adicionar mais fotos na grade */
.mpz-add-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 2px dashed #10b981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #10b981;
  cursor: pointer;
  background: rgba(16,185,129,0.06);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s;
}
.mpz-add-cell i { font-size: 24px; }
.mpz-add-cell:active { background: rgba(16,185,129,0.18); }

/* Mantém estilos antigos para compatibilidade */
.media-preview {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 8px;
  background: var(--dark3);
}
.media-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.media-preview-label { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.remove-media-btn {
  background: transparent; border: 1px solid rgba(239,68,68,0.4); color: #f87171;
  border-radius: 14px; padding: 4px 10px;
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; cursor: pointer;
}
.upload-progress { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.upload-bar-bg { flex: 1; background: var(--dark4); border-radius: 4px; height: 4px; }
.upload-bar { height: 4px; background: var(--gold); border-radius: 4px; transition: width 0.3s; }
.pending-notice {
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  color: var(--amber); padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}

/* Role options */
.role-options { display: flex; flex-direction: column; gap: 10px; }
.role-option { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: background 0.15s; }
.role-option:hover { background: var(--dark3); }
.role-option input { accent-color: var(--gold); }

/* Comments */
.comments-body { padding: 12px !important; display: flex; flex-direction: column; gap: 10px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-bubble { background: var(--dark3); border-radius: 12px 12px 12px 2px; padding: 8px 12px; flex: 1; }
.comment-name { font-size: 12px; font-weight: 600; color: var(--amber); margin-bottom: 3px; }
.comment-text { font-size: 13px; line-height: 1.4; }
.comment-footer { padding: 10px 16px; display: flex; gap: 8px; flex-shrink: 0; padding-bottom: calc(10px + var(--safe-bottom)); }
.comment-footer input {
  flex: 1; background: var(--dark3); border: 1px solid var(--border);
  border-radius: 22px; color: var(--text);
  padding: 10px 14px; font-size: 14px;
}
.comment-footer input:focus { outline: none; border-color: var(--gold); }

/* Member modal */
.member-modal-top { text-align: center; padding: 8px 0 16px; }
.member-modal-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 3px solid var(--gold); }
.member-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-modal-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.member-modal-info { background: var(--dark3); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.member-modal-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.member-modal-row i { color: var(--gold); width: 18px; }
.btn-whatsapp {
  width: 100%; background: #128C7E; color: #fff;
  padding: 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: calc(var(--bottomnav-h) + 16px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--dark3); border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  z-index: 300;
  box-shadow: var(--shadow);
  animation: fadeInOut 3s ease forwards;
}
.toast.success { border-color: rgba(16,185,129,0.5); color: #34d399; }
.toast.error { border-color: rgba(239,68,68,0.5); color: #f87171; }
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state i { font-size: 48px; color: var(--dark4); margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark4); border-radius: 2px; }

/* ===== INSTALL PWA BANNER (Android + iOS) ===== */
.pwa-install-banner {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 10px);
  left: 12px; right: 12px;
  background: linear-gradient(135deg, #1a0d00, var(--dark2));
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 14px 14px 14px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  /* Começa invisível, anima para cima */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.pwa-install-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Versao iOS: aparece na parte de baixo com seta para o botão de compartilhar */
.pwa-install-banner.pwa-ios {
  bottom: 12px;
}
.pwa-ios-arrow {
  position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--gold-dark);
}
.pwa-install-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pwa-install-icon i { color: #000; font-size: 20px; }
.pwa-install-info {
  flex: 1; min-width: 0;
}
.pwa-install-info strong {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.pwa-install-info span {
  font-size: 11px; color: var(--text-muted); line-height: 1.4;
}
.pwa-install-btns {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pwa-btn-install {
  background: var(--gold); color: #000;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.pwa-btn-dismiss {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* Botoes antigos (compatibilidade) */
.btn-install { background: var(--gold); color: #000; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 6px; }
.btn-dismiss { color: var(--text-muted); font-size: 11px; text-align: center; padding: 4px; }

/* ===== BOTTOM NAV 5 ITEMS ===== */
/* já está com grid repeat(5,1fr) no .bottom-nav, ok */

/* ===== DEVOCIONAL ===== */
.devocional-hoje {
  margin: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1a0d00 0%, #0f0800 60%, #0a0a0a 100%);
  border: 1px solid var(--gold-dark);
}
.devocional-hoje-header {
  background: linear-gradient(135deg, var(--gold-dark), #78350f);
  padding: 14px 16px 10px;
  display: flex; align-items: center; gap: 10px;
}
.devocional-hoje-header i { font-size: 22px; color: #000; }
.devocional-hoje-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(0,0,0,0.7); }
.devocional-hoje-title { font-size: 17px; font-weight: 700; color: #000; line-height: 1.3; }

.devocional-verse-box {
  margin: 16px;
  background: rgba(217,119,6,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
}
.devocional-verse-text {
  font-style: italic;
  font-size: 15px;
  color: var(--amber);
  line-height: 1.6;
  margin-bottom: 6px;
}
.devocional-verse-ref {
  font-size: 12px; font-weight: 700;
  color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.devocional-content {
  padding: 4px 16px 16px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  white-space: pre-line;
}
.devocional-content-collapsed {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.devocional-content-collapsed::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(transparent, #0f0800);
}

.devocional-prayer-box {
  margin: 0 16px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.devocional-prayer-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #c4b5fd; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.devocional-prayer-text {
  font-size: 13px; color: #ddd6fe; line-height: 1.6; font-style: italic;
}

.devocional-footer {
  padding: 10px 16px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(217,119,6,0.15);
}
.devocional-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.devocional-author-avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
}
.devocional-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.devocional-actions { display: flex; align-items: center; gap: 8px; }
.devocional-like-btn {
  display: flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-size: 13px;
  background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.2);
  padding: 6px 12px; border-radius: 20px;
  transition: all 0.2s;
}
.devocional-like-btn.liked { color: var(--gold); border-color: var(--gold); background: rgba(217,119,6,0.15); }
.devocional-share-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px;
  background: var(--dark3); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.devocional-share-btn:hover, .devocional-share-btn:active {
  border-color: var(--gold);
  color: var(--gold);
}
.devocional-expand-btn {
  display: block; text-align: center;
  color: var(--gold); font-size: 13px; font-weight: 600;
  padding: 8px; margin: -8px 0 8px;
  cursor: pointer;
}

.devocional-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  padding: 4px 16px 8px;
  margin-top: 4px;
}
.devocional-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.devocional-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  transition: border-color 0.2s;
  display: flex; gap: 12px; align-items: flex-start;
}
.devocional-card:hover { border-color: var(--border); }
.devocional-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
}
.devocional-card-share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.devocional-card-share-btn:hover, .devocional-card-share-btn:active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(217,119,6,0.10);
}
.devocional-card-date {
  background: var(--dark3); border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm); padding: 6px 10px;
  text-align: center; flex-shrink: 0; min-width: 46px;
}
.devocional-card-day { font-size: 20px; font-weight: 700; color: var(--gold); line-height: 1; }
.devocional-card-month { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.devocional-card-info { flex: 1; }
.devocional-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.devocional-card-ref { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.devocional-card-preview { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Devocional detail view (expanded) */
.devocional-detail {
  position: absolute; inset: 0; z-index: 20;
  background: var(--black);
  overflow-y: auto;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.devocional-detail-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.devocional-detail-header h3 { flex: 1; font-size: 16px; font-weight: 700; color: var(--amber); }

/* Birthday WhatsApp button */
.btn-wa-birthday {
  display: inline-flex; align-items: center; gap: 5px;
  background: #128C7E; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 14px;
  text-decoration: none;
}
.btn-wa-birthday i { font-size: 13px; }

/* Admin devocionais list */
.admin-dev-item {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.admin-dev-date {
  background: var(--dark4); border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm); padding: 6px 8px;
  text-align: center; flex-shrink: 0; min-width: 42px;
}
.admin-dev-day { font-size: 16px; font-weight: 700; color: var(--gold); line-height: 1; }
.admin-dev-month { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.admin-dev-info { flex: 1; }
.admin-dev-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.admin-dev-ref { font-size: 11px; color: var(--gold); }
.admin-dev-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.admin-dev-status.published { background: rgba(16,185,129,0.2); color: #34d399; }
.admin-dev-status.draft { background: rgba(107,114,128,0.2); color: #9ca3af; }
