/* =========================================================
   RHEMA WORD MINISTRIES — Design System v2.0
   Inspired by: Elevation Church · The Village Church · Mariners
   ========================================================= */

/* ── Design Tokens ── */
:root {
  /* Backgrounds — near-black editorial (Elevation Church palette) */
  --bg-primary:   #080808;
  --bg-secondary: #0f0f0f;
  --bg-tertiary:  #181818;
  --bg-card:      #111111;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(212, 175, 55, 0.45);
  --border-subtle:rgba(255, 255, 255, 0.04);

  /* Text — warm whites (Village Church warmth) */
  --txt-primary:   #F2F0EB;
  --txt-secondary: #888780;
  --txt-muted:     #7e7d77;

  /* Accent — Ministry Gold */
  --accent:        #d4af37;
  --accent-hover:  #f3cf65;
  --accent-dim:    rgba(212, 175, 55, 0.10);
  --accent-glow:   rgba(212, 175, 55, 0.20);

  /* Status */
  --success: #34c785;
  --danger:  #e64a4a;
  --info:    #3b9fe8;

  /* Typography */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-height: 76px;
  --max-width: 1240px;
  --section-pad: 110px;

  /* Radii — sharp editorial (Elevation) */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 20px;

  /* Transitions & Fluid Motion Springs */
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --spring-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-tight: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-duration-normal: 0.42s;
  --spring-duration-fast: 0.26s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.7);
}

/* ── Light Theme Variables Override ── */
body.light-theme {
  --bg-primary:   #F5F5F3;
  --bg-secondary: #EBEAE4;
  --bg-tertiary:  #DFDDD6;
  --bg-card:      #FFFFFF;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-subtle:rgba(0, 0, 0, 0.05);
  --txt-primary:   #1C1B19;
  --txt-secondary: #6B6963;
  --txt-muted:     #6E6D66;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--txt-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #222; border: 2px solid var(--bg-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Links ── */
a { color: inherit; text-decoration: none; transition: var(--ease); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--txt-primary);
  letter-spacing: -0.02em;
}

/* Elevation-style section overline */
.overline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Horizontal rule accent (Elevation style) */
.title-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.page-desc {
  font-size: 1.1rem;
  color: var(--txt-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--txt-secondary);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Utility ── */
.txt-accent { color: var(--accent) !important; }
.txt-muted  { color: var(--txt-secondary) !important; }

/* ── Card System (flat, editorial — Elevation) ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--ease);
}
.card:hover { border-color: var(--border-hover); }

/* keep legacy class working */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--ease);
}
.glass-card:hover { border-color: rgba(255,255,255,0.12); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
/* Primary gold */
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(212,175,55,0.3);
}
/* Outline ghost */
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--txt-primary);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}
/* Subtle dark */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-color);
  color: var(--txt-primary);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
/* Block */
.btn-block { display: flex; width: 100%; }
/* Small */
.btn-sm { padding: 8px 18px; font-size: 0.76rem; }
/* WhatsApp */
.btn-whatsapp { background-color: #128c7e; color: white; border-color: #128c7e; }
.btn-whatsapp:hover { background-color: #0d7165; box-shadow: 0 4px 16px rgba(18,140,126,0.3); }
/* Danger */
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }

/* ── Layout ── */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 28px;
}
.section-container.tight { padding-top: 48px; padding-bottom: 48px; }

/* ── Tab System ── */
.content-wrapper {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: tabReveal 0.45s cubic-bezier(0.4,0,0.2,1) both; }
@keyframes tabReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-reveal animation targets ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================
   NAVIGATION  — transparent → solid on scroll (Elevation)
   ========================================================== */
.main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.main-header.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-color);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212,175,55,0.3);
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text .subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  margin-top: 3px;
}
/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(242,240,235,0.65);
  padding: 8px 12px;
  position: relative;
  border-radius: var(--radius-xs);
  transition: var(--ease-fast);
}
.nav-link:hover { color: var(--txt-primary); }
.nav-link.active { color: var(--txt-primary); }
/* gold underline on active */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 24px); }

