/* ==========================================================================
   GRACE HAVEN CHURCH - ACCESSIBLE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Ultra-Luxury Royal Purple & Gold Dark Mode Palette */
  --primary-navy: #a855f7;        /* Glowing Royal Purple Accent */
  --primary-slate: #c084fc;       /* Bright Lavender Violet */
  --primary-purple-dark: #0f071e; /* Deep Royal Night Background */
  --accent-purple: #9333ea;       /* Vibrant Purple CTA */
  --purple-glow: #c084fc;         /* Glowing Purple Accent */

  --accent-gold: #f59e0b;         /* Radiant Gold */
  --accent-amber: #fbbf24;        /* Warm Amber Gold */
  --accent-gold-light: rgba(245, 158, 11, 0.15); /* Soft Gold Tint */
  --bg-cream: #0f071e;            /* Deep Royal Midnight Velvet */
  --bg-card: #1e0a38;             /* Rich Royal Purple Glass Card */
  --bg-dark-card: #140527;        /* Midnight Purple Card */
  
  --text-main: #f3e8ff;           /* Crisp Soft Lavender/White Text */
  --text-muted: #c084fc;          /* Radiant Lavender Muted Text */
  --text-light: #ffffff;

  --border-light: rgba(168, 85, 247, 0.25); /* Glowing Soft Purple Glass Border */
  --border-amber: rgba(245, 158, 11, 0.4);

  --live-red: #ef4444;
  --success-green: #10b981;

  /* Typography - Senior-Friendly Default 18px Base */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(109, 40, 217, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.3);
  --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.5);

  /* Borders & Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background-color: #0f071e;
  color: #f3e8ff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Zero CLS Sizing for Icons and Media */
.fa, .fa-solid, .fa-regular, .fa-brands {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
}

/* <picture> wrappers are layout-transparent so existing img sizing rules keep working */
picture {
  display: contents;
}

/* Skip-to-content: visually hidden until keyboard-focused (ADA/WCAG 2.4.1) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-gold);
  color: #1e0a38;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 0.75rem;
  color: #1e0a38;
}

/* Utility Helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-amber);
}

/* Universal Toast Notification Banner */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 1000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: var(--accent-amber);
  font-size: 1.35rem;
}

/* Universal Form Controls System */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #ffffff !important;
  background-color: #2b0f50 !important;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  line-height: 1.5;
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-sm);
  caret-color: #f59e0b !important;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

/* HIGH-CONTRAST DARK FOCUS STATE (DARK VIOLET BACKGROUND WITH GOLD GLOW BORDER) */
.form-group input:focus,
.form-group textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3) !important;
  background-color: #1a0833 !important;
  color: #ffffff !important;
  caret-color: #f59e0b !important;
}

/* OVERRIDE BROWSER AUTOFILL STYLING (CHROME / EDGE / FIREFOX) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #2b0f50 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  caret-color: #f59e0b !important;
}

::selection {
  background: #7c3aed !important;
  color: #ffffff !important;
}
::-moz-selection {
  background: #7c3aed !important;
  color: #ffffff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: #c084fc;
  opacity: 0.75;
  font-weight: 400;
}

.checkbox-wrap { margin-top: 0.75rem; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 24px; /* WCAG 2.5.8 minimum target size */
  height: 24px;
  accent-color: var(--accent-amber);
  cursor: pointer;
}

/* Senior-Friendly Touch Target Buttons (Min Height 52px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  min-height: 52px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #1e0a38; /* contrast: dark navy on gold passes WCAG AA (was white @2.1:1) */
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(217, 119, 6, 0.45);
  color: #1e0a38;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-signup {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-signup:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.btn-danger {
  background: #dc2626;
  border: 1.5px solid #dc2626;
  color: #ffffff !important;
  font-weight: 700;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid #ef4444;
  color: #fca5a5 !important;
  font-weight: 700;
}

.btn-outline-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  min-height: 44px; /* a11y: minimum touch target */
  font-size: 0.92rem;
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
  min-height: 44px; /* a11y: minimum touch target */
}

.btn-text:hover {
  color: var(--accent-gold);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

/* Announcement Bar - Clean & Spacious */
.announcement-bar {
  background: linear-gradient(135deg, #18072e 0%, #0f071e 100%);
  color: #ffffff;
  padding: 0.55rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  min-height: 44px;
  box-sizing: border-box;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.live-indicator-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--live-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.live-badge {
  background: #dc2626; /* contrast: white on deeper red passes WCAG AA (was #ef4444 @3.9:1) */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-block;
  min-width: 7.25rem; /* CLS: badge text swap keeps width */
  text-align: center;
  box-sizing: border-box;
}

.announcement-btn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.announcement-btn:hover {
  background: var(--accent-gold);
  color: #1e0a38; /* contrast: dark navy on gold */
}

/* Decluttered Spacious Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 5, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transition: all var(--transition-fast);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2.5rem 0.75rem 1.5rem !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #e9d5ff;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
  background: rgba(124, 58, 237, 0.3) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}

.nav-link:hover i, .nav-link.active i {
  color: #f59e0b !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.auth-btn-group {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sleek Proportioned Desktop Auth Buttons */
#guestAuthGroup .btn,
#userAuthGroup .btn {
  min-height: 40px !important;
  padding: 0.45rem 1.15rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-pill) !important;
}

#memberAuthBtn {
  border: 1.5px solid var(--accent-gold) !important;
  color: #f59e0b !important;
  background: transparent !important;
}

#memberAuthBtn:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

#userProfileBtn {
  border: 1.5px solid var(--accent-gold) !important;
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

#userProfileBtn:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

#navLogoutBtn {
  border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
  background: transparent !important;
  padding: 0.45rem 0.85rem !important;
}

#navLogoutBtn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  transform: translateY(-1px);
}

#navSignUpBtn {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
}

#navSignUpBtn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6) !important;
}