/* Donate CTA button in nav */
.btn-donate-nav {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  margin-left: 6px;
}
.btn-donate-nav:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}
.btn-donate-nav::after { display: none !important; }

/* Admin button */
.btn-admin-gate {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--txt-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--ease);
  margin-left: 4px;
}
.btn-admin-gate:hover {
  color: var(--txt-primary);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* Facebook Nav Button */
.btn-facebook-nav {
  background: transparent;
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #1877f2;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--ease);
  margin-left: 4px;
}
.btn-facebook-nav:hover {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--txt-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease-fast);
  margin-left: 4px;
}
.btn-theme-toggle:hover {
  color: var(--txt-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
body.light-theme .btn-theme-toggle:hover {
  border-color: rgba(0,0,0,0.20);
  background: rgba(0,0,0,0.04);
}
.btn-theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--txt-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================
   HERO — Full-bleed cinematic (Elevation Church)
   ========================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 130px 0 80px;
  margin-top: calc(-1 * var(--nav-height));
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.hero-carousel.initialized .carousel-slide {
  transition: opacity 1.4s ease-in-out;
}
.carousel-slide.active { opacity: 1; }

/* Cinematic overlay — dark at top and heavy at bottom */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.45) 0%,
    rgba(8,8,8,0.20) 40%,
    rgba(8,8,8,0.70) 80%,
    rgba(8,8,8,0.95) 100%
  );
}

/* Hero content */
.hero-overlay-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding: 0 28px;
  margin-bottom: 24px;
}
/* Badge */
.badge-container { margin-bottom: 28px; }
.gold-badge-img {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.5);
  box-shadow: 0 0 30px rgba(212,175,55,0.2);
}

/* Elevation-style headline overline */
.hero-overline {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #fff;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}
/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounceY 2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 16px; height: 16px; }
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
/* Carousel dots */
.carousel-nav {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--ease);
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 3px;
}

/* ==========================================================
   SCRIPTURE HIGHLIGHT — editorial panel (Village Church)
   ========================================================== */
.scripture-highlight-container {
  padding: 0 28px;
  margin-top: 32px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
}
.scripture-card {
  max-width: 820px;
  width: 100%;
  padding: 36px 40px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.scripture-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.scripture-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--txt-primary);
  margin-bottom: 14px;
}
.scripture-card cite {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--txt-secondary);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ==========================================================
   HOME — Feature Grid
   ========================================================== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2px;
}
.grid-card {
  background: var(--bg-card);
  padding: 40px 36px;
  transition: background 0.25s ease;
}
.grid-card:hover { background: var(--bg-tertiary); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 20px; height: 20px; }
.grid-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.grid-card p {
  color: var(--txt-secondary);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.card-link:hover { color: var(--accent-hover); gap: 9px; }
.card-link svg { width: 14px; height: 14px; }

/* ── Home Encounter Teaser (split panel) ── */
.home-encounter-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.teaser-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.teaser-text h2 { font-size: 2.2rem; margin-bottom: 16px; }
.metric-row { display: flex; gap: 36px; margin: 28px 0 36px; }
.metric-box { display: flex; flex-direction: column; }
.metric-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-lbl { font-size: 0.8rem; color: var(--txt-secondary); margin-top: 4px; letter-spacing: 0.05em; }

/* ── Impact Statement Banner ── */
.impact-banner {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 72px 28px;
  text-align: center;
}
.impact-banner h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.impact-banner p {
  color: var(--txt-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
}

/* ==========================================================
   SECTION HEADERS (page-level hero bands)
   ========================================================== */
.section-header-container {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 48px;
  color: #FFFFFF !important;
}
.section-header-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.85) 100%);
  z-index: 0;
}
.section-header-container > * { position: relative; z-index: 1; padding-left: 28px; color: #FFFFFF !important; }
.section-header-container h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF !important;
}
.section-header-container .page-desc {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.about-bio-image {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.bio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(8,8,8,0.92));
}
.bio-overlay h3 { font-size: 1.15rem; margin-bottom: 2px; }
.bio-overlay p  { font-size: 0.82rem; color: var(--txt-secondary); }
.about-bio-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 22px; }
.about-bio-text p  { color: var(--txt-secondary); margin-bottom: 16px; font-size: 0.96rem; line-height: 1.8; }

.social-badge-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--ease);
}
.fb-badge { background: rgba(24,119,242,0.12); border: 1px solid rgba(24,119,242,0.25); color: #4d97f5; }
.fb-badge:hover { background: rgba(24,119,242,0.2); }
.tt-badge { background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); color: var(--txt-primary); }
.tt-badge:hover { background: rgba(255,255,255,0.08); }

/* ── Value Tabs ── */
.tabs-nav-bar {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
}
.value-tab-btn {
  background: transparent;
  border: none;
  color: var(--txt-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  position: relative;
  transition: var(--ease-fast);
  white-space: nowrap;
}
.value-tab-btn:hover, .value-tab-btn.active { color: var(--txt-primary); }
.value-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}
.value-tab-pane { display: none; }
.value-tab-pane.active { display: block; animation: tabReveal 0.4s ease both; }
.pane-content { padding: 48px; text-align: center; }
.pane-large-icon { font-size: 3rem; color: var(--accent); margin-bottom: 24px; width: 52px; height: 52px; }
.pane-content h3 { font-size: 1.8rem; margin-bottom: 16px; }
.pane-text { font-size: 1.2rem; color: var(--txt-secondary); font-style: italic; max-width: 800px; margin: 0 auto; line-height: 1.7; font-weight: 300; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; text-align: left; }
.value-item h4 { color: var(--accent); margin-bottom: 8px; font-size: 1rem; }
.value-item p  { font-size: 0.88rem; color: var(--txt-secondary); line-height: 1.65; }

/* ==========================================================
   PEOPLE'S FOUNDATION
   ========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-card {
  background: var(--bg-card);
  padding: 36px 32px;
  text-align: center;
}
.stat-card:hover { background: var(--bg-tertiary); }
.stat-icon { margin-bottom: 14px; color: var(--accent); }
.stat-icon svg { width: 28px; height: 28px; }
.stat-card h3 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px; }
.stat-card p   { color: var(--txt-secondary); font-size: 0.88rem; }

/* Table */
.table-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.search-box { position: relative; max-width: 300px; width: 100%; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--txt-muted); width: 16px; height: 16px; }
.search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 36px;
  color: var(--txt-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box input::placeholder { color: var(--txt-muted); }

.encounters-table-container { overflow-x: auto; background: var(--bg-secondary); border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.responsive-table { width: 100%; border-collapse: collapse; text-align: left; }
.responsive-table th, .responsive-table td { padding: 18px 22px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; vertical-align: middle; }
.responsive-table th { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--txt-muted); background: var(--bg-tertiary); }
.responsive-table tr:last-child td { border-bottom: none; }
.responsive-table tbody tr { transition: background 0.18s ease; }
.responsive-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-pic-thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--border-color); }
.encounter-title { font-family: var(--font-heading); font-weight: 600; display: block; font-size: 0.95rem; }
.encounter-date  { font-size: 0.78rem; color: var(--txt-secondary); margin-top: 3px; display: block; }
.encounter-cost  { font-family: var(--font-heading); font-weight: 700; color: var(--accent); }
.encounter-story { max-width: 300px; font-size: 0.84rem; color: var(--txt-secondary); line-height: 1.55; }

/* Donation Banner */
.give-callout-card { padding: 52px; text-align: center; border: 1px solid rgba(212,175,55,0.15); background: var(--bg-card); border-radius: var(--radius-sm); }
.give-callout-content h2 { font-size: 2rem; margin-bottom: 14px; }
.give-callout-content p  { color: var(--txt-secondary); max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }

/* ==========================================================
   FOUNDATION ACTS GALLERY
   ========================================================== */