.navbar .nav-live-btn {
  min-height: 40px !important;
  padding: 0.45rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  margin-right: 0.5rem !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-navy);
  cursor: pointer;
  width: 48px; /* a11y: minimum touch target */
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Section 1: Live Stream */
.live-section {
  padding: 3.5rem 0;
  background: radial-gradient(circle at 50% 0%, #3b0764 0%, #1e0845 100%);
  color: #ffffff;
}

.live-header {
  margin-bottom: 1.75rem;
  contain: layout;
}

.live-status-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  min-height: 36px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  min-width: 13rem; /* CLS: LIVE NOW / NEXT SERVICE swap keeps width */
  min-height: 1.9rem;
  box-sizing: border-box;
}

.status-chip.live {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.6);
  color: #fca5a5;
}

.status-chip.offline {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.5);
  color: #cbd5e1;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--live-red);
  border-radius: 50%;
  display: inline-block;
}

.viewer-count {
  font-size: 0.92rem;
  color: #cbd5e1;
  display: inline-block;
  min-width: 16rem; /* CLS: service-times -> "N Online" swap keeps width */
}

.service-title {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.35rem;
}

.service-meta {
  color: #cbd5e1;
  font-size: 1.05rem;
}

/* Stream Layout Grid */
.stream-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.75rem;
  align-items: start;
}

/* Video Player Container */
.video-container {
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #090a0f 0%, #151824 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0c10;
}

/* Live Floating Reactions Container */
.floating-reactions-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  bottom: 10px;
  font-size: 2.2rem;
  animation: floatUpReaction 2.4s ease-out forwards;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

@keyframes floatUpReaction {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  50% { opacity: 0.9; transform: translateY(-120px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-240px) scale(1); }
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-badge-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: #dc2626; /* contrast: white on deeper red passes WCAG AA (was #ef4444 @3.9:1) */
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stream-quality-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.play-trigger-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  border: none;
  color: #1e0a38; /* contrast: dark navy icon on gold */
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(217, 119, 6, 0.7);
  transition: transform 0.2s ease;
  padding-left: 6px;
}

.play-trigger-btn:hover {
  transform: scale(1.1);
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 12;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast);
  min-height: 44px;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.volume-slider-wrap {
  width: 80px;
  display: flex;
  align-items: center;
}

.volume-slider {
  width: 100%;
  accent-color: var(--accent-amber);
  cursor: pointer;
  height: 6px;
}