.foundation-gallery-section { padding-top: 24px; }
.outreach-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 24px;
}
.outreach-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  transition: var(--ease);
}
.outreach-card:hover { background: var(--bg-tertiary); }
.outreach-img-wrapper { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.outreach-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.outreach-card:hover .outreach-img-wrapper img { transform: scale(1.05); }
.outreach-overlay { position: absolute; top: 14px; right: 14px; }
.outreach-date {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.outreach-info { padding: 24px; flex-grow: 1; }
.outreach-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.outreach-info p  { font-size: 0.88rem; color: var(--txt-secondary); line-height: 1.6; }

/* ==========================================================
   BLOG / WEEKLY WORD
   ========================================================== */
.blog-feed-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.blog-articles-area .area-title { margin-bottom: 28px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; color: var(--txt-secondary); }
.articles-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.blog-card { background: var(--bg-card); padding: 32px; display: flex; flex-direction: column; gap: 10px; transition: background 0.2s ease; }
.blog-card:hover { background: var(--bg-tertiary); }
.blog-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--txt-muted); letter-spacing: 0.04em; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.blog-card p  { color: var(--txt-secondary); font-size: 0.92rem; line-height: 1.7; }
.btn-read-more { align-self: flex-start; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-read-more:hover { color: var(--accent-hover); }
/* Sidebar */
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 26px; margin-bottom: 1px; }
.sidebar-card h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt-secondary); margin-bottom: 18px; }
.scripture-stream { display: flex; flex-direction: column; gap: 16px; }
.sidebar-scripture-item { border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.sidebar-scripture-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-scripture-item .date-lbl { font-size: 0.72rem; color: var(--accent); font-weight: 600; display: block; letter-spacing: 0.08em; text-transform: uppercase; }
.sidebar-scripture-item blockquote { font-size: 0.88rem; color: var(--txt-primary); font-style: italic; margin: 6px 0; line-height: 1.5; }
.sidebar-scripture-item cite { font-size: 0.78rem; color: var(--txt-secondary); font-style: normal; }

/* ==========================================================
   EVENTS
   ========================================================== */
.events-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.events-main-feed .area-title { margin-bottom: 28px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; color: var(--txt-secondary); }
.events-cards-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.event-card {
  background: var(--bg-card);
  padding: 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
  transition: background 0.2s ease;
}
.event-card:hover { background: var(--bg-tertiary); }
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  height: 72px;
  border-radius: var(--radius-xs);
  text-align: center;
}
.date-badge-day   { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.date-badge-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-secondary); }
.event-info h3 { font-size: 1.2rem; margin-bottom: 7px; letter-spacing: -0.01em; }
.event-details-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--txt-secondary); margin-bottom: 10px; }
.event-details-row span { display: flex; align-items: center; gap: 4px; }
.event-info p { color: var(--txt-secondary); font-size: 0.88rem; }

/* Calendar */
.calendar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 24px; }
.calendar-header { margin-bottom: 16px; text-align: center; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-muted); margin-bottom: 8px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-days div { font-size: 0.82rem; padding: 8px 2px; border-radius: var(--radius-xs); color: var(--txt-secondary); transition: var(--ease-fast); }
.calendar-days div.has-event { background: var(--accent-dim); color: var(--accent); font-weight: 700; border: 1px solid rgba(212,175,55,0.25); }
.calendar-days div.empty-day { visibility: hidden; }
.calendar-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.78rem; color: var(--txt-secondary); border-top: 1px solid var(--border-color); padding-top: 14px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ==========================================================
   GIVE / DONATE
   ========================================================== */
.give-portal-grid { display: grid; grid-template-columns: 1fr 0.88fr; gap: 56px; align-items: start; }
.give-card-info h2 { font-size: 2.2rem; margin-bottom: 18px; }
.give-card-info p  { color: var(--txt-secondary); margin-bottom: 26px; line-height: 1.75; }
.give-scripture { padding: 22px 24px; background: var(--bg-secondary); border-left: 2px solid var(--accent); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; margin-bottom: 34px; }
.give-scripture blockquote { font-style: italic; font-size: 0.97rem; margin-bottom: 7px; color: var(--txt-primary); line-height: 1.6; }
.payment-channels h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt-secondary); margin-bottom: 12px; font-weight: 700; }
.channel-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-tag { font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 3px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); letter-spacing: 0.04em; }
.pay-tag.ecocash { color: #22b89e; border-color: rgba(34,184,158,0.35); }
.pay-tag.onemoney { color: #00b4d8; border-color: rgba(0,180,216,0.35); }
.pay-tag.paynow   { color: #f3c948; border-color: rgba(243,201,72,0.35); }
.pay-tag.card     { color: var(--txt-primary); }

/* Giving Placard Card */
.giving-placard-card {
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius-sm);
  padding: 36px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.placard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.placard-header h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.placard-subtitle {
  font-size: 0.92rem;
  color: var(--txt-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.placard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .placard-grid { grid-template-columns: 1fr; }
}
.placard-channel-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--ease-fast);
}
.placard-channel-card:hover {
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.02);
}
.channel-icon-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(212,175,55,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon.ecocash-icon {
  background: rgba(34,184,158,0.12);
  border-color: #22b89e;
  color: #22b89e;
}
.channel-icon-header h4 {
  font-size: 1.05rem;
  margin: 0 0 3px;
}
.channel-tag {
  font-size: 0.72rem;
  color: var(--txt-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.channel-tag.ecocash-tag {
  color: #22b89e;
}
.channel-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.data-label {
  color: var(--txt-muted);
}
.data-val {
  color: var(--txt-primary);
  font-weight: 600;
}
.data-val.highlight-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.btn-copy-channel {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--txt-primary);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--ease-fast);
}
.btn-copy-channel:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-copy-channel.copied {
  background: rgba(37,211,102,0.15);
  border-color: #25d366;
  color: #25d366;
}
.placard-notice-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notice-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.notice-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--txt-primary);
  margin-bottom: 3px;
}
.notice-item p {
  font-size: 0.84rem;
  color: var(--txt-secondary);
  line-height: 1.5;
  margin: 0;
}
.notice-actions {
  display: flex;
  justify-content: flex-end;
}

/* Form Styles */
.give-form-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 36px;
}
.give-form-card h3, .contact-form-card h3 { margin-bottom: 26px; font-size: 1.3rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-secondary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  color: var(--txt-primary);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--txt-muted); }
.form-group select option { background: var(--bg-secondary); }
.form-group-row { display: flex; gap: 12px; margin-bottom: 18px; }
.giving-type-btn {
  flex: 1;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 12px;
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-secondary);
}
.giving-type-btn input { display: none; }
.giving-type-btn.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.currency-input { position: relative; }
.currency-input .input-symbol { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--txt-secondary); font-weight: 600; font-size: 0.9rem; }
.currency-input input { padding-left: 28px; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.preset-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--txt-secondary);
  padding: 9px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--ease-fast);
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.preset-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Dual CTA buttons */
.giving-cta-buttons { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================
   CONNECT / CONTACT
   ========================================================== */
.contact-info-grid { display: grid; grid-template-columns: 1fr 0.88fr; gap: 56px; align-items: start; }
.contact-card-info h2 { font-size: 2.2rem; margin-bottom: 26px; }
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center; }
.info-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 18px; height: 18px; }
.info-detail h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.info-detail p  { font-size: 0.85rem; color: var(--txt-secondary); }
.contact-link { font-size: 0.88rem; color: var(--accent); }
.contact-link:hover { color: var(--accent-hover); text-decoration: underline; }
/* WhatsApp Callout */
.whatsapp-callout-box {
  padding: 28px;
  margin-top: 36px;
  border: 1px solid rgba(18,140,126,0.2);
  background: rgba(18,140,126,0.04);
  border-radius: var(--radius-sm);
}
.wa-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wa-icon { color: #25d366; width: 22px; height: 22px; }
.whatsapp-callout-box p { font-size: 0.88rem; color: var(--txt-secondary); margin-bottom: 18px; }
.wa-box-inputs textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  color: var(--txt-primary);
  resize: vertical;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.wa-box-inputs textarea:focus { outline: none; border-color: #25d366; }

/* ==========================================================
   ADMIN OVERLAYS
   ========================================================== */
.admin-overlay {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.92);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  transition: opacity var(--spring-duration-normal) var(--spring-ease), visibility var(--spring-duration-normal) var(--spring-ease);
}
.admin-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.admin-dialog, .admin-overlay .glass-card {
  transform: scale(0.92) translateY(24px);
  opacity: 0;
  transition: transform var(--spring-duration-normal) var(--spring-bounce), opacity var(--spring-duration-normal) var(--spring-ease);
}
.admin-overlay.active .admin-dialog,
.admin-overlay.active .glass-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.admin-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-width: 440px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; }
.btn-close-dialog { background: transparent; border: none; color: var(--txt-secondary); cursor: pointer; transition: var(--ease-fast); }
.btn-close-dialog:hover { color: var(--txt-primary); }
.dialog-info { font-size: 0.88rem; color: var(--txt-secondary); margin-bottom: 24px; }
.error-msg { color: var(--danger); font-size: 0.82rem; margin-bottom: 16px; }