.give-in-stream-btn {
  background: var(--accent-gold);
  color: #1e0a38; /* contrast: dark navy on gold */
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  min-height: 44px; /* a11y: minimum touch target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.give-in-stream-btn:hover {
  background: var(--accent-amber);
}

/* Video Footer */
.video-footer {
  padding: 1.5rem 1.75rem;
  background: rgba(30, 41, 59, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.sermon-info h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.sermon-info p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.video-share-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.55rem 1rem;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Dedicated Ergonomic Live Chat Sidebar (620px Height) */
.stream-sidebar {
  background: var(--bg-dark-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 620px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-sidebar-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.chat-sidebar-header h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tab-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  overflow: hidden;
  min-height: 0;
}

/* Collapsible Pinned Banner */
.chat-pinned-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.dismiss-pinned-btn {
  background: none;
  border: none;
  color: #fde68a;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 0.5rem;
  min-width: 44px; /* a11y: minimum touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.5rem;
  min-height: 0;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.msg-author {
  font-weight: 800;
  color: var(--accent-amber);
  margin-right: 0.45rem;
}

.msg-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.msg-text {
  color: #f1f5f9;
  margin-top: 0.2rem;
}

.chat-input-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-shrink: 0;
}

.chat-input-form input {
  flex: 1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.chat-send-btn {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Beautiful 2-Column Wrapped Reaction Grid */
.chat-quick-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.2rem 0;
  flex-shrink: 0;
}

.reaction-chip {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 130px;
  min-height: 44px; /* a11y: minimum touch target */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.reaction-chip:hover {
  background: rgba(217, 119, 6, 0.6);
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Simplified Tithes Section */
.give-section {
  padding: 5.5rem 0;
  background: var(--bg-cream);
}

.simple-giving-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.simple-give-card {
  background: #1e0a38;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  color: #f3e8ff;
}

.give-row-block {
  margin-bottom: 1.75rem;
}

.block-label {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.frequency-selector {
  display: flex;
  gap: 0.6rem;
  background: #140527;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.freq-btn, .amount-btn, .fund-pill-btn {
  user-select: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.freq-btn i, .amount-btn i, .fund-pill-btn i {
  pointer-events: none;
}

.freq-btn {
  flex: 1;
  padding: 0.85rem 0.6rem;
  border: 2px solid transparent;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.freq-btn:active, .amount-btn:active, .fund-pill-btn:active {
  transform: scale(0.95) !important;
}

/* AMBIENT ROYAL PURPLE HIGH-CONTRAST SELECTION SYSTEM */
.freq-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.65), 0 6px 16px rgba(91, 33, 182, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
}

.freq-btn.active i {
  color: #f59e0b !important;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.amount-btn {
  padding: 1.15rem 0.5rem;
  min-height: 60px;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  background: #2b0f50;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
}

.amount-btn:hover {
  border-color: #7c3aed;
  background: #3b1368;
  color: #ffffff;
  transform: translateY(-1px);
}

.amount-btn.active {
  border: 3px solid #d97706 !important;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.7), 0 8px 18px rgba(91, 33, 182, 0.5) !important;
  transform: translateY(-3px) scale(1.03);
}

.custom-amount-wrap {
  display: none;
  position: relative;
  margin-top: 0.75rem;
}

.custom-amount-wrap.active { display: block; }

.currency-symbol {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: #f59e0b;
}

.custom-amount-wrap input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 2.75rem;
  font-size: 1.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  background: #2b0f50 !important;
  color: #ffffff !important;
}

/* Compact Horizontal Fund Pills */
.fund-pills-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fund-pill-btn {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1rem;
  min-height: 52px;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  background: #2b0f50;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.fund-pill-btn:hover {
  border-color: #7c3aed;
  background: #3b1368;
  transform: translateY(-1px);
}

.fund-pill-btn.active {
  border: 2.5px solid #d97706 !important;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.6), 0 6px 14px rgba(91, 33, 182, 0.4) !important;
  transform: translateY(-2px) scale(1.02);
}

.fund-pill-btn.active i {
  color: #ffffff !important;
}

/* REDESIGNED TITHE CALCULATOR CARD STYLES */
.tithe-calc-card {
  margin: 1.75rem 0;
  background: linear-gradient(135deg, #2b0f50 0%, #1e0a38 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.tithe-calc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.calc-toggle-btn {
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.calc-header-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.calc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
  flex-shrink: 0;
}

.calc-header-titles {
  display: flex;
  flex-direction: column;
}

.calc-header-titles strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.25;
}

.calc-header-titles span {
  font-size: 0.85rem;
  color: #c084fc;
  font-weight: 500;
}

.calc-chevron {
  font-size: 1.15rem;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
}

.calc-toggle-btn.open .calc-chevron {
  transform: rotate(180deg);
}

.calc-body {
  display: none;
  padding: 0 1.35rem 1.35rem 1.35rem;
  border-top: 1px dashed rgba(168, 85, 247, 0.3);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.calc-hint {
  font-size: 0.95rem;
  color: #e9d5ff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calc-input-group {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.calc-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.calc-currency-symbol {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #f59e0b;
}

.calc-input-wrap input {
  padding-left: 2.5rem !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: #140527 !important;
  color: #ffffff !important;
}

.calc-apply-btn {
  padding: 0.85rem 1.35rem;
  min-height: 52px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.calc-result-card {
  margin-top: 1rem;
  background: #140527;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-result-info span {
  font-size: 0.88rem;
  color: #c084fc;
  display: block;
}

.calc-result-info strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.calc-applied-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
}

.btn-give-main {
  width: 100%;
  padding: 1.1rem;
  min-height: 60px;
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

.give-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.security-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* SLEEK & NEAT MINISTRY IMPACT HIGHLIGHTS BANNER */
.ministry-impact-banner {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.impact-item {
  flex: 1;
  background: #1e0a38;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.impact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border-color: #f59e0b;
}

.impact-item i {
  font-size: 1.75rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.2;
}

.impact-item p {
  font-size: 0.85rem;
  color: #e9d5ff;
  margin-top: 0.15rem;
}

/* Sermon Archive Section */
.sermons-section {
  padding: 5.5rem 0;
  background: #0f071e;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sermon-filters {
  display: flex;
  gap: 0.5rem;
  background: #140527;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.filter-chip {
  padding: 0.6rem 1.25rem;
  min-height: 44px; /* a11y: minimum touch target */
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #c084fc;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  border: 1px solid #d97706;
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  min-height: 380px; /* CLS: reserve space before async sermon render */
}

.sermon-card {
  background: #1e0a38;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-amber);
}

.sermon-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.sermon-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sermon-card:hover .sermon-thumb {
  transform: scale(1.05);
}

.sermon-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.sermon-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.sermon-card:hover .sermon-play-overlay {
  opacity: 1;
}

.sermon-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* SLEEK REVENUE TRIGGER CARD IN ADMIN MODAL */
.admin-revenue-trigger-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.admin-revenue-trigger-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rev-trigger-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rev-trigger-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  flex-shrink: 0;
}

.rev-trigger-left strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.rev-trigger-left span {
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* DEDICATED CLEAN REVENUE ANALYTICS DIALOG */
.revenue-analytics-dialog {
  max-width: 900px;
  width: 94%;
}

.rev-analytics-content {
  padding: 2.25rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
}

/* Contrast: the light-lavender muted text fails on this white panel — darken it here only */
.rev-analytics-content .portal-sub,
.rev-analytics-content .admin-sub {
  color: #6b21a8;
}

/* Time Granularity Selector Chips */
.time-chip-selector {
  display: flex;
  gap: 0.6rem;
  background: #20093d;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.time-chip {
  flex: 1;
  min-width: 110px;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #c084fc;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.time-chip:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.2);
}

.time-chip.active {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #1e0a38; /* contrast: dark navy on gold */
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

/* Financial Analytics Metric Rows */
.fin-kpi-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.fin-kpi-row {
  background: #230b42;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.fin-kpi-row:hover {
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.fin-kpi-row.profit-accent {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, #1e0938 100%);
}

.kpi-row-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.kpi-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fin-kpi-row.profit-accent .kpi-row-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.kpi-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.fin-kpi-row .kpi-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #e9d5ff;
  line-height: 1.2;
  white-space: normal;
}

.fin-kpi-row.profit-accent .kpi-label {
  color: #6ee7b7;
}

.fin-kpi-row .kpi-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.fin-kpi-row.profit-accent .kpi-sub {
  color: #a7f3d0;
}

.fin-kpi-row .kpi-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  letter-spacing: -0.01em;
}

.fin-kpi-row.profit-accent .kpi-val {
  color: #10b981;
}

@media (max-width: 480px) {
  .fin-kpi-row {
    padding: 0.75rem 0.9rem;
    gap: 0.6rem;
  }
  .kpi-row-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .fin-kpi-row .kpi-label {
    font-size: 0.85rem;
  }
  .fin-kpi-row .kpi-sub {
    font-size: 0.78rem;
  }
  .fin-kpi-row .kpi-val {
    font-size: 1.2rem;
  }
}

/* Chart View Mode Tabs */
.chart-mode-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}

.chart-mode-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  background: #240d42;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: #e9d5ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.chart-mode-btn:hover {
  border-color: var(--accent-gold);
  color: #ffffff;
  background: #34125c;
}

.chart-mode-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  border-color: #a855f7;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

/* Clean Graphic Canvas Area */
.rev-chart-canvas-box {
  background: #190730;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: auto;
  box-sizing: border-box;
}

.svg-chart-container {
  width: 100%;
  height: auto;
  min-height: 240px;
}

.sermon-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.sermon-card-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.sermon-card-speaker {
  font-size: 0.92rem;
  color: #c084fc;
  margin-bottom: 1.25rem;
}

.sermon-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.sermon-admin-controls {
  display: flex;
  gap: 0.35rem;
}

.btn-admin-sermon-edit, .btn-admin-sermon-delete {
  padding: 0.4rem 0.75rem;
  min-height: 44px; /* a11y: minimum touch target */
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 85, 247, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #2b0f50;
}

.btn-admin-sermon-edit {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-admin-sermon-edit:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-admin-sermon-delete {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-admin-sermon-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Prayer Section */
.prayer-section {
  padding: 5.5rem 0;
  background: #140527;
}

.prayer-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.5rem;
  align-items: start;
}

.prayer-info {
  background: #1e0a38;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  color: #f3e8ff;
}

.verse-of-day {
  background: linear-gradient(135deg, #3b0764 0%, #1e0845 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  position: sticky;
  top: 100px;
}

.verse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.4);
  margin-bottom: 1.25rem;
}

.verse-of-day blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.verse-of-day cite {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-amber);
}

/* Service Times Section */
.services-section {
  padding: 4.5rem 0;
  background: #0f071e;
}

.services-banner {
  background: linear-gradient(135deg, #3b0764 0%, #1e0845 100%);
  border: 2px solid var(--accent-gold);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.services-banner h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.services-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.schedule-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.sched-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-amber);
  color: #1e0a38; /* contrast: dark navy icon on amber */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem auto;
}

.schedule-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.sched-time {
  color: #fde68a;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.sched-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1e0845 0%, #13042d 100%);
  color: #ffffff;
  padding: 4.5rem 0 2rem 0;
  border-top: 2.5px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-logo i { color: var(--accent-amber); }

.brand-col p {
  color: #94a3b8;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.tax-info {
  font-size: 0.85rem !important;
  color: var(--accent-amber) !important;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-col a:hover { color: var(--accent-amber); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8; /* contrast: passes 4.5:1 on dark footer (was #64748b @4.1:1) */
  font-size: 0.88rem;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-gold);
}

.footer-powered-by {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-powered-by a {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-powered-by a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Universal Dialog Modal Base Styles */
.modal-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  max-width: 580px;
  width: 92%;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: #18072e;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  color: #f3e8ff;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #2b0f50;
  border: 1px solid rgba(168, 85, 247, 0.3);
  width: 44px; /* a11y: minimum touch target */
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #7c3aed;
  color: #ffffff;
}

/* REDESIGNED PAYMENT CHECKOUT MODAL STYLES */
.checkout-dialog-redesign {
  max-width: 540px;
  width: 92%;
}

.checkout-modal-content {
  padding: 2.25rem;
  background: #18072e;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  color: #f3e8ff;
}

.checkout-header-box {
  margin-bottom: 1.5rem;
}

.gift-icon-badge {
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.85rem auto;
}

.checkout-modal-title {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.checkout-summary-pill {
  display: inline-block;
  background: #2b0f50;
  border: 1.5px solid #d97706;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: #f59e0b;
}

/* Neat Payment Method Selector Tabs */
.neat-pay-selector {
  display: flex;
  gap: 0.5rem;
  background: #140527;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.neat-pay-btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  min-height: 48px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.neat-pay-btn:hover {
  color: var(--primary-navy);
}

.neat-pay-btn.active {
  background: linear-gradient(135deg, #6d28d9 0%, #3b0764 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4);
  border: 1px solid #d97706;
}

/* Pay Panels Visibility */
.pay-panel {
  display: none;
}

.pay-panel.active {
  display: block;
}

/* Inputs with Icons */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 2.85rem !important;
}

.card-brand-logos {
  position: absolute;
  right: 1.15rem;
  font-size: 1.35rem;
  color: #94a3b8;
  display: flex;
  gap: 0.35rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* PayPal / Digital Wallet Info Containers */
.paypal-container-box {
  background: #230b42;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.paypal-info-text {
  font-size: 0.95rem;
  color: #e9d5ff;
}

/* Fee Coverage Checkbox */
.fee-coverage-box {
  margin: 1.25rem 0;
}

/* SINGLE MASTER COMPLETION BUTTON DYNAMIC STYLES */
.btn-complete-gift {
  width: 100%;
  padding: 1.1rem;
  min-height: 56px;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  border: none;
}

.btn-complete-gift:hover {
  transform: translateY(-2px);
}

/* Card Style (Gold Gradient) */
.btn-complete-gift.card-style {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #1e0a38; /* contrast: dark navy on gold */
  box-shadow: var(--shadow-gold);
}

/* PayPal Style (Official PayPal Blue) */
.btn-complete-gift.paypal-style {
  background: #0070ba;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 112, 186, 0.35);
}

/* Apple Pay Style (Official Apple Black) */
.btn-complete-gift.apple-style {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Google Pay Style (Clean Border White) */
.btn-complete-gift.google-style {
  background: #ffffff;
  color: #3c4043;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.secure-footer-tag {
  font-size: 0.82rem;
  color: #c084fc;
  margin-top: 1rem;
}

/* Member Portal Dialog Styles */
.member-portal-dialog, .admin-portal-dialog, .tax-statement-dialog {
  max-width: 780px;
  width: 94%;
}

.portal-header, .admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  padding-right: 3.75rem; /* Generous clearance so Sign Out never collides with the top-right X button */
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 1.5rem;
  position: relative;
}

.user-avatar-badge, .admin-logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.portal-sub, .admin-sub {
  font-size: 0.88rem;
  color: #c084fc;
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.portal-stat-card {
  background: #2b0f50;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-stat-title {
  display: block;
  font-size: 0.9rem;
  color: #c084fc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-stat-val {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.85rem;
  color: #ffffff;
  margin: 0.35rem 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.p-stat-sub {
  font-size: 0.8rem;
  color: var(--success-green);
  font-weight: 700;
}

.portal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.portal-actions-bar button {
  flex-shrink: 0;
}

.history-table-wrap {
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #2b0f50;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: #f3e8ff;
}

.history-table th {
  background: #140527;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.3);
}

.history-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  color: #f3e8ff;
}

.history-table tr:nth-child(even) {
  background: rgba(20, 5, 39, 0.4);
}

.history-table tr:hover {
  background: rgba(124, 58, 237, 0.15);
}

.badge-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-monthly {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-weekly {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-one-time {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-yearly {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-verified {
  color: #10b981;
  font-weight: 700;
}

.status-pending {
  color: #f59e0b;
  font-weight: 700;
}

.status-failed {
  color: #f87171;
  font-weight: 700;
}

.admin-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-category-pill .delete-cat-btn {
  background: none;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  padding: 0 0.2rem;
  font-size: 0.78rem;
  transition: color var(--transition-fast);
}

.admin-category-pill .delete-cat-btn:hover {
  color: #ef4444;
}

/* Admin Control Center Styles */
.big-broadcast-card {
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.big-broadcast-card.live-active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 2px solid var(--live-red);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.3);
}

.big-broadcast-card.offline-active {
  background: #1e0a38;
  color: #ffffff;
  border: 2px solid rgba(168, 85, 247, 0.3);
}

.b-status-chip {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.btn-big-broadcast {
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.btn-big-broadcast:hover { transform: translateY(-2px); }

.btn-big-broadcast.stop { background: var(--live-red); color: #ffffff; }
.btn-big-broadcast.start { background: var(--success-green); color: #ffffff; }

/* Accessibility: screen-reader-only / SEO heading (never visible) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  font-size: 1px !important;
  line-height: 1px !important;
  font-family: sans-serif !important;
}

/* One-Click Live Stream card (admin portal) */
.one-click-live-card { border-color: rgba(16, 185, 129, 0.45); }

.one-click-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: -0.25rem 0 1rem;
}

.one-click-title-group label { color: rgba(255, 255, 255, 0.85); }

.one-click-label-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.one-click-title-group input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.one-click-title-group input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.one-click-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-big-broadcast.studio {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

.one-click-checklist {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.one-click-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  overflow-wrap: break-word;
  word-break: break-word;
}

.one-click-checklist li span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.one-click-checklist li i {
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.one-click-checklist li.ok { color: #10b981; }
.one-click-checklist li.fail { color: var(--live-red); }
.one-click-checklist li.live-now { color: #ffffff; font-weight: 700; }
.one-click-checklist li.live-now i { color: var(--live-red); }

.simulcast-section-card {
  background: #1e0a38;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  color: #ffffff;
}

.simulcast-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.simulcast-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.platform-mini-card {
  background: #2b0f50;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.plat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plat-icon { font-size: 1.6rem; flex-shrink: 0; }
.plat-icon.yt { color: #ff4545; }
.plat-icon.fb { color: #1877f2; }
.plat-icon.tt { color: #ffffff; }
.plat-icon.ig { color: #e4405f; }

.plat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.plat-badge.connected { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }

.plat-name {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: break-word;
}

.plat-handle {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c084fc;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.plat-info-block {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.plat-disconnect-btn {
  background: #140527;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px; /* a11y: minimum touch target */
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: all var(--transition-fast);
}

.plat-disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Real outbound-link buttons on broadcast cards */
.plat-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.plat-link-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.admin-card {
  background: #2b0f50;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin-card h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.admin-media-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2b0f50;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
}

.admin-media-item-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-media-thumb {
  width: 60px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
}

/* Tax Document Dialog Styles */
.official-tax-document {
  background: #ffffff;
  border: 2px solid var(--primary-navy);
  padding: 1.75rem;
  border-radius: 8px;
  color: #0f172a;
  --text-muted: #475569;
}

.tax-letterhead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.church-brand-official {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.church-brand-official > div {
  min-width: 0;
}

.cross-logo-official {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.official-church-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem 0;
}

/* The global h1-h6 { color:#fff } rule must not leak into the white document */
.official-tax-document h2,
.official-tax-document h3,
.official-tax-document h4 {
  color: var(--primary-navy);
}

.official-church-addr { font-size: 0.85rem; color: #475569; }
.official-ein { font-size: 0.88rem; margin-top: 0.2rem; }

.statement-meta-box {
  text-align: left;
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  align-self: stretch;
  max-width: 100%;
  box-sizing: border-box;
}

.statement-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.5rem;
}

.statement-sub-cite {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.1rem 0 0 0 !important;
  font-weight: 500;
}

.tax-year-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tax-year-control label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b21a8;
  margin: 0;
  cursor: pointer;
}

.tax-year-select {
  background: #ffffff;
  color: #1e1b4b;
  border: 1.5px solid #d97706;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tax-year-select:hover,
.tax-year-select:focus-visible {
  border-color: #b45309;
  outline: 2px solid #f59e0b;
  outline-offset: 1px;
}

.statement-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 1.25rem;
}

.statement-meta-grid p {
  margin: 0.1rem 0;
  font-size: 0.88rem;
  color: #334155;
}

.statement-meta-grid strong {
  color: #0f172a;
}

.statement-meta-box h3 {
  font-size: 1rem;
  margin: 0 0 0.15rem 0;
}

.tax-divider {
  height: 2px;
  background: var(--primary-navy);
  margin: 1.5rem 0;
}

.donor-details-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.doc-label { font-size: 0.75rem; font-weight: 800; color: #475569; letter-spacing: 0.05em; }
.doc-value { font-size: 1.15rem; font-weight: 800; color: #6b21a8; }

.tax-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
}

.tax-summary-table th {
  border-bottom: 2px solid var(--primary-navy);
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
}

.tax-summary-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
}

.total-tax-row td {
  border-top: 2px solid var(--primary-navy);
  border-bottom: none;
  font-size: 1.1rem;
  padding-top: 1rem;
}

.irs-compliance-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 2rem;
}

.tax-signature-row {
  display: flex;
  justify-content: flex-end;
}

.sig-box { text-align: center; width: 260px; }
.sig-script { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: #6b21a8; }
.sig-line { height: 1px; background: #000000; margin: 0.35rem 0; }
.sig-box span { font-size: 0.82rem; color: #475569; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .stream-layout { grid-template-columns: 1fr; }
  .stream-sidebar { height: 500px; }
  .prayer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .simulcast-row-grid { grid-template-columns: repeat(2, 1fr); }
  .ministry-impact-banner { flex-direction: column; }
  .ewc-welcome-grid { grid-template-columns: 1fr; }
  .ewc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; } /* keeps 48px touch box icon centered */
  .schedule-cards-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-stats-grid { grid-template-columns: 1fr; }
  .simulcast-row-grid { grid-template-columns: 1fr; }
  .video-footer { flex-direction: column; align-items: flex-start; }
  .tax-letterhead, .donor-details-grid { flex-direction: column; }
  .statement-meta-box { text-align: left; margin-top: 1rem; }
  .big-broadcast-card { flex-direction: column; text-align: center; }
  .fund-pill-btn { min-width: 100%; }
  .neat-pay-selector { flex-direction: column; }
  .calc-input-group { flex-direction: column; align-items: stretch; }
  .calc-apply-btn { width: 100%; }
  .ewc-gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EMPOWERMENT WORSHIP CENTER (EWC) - REAL MEDIA & BANNER SHOWCASE STYLES
   ========================================================================== */

.ewc-banner-showcase-section {
  padding: 2.5rem 0 1.5rem 0;
  background: var(--bg-cream);
}

.ewc-banner-card {
  background: #ffffff;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.ewc-banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #0f172a;
  display: block;
}

.ewc-banner-info-bar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ewc-banner-details h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fde68a; /* contrast: light amber passes on purple gradient (was gold @1.8:1) */
  margin-bottom: 0.35rem;
}

.ewc-banner-details p {
  font-size: 0.95rem;
  color: #cbd5e1;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.ewc-welcome-section {
  padding: 5rem 0;
  background: #ffffff;
}

.ewc-welcome-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ewc-flyer-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-gold);
  background: #0f172a;
}

.ewc-flyer-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.ewc-flyer-frame:hover .ewc-flyer-img {
  transform: scale(1.03);
}

.ewc-flyer-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
  padding: 0.55rem 1.25rem;
  min-height: 44px; /* a11y: minimum touch target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.ewc-flyer-badge-overlay:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
}

.ewc-welcome-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.ewc-welcome-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ewc-pillar-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.ewc-pillar-chip {
  background: var(--bg-cream);
  color: var(--primary-navy);
  border: 1.5px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 800;
}

.ewc-gallery-section {
  padding: 5rem 0;
  background: #140527;
}

.ewc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.ewc-gallery-card {
  background: #1e0a38;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.ewc-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border-color: #a855f7;
}

.ewc-gallery-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 520px;
  background: radial-gradient(circle at center, #260c4a 0%, #110322 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ewc-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  padding: 0.25rem;
  box-sizing: border-box;
}

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

.ewc-gallery-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ewc-gallery-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.ewc-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.ewc-gallery-desc {
  font-size: 0.9rem;
  color: #e9d5ff;
  line-height: 1.5;
}

/* Separated Standalone Auth Modal Tabs & Buttons */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.9rem 1.15rem;
  min-height: 50px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  background: #2b0f50;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-tab-btn:hover {
  background: #3b1368;
  border-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-2px);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  border: 2px solid #d97706 !important;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.6), 0 6px 16px rgba(91, 33, 182, 0.4) !important;
  transform: translateY(-2px);
}

.auth-tab-btn.active i {
  color: #f59e0b !important;
}

.btn-signup {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4) !important;
}

.btn-signup:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6) !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET OPTIMIZATION (iOS & ANDROID ENHANCEMENTS)
   ========================================================================== */

/* Touch Scroll Enhancements for iOS Safari & Android Chrome */
body, .chat-messages, .history-table-wrap, .modal-content, dialog {
  -webkit-overflow-scrolling: touch;
}

/* Tablet & iPad Optimization (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
  }

  .live-section {
    padding: 3rem 0;
  }

  .service-title {
    font-size: 2rem;
  }

  .stream-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stream-sidebar {
    height: 480px;
    max-height: 480px;
  }

  .simple-give-card {
    padding: 1.75rem;
  }

  .schedule-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .ewc-banner-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Mobile Phones (iPhones, Android Phones - max-width: 768px) */
@media (max-width: 768px) {
  /* Header Navbar Mobile Layout */
  .navbar .nav-container {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .nav-actions {
    gap: 0.65rem !important;
  }

  /* Expandable Slide-down Mobile Menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #140527;
    border-bottom: 2.5px solid var(--accent-gold);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    margin: 0;
    z-index: 100;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px; /* a11y: comfortable touch target in dropdown */
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  .auth-btn-group {
    gap: 0.6rem !important;
    min-width: 0; /* compact mobile nav: drop the desktop CLS reservation */
  }

  #memberAuthBtn, #navSignUpBtn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important; /* a11y: minimum touch target */
  }

  /* Live Stream Header & Player */
  .service-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .service-meta {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .video-controls {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .controls-left, .controls-right {
    width: 100%;
    justify-content: space-between;
  }

  .ctrl-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Stream Chat Sidebar Mobile Sizing */
  .stream-sidebar {
    height: 400px;
    max-height: 400px;
  }

  .chat-messages {
    max-height: 280px;
  }

  .chat-quick-reactions {
    gap: 0.4rem;
  }

  .reaction-chip {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }

  /* Faithful & Generous Stewardship Giving Form */
  .give-section {
    padding: 3.5rem 0;
  }

  .simple-give-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .frequency-selector {
    flex-direction: column;
    gap: 0.65rem;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem !important;
  }

  .freq-btn {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-md) !important;
    justify-content: center;
  }

  .status-chip {
    min-width: 0;
    max-width: 100%;
  }

  .viewer-count {
    min-width: 0;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .amount-btn {
    min-height: 50px;
    font-size: 1.05rem;
  }

  .amount-btn.custom-toggle {
    grid-column: span 2;
  }

  .fund-pills-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .fund-pill-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .btn-give-main {
    min-height: 56px;
    font-size: 1.05rem;
  }

  /* Tithe Calculator Accordion Mobile */
  .calc-toggle-btn {
    padding: 1rem 0.85rem;
  }

  .calc-header-titles strong {
    font-size: 0.95rem;
  }

  .calc-header-titles span {
    font-size: 0.8rem;
  }

  .calc-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .calc-apply-btn {
    width: 100%;
    min-height: 48px;
  }

  /* Schedule Cards Section Mobile */
  .schedule-cards-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    padding: 1.5rem;
  }

  /* Universal Dialog Modals Mobile Sizing */
  .modal-dialog {
    width: 95% !important;
    max-width: 95% !important;
    margin: auto !important;
  }

  .modal-content {
    padding: 1.5rem 1.15rem !important;
    max-height: 88vh;
    overflow-y: auto;
  }

  .modal-close-btn {
    top: 0.85rem;
    right: 0.85rem;
    width: 44px; /* a11y: keep full touch target on mobile (was shrinking) */
    height: 44px;
    font-size: 1.2rem;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .form-sub {
    font-size: 0.88rem;
  }

  /* Sign Up 2-Column Inputs Mobile Stack */
  #registerForm div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* Member Portal Mobile Table & Cards */
  .portal-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portal-actions-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .portal-actions-bar button {
    width: 100%;
  }

  .history-table-wrap {
    overflow-x: auto;
  }

  .history-table th, .history-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Prevent iOS Safari 16px input zoom issue */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Extra Small Phones (iPhone SE, Small Androids - max-width: 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1rem;
  }

  .service-title {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-banner {
    padding: 2.25rem 1.25rem;
  }

  .services-banner h2 {
    font-size: 1.65rem;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ewc-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE HOTFIX PACK (Production Audit Fixes)
   Targets: navbar overflow, announcement bar stacking, inline-grid layouts
   that ignore media queries, portal header wrapping, tax table scrolling.
   ========================================================================== */

/* Seatbelt: no element may ever create sideways page scrolling */
html, body {
  overflow-x: hidden;
}

/* Hamburger-menu auth items are phones-only; the desktop navbar already
   shows the real Profile / Sign Out buttons */
@media (min-width: 769px) {
  #navLinks .mobile-auth-item {
    display: none !important;
  }
}

/* Mid-width desktops/laptops (769px to 1360px): prevent navbar clipping & scrollbar overlap */
@media (min-width: 769px) and (max-width: 1360px) {
  .nav-container {
    padding: 0.65rem 2.5rem 0.65rem 1.25rem !important;
    gap: 0.65rem !important;
  }

  /* Hide the long sub-tagline on mid-width screens to save ~160px of space */
  .navbar .brand-sub {
    display: none !important;
  }

  .nav-logo {
    gap: 0.55rem !important;
  }

  .brand-name {
    font-size: 1.18rem !important;
  }

  .nav-links {
    gap: 0.25rem !important;
  }

  .nav-link {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.84rem !important;
  }

  .nav-actions {
    gap: 0.45rem !important;
  }

  #userProfileBtn #userProfileName {
    display: inline-block;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  #guestAuthGroup .btn,
  #userAuthGroup .btn {
    min-height: 36px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
  }

  .navbar .nav-live-btn {
    min-height: 36px !important;
    padding: 0.35rem 0.95rem !important;
    font-size: 0.85rem !important;
    margin-right: 0.5rem !important;
  }
}

/* Tablet & small desktop tightening (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-link i {
    display: none !important;
  }

  .nav-link {
    padding: 0.3rem 0.45rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 768px) {
  /* 1. Navbar: prevent horizontal overflow — the in-nav "Give Online" button
        is redundant (Give section is one scroll away) and the auth buttons
        already cover account actions. Hamburger handles navigation. */
  .navbar .nav-live-btn {
    display: none !important;
  }

  .navbar .nav-actions {
    white-space: normal;
  }

  .navbar .brand-logo-seal {
    height: 44px !important;
  }

  /* 2. Announcement bar: stack badge/text above the CTA button */
  .announcement-bar {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    text-align: center;
    min-height: 96px;
    max-height: 96px;
    overflow: hidden;
  }

  .announcement-content {
    justify-content: center;
    gap: 0.5rem;
  }

  .announcement-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px; /* a11y: minimum touch target */
    display: inline-flex;
    align-items: center;
  }

  /* 3. Inline grid layouts that media queries can't reach by default */
  #sermonEditForm div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .rev-chart-canvas-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 4. Portal & admin headers: allow wrapping, drop the auto-margin push */
  .portal-header, .admin-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-right: 3.5rem;
  }

  .portal-header > div:last-child,
  .admin-header > div:last-child {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-start;
  }

  /* 5. Tax statement: compact table + horizontal scroll fallback */
  .tax-modal-content {
    overflow-x: auto;
  }

  .tax-summary-table th, .tax-summary-table td {
    padding: 0.45rem 0.35rem;
    font-size: 0.78rem;
  }

  .official-tax-document {
    min-width: 0;
    padding: 1.25rem;
  }

  /* 6. Admin media manager items: thumbnail + buttons wrap cleanly */
  .admin-media-item {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  /* 7. Signed-in actions live in the hamburger menu on phones.
        Signed-out: keep Sign In only (Sign Up is reachable from the
        Sign In modal's "Sign Up here" link) so the row never overflows. */
  .navbar .nav-actions {
    min-width: 0;
    flex-shrink: 1;
  }

  #userAuthGroup {
    display: none !important;
  }

  #navSignUpBtn {
    display: none !important;
  }

  #memberAuthBtn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
  }

  #mobileMenuToggle {
    flex-shrink: 0;
    margin-left: auto;
  }

  #navLinks .mobile-auth-item a {
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  /* Logo tagline takes too much width on the smallest phones */
  .navbar .brand-sub {
    display: none !important;
  }

  .navbar .brand-logo-seal {
    height: 40px !important;
  }

  /* Keep auth buttons on one line but compact */
  #guestAuthGroup {
    gap: 0.4rem !important;
  }

  #memberAuthBtn, #navSignUpBtn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.82rem !important;
    min-height: 42px !important;
  }
}

@media (max-width: 375px) {
  .navbar .nav-container {
    padding: 0.6rem 0.75rem !important;
    gap: 0.5rem !important;
  }

  #navSignUpBtn span {
    display: none; /* Icon-only at 375px to prevent line breaking */
  }

  #navSignUpBtn {
    padding: 0.45rem 0.65rem !important;
  }

  .brand-name {
    font-size: 0.98rem !important;
  }
}

/* ==========================================================================
   STRIPE PAYMENT ELEMENT (real giving checkout)
   ========================================================================== */

/* Tax document: table scrolls INSIDE the white card (never bleeds past it) */
.tax-modal-content {
  overflow-x: hidden;
}

.official-tax-document {
  overflow: hidden;
}

.tax-doc-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
}

.tax-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 500;
}

.tax-stat-pill.page-est-pill {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.tax-stat-pill.page-est-pill.is-multipage {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tax-table-scroll {
  overflow-x: auto;
  width: 100%;
  max-height: 440px;
  -webkit-overflow-scrolling: touch;
}

.tax-summary-table {
  min-width: 540px;
}

.tax-summary-table thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
  box-shadow: 0 1px 0 #cbd5e1;
}

.tax-continuation-header-row {
  display: none; /* hidden on screen; only rendered during print/PDF generation */
}

.tax-document-footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.tax-doc-footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tax-summary-table td:first-child,
.tax-summary-table td:nth-child(2),
.tax-summary-table th:first-child,
.tax-summary-table th:nth-child(2) {
  white-space: nowrap;
}
.payment-element-box {
  margin-top: 1rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.15rem 0.9rem 1.15rem;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  min-height: 320px; /* CLS: reserve space while Stripe Element mounts */
  --text-muted: #475569;
}

.payment-loading-note {
  color: #6b21a8; /* contrast: sits on the white payment box (was light lavender @2.6:1) */
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem 0;
}

.wallet-hint {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.75rem;
  text-align: center;
}

/* Sermon replay modal: real YouTube embed */
.replay-player-area iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Sermon replay modal: static poster fallback (JS-injected) */
.replay-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Live stream YouTube embed */
.live-embed-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.live-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   VISUAL POLISH PACK (Phase 6.5)
   Unified section rhythm, accessibility, print output.
   ========================================================================== */

/* 1. One consistent vertical rhythm for all major sections */
.live-section,
.give-section,
.ewc-gallery-section,
.sermons-section,
.prayer-section,
.ewc-banner-showcase-section {
  padding: 4.5rem 0 !important;
}

/* Consistent section header spacing */
.section-description {
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .live-section,
  .give-section,
  .ewc-gallery-section,
  .sermons-section,
  .prayer-section,
  .ewc-banner-showcase-section {
    padding: 3.25rem 0 !important;
  }

  .section-description {
    margin-bottom: 2rem;
  }
}

/* 2. Accessibility: visible keyboard focus + reduced motion support */
:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Print: clean output for receipts & tax documents
      (only the open dialog prints; chrome/buttons hidden) */
@media print {
  @page {
    margin: 12mm 10mm 12mm 10mm;
    size: auto;
  }

  body > *:not(dialog[open]) {
    display: none !important;
  }

  dialog[open] {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    display: block !important;
  }

  dialog[open] .modal-content,
  .tax-modal-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .no-print,
  .modal-close-btn,
  .modal-actions,
  .tax-doc-stats-bar {
    display: none !important;
  }

  .official-tax-document {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 1.5rem !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .tax-table-scroll {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
  }

  .tax-summary-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
  }

  .tax-summary-table thead {
    display: table-header-group !important;
  }

  .tax-summary-table tfoot {
    display: table-footer-group !important;
  }

  .tax-summary-table thead th {
    position: static !important;
    background: #f8fafc !important;
    box-shadow: none !important;
  }

  .tax-continuation-header-row {
    display: table-row !important;
  }

  .tax-continuation-banner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    border-bottom: 1.5px solid #0f172a !important;
    background: #f1f5f9 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  /* Prevent awkward page break cuts inside individual table rows and sections */
  .tax-summary-table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .irs-compliance-box,
  .tax-signature-row,
  .donor-details-grid,
  .tax-statement-header,
  .tax-document-footer {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .tax-document-footer {
    display: block !important;
    margin-top: 1.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #cbd5e1 !important;
    font-size: 0.72rem !important;
    color: #64748b !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  .tax-doc-footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
}

/* Chat message admin delete button */
.chat-msg {
  position: relative;
}

.chat-delete-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.6;
  padding: 0.15rem 0.3rem;
  min-width: 44px; /* a11y: minimum touch target (icon stays same visual size) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-delete-btn:hover {
  opacity: 1;
  color: #ef4444;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (GDPR / CCPA / 2026 US PRIVACY REGULATIONS)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(13, 1, 26, 0.96);
  border-top: 1.5px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem 1.5rem;
  color: #f1f5f9;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: slideUpConsent 0.3s ease-out;
}

@keyframes slideUpConsent {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1 1 500px;
}

.cookie-consent-text strong {
  color: #f59e0b;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.cookie-consent-text p {
  margin: 0;
  color: #e2e8f0;
}

.cookie-privacy-link {
  color: #f59e0b;
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.cookie-privacy-link:hover,
.cookie-privacy-link:focus-visible {
  color: #fbbf24;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-consent-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .cookie-consent-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