/* Dashboard */
.admin-dashboard { width: 100%; max-width: 1100px; height: 86vh; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.dash-tab-pane { display: none; }
.dash-tab-pane.active { display: block; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 30px; border-bottom: 1px solid var(--border-color); }
.status-indicator { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--success); font-weight: 700; display: inline-block; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.dashboard-grid-layout { display: grid; grid-template-columns: 220px 1fr; flex-grow: 1; height: calc(100% - 88px); }
.dashboard-sidebar { border-right: 1px solid var(--border-color); padding: 20px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--bg-secondary); }
.dash-tab-btn { text-align: left; background: transparent; border: none; color: var(--txt-secondary); font-family: var(--font-heading); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.04em; padding: 10px 14px; border-radius: var(--radius-xs); cursor: pointer; transition: var(--ease-fast); }
.dash-tab-btn:hover, .dash-tab-btn.active { color: var(--txt-primary); background: rgba(255,255,255,0.04); }
.dash-tab-btn.active { border-left: 2px solid var(--accent); color: var(--accent); }
.dashboard-main-view { padding: 30px; overflow-y: auto; height: 100%; }
.pane-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.table-scroll-container { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-xs); }
.dashboard-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-secondary); }
.dashboard-table th, .dashboard-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 0.84rem; }
.dashboard-table th { background: var(--bg-tertiary); color: var(--txt-secondary); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table td.actions-td { display: flex; gap: 8px; }
.btn-action { background: transparent; border: none; cursor: pointer; padding: 4px; transition: var(--ease-fast); }
.btn-edit-action   { color: var(--accent); }
.btn-delete-action { color: var(--danger); }
.donation-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.donation-stats-row .metric-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-xs); padding: 22px; text-align: center; }
.admin-form-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-width: 520px;
  width: 92%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  z-index: 999999;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 175, 55, 0.3);
}
.admin-form-modal.active { display: block; }
.admin-form-modal .dialog-header {
  position: sticky;
  top: -24px;
  background: var(--bg-card);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.admin-form-modal .dialog-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent);
}
.admin-form-modal .btn-close-dialog {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--txt-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease-fast);
}
.admin-form-modal .btn-close-dialog:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}


/* ==========================================================
   PAYMENT / CHECKOUT
   ========================================================== */
.payment-popover-overlay { display: none; position: fixed; inset: 0; background: rgba(8,8,8,0.96); z-index: 300; justify-content: center; align-items: center; padding: 24px; backdrop-filter: blur(12px); }
.payment-popover-overlay.active { display: flex; }
.payment-dialog { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); max-width: 430px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg); }
.pay-brand { text-align: center; margin-bottom: 24px; }
.lock-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); margin-bottom: 12px; }
.pay-sub { font-size: 0.78rem; color: var(--txt-muted); }
.pay-summary-box { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-xs); padding: 16px; margin-bottom: 22px; }
.pay-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; }
.pay-summary-row:last-child { margin-bottom: 0; }
.pay-amt { color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.checkout-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.check-tab-btn { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--txt-secondary); padding: 10px; border-radius: var(--radius-xs); cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; transition: var(--ease-fast); }
.check-tab-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.checkout-method-form { display: none; }
.checkout-method-form.active { display: block; }
.pay-note { font-size: 0.78rem; color: var(--txt-secondary); margin-bottom: 14px; font-style: italic; }

/* Video Embed & Player */
.video-embed-wrapper { margin: 14px 0; border-radius: var(--radius-xs); overflow: hidden; background: #000; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.video-embed-wrapper video { width: 100%; max-height: 440px; display: block; outline: none; background: #000; }


/* Receipt */
.receipt-dialog { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); max-width: 400px; width: 100%; padding: 40px 32px; text-align: center; box-shadow: var(--shadow-lg); }
.receipt-checkmark { color: var(--success); margin-bottom: 16px; display: inline-flex; }
.receipt-checkmark svg { width: 54px; height: 54px; }
.receipt-success-msg { font-size: 0.9rem; color: var(--txt-secondary); margin-bottom: 22px; }
.receipt-box { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-xs); padding: 18px; text-align: left; margin-bottom: 22px; }
.receipt-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 10px; }
.receipt-divider { border-top: 1px dashed var(--border-color); margin: 12px 0; }
.total-row { font-size: 0.95rem; }
.total-row strong { color: var(--accent); font-size: 1.1rem; }
.receipt-note { font-size: 0.78rem; color: var(--txt-muted); margin-bottom: 22px; }

/* ==========================================================
   FOOTER — 3-column editorial (Mariners)
   ========================================================== */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 72px 28px 40px;
  margin-top: 80px;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-logo-img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,175,55,0.25); }
.footer-tagline { font-size: 0.88rem; color: var(--txt-secondary); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--txt-secondary); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--txt-secondary); transition: var(--ease-fast); }
.footer-links a:hover { color: var(--txt-primary); }
.footer-social-row { display: flex; gap: 12px; margin-top: 8px; }
.footer-social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-secondary);
  font-size: 0.85rem;
  transition: var(--ease-fast);
}
.footer-social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-social-btn svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.copyright { font-size: 0.8rem; color: var(--txt-muted); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 0.8rem; color: var(--txt-muted); }
.footer-legal-links a:hover { color: var(--txt-secondary); }

/* Legacy compat */
.footer-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 0.88rem; color: var(--txt-secondary); }
.footer-links-row a:hover { color: var(--accent); }

/* ==========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  z-index: 90;
  transition: var(--ease);
  border: none;
}
.floating-whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.floating-whatsapp-btn svg { width: 26px; height: 26px; }

/* ==========================================================
   ANNOUNCEMENT BAR — Live top alert banner
   ========================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #1c1404 0%, #2e2105 50%, #1c1404 100%);
  border-bottom: 1px solid rgba(212,175,55,0.35);
  color: var(--txt-primary);
  padding: 10px 20px;
  position: relative;
  z-index: 101;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.announcement-bar:not(.active) { display: none !important; }
.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #ff4757;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
.announcement-btn {
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--ease-fast);
}
.announcement-btn:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}
.announcement-close {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--txt-muted);
  cursor: pointer;
  padding: 4px;
}
.announcement-close:hover { color: var(--txt-primary); }

/* ==========================================================
   TESTIMONIES — Member Miracles Showcase
   ========================================================== */
.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimony-card {
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimony-quote-icon {
  color: var(--accent);
  opacity: 0.4;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}
.testimony-text {
  font-size: 0.95rem;
  color: var(--txt-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 22px;
}
.testimony-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}
.testimony-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.testimony-meta h4 {
  font-size: 0.92rem;
  margin: 0 0 2px;
}
.testimony-meta span {
  font-size: 0.78rem;
  color: var(--txt-muted);
}

/* ==========================================================
   ADMIN PORTAL EXPANSION ENHANCEMENTS
   ========================================================== */
.admin-badge-count {
  background: var(--accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 6px;
}
.admin-badge-count.unread {
  background: #ff4757;
  color: #fff;
}
.admin-btn-export {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--txt-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ease-fast);
}
.admin-btn-export:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.inbox-card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 20px;
  margin-bottom: 14px;
  transition: var(--ease-fast);
}
.inbox-card-item.unread {
  border-left: 3px solid var(--accent);
  background: rgba(212,175,55,0.03);
}
.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.inbox-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--txt-primary);
}
.inbox-time {
  font-size: 0.75rem;
  color: var(--txt-muted);
}
.inbox-msg {
  font-size: 0.9rem;
  color: var(--txt-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.inbox-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
}
.admin-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.admin-switch input { opacity: 0; width: 0; height: 0; }
.admin-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .3s;
  border-radius: 24px;
}
.admin-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.admin-switch input:checked + .admin-slider { background-color: var(--accent); }
.admin-switch input:checked + .admin-slider:before { transform: translateX(20px); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 992px) {
  :root { --section-pad: 72px; }
  .home-encounter-teaser { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .give-portal-grid, .contact-info-grid { grid-template-columns: 1fr; gap: 36px; }
  .blog-feed-layout, .events-layout-grid { grid-template-columns: 1fr; }
  .dashboard-grid-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .mobile-toggle { display: flex; }
  .nav-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    position: absolute;
    top: var(--nav-height); left: 0;
    width: 100%;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 16px 28px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: opacity var(--spring-duration-normal) var(--spring-ease), transform var(--spring-duration-normal) var(--spring-bounce), visibility var(--spring-duration-normal) var(--spring-ease);
  }
  .nav-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-link { padding: 10px 14px; font-size: 0.82rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .responsive-table th, .responsive-table td { padding: 12px 14px; }
  .responsive-table th:nth-child(3), .responsive-table td:nth-child(3),
  .responsive-table th:nth-child(5), .responsive-table td:nth-child(5) { display: none; }
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-date-badge { max-width: 100px; margin: 0 auto; }
  .event-details-row { justify-content: center; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .section-container { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 480px) {
  .hero-section { height: 100svh; }
  .home-grid { gap: 0; }
  .scripture-card { padding: 26px 20px; }
  .about-grid { gap: 28px; }
  .pane-content { padding: 28px 18px; }
}

/* Gallery Filter Buttons */
.btn-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--txt-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 20px;
}
.btn-filter:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--accent);
}
.btn-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}
body.light-theme .btn-filter {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--txt-secondary);
}
body.light-theme .btn-filter:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--accent);
}
body.light-theme .btn-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================
   MOBILE LAYOUT & RESPONSIVENESS OVERRIDES
   ========================================================== */
@media (max-width: 768px) {
  /* 1. Eliminate iOS Safari Input Auto-Zoom */
  .form-group input, 
  .form-group select, 
  .form-group textarea,
  .search-box input,
  .wa-box-inputs textarea {
    font-size: 16px !important;
  }

  /* 2. Expand Interactive Touch Targets to min 44px */
  .btn-sm, 
  .btn-action, 
  .carousel-dot, 
  .dash-tab-btn, 
  .check-tab-btn {
    position: relative;
  }
  .btn-sm::after, 
  .btn-action::after, 
  .carousel-dot::after, 
  .dash-tab-btn::after, 
  .check-tab-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px; min-height: 44px;
    width: 120%; height: 120%;
    z-index: 10;
  }

  /* 3. Safe-Area Notch Insets Support */
  .announcement-bar {
    padding-top: calc(10px + env(safe-area-inset-top)) !important;
  }
  .footer-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .section-container {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }
  .admin-overlay {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
  }

  /* 4. Align Hero Slides on Mobile to prevent cropping key subjects */
  .hero-slide-1 {
    background-position: 24% 20% !important;
  }
  .hero-slide-2 {
    background-position: 24% 15% !important;
  }
}
