@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: "Twemoji Country Flags";
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.3/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}

.hidden {
  display: none !important;
}

:root {
  --color-primary-gold: #b0811a;
  --color-primary-gold-dark: #8c6410;
  --ink: #222523;
  --muted: #6f7873;
  --surface: #fdfcf9;
  --soft: #faf7f0;
  --soft-2: #f2ebd9;
  --line: #e5dac4;
  --forest: #b0811a;
  --teal: #1a4478;
  --gold: #c79624;
  --clay: #1a4478;
  --plum: #4a2f8b;
  --blue: #1a4478;
  --shadow: 0 22px 70px rgba(40, 44, 42, 0.08);
  --radius: 8px;
  --max: 1080px;
  color: var(--ink);
  font-family: 'Open Sans', 'Twemoji Country Flags', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Modern dashboard and livestream surfaces */
.dash-body { background:#f7f8f6; }
.dash-topbar { background:rgba(255,255,255,.92); border-bottom:1px solid #e6e9e3; }
.dash-shell { display:grid; grid-template-columns:248px minmax(0,1fr); min-height:calc(100vh - 70px); }
.dash-sidebar { position:sticky; top:70px; height:calc(100vh - 70px); padding:22px; background:#fff; border-right:1px solid #e6e9e3; }
.dash-user { display:grid; grid-template-columns:42px 1fr; gap:11px; align-items:center; margin-bottom:22px; }
.avatar { display:grid; width:42px; height:42px; place-items:center; border-radius:50%; background:#e9f3ee; color:var(--forest); font-weight:950; }
.dash-nav { display:grid; gap:6px; }
.dash-nav a, .dash-nav button { display:flex; align-items:center; gap:10px; min-height:40px; border:0; border-radius:10px; padding:0 11px; background:transparent; color:#526058; font-weight: 600; text-align:left; }
.dash-nav a.active, .dash-nav a:hover, .dash-nav button:hover { background:#edf3ef; color:var(--forest); }
.dash-main { padding:24px; }
.dash-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.dash-title h1 { margin-bottom:8px; font-size:clamp(2rem,4vw,3.8rem); line-height:1; }
.dash-title p { max-width:720px; margin-bottom:0; }
.dash-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.kpi-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.kpi-card { display:grid; gap:8px; min-height:116px; border:1px solid #e3e7e0; border-radius:14px; padding:16px; background:#fff; box-shadow:0 14px 34px rgba(20,23,22,.06); }
.kpi-card .icon { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:#edf3ef; color:var(--forest); }
.kpi-card strong { font-size:1.75rem; line-height:1; }
.kpi-card span { color:var(--muted); font-size:.86rem; font-weight:760; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:18px; align-items:start; }
.dashboard-grid.admin-grid { grid-template-columns:minmax(0,1fr) 420px; }
.stack { display:grid; gap:16px; }
.dash-panel { border:1px solid #e3e7e0; border-radius:16px; background:#fff; box-shadow:0 14px 34px rgba(20,23,22,.06); overflow:hidden; }
.dash-panel-pad { padding:18px; }
.panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:18px 18px 0; }
.panel-header h2, .panel-header h3 { margin-bottom:5px; }
.panel-header p { margin-bottom:0; font-size:.92rem; }
.field-category { padding:18px; border-top:1px solid #edf0ea; }
.field-category:first-of-type { border-top:0; }
.category-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.category-icon { display:grid; width:34px; height:34px; place-items:center; border-radius:10px; background:#f0f5f2; color:var(--forest); }
.category-head h3 { margin-bottom:2px; font-size:1rem; }
.category-head p { margin-bottom:0; font-size:.84rem; }
.readable-block { display:grid; gap:14px; }
.profile-story { margin:0; max-width:860px; color:#39443e; font-size:1rem; line-height:1.65; }
.content-callout { display:grid; gap:5px; border:1px solid #e3e7e0; border-radius:14px; padding:14px; background:linear-gradient(180deg,#fbfcfa,#f7f8f6); }
.content-callout span, .readable-grid span { color:#657269; font-size:.78rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.content-callout strong { color:var(--ink); font-size:1.02rem; line-height:1.45; overflow-wrap:anywhere; }
.readable-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.readable-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.readable-grid > div { display:grid; gap:5px; min-height:84px; border:1px solid #e8ebe5; border-radius:14px; padding:13px; background:#fff; }
.readable-grid strong { color:var(--ink); font-size:1.02rem; line-height:1.35; overflow-wrap:anywhere; }
.pastor-readable { display:grid; grid-template-columns:96px minmax(0,1fr); gap:14px; align-items:start; border:1px solid #e3e7e0; border-radius:16px; padding:14px; background:#fbfcfa; }
.pastor-readable img { width:96px; aspect-ratio:1; border-radius:14px; object-fit:cover; background:#edf0ea; }
.pastor-readable h4 { margin:2px 0 2px; font-size:1.3rem; }
.pastor-readable p:last-child { margin-bottom:0; line-height:1.6; }
.eyebrow { color:var(--forest); font-size:.78rem; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.ministry-chip-grid { display:flex; flex-wrap:wrap; gap:8px; }
.ministry-chip-grid .tag { background:#edf3ef; color:var(--forest); border-color:#dce7e1; font-weight:850; }
.block-editor { margin-top:16px; border:1px solid #e3e7e0; border-radius:14px; background:#fbfcfa; overflow:hidden; }
.block-editor summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:0 14px; cursor:pointer; list-style:none; }
.block-editor summary::-webkit-details-marker { display:none; }
.block-editor summary span { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:900; }
.block-editor summary small { color:#69756e; font-weight:760; text-align:right; }
.block-editor:not([open]) .editor-body { display:none; }
.block-editor[open] { position:fixed; inset:0; z-index:80; display:grid; grid-template-columns:minmax(0,min(980px,calc(100vw - 48px))); align-content:center; justify-content:center; margin:0; padding:24px; border:0; border-radius:0; background:rgba(9,15,12,.58); overflow:auto; }
.block-editor[open] summary { width:100%; min-height:72px; border:1px solid #e3e7e0; border-bottom:0; border-radius:18px 18px 0 0; padding:18px 22px; background:#fff; box-shadow:0 28px 90px rgba(20,23,22,.18); }
.block-editor[open] summary span { font-size:1.08rem; }
.block-editor[open] .editor-body { width:100%; max-height:min(72vh,780px); overflow:auto; border:1px solid #e3e7e0; border-radius:0 0 18px 18px; background:#fff; box-shadow:0 28px 90px rgba(20,23,22,.18); }
.block-editor[open] .compact-grid { gap:16px 18px; }
.block-editor[open] .form-field input,
.block-editor[open] .form-field select,
.block-editor[open] .form-field textarea { min-height:48px; border-radius:12px; padding:11px 14px; font-size:.96rem; font-weight:760; }
.block-editor[open] .form-field textarea { min-height:132px; line-height:1.5; }
.editor-body { display:grid; gap:16px; padding:22px; }
.editor-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:4px; }
body.portal-modal-open { overflow:hidden; }
.compact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.compact-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.side-card { border:1px solid #e3e7e0; border-radius:16px; padding:16px; background:#fff; box-shadow:0 14px 34px rgba(20,23,22,.06); }
.profile-preview { overflow:hidden; padding:0; }
.preview-cover { min-height:142px; background:linear-gradient(180deg,rgba(20,23,22,.08),rgba(20,23,22,.54)), var(--preview-image) center/cover; }
.preview-body { padding:16px; }
.progress-list, .activity-list, .chat-list { display:grid; gap:10px; }
.progress-item, .activity-item, .chat-message { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start; }
.progress-item i, .activity-item i, .chat-avatar { display:grid; width:34px; height:34px; place-items:center; border-radius:50%; background:#edf3ef; color:var(--forest); }
.mini-chart { display:grid; gap:8px; }
.bar { height:9px; border-radius:999px; background:#edf0ea; overflow:hidden; }
.bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--forest),var(--teal)); }
.admin-filter-row { display:grid; grid-template-columns:minmax(0,1fr) 150px 150px auto; gap:10px; padding:18px; border-bottom:1px solid #edf0ea; }
.admin-command-list { display:grid; gap:10px; }
.command-card { display:grid; grid-template-columns:38px 1fr auto; gap:10px; align-items:center; border:1px solid #edf0ea; border-radius:12px; padding:12px; background:#fbfcfa; }
.command-card .icon { display:grid; width:38px; height:38px; place-items:center; border-radius:12px; background:#edf3ef; color:var(--forest); }
.live-page { min-height:100vh; background:radial-gradient(circle at 20% 0%,rgba(20,125,126,.08),transparent 34%), radial-gradient(circle at 84% 10%,rgba(215,168,62,.1),transparent 32%), #f7f8f6; color:var(--ink); }
.live-page .topbar { background:rgba(255,255,255,.94); border-color:rgba(221,216,202,.82); color:var(--ink); }
.live-page .brand small, .live-page .nav-links, .live-page p { color:var(--muted); }
.live-shell { width:min(var(--max),calc(100% - 44px)); margin:0 auto; padding:24px 0 44px; }
.live-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:start; }
.live-player { min-height:620px; border:1px solid #e3e7e0; border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 24px 70px rgba(20,23,22,.1); }
.live-stage { min-height:500px; display:grid; place-items:center; position:relative; border-bottom:1px solid #e3e7e0; background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(20,23,22,.34)), var(--player-image) center/cover; }
.live-stage::after { content:"LIVE"; position:absolute; left:18px; top:18px; border-radius:999px; padding:7px 10px; background:#ef4444; color:#fff; font-size:.75rem; font-weight:950; }
.live-control-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:86px; padding:16px; background:#fff; }
.live-control-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.control-dot { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; background:#edf3ef; color:var(--forest); }
.live-card { border:1px solid #e3e7e0; border-radius:16px; background:#fff; box-shadow:0 20px 54px rgba(20,23,22,.08); }
.live-card-pad { padding:16px; }
.live-sidebar-tabs { position:sticky; top:88px; min-height:620px; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; }
.live-tab-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; border-bottom:1px solid #e3e7e0; background:#fbfcfa; }
.live-tab-button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border:1px solid #e3e7e0; border-radius:12px; background:#fff; color:#526058; font-weight: 600; font-size:.82rem; cursor:pointer; transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease; }
.live-tab-button svg { width:16px; height:16px; }
.live-tab-button:hover { border-color:#cbd8d0; color:var(--forest); transform:translateY(-1px); }
.live-tab-button.active { border-color:#cfe0d7; background:#edf3ef; color:var(--forest); }
.live-tab-panel { display:none; min-height:0; }
.live-tab-panel.active { display:block; }
.live-tab-panel.chat-panel.active { display:grid; grid-template-rows:auto minmax(260px,1fr) auto; overflow:hidden; }
.live-tab-panel .stack { margin-top:14px; }
.chat-panel { min-height:0; }
.chat-list { overflow:auto; padding:14px 16px; border-top:1px solid #e8ebe5; border-bottom:1px solid #e8ebe5; background:#fbfcfa; }
.chat-message strong { display:block; margin-bottom:3px; color:var(--ink); }
.chat-message p { margin:0; color:var(--muted); font-size:.92rem; }
.chat-form { display:grid; grid-template-columns:1fr auto; gap:8px; padding:12px; }
.chat-form input, .live-card input, .live-card textarea { width:100%; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); padding:11px 12px; outline:0; }
.chat-form input::placeholder, .live-card input::placeholder, .live-card textarea::placeholder { color:#8a938d; }
.private-app:not(.is-authenticated) .private-content { display:none; }
.private-app.is-authenticated .login-screen { display:none !important; }
.login-screen {
  height: calc(100vh - 70px);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 0 28px;
  box-sizing: border-box;
  background: radial-gradient(circle at 18% 10%, rgba(26, 68, 120, 0.08), transparent 32%), var(--soft);
  overflow: hidden;
}

.portal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  grid-template-rows: min-content min-content;
  column-gap: 48px;
  row-gap: 16px;
  width: min(1080px, 100%);
  align-items: center;
  margin-bottom: 12px;
}

.portal-hero-title-section {
  grid-column: 1;
  grid-row: 1;
}

.onboarding-feature-carousel {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.login-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* Dynamic Onboarding Feature Carousel */
.onboarding-feature-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  min-height: 180px;
  position: relative;
  width: 100%;
}

.onboarding-feature-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: onboardingFadeInRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-feature-group.exit {
  animation: onboardingFadeOutFall 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ink);
  padding-left: 4px;
}

.onboarding-feature-item i {
  color: var(--forest);
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.onboarding-feature-stats {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-wrap: nowrap;
}

.onboarding-stat-card {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(20, 23, 22, 0.02);
  opacity: 0;
  transform: translateY(12px);
  animation: onboardingFadeInRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(23, 76, 58, 0.08);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-stat-card-icon i {
  width: 18px;
  height: 18px;
}

.onboarding-stat-card-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.onboarding-stat-card-content strong {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.1;
}

.onboarding-stat-card-content span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes onboardingFadeInRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes onboardingFadeOutFall {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@media (max-width: 1040px) {
  .login-screen {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding-bottom: 0;
  }
  .portal-grid {
    flex: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
    margin-bottom: 15px;
  }
  .portal-hero-title-section {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
  }
  .login-card {
    grid-column: 1;
    grid-row: 2;
  }
  .onboarding-feature-carousel {
    grid-column: 1;
    grid-row: 3;
    min-height: auto;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .onboarding-feature-group {
    align-items: center;
  }
  .onboarding-feature-item {
    justify-content: center;
    text-align: center;
    font-size: 1.12rem;
  }
  .onboarding-feature-item i {
    width: 22px;
    height: 22px;
  }
  .onboarding-feature-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .onboarding-stat-card {
    padding: 10px 14px;
    gap: 10px;
  }
  .onboarding-stat-card-icon {
    width: 32px;
    height: 32px;
  }
  .onboarding-stat-card-icon i {
    width: 16px;
    height: 16px;
  }
  .onboarding-stat-card-content strong {
    font-size: 1.15rem;
  }
  .onboarding-stat-card-content span {
    font-size: 0.72rem;
  }
  .portal-card-title {
    font-size: 1.35rem;
    text-align: center;
  }
}

.portal-card-title {
  font-size: 1.6rem;
}

.portal-hero-title-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink);
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
}

.portal-hero-title-section h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.portal-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.portal-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.bullet-item i {
  color: var(--forest);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(40, 44, 42, 0.06);
  padding: 34px;
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Tabs switcher styling */
.portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--soft);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(20, 23, 22, 0.06);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 4px 0 12px 0;
}

.tab-content form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.security-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 12px;
  background: rgba(26, 68, 120, 0.06);
  color: var(--blue);
  font-size: .88rem;
  line-height: 1.45;
  font-weight: 700;
}

/* Responsive grid for portal split screen */
@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width:1040px) {
  .dash-shell, .dashboard-grid, .dashboard-grid.admin-grid, .live-grid { grid-template-columns:1fr; }
  .dash-sidebar { position:static; height:auto; border-right:0; border-bottom:1px solid #e6e9e3; }
  .dash-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-sidebar-tabs { position:static; min-height:520px; }
}

@media (max-width:680px) {
  .dash-main { padding:16px; }
  .dash-header { flex-direction:column; }
  .dash-toolbar, .dash-toolbar .button { width:100%; }
  .kpi-strip, .compact-grid, .compact-grid.three, .readable-grid, .readable-grid.three, .admin-filter-row, .dash-nav, .chat-form { grid-template-columns:1fr; }
  .live-shell { width:min(100% - 28px,var(--max)); }
  .live-player, .live-stage { min-height:420px; }
  .live-sidebar-tabs { min-height:0; }
  .live-tab-list { grid-template-columns:1fr; }
  .pastor-readable { grid-template-columns:1fr; }
  .block-editor summary { align-items:flex-start; flex-direction:column; justify-content:center; padding:12px 14px; }
  .block-editor[open] { grid-template-columns:minmax(0,calc(100vw - 24px)); padding:12px; align-content:start; }
  .block-editor[open] summary { min-height:0; padding:16px; }
  .editor-body { padding:16px; }
  .block-editor summary small { text-align:left; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 252, 249, 0.94);
  border-bottom: 1px solid rgba(221, 216, 202, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  margin-left: auto;
  color: #3b4640;
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-actions {
  margin-left: auto;
}

.nav-links ~ .nav-actions {
  margin-left: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 23, 22, 0.12);
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.gold {
  background: var(--gold);
  color: #2f250f;
}

.button.ghost {
  border-color: var(--line);
}

.button.danger {
  color: #9f2f24;
  border-color: #efc7c0;
}

.button.small {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.hero {
  padding: 34px 0 74px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  min-height: 620px;
  border: 1px solid rgba(221, 216, 202, 0.88);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(36px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media {
  position: relative;
  min-height: 460px;
  background: linear-gradient(180deg, rgba(20, 23, 22, 0.08), rgba(20, 23, 22, 0.62)), var(--hero-image) center/cover;
}

.hero-media-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8edcf;
  color: #7a5207;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 830px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 660px;
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.search-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(20, 23, 22, 0.08);
}

/* ======================================================
   INDUSTRY-LEADING SEAMLESS SEARCH & FILTER BAR (Airbnb / Linear Style)
   ====================================================== */

.directory-search-container {
  margin-bottom: 36px;
}

.search-hero-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-hero-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #64748b;
  pointer-events: none;
}

.search-hero-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  padding: 12px 18px 12px 50px !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-hero-input:focus {
  border-color: #c79624 !important;
  box-shadow: 0 0 0 4px rgba(199, 150, 36, 0.15), 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.reset-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.reset-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Seamless Segmented Filter Bar */
.seamless-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.filter-segment {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-right: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.2s ease;
  cursor: pointer;
}

.filter-segment:hover {
  background: #f8fafc;
}

.filter-segment.last-segment {
  border-right: none;
}

.segment-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.segment-label svg {
  width: 13px;
  height: 13px;
  color: #c79624;
}

.segment-select {
  width: 100%;
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-position: right 4px center !important;
  background-size: 14px 14px !important;
  background-repeat: no-repeat !important;
  padding: 2px 22px 2px 0 !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-shadow: none !important;
}

.seamless-filter-bar.events-filter-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .seamless-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-segment:nth-child(3) {
    border-right: none;
  }
  .filter-segment {
    border-bottom: 1px solid #f1f5f9;
  }
}

@media (max-width: 640px) {
  .seamless-filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-segment {
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9;
  }
  .search-hero-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  margin-bottom: 32px;
}

.search-primary-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search-input-flex {
  position: relative;
  flex: 1;
}

.search-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #64748b;
  pointer-events: none;
}

.search-field-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
  padding: 12px 16px 12px 48px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-field-input:focus {
  border-color: #c79624 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(199, 150, 36, 0.15) !important;
}

.filter-controls-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-label svg {
  width: 14px;
  height: 14px;
  color: #c79624;
}

.styled-filter-select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  padding: 8px 12px !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  transition: all 0.2s;
  cursor: pointer;
}

.styled-filter-select:focus {
  border-color: #c79624 !important;
  box-shadow: 0 0 0 3px rgba(199, 150, 36, 0.15) !important;
}

@media (max-width: 1024px) {
  .filter-controls-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-controls-grid {
    grid-template-columns: 1fr;
  }
  .search-primary-row {
    flex-direction: column;
  }
}

.field,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
  font-weight: 650;
}

select.field,
.form-field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #1f2a24 50%),
    linear-gradient(135deg, #1f2a24 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: #536058;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 4px;
}

.form-field textarea {
  min-height: 106px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.church-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 23, 22, 0.08);
}

.church-photo {
  position: relative;
  height: 174px;
  background: var(--photo) center/cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(20, 23, 22, 0.86);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.church-photo .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.church-card-body {
  padding: 16px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ded8c9;
  border-radius: 999px;
  padding: 6px 8px;
  background: #f8f5ee;
  color: #39433d;
  font-size: 0.76rem;
  font-weight: 820;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.card-actions .button {
  flex: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.stat strong {
  display: block;
  margin-bottom: 7px;
  font-size: 2rem;
  line-height: 1;
}

.story-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story,
.feature,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.story-image {
  height: 170px;
  background: var(--image) center/cover;
}

.story-body,
.feature,
.summary-card {
  padding: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px;
}

.sidebar-title {
  margin-bottom: 20px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 10px;
  background: transparent;
  color: #39433d;
  font-weight: 600;
  text-align: left;
}

.sidebar-nav a.active,
.sidebar-nav button.active,
.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background: var(--soft);
  color: var(--forest);
}

.workspace {
  padding: 28px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.panel + .panel {
  margin-top: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 1.75rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f6f0;
  color: #58635d;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 9px;
  background: #ecfdf3;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status.pending {
  background: #fff2cc;
  color: #725008;
}

.status.offline {
  background: #efebe2;
  color: #5a625d;
}

.status.premium {
  background: #eee9ff;
  color: var(--plum);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-hero {
  min-height: 470px;
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 23, 22, 0.2), rgba(20, 23, 22, 0.82)), var(--profile-image) center/cover;
}

.profile-hero-content {
  padding: 96px 0 42px;
}

.profile-hero h1 {
  color: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  margin-top: -26px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.media-player {
  min-height: 520px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 23, 22, 0.18), rgba(20, 23, 22, 0.86)), var(--player-image) center/cover;
  box-shadow: var(--shadow);
}

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #2f250f;
  margin: 0 auto 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  transform: translateX(-50%) translateY(110px);
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.empty {
  padding: 24px;
  color: var(--muted);
}

.lucide {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.3;
  vertical-align: -0.16em;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero-panel,
  .workspace-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .search-row,
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid,
  .story-grid,
  .feature-grid,
  .stats-grid,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section-head,
  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    margin-left: 0;
    width: 100%;
  }

  .nav-actions .button {
    flex: 1;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-media {
    min-height: 320px;
  }

  .search-row,
  .form-grid,
  .form-grid.three,
  .cards-grid,
  .story-grid,
  .feature-grid,
  .stats-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 18px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }
}

@media (min-width:560px) and (max-width:1040px) {
  body[data-page="portal"] .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

/* Redesigned 100vh Hero Page Styles */
body.hero-only-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

body.hero-only-page .topbar {
  flex-shrink: 0;
}

body.hero-only-page .hero-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.hero-only-page main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.hero-fullscreen {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #141716;
}

.video-background iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0.65;
}

.hero-glow-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(to top, rgba(20, 23, 22, 0.98) 0%, rgba(20, 23, 22, 0.6) 50%, rgba(20, 23, 22, 0.15) 100%),
    linear-gradient(135deg, rgba(26, 68, 120, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(176, 129, 26, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 48px;
  align-items: center;
  height: 100%;
  padding-top: 82px;
  padding-bottom: 20px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  color: #fff;
  padding: 100px 20px 100px 0;
}

.hero-left h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: #fff;
  line-height: 1.05;
  margin-top: 16px;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-left .lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(235, 240, 237, 0.85);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-left .kicker {
  background: rgba(215, 168, 62, 0.18);
  color: #f5cb6c;
  border: 1px solid rgba(215, 168, 62, 0.35);
  padding: 6px 12px;
  letter-spacing: 0.05em;
}

/* Slider Section: Inline breakout, Full Width, grouped under text content */
.slider-wrapper {
  position: relative;
  width: 100vw;
  /* Break out of .hero-left and container to touch screen edges exactly */
  margin-left: calc((min(var(--max), 100vw - 44px) - 100vw) / 2);
  z-index: 5; /* Lower z-index so it slides behind the form card */
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f5cb6c;
  letter-spacing: 0.08em;
  /* Align text exactly with container left edge */
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
}

.slider-container-box {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Default Mobile Mask: fade 24px on both edges */
  mask-image: linear-gradient(to right, 
    rgba(0, 0, 0, 0) 0px, 
    rgba(0, 0, 0, 1) 24px, 
    rgba(0, 0, 0, 1) calc(100% - 24px), 
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(to right, 
    rgba(0, 0, 0, 0) 0px, 
    rgba(0, 0, 0, 1) 24px, 
    rgba(0, 0, 0, 1) calc(100% - 24px), 
    rgba(0, 0, 0, 0) 100%
  );
}

@media (min-width: 1041px) {
  .slider-container-box {
    /* Desktop Mask: 100px fade on left, 450px fade on right (matches right column width) */
    mask-image: linear-gradient(to right, 
      rgba(0, 0, 0, 0) 0px, 
      rgba(0, 0, 0, 1) 100px, 
      rgba(0, 0, 0, 1) calc(100% - 450px), 
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(to right, 
      rgba(0, 0, 0, 0) 0px, 
      rgba(0, 0, 0, 1) 100px, 
      rgba(0, 0, 0, 1) calc(100% - 450px), 
      rgba(0, 0, 0, 0) 100%
    );
  }
}

.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 64s linear infinite;
  padding: 16px 4px;
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.slider-track::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Glassmorphism Church Cards */
.tiny-church-card {
  flex: 0 0 310px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  opacity: 0.55;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.25s ease, 
              background-color 0.25s ease, 
              box-shadow 0.25s ease,
              opacity 0.25s ease;
  cursor: pointer;
}

.tiny-church-card:hover {
  transform: scale(1.07);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.20) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.tiny-card-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.tiny-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tiny-card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiny-card-details {
  font-size: 0.74rem;
  color: rgba(221, 230, 225, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiny-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #f5cb6c;
  text-transform: uppercase;
}

.slider-loading {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-style: italic;
  padding: 10px 4px;
}

/* Right Side Floating Search Form Card */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.search-card {
  width: 100%;
  max-width: 410px;
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  z-index: 20; /* High z-index to stay on top of the scrolling breakout slider */
}

.search-card-header {
  margin-bottom: 24px;
}

.search-card-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 6px;
  line-height: 1.2;
}

.search-card-header p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.search-card form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.location-combined-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-combined-group:focus-within {
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 76, 58, 0.12);
}

.location-combined-group .city-section {
  flex: 1;
}

.location-combined-group .city-section .field {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 48px;
}

.location-combined-group .country-section {
  flex-shrink: 0;
  border-left: 1.5px solid #e2e8f0;
}

.location-combined-group .country-dropdown {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 48px;
  width: 98px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  appearance: none;
}

.toggle-group {
  margin-top: 4px;
}

.toggle-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.toggle-label-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #39433d;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--clay);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(185, 93, 69, 0.25);
}

.search-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-card label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 4px;
}

.input-with-icon,
.select-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-card .input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-card .field {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 780;
  background: #f8fafc;
  color: var(--ink);
  transition: all 0.2s ease;
  appearance: none; /* Reset standard styles */
}

/* Offset padding when icon is present on the left */
.input-with-icon .field,
.select-with-icon .field {
  padding-left: 42px;
}

/* Remove calendar/datalist picker down arrow on city input */
#hero-city-input::-webkit-calendar-picker-indicator {
  display: none !important;
}

.search-card select.field {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366716b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}

.search-card .field:focus {
  border-color: var(--forest);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 76, 58, 0.12);
}

.search-submit-button {
  background: var(--clay);
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 100%;
  min-height: 52px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.search-submit-button:hover {
  background: #a04933;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(185, 93, 69, 0.35);
}

.search-submit-button active {
  transform: translateY(0);
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness for 100vh Hero Page */
@media (max-width: 1040px) {
  body.hero-only-page {
    overflow-y: auto;
    height: auto;
  }
  
  body.hero-only-page .hero-main {
    flex: none;
    height: auto;
  }
  
  .hero-fullscreen {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 0 0 44px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 34px;
    height: auto;
    padding-top: 104px;
    padding-bottom: 10px;
  }
  
  .hero-left {
    padding: 20px 0;
    justify-content: start;
    height: auto;
  }
  
  .hero-left h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  
  .slider-wrapper {
    position: static;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .hero-right {
    justify-content: center;
  }
  
  .search-card {
    max-width: 100%;
  }
}

/* Transparent header styles for hero page */
body.hero-only-page .topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

body.hero-only-page .topbar.scrolled {
  background: rgba(20, 23, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.hero-only-page .topbar .brand {
  color: #ffffff;
}

body.hero-only-page .topbar .brand small {
  color: rgba(255, 255, 255, 0.65);
}

body.hero-only-page .topbar .nav-links {
  color: rgba(255, 255, 255, 0.9);
}

body.hero-only-page .topbar .nav-links a:hover {
  color: #ffffff;
}

body.hero-only-page .topbar .nav-actions .button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

body.hero-only-page .topbar .nav-actions .button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Custom Modern Select Dropdown UI */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.custom-select-trigger .trigger-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.22s ease;
  pointer-events: none;
  flex-shrink: 0;
}

.custom-select-container.open .custom-select-trigger .trigger-arrow {
  transform: rotate(180deg);
}

.custom-options-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px;
}

/* Custom scrollbar for options panel */
.custom-options-panel::-webkit-scrollbar {
  width: 6px;
}
.custom-options-panel::-webkit-scrollbar-track {
  background: transparent;
}
.custom-options-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-select-container.open .custom-options-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-option:hover {
  background: #f1f5f9;
  color: var(--forest);
}

.custom-option.selected {
  background: rgba(23, 76, 58, 0.08);
  color: var(--forest);
}

/* Custom Checkbox styles for multi-select options */
.custom-option .option-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.custom-option .option-checkbox-icon {
  width: 10px;
  height: 10px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.18s ease;
  stroke-width: 3px;
  flex-shrink: 0;
}

/* Selected checkbox state */
.custom-option.selected .option-checkbox {
  background-color: var(--clay);
  border-color: var(--clay);
}

.custom-option.selected .option-checkbox-icon {
  opacity: 1;
}

/* Right-aligned checkmark for single-select option rows */
.custom-option .option-check-icon {
  width: 14px;
  height: 14px;
  color: var(--forest);
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.custom-option.selected .option-check-icon {
  opacity: 1;
}

/* Small, semi-bold styling for select trigger fields when an active selection is made */
.custom-select-container.has-selection .custom-select-trigger .trigger-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest);
}

/* Special overrides for country combined select trigger */
.location-combined-group .country-section {
  flex-shrink: 0;
  border-left: 1.5px solid #e2e8f0;
  width: 115px; /* Sized to perfectly fit 20px padding + centered content */
  position: relative;
}

.country-section .custom-select-container {
  width: 100%;
}

.country-section .custom-select-trigger {
  width: 100% !important;
  padding-left: 20px !important; /* 20px left padding */
  padding-right: 20px !important; /* 20px right padding */
  justify-content: center !important; /* Center content */
  gap: 10px !important; /* Spacing between code and chevron arrow (at least 8px!) */
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: 0.92rem !important; /* Same font size as dropdown options */
  font-weight: 700 !important;
}

.country-section .custom-options-panel {
  width: 100% !important;
  min-width: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

.country-section .custom-option {
  justify-content: center !important; /* Centered options */
  padding-left: 20px !important; /* 20px left padding */
  padding-right: 20px !important; /* 20px right padding */
}

.country-label-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Spacing between flag and country code initials (at least 5px!) */
}

/* Premium Language Selector Dropdown Layout */
.lang-selector-container {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.login-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  text-decoration: none !important;
}

.login-header-btn:hover {
  border-color: var(--forest);
  background: var(--soft);
  color: var(--ink) !important;
}

.header-profile-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.header-profile-circle:hover {
  border-color: var(--forest);
  background: var(--soft);
}

/* Premium Modal Styles (Light and Dark Mode support) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1010;
  box-sizing: border-box;
  position: relative;
  border: 1px solid #f1f5f9;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.modal-tab {
  flex: 1;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  border-bottom-color: #10b981;
  color: #0f172a;
}

.modal-card h3 {
  color: #0f172a !important;
}

.modal-card p,
.modal-card label,
.modal-card span {
  color: #64748b;
}

.modal-card input {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  outline: none;
  transition: border-color 0.2s;
}

.modal-card input:focus {
  border-color: #10b981 !important;
}

.modal-card hr {
  border: 0;
  border-top: 1px solid #f1f5f9;
}

/* Dark Mode Modal overrides */
body.lights-out .modal-overlay {
  background: rgba(4, 6, 10, 0.8) !important;
}

body.lights-out .modal-card {
  background: #111625 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

body.lights-out .modal-card h3 {
  color: #ffffff !important;
}

body.lights-out .modal-card p,
body.lights-out .modal-card label,
body.lights-out .modal-card span {
  color: #94a3b8 !important;
}

body.lights-out .modal-card input {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.lights-out .modal-card hr {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .modal-card button {
  color: #94a3b8;
}

body.lights-out .modal-tab {
  color: #94a3b8;
}

body.lights-out .modal-tab.active {
  color: #ffffff;
}

.lang-selector-btn:hover {
  border-color: var(--forest);
  background: var(--soft);
}

.lang-selector-btn .lang-chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.lang-selector-container.open .lang-selector-btn .lang-chevron {
  transform: rotate(180deg);
}

.lang-selector-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 23, 22, 0.1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector-container.open .lang-selector-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--soft);
  color: var(--forest);
}

.lang-option .lang-flag {
  font-size: 1.05rem;
}

/* Password Input Wrapper & Visibility Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 42px !important; /* Make room for the eye icon button */
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle i {
  width: 18px;
  height: 18px;
}

/* Hide dashboard actions in topbar if not authenticated */
.private-app:not(.is-authenticated) .dash-topbar .nav-links,
.private-app:not(.is-authenticated) .dash-topbar .nav-actions > *:not(.lang-selector-container),
.private-app:not(.is-authenticated) .mobile-menu-toggle {
  display: none !important;
}

/* Mobile Sidebar Drawer Navigation System */
.topbar-menu-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.mobile-only-link {
  display: none;
}

.mobile-menu-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  /* Language Selector positioning on mobile header */
  .topbar-inner .lang-selector-container {
    margin-left: auto !important; /* Pushes toggle and lang select to the right */
    margin-right: 0 !important; /* Remove margin right */
  }

  /* Transparent, borderless language selector button across the entire platform on mobile */
  .topbar-inner .lang-selector-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--ink) !important; /* Default dark text color for standard light headers */
    cursor: pointer;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  /* Transparent, borderless hamburger toggle button across the entire platform on mobile */
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ink) !important; /* Matches default header text */
    cursor: pointer;
    z-index: 101; /* Stay on top of drawer */
    margin-left: 0 !important; /* Relies on lang selector auto margin */
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
    padding: 0 !important;
  }

  /* Force white text/icons on the transparent video-background hero header page on mobile */
  body.hero-only-page .mobile-menu-toggle {
    color: #fff !important;
  }
  body.hero-only-page .topbar-inner .lang-selector-btn {
    color: #fff !important;
  }

  .mobile-menu-toggle:hover,
  .topbar-inner .lang-selector-btn:hover {
    opacity: 0.75;
    transform: scale(1.08);
  }

  .mobile-menu-toggle i {
    width: 32px !important;
    height: 32px !important;
  }

  .brand,
  .mobile-menu-toggle,
  .topbar-inner .lang-selector-container,
  main {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  body.mobile-menu-active {
    overflow-x: hidden !important;
    width: 100% !important;
    position: fixed !important; /* Locks vertical scroll on body during active menu */
  }

  /* Translate elements separately to prevent topbar transform stacking context double translation */
  body.mobile-menu-active .brand,
  body.mobile-menu-active .mobile-menu-toggle,
  body.mobile-menu-active .topbar-inner .lang-selector-container,
  body.mobile-menu-active main,
  body.mobile-menu-active .topbar-menu-group {
    transform: translateX(-290px) !important;
  }

  .topbar-menu-group {
    position: fixed; /* Fixed to viewport to prevent header and container clipping */
    top: 0;
    right: -290px; /* Positioned off-screen relative to viewport */
    bottom: auto;
    width: 290px;
    height: 100vh;
    height: 100dvh;
    background: #fff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
    padding: 82px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    z-index: 1000; /* Render on top of backdrop */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .topbar-menu-group .nav-links,
  .topbar-menu-group .nav-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    margin: 0;
  }

  .topbar-menu-group .nav-links a {
    font-size: 1rem;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 10px;
    border-bottom: none;
    background: var(--soft);
    display: block;
    color: var(--ink);
    transition: all 0.2s ease;
  }

  .topbar-menu-group .nav-links a:hover {
    background: rgba(23, 76, 58, 0.08);
    color: var(--forest);
  }

  .topbar-menu-group .nav-links .mobile-only-link {
    display: block;
  }

  .topbar-menu-group .nav-actions .lang-selector-container {
    width: 100%;
  }

  .topbar-menu-group .nav-actions .lang-selector-btn {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-menu-group .nav-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Backdrop overlay for mobile menu drawer (plain overlay, NO BLUR) */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 22, 0.45);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   CHRISTIAN EVENTS MODULE STYLES
   ========================================================================== */

.events-main {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: calc(100vh - 200px);
}

.events-search-section {
  margin-bottom: 40px;
}

.events-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}

@media (max-width: 900px) {
  .events-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .events-filter-grid {
    grid-template-columns: 1fr;
  }
}

.events-section {
  margin-bottom: 40px;
}

.section-title-row {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.section-title-row h3 {
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Event Card V2 (Full-bleed image cards matching reference) ── */
.evc {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease;
}
.evc:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.evc--featured { box-shadow: 0 6px 24px rgba(220,110,80,0.18); }
.evc--featured:hover { box-shadow: 0 18px 40px rgba(220,110,80,0.28); }
.evc--past { filter: grayscale(0.7); opacity: 0.75; }

.evc-link {
  display: block;
  position: relative;
  height: 240px;
  text-decoration: none;
  color: #fff;
}

.evc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.evc:hover .evc-bg {
  transform: scale(1.06);
}

.evc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.78) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Date Badge */
.evc-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  overflow: hidden;
  min-width: 52px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.evc-date-dow {
  display: block;
  width: 100%;
  text-align: center;
  background: #1a5c3a;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 6px;
}
.evc--featured .evc-date-dow { background: var(--clay, #c66a3c); }
.evc-date-day {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a2e22;
  line-height: 1.15;
  padding: 2px 8px 0;
}
.evc-date-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #5a6e62;
  text-transform: capitalize;
  padding: 0 8px 5px;
}

/* Optional badge slot (Promoted / LIVE / Past) */
.evc-badge-slot {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}
.evc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.evc-badge--promoted { background: var(--clay, #c66a3c); }
.evc-badge--live { background: #e11d48; }
.evc-badge--past { background: rgba(100,116,139,0.85); }
.evc-pulse-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

/* Bottom content overlay */
.evc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.evc-city {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}
.evc-city-arrow {
  display: inline-block;
  color: #34d399;
  font-weight: 800;
}
.evc-title {
  margin: 1px 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.evc-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.evc:hover .evc-cta {
  color: #fff;
  border-color: #fff;
}

/* Legacy event-card classes kept for backward compat (modal etc.) */
.event-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.event-card.featured { border: 2px solid var(--clay); box-shadow: 0 8px 20px rgba(220,110,80,0.08); }
.event-card.featured:hover { box-shadow: 0 16px 30px rgba(220,110,80,0.16); }
.event-card.past-card { filter: grayscale(0.85); opacity: 0.8; }
.event-image-container { height: 180px; background-size: cover; background-position: center; position: relative; }
.event-badges-overlay { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.badge.promoted { background: var(--clay); }
.badge.live { background: #e11d48; animation: pulse-live 2s infinite; }
.badge.ticketed { background: var(--forest); }
.badge.past { background: #64748b; }

@keyframes pulse-live {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.event-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.event-date { font-size: 0.8rem; font-weight: 600; color: var(--clay); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.event-title { font-size: 1.15rem; margin: 0 0 10px 0; line-height: 1.4; color: var(--ink); }
.event-organizer, .event-location { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.event-card-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.event-price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }

/* ── Speaker Cards (Reference-matched portrait style) ── */
.spk-card {
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.spk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.spk-photo-wrap {
  padding: 12px 12px 0;
}
.spk-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.spk-info {
  padding: 14px 16px 6px;
}
.spk-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a2e22;
  margin: 0 0 3px;
  line-height: 1.3;
}
.spk-role {
  font-size: 0.78rem;
  color: #6b7c72;
  margin: 0;
  line-height: 1.4;
}

.spk-footer {
  margin-top: auto;
  padding: 10px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spk-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spk-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a9890;
}
.spk-follow-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 8px;
  background: #f0f4f1;
  color: #1a5c3a;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.spk-card:hover .spk-follow-btn {
  background: #1a5c3a;
  color: #fff;
}

.events-empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.events-empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--muted);
}

/* Modal and receipts styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 23, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.25s ease-out;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-dialog.modal-narrow {
  max-width: 440px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ==========================================================================
   Universal Premium Top-Right Modal Close Button (Sleek Circle + Glassmorphism)
   ========================================================================== */
.modal-close-btn,
.close-btn,
.cpc-modal-close,
.video-modal-close-btn,
.modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 60 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-close-btn:hover,
.close-btn:hover,
.cpc-modal-close:hover,
.video-modal-close-btn:hover,
.modal-close:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: scale(1.08) rotate(90deg) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2) !important;
}

.modal-close-btn:active,
.close-btn:active,
.cpc-modal-close:active,
.video-modal-close-btn:active,
.modal-close:active {
  transform: scale(0.94) !important;
}

.modal-close-btn svg,
.close-btn svg,
.cpc-modal-close svg,
.video-modal-close-btn svg,
.modal-close svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.5px !important;
  pointer-events: none !important;
}

/* Dark Mode Modal Close Button Override */
body.lights-out .modal-close-btn,
body.lights-out .close-btn,
body.lights-out .cpc-modal-close,
body.lights-out .video-modal-close-btn,
body.lights-out .modal-close {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

body.lights-out .modal-close-btn:hover,
body.lights-out .close-btn:hover,
body.lights-out .cpc-modal-close:hover,
body.lights-out .video-modal-close-btn:hover,
body.lights-out .modal-close:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25) !important;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.event-modal-detail-grid {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.meta-row .icon {
  color: var(--forest);
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.price-summary-box {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.ticket-stub {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  margin-bottom: 20px;
  color: var(--ink);
}

/* Portal elements styles */
.form-grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.event-editor-card {
  animation: fadeInRise 0.3s ease-out;
}

@keyframes fadeInRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.event-title a:hover {
  color: var(--clay);
}

.event-image-link {
  display: block;
  text-decoration: none;
}

/* ==========================================================================
   LIVESTREAM HUB (LIVESTREAM.HTML) STYLES
   ========================================================================== */

.streams-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.pulse-dot {
  animation: pulse-red-live 1.5s infinite;
}

@keyframes pulse-red-live {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.player-layout-grid {
  display: grid;
  grid-template-columns: calc(75% - 30px) calc(25% + 30px);
  gap: 20px;
}

@media (max-width: 1024px) {
  .player-layout-grid {
    grid-template-columns: 1fr;
  }
}

#player-chat-box div {
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
}

#player-chat-box {
  background: transparent;
}

/* Fading transitions for lights out mode switch */
body[data-page="streams"],
body[data-page="livestream"] {
  transition: background-color 0.8s ease, color 0.8s ease;
  position: relative;
}

body[data-page="streams"]::before,
body[data-page="livestream"]::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1600px;
  height: 1600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.lights-out::before {
  opacity: 1;
}

.modern-video-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: box-shadow 0.8s ease;
}

body[data-page="streams"] .topbar,
body[data-page="streams"] .event-card,
body[data-page="streams"] .stream-info-card,
body[data-page="streams"] aside,
body[data-page="streams"] h1,
body[data-page="streams"] h2,
body[data-page="streams"] h3,
body[data-page="streams"] h4,
body[data-page="streams"] p,
body[data-page="streams"] span,
body[data-page="streams"] a,
body[data-page="streams"] strong,
body[data-page="livestream"] .topbar,
body[data-page="livestream"] aside,
body[data-page="livestream"] h1,
body[data-page="livestream"] h2,
body[data-page="livestream"] h3,
body[data-page="livestream"] h4,
body[data-page="livestream"] p,
body[data-page="livestream"] span,
body[data-page="livestream"] a,
body[data-page="livestream"] strong {
  transition: background-color 0.8s ease, border-color 0.8s ease, color 0.8s ease;
}

/* Lights Out Dark Mode Colors (Bluish dark theme background, not pitch black) */
body.lights-out {
  background-color: #0b0e14 !important;
  color: #e3e8e5 !important;
}

body.lights-out .modern-video-wrapper {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.10) !important;
}

body.lights-out .topbar {
  background-color: rgba(11, 14, 20, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.lights-out .topbar .brand {
  color: #fff !important;
}

body.lights-out .nav-links a {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.lights-out .nav-links a.active {
  color: #fff !important;
  border-bottom-color: var(--clay) !important;
}

body.lights-out h1, 
body.lights-out h2, 
body.lights-out h3, 
body.lights-out h4,
body.lights-out strong {
  color: #fff !important;
}

body.lights-out p,
body.lights-out span,
body.lights-out label,
body.lights-out small {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.lights-out .event-card,
body.lights-out .stream-info-card,
body.lights-out aside {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e3e8e5 !important;
}

body.lights-out #player-chat-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

body.lights-out .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

/* Stream Card & Badge Styling Rules */
.stream-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.stream-viewer-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20,23,22,0.75);
  color: #fff !important;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.stream-card-body {
  padding: 16px 16px 0 16px;
}

.stream-card-title {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.stream-card-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.stream-card-footer {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-card-city {
  font-size: 0.8rem;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Dark Mode Overrides */
body.lights-out .stream-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .stream-card-title {
  color: #fff !important;
}

body.lights-out .stream-card-tagline {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.lights-out .stream-card-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .stream-card-city {
  color: var(--clay) !important;
}

body.lights-out .kicker {
  background: #2f2716 !important;
  color: #f5cb6c !important;
}

/* Modern platform footer */
.platform-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(26, 68, 120, 0.26), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(199, 150, 36, 0.18), transparent 30%),
    #121614;
  color: #f7faf8;
}

.platform-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
}

.platform-footer .container,
.platform-footer .landing-container {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(150px, 0.7fr));
  gap: 34px;
  padding: 56px 0 34px;
}

.footer-brand-block {
  display: grid;
  gap: 16px;
  max-width: 430px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.footer-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #f0c45b);
  color: #16140f;
  box-shadow: 0 14px 34px rgba(199, 150, 36, 0.22);
}

.footer-brand-mark svg {
  width: 21px;
  height: 21px;
}

.footer-description {
  max-width: 36rem;
  margin: 0;
  color: #d7ded8;
  font-size: 0.96rem;
  line-height: 1.7;
}

.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  font-size: 0.86rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.13);
}

.footer-button.primary {
  border-color: transparent;
  background: var(--gold);
  color: #16140f;
  box-shadow: 0 12px 28px rgba(199, 150, 36, 0.18);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h2,
.footer-column h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-muted-link {
  color: #d7ded8;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-muted-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-note {
  margin: 0;
  color: #b5c1ba;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-contact-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.footer-contact-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #d7ded8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-contact-row svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 26px;
  color: #b5c1ba;
  font-size: 0.82rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d597;
  box-shadow: 0 0 0 4px rgba(72, 213, 151, 0.14);
}

.mini-footer {
  border-top: 1px solid rgba(20, 23, 22, 0.08);
  background: rgba(253, 252, 249, 0.96);
  color: var(--ink);
}

.mini-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px 0;
}

.mini-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 950;
}

.mini-footer-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(199, 150, 36, 0.16);
  color: var(--gold);
}

.mini-footer-mark svg {
  width: 17px;
  height: 17px;
}

.mini-footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.mini-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  transition: background 0.2s ease, color 0.2s ease;
}

.mini-footer-links a:hover {
  background: rgba(26, 68, 120, 0.08);
  color: var(--teal);
}

.mini-footer-links a.primary {
  background: var(--gold);
  color: #16140f;
}

.mini-footer.hero-mini-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  border-top-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 23, 22, 0.1);
  color: #ffffff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-mini-footer .mini-footer-inner {
  min-height: 58px;
}

.hero-mini-footer .mini-footer-mark {
  background: rgba(255, 255, 255, 0.12);
  color: #f5cb6c;
}

.hero-mini-footer .mini-footer-meta,
.hero-mini-footer .mini-footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.hero-mini-footer .mini-footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-mini-footer .mini-footer-links a.primary {
  background: rgba(199, 150, 36, 0.92);
  color: #16140f;
}

.live-page .mini-footer {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.lights-out .mini-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 20, 0.94);
  color: #ffffff;
}

body.lights-out .mini-footer-meta,
body.lights-out .mini-footer-links a {
  color: #aeb8c7;
}

body.lights-out .mini-footer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 42px 0 28px;
  }

  .footer-brand-block,
  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-footer-meta {
    display: none;
  }

}

@media (max-width: 460px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .mini-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .mini-footer-links {
    width: 100%;
  }

  .footer-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-button {
    width: 100%;
  }

  .mini-footer.hero-mini-footer {
    position: static;
    background: #121614;
  }
}

body.lights-out .badge,
body.lights-out .badge * {
  color: #fff !important;
}

/* Chat container styles (total white in light mode) */
.stream-chat-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  max-height: calc(100vh - 200px);
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.stream-chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.stream-chat-header strong {
  color: var(--ink);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

#player-chat-box {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  scroll-behavior: smooth;
  color: var(--ink);
  background: #ffffff;
}

#player-chat-box div {
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
  color: var(--ink);
}

/* Custom Scrollbar */
#player-chat-box::-webkit-scrollbar {
  width: 6px;
}
#player-chat-box::-webkit-scrollbar-track {
  background: transparent;
}
#player-chat-box::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.stream-chat-form {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--soft);
}

#player-chat-input {
  flex-grow: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.85rem;
}

.stream-chat-form button {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-chat-welcome {
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
  margin-bottom: 12px;
  line-height: 1.4;
  padding: 6px;
  background: var(--soft);
  border-radius: 6px;
}

.stream-chat-host-msg {
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.4;
}

.stream-chat-host-name {
  font-weight: 700;
  color: var(--clay);
  margin-right: 4px;
}

.stream-chat-username {
  font-weight: 700;
  color: var(--forest);
  margin-right: 4px;
}

.stream-chat-user-me {
  font-weight: 700;
  color: var(--clay);
  margin-right: 4px;
}

/* Chat Dark Mode Overrides (Bluish dark grey background, not pitch black) */
body.lights-out .stream-chat-panel {
  background: #111625 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
}

body.lights-out .stream-chat-header {
  background: #111625 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .stream-chat-header strong {
  color: #ffffff !important;
}

body.lights-out #player-chat-box {
  background: #111625 !important;
}

body.lights-out #player-chat-box div {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.lights-out #player-chat-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
}

body.lights-out .stream-chat-form {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out #player-chat-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body.lights-out .stream-chat-welcome {
  color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

body.lights-out .stream-chat-host-msg {
  color: #f3f5f3 !important;
}

body.lights-out .stream-chat-username {
  color: #60a5fa !important;
}

body.lights-out .stream-chat-host-name,
body.lights-out .stream-chat-user-me {
  color: #f5cb6c !important;
}

/* Dark Mode Header buttons & User Profile Circle */
body.lights-out .lang-selector-btn,
body.lights-out .login-header-btn,
body.lights-out .header-profile-circle {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

body.lights-out .lang-selector-btn:hover,
body.lights-out .login-header-btn:hover,
body.lights-out .header-profile-circle:hover {
  background: #334155 !important;
  border-color: #10b981 !important;
}

body.lights-out .lang-selector-btn .lang-text,
body.lights-out .login-header-btn span {
  color: #f1f5f9 !important;
}

body.lights-out .lang-selector-btn .lang-chevron {
  color: #94a3b8 !important;
}

/* Dark Mode Chat Bubbles & Typography */
body.lights-out .stream-chat-bubble {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .stream-chat-msg-row.outgoing .stream-chat-bubble {
  background: #312e81 !important;
  color: #ede9fe !important;
  border-color: transparent !important;
}

body.lights-out .stream-chat-sender {
  color: #94a3b8 !important;
}

body.lights-out .stream-chat-welcome {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark Mode Chat input form */
body.lights-out .stream-chat-form-container {
  background: #111625 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.lights-out .stream-chat-form-inner {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

body.lights-out .stream-chat-input-field {
  color: #ffffff !important;
}

body.lights-out .stream-chat-input-field::placeholder {
  color: #64748b !important;
}

/* Floating Action Button (FAB) for Lights Out Toggle */
.floating-lights-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-lights-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

body.lights-out .floating-lights-btn {
  background: #111625 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Video Player Overlay Badges & Hover Faint-to-Solid Transitions */
.player-overlay-badge {
  position: absolute;
  top: 16px;
  z-index: 5;
  pointer-events: none; /* Let clicks pass directly to the video player under it */
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.player-overlay-left {
  left: 16px;
}

.player-overlay-right {
  right: 16px;
}

/* Turns fully solid on hovering over the video player frame */
.modern-video-wrapper:hover .player-overlay-badge {
  opacity: 1;
}

.player-overlay-left .badge.live {
  background: #ef4444 !important;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
  display: inline-flex;
  align-items: center;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.viewer-count-overlay {
  background: rgba(20, 23, 22, 0.75);
  color: #fff !important;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.viewer-count-overlay strong {
  color: #fff !important;
}

/* ── Tab Layout Panel ── */
.tab-panel.hidden {
  display: none !important;
}

/* ── Responsive Columns Speakers Grid ── */
.speakers-layout-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(var(--spk-cols-mobile, 2), minmax(0, 1fr));
}
@media (min-width: 768px) {
  .speakers-layout-grid {
    grid-template-columns: repeat(var(--spk-cols-desktop, 3), minmax(0, 1fr));
  }
}

/* ── Premium Church Card (Reference-Matched Design) ── */
/* ── Premium Church Card (Reference-Matched Design) ── */
.church-premium-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 290px;
}
.church-premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cpc-banner-link {
  display: block;
  width: 100%;
}
.cpc-banner {
  height: 180px; /* Increased height */
  background-size: cover;
  background-position: center;
  width: 100%;
  position: relative;
  transition: filter 0.3s ease;
}
.church-premium-card:hover .cpc-banner {
  filter: brightness(0.95);
}

.cpc-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.cpc-verified-icon-tr {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  color: #3b82f6;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.cpc-verified-icon-tr svg {
  width: 16px;
  height: 16px;
  fill: #3b82f6;
  color: #ffffff;
}

.cpc-name-overlay {
  position: absolute;
  bottom: 12px;
  left: 96px; /* clears overlapping avatar on left */
  right: 16px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600; /* semi-bold */
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cpc-body {
  padding: 16px 25px 25px 25px; /* increased to 25px left and right */
  display: flex;
  flex-direction: column;
  position: relative;
  flex-grow: 1;
}

/* Overlapping Pastor Avatar Container */
.cpc-pastor-avatar-container-new {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  overflow: hidden;
  position: absolute;
  top: -32px; /* half overlaying the thumbnail and half overlaying the card content area */
  left: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  background: #f1f5f9;
}
.cpc-pastor-avatar-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pastor Info box to the right of the avatar, in the card body */
.cpc-pastor-info-box {
  margin-left: 71px; /* aligns text next to avatar (25px padding + 71px = 96px left offset) */
  margin-bottom: 12px;
  margin-top: -13px; /* pulled upward further by 3px (total -13px) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 38px;
}

.cpc-pastor-name-new {
  font-size: 0.8rem; /* reduced by 3 points down */
  font-weight: 700;
  color: #475569; /* dark gray, not black */
  text-transform: uppercase; /* all uppercase */
  letter-spacing: 0.03em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tagline Short Description */
.cpc-tagline {
  font-size: 0.9rem; /* increased font size by 2 points */
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Times Rectangular Gray Box */
.cpc-service-times-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
}

.cpc-service-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cpc-service-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.cpc-service-time-item {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
}

.cpc-service-time-sep-vertical {
  width: 1px;
  height: 28px;
  background-color: #cbd5e1;
}

/* Card Actions Row & Buttons */
.cpc-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.cpc-btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 11px;
  background: #c79624; /* Theme Gold */
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(199, 150, 36, 0.15);
}
.cpc-btn-view:hover {
  background: #b0811a; /* Darker Gold */
}
.cpc-btn-view:active {
  transform: scale(0.99);
}

.cpc-btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 11px;
  background: #0f172a; /* Dark Slate */
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.cpc-btn-directions:hover {
  background: #1e293b;
}
.cpc-btn-directions:active {
  transform: scale(0.99);
}

/* Premium Map Modal Styles */
.cpc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cpc-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cpc-modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cpc-modal-backdrop.open .cpc-modal-content {
  transform: scale(1) translateY(0);
}

.cpc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.cpc-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cpc-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  padding-right: 32px;
}

.cpc-modal-address {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cpc-modal-address i {
  color: #c79624;
}

.cpc-modal-map-container {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.cpc-modal-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

.cpc-modal-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpc-marker-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.4);
  animation: marker-pulse-anim 1.8s infinite ease-out;
}

@keyframes marker-pulse-anim {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.cpc-modal-footer {
  display: flex;
  gap: 12px;
}

.cpc-modal-btn-share {
  background: #c79624;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cpc-modal-btn-share:hover {
  background: #b0811a;
}

.cpc-modal-btn-gmaps {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 0.82rem;
  text-decoration: none;
  flex: 1;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.cpc-modal-btn-gmaps:hover {
  background: #1e293b;
}

.cpc-modal-content svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Premium Group Chat Styles (Reference-Matched) ── */
.stream-chat-panel {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

.live-tab-button {
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 30px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}
.live-tab-button.active {
  background: #d1fae5 !important; /* light mint */
  color: #065f46 !important; /* dark green */
}
.live-tab-button:hover:not(.active) {
  color: #0f172a !important;
}

/* Chat box containers */
#player-chat-box {
  background: #f8fafc !important;
  display: flex;
  flex-direction: column;
  gap: 20px !important;
}

/* Chat Welcome and System messages */
.stream-chat-welcome {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-radius: 12px;
  padding: 10px 14px !important;
  font-size: 0.76rem !important;
  line-height: 1.4;
  text-align: center;
  border: 1px solid #e2e8f0;
}

/* Message Rows */
.stream-chat-msg-row {
  display: flex;
  gap: 10px;
  max-width: 85%;
  align-items: flex-end;
}
.stream-chat-msg-row.incoming {
  align-self: flex-start;
}
.stream-chat-msg-row.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 80%;
}

.stream-chat-avatar {
  display: block !important;
  margin: 0 0 10px 0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.stream-chat-msg-col {
  display: flex;
  flex-direction: column;
}
.stream-chat-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 3px;
  margin-left: 4px;
}
.stream-chat-msg-row.outgoing .stream-chat-sender {
  align-self: flex-end;
  margin-right: 4px;
}

/* Chat Bubbles */
.stream-chat-bubble {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 16px;
  word-break: break-word;
}
.incoming .stream-chat-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.outgoing .stream-chat-bubble {
  background: #ede9fe; /* Light purple */
  color: #312e81; /* Indigo/purple text */
  border-bottom-right-radius: 4px;
}

/* Typing Indicator styling */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: transparent;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}
.chat-typing-indicator.hidden {
  display: none !important;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.typing-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
}

/* Form inputs container */
.stream-chat-form-container {
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.stream-chat-form-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.stream-chat-form-inner:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.stream-chat-input-field {
  flex-grow: 1;
  border: none !important;
  background: transparent !important;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
}

.stream-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold) !important; /* Golden theme */
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease !important;
  flex-shrink: 0;
}
.stream-chat-send-btn:hover {
  background: #a3781b !important;
  transform: scale(1.03);
}
.stream-chat-send-btn:active {
  transform: scale(0.97);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.gateway-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gateway-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(199, 150, 36, 0.14);
}

.gateway-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gateway-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.gateway-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.gateway-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .gateway-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gateway-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   EXPANDED PLATFORM STYLES: ACTION BUTTONS, SALVATION & DONATIONS
   ====================================================== */

.hero-action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-action-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold);
  color: #ffffff;
}

.hero-action-btn svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.hero-action-btn.primary {
  background: var(--gold);
  color: #000000;
}
.hero-action-btn.primary svg {
  color: #000000;
}
.hero-action-btn.primary:hover {
  background: #dda23e;
  color: #000000;
}

.explainer-video-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.explainer-video-wrapper {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.explainer-video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.explainer-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.explainer-step-item {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.explainer-step-item .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.salvation-banner {
  background: linear-gradient(180deg, #faf7f0 0%, #f2ebd9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.salvation-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.salvation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sinners-prayer-box {
  background: #ffffff;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 30px;
  margin: 24px 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(199, 150, 36, 0.12);
}

.sinners-prayer-box .quote-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}

.sinners-prayer-text {
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

.giving-freq-selector {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.freq-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.freq-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.amount-pills-grid {
  cursor: pointer;
  transition: all 0.2s;
}
@media (max-width: 600px) {
  .gateway-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   EXPANDED PLATFORM STYLES: ACTION BUTTONS, SALVATION & DONATIONS
   ====================================================== */

.hero-action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-action-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold);
  color: #ffffff;
}

.hero-action-btn svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.hero-action-btn.primary {
  background: var(--gold);
  color: #000000;
}
.hero-action-btn.primary svg {
  color: #000000;
}
.hero-action-btn.primary:hover {
  background: #dda23e;
  color: #000000;
}

.explainer-video-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.explainer-video-wrapper {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.explainer-video-wrapper iframe {
  width: 100%;
  height: 100%;
}

.explainer-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.explainer-step-item {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.explainer-step-item .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.salvation-banner {
  background: linear-gradient(180deg, #faf7f0 0%, #f2ebd9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.salvation-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.salvation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sinners-prayer-box {
  background: #ffffff;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 30px;
  margin: 24px 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(199, 150, 36, 0.12);
}

.sinners-prayer-box .quote-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}

.sinners-prayer-text {
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

.giving-freq-selector {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.freq-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.freq-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.amount-pills-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-pill {
  flex: 1;
  min-width: 60px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.amount-pill.active,
.amount-pill:hover {
  border-color: var(--gold);
  background: var(--soft);
  color: var(--gold);
}

.currency-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--muted);
}

.table-styled {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-styled th {
  padding: 12px;
  border-bottom: 2px solid var(--line);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table-styled td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.verified {
  background: #dcfce7;
  color: #15803d;
}

.badge.pending {
  background: #fef9c3;
  color: #a16207;
}

.tax-disclaimer-box {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 12px;
  padding: 14px 16px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

/* Foundation & Donate Page Specific Styling */
.foundation-hero {
  background: linear-gradient(180deg, #fdfcf9 0%, #faf7f0 100%);
  padding: 52px 0 48px;
}

.foundation-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.foundation-hero-text h1 {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 12px 0 16px !important;
}

.foundation-hero-text .lead {
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin-bottom: 24px !important;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-impact-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-impact-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.impact-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(20, 23, 22, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.foundation-app-banner {
  background: linear-gradient(135deg, #ffffff 0%, #faf7f0 100%);
  border: 1.5px solid var(--gold);
}

.app-banner-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.app-step-list {
  padding-left: 20px;
  margin-top: 12px;
  line-height: 1.8;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ======================================================
   PREMIUM DONATION PORTAL DESIGN SYSTEM
   ====================================================== */

.donate-hero {
  background: #f8fafc;
  padding: 50px 0 64px;
  border-bottom: 1px solid #e2e8f0;
}

.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.donate-info-side h1 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 12px 0 14px !important;
}

.donate-info-side .lead {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  margin-bottom: 28px !important;
}

.tax-disclaimer-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #166534;
}

.disclaimer-header svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
}

.tax-disclaimer-box p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #15803d;
  margin-top: 6px;
}

.guarantee-list {
  display: grid;
  gap: 20px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.guarantee-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.guarantee-item p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.donate-form-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.donate-form-panel h2 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.01em;
}

.form-group-block {
  margin-bottom: 20px;
}

.form-label-bold {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.giving-freq-selector {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.freq-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.freq-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.styled-select-field {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s;
}
.styled-select-field:focus {
  border-color: #c79624;
  box-shadow: 0 0 0 3px rgba(199, 150, 36, 0.15);
}

.amount-pills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.amount-pill {
  padding: 12px 6px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.92rem;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.amount-pill:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.amount-pill.active {
  background: #c79624;
  border-color: #c79624;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(199, 150, 36, 0.3);
}

.custom-amount-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s;
}

.custom-amount-wrapper:focus-within {
  border-color: #c79624;
  box-shadow: 0 0 0 3px rgba(199, 150, 36, 0.15);
}

.currency-addon {
  padding: 12px 16px;
  background: #f1f5f9;
  border-right: 1px solid #cbd5e1;
  font-weight: 800;
  color: #475569;
  font-size: 0.95rem;
}

.custom-amount-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 12px 14px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  color: #0f172a !important;
  background: transparent !important;
  box-shadow: none !important;
}

.styled-input-field {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.2s;
}
.styled-input-field:focus {
  border-color: #c79624;
  box-shadow: 0 0 0 3px rgba(199, 150, 36, 0.15);
}

.donation-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c79624 0%, #a3781b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(199, 150, 36, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(199, 150, 36, 0.4);
}

.donation-submit-btn:active {
  transform: translateY(0);
}

.policy-link:hover,
.policy-link.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

@media (max-width: 968px) {
  .foundation-hero-grid,
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-action-buttons-grid,
  .explainer-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Restructured Single Church Profile Page Styles (2-Column Grid + Tabs)
   ========================================================================== */

.church-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: start;
  margin-top: 36px;
  margin-bottom: 60px;
}

.church-profile-tabs-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.church-tabs-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 0 24px 0;
  background: transparent;
  border-bottom: none;
  flex-wrap: wrap;
}

.church-tabs-nav::-webkit-scrollbar {
  display: none;
}

.church-tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 120px;
  max-width: 120px;
  min-height: 84px;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.church-tab-button svg,
.church-tab-button i {
  width: 26px;
  height: 26px;
  color: #64748b;
  transition: all 0.2s ease;
}

.church-tab-button:hover {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(176, 129, 26, 0.3);
  transform: translateY(-2px);
}

.church-tab-button:hover svg,
.church-tab-button:hover i {
  color: #b0811a;
}

.church-tab-button.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #b0811a !important;
  box-shadow: 0 6px 16px rgba(176, 129, 26, 0.18) !important;
}

.church-tab-button.active svg,
.church-tab-button.active i {
  color: #b0811a !important;
}

.church-tab-pane {
  display: none;
  padding: 0;
}

.church-tab-pane.active {
  display: block;
}

.church-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.sticky-connection-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.church-quick-contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 992px) {
  .church-profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .church-sidebar-stack {
    position: static;
  }
}

/* ==========================================================================
   New Card Designs (Immersive Overlay for Directory & Split Banner for Related)
   ========================================================================== */

/* Design #1: Immersive Full-Bleed Overlay Card (Main Directory Page) */
.church-card-immersive {
  position: relative;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-size: cover;
  background-position: center;
}

.church-card-immersive:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.church-card-immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.church-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.immersive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
}

.immersive-fav-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: none;
  color: #ef4444;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.immersive-fav-btn:hover {
  transform: scale(1.1);
}

.church-card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.immersive-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.immersive-card-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.immersive-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  margin-bottom: 14px;
}

.immersive-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.15s ease;
}

.immersive-pill-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Design #2: Clean Split Banner Card (Related Churches on Single Profile Page) */
.church-card-split {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.church-card-split:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.church-card-split-media {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 16px;
}

.church-card-split-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.split-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.split-card-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.split-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 16px;
  width: 100%;
  overflow: hidden;
}

.split-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-card-meta span svg,
.split-card-meta span i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.split-card-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split-dark-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.split-dark-pill-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.split-fav-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #ef4444;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.split-fav-btn:hover {
  border-color: #ef4444;
  transform: scale(1.05);
}

/* ==========================================================================
   New Modern Event Card Design (Matching Mockup: 4-Corner Rounded Media + 2-Col Date)
   ========================================================================== */

.event-card-modern {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.event-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.event-card-banner-wrap {
  width: 100%;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

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

.event-card-modern:hover .event-card-banner-img {
  transform: scale(1.04);
}

.event-card-top-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.event-card-bottom-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding: 0 6px 6px;
}

.event-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  text-align: center;
}

.event-date-month {
  font-size: 0.85rem;
  font-weight: 900;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.event-date-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-top: 4px;
}

.event-price-tag-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-date-divider {
  width: 1px;
  height: 54px;
  background: rgba(226, 232, 240, 0.9);
  margin-top: 2px;
}

.event-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

.event-card-title-new {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   16:9 Livestream Card Design with Endless Glowing Red Border & Top-Right Play
   ========================================================================== */

@keyframes liveGlowPulse {
  0% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.55), 0 6px 20px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.75);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
  }
}

.livestream-card-16-9 {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none !important;
  color: #ffffff !important;
  box-sizing: border-box;
  background-color: #0f172a;
}

.livestream-card-16-9:hover {
  transform: translateY(-4px);
}

.livestream-card-16-9.is-live {
  animation: liveGlowPulse 2.5s infinite ease-in-out;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.livestream-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.92) 100%);
  z-index: 1;
}

.livestream-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.livestream-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-red-live 1.5s infinite ease-in-out;
}

.livestream-play-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  margin-left: auto;
}

.livestream-card-16-9:hover .livestream-play-btn {
  transform: scale(1.12);
  background: #dc2626;
}

.livestream-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.livestream-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.livestream-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.livestream-viewers-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ==========================================================================
   Featured Event Cards: Full Media Banner Cover + Dark Base + White Outer Card Frame
   ========================================================================== */

.event-card-banner-wrap.is-featured-banner {
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  box-sizing: border-box;
}

.event-card-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1;
}

.event-card-top-row-featured {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-featured-banner .event-card-bottom-row {
  position: relative;
  z-index: 2;
  margin-top: auto !important;
  padding: 0;
}

/* Bright Font Colors for Overlaying Dark Base */
.is-featured-banner .event-date-month {
  color: #34d399 !important; /* Vibrant bright emerald */
}

.is-featured-banner .event-date-num {
  color: #ffffff !important; /* Bright crisp white */
}

.is-featured-banner .event-price-tag-sub {
  background: rgba(52, 211, 153, 0.2) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.is-featured-banner .event-date-divider {
  background: rgba(255, 255, 255, 0.25) !important;
}

.is-featured-banner .event-location-pill {
  color: rgba(255, 255, 255, 0.85) !important;
}

.is-featured-banner .event-card-title-new {
  color: #ffffff !important;
}

.is-featured-banner .event-card-desc {
  color: rgba(255, 255, 255, 0.82) !important;
}

.event-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #047857;
  margin-top: 4px;
}

/* Featured Events Grid: Strict 2 Columns Layout */
#featured-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  #featured-events-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Simple Unified 1-Row Church Directory Search & Filter Bar
   ========================================================================== */

.simple-directory-search-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-box-main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 240px;
}

.search-input-box-main .search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.search-input-box-main .search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-input-box-main .search-input:focus {
  border-color: var(--color-primary-gold);
  background: #ffffff;
}

.simple-filter-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  flex-shrink: 0;
}

.simple-filter-box .filter-icon {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  color: var(--color-primary-gold);
  pointer-events: none;
}

.simple-select {
  width: 100%;
  height: 46px;
  padding: 0 34px 0 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.simple-select:hover,
.simple-select:focus {
  border-color: var(--color-primary-gold);
  background-color: #ffffff;
}

.reset-simple-btn {
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .simple-directory-search-card {
    flex-wrap: wrap;
  }
  .search-input-box-main {
    width: 100%;
    flex: 1 0 100%;
  }
  .simple-filter-box {
    flex: 1 1 calc(50% - 12px);
    width: auto;
  }
}

@media (max-width: 600px) {
  .simple-filter-box {
    flex: 1 0 100%;
  }
  .reset-simple-btn {
    width: 100%;
  }
}

/* Related Fellowships & Churches Grid: Strict 3 Columns Layout */
#related-churches-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  #related-churches-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  #related-churches-container {
    grid-template-columns: 1fr !important;
  }
}

/* Church Profile Upcoming Events Grid */
#church-events-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  #church-events-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Modern Theme-Styled Pill Filter System (Platform Amber/Gold Theme)
   ========================================================================== */

.pill-filter-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pill-search-input-wrapper {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}

.pill-search-input-wrapper .search-hero-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.pill-search-input-wrapper .search-hero-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pill-search-input-wrapper .search-hero-input:focus {
  border-color: var(--color-primary-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-pill-filter {
  position: relative;
  display: inline-block;
}

.filter-pill-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.filter-pill-btn:hover {
  background: #ffffff;
  border-color: var(--color-primary-gold);
}

/* Active Theme Gold Pill State (Matching User's Swatch Color #b0811a!) */
.custom-pill-filter.is-active .filter-pill-btn {
  background: #b0811a !important;
  border-color: #b0811a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(176, 129, 26, 0.35) !important;
}

.custom-pill-filter.is-active .pill-title {
  color: #ffffff !important;
}

.custom-pill-filter.is-active .pill-arrow {
  color: #ffffff !important;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-primary-gold-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.pill-arrow {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.custom-pill-filter.open .pill-arrow {
  transform: rotate(180deg);
}

/* Dropdown Popup Card Panel */
.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 16px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-pill-filter.open .filter-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.dropdown-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

/* Custom Rounded Checkbox Row (Platform Amber Theme) */
.custom-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.custom-checkbox-row:hover {
  background: #f8fafc;
}

.custom-checkbox-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.checkbox-box svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-checkbox-row input:checked + .checkbox-box {
  background: var(--color-primary-gold);
  border-color: var(--color-primary-gold);
}

.custom-checkbox-row input:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.filter-pill-reset-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.filter-pill-reset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   Masterful Hero Background Carousel & Platform Donation System
   ========================================================================== */

.donate-hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  margin-bottom: 36px;
}

.donate-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.donate-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.donate-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.45) 100%);
}

.donate-slide-content {
  position: relative;
  z-index: 10;
  max-width: 740px;
  padding: 60px 48px;
  color: #ffffff;
}

.donate-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(176, 129, 26, 0.3);
  border: 1px solid rgba(176, 129, 26, 0.6);
  color: #fef08a;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.donate-slide-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.donate-slide-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

/* Slider Controls */
.donate-slider-controls {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-indicator-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-pill-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-pill-dot.active {
  width: 36px;
  background: #b0811a;
}

.slider-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Explicit Platform Designation Banner */
.platform-destination-banner {
  background: linear-gradient(135deg, rgba(176, 129, 26, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
  border: 1.5px solid rgba(176, 129, 26, 0.3);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.platform-destination-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #b0811a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(176, 129, 26, 0.3);
}

.platform-destination-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.platform-destination-text p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Masterpiece Modern UI Page Layout for donate.html
   ========================================================================== */

.master-giving-section {
  padding: 40px 0 80px 0;
}

.master-giving-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

.master-giving-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.master-giving-header {
  margin-bottom: 28px;
}

.master-giving-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.master-giving-header p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* Frequency Selector */
.master-freq-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.master-freq-btn {
  flex: 1;
  height: 44px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.master-freq-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Amount Pills Grid */
.master-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.master-amount-pill {
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.master-amount-pill:hover {
  border-color: #b0811a;
  background: #ffffff;
}

.master-amount-pill.active {
  background: #b0811a !important;
  border-color: #b0811a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(176, 129, 26, 0.35) !important;
}

.master-custom-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.master-custom-amount-wrap .currency {
  position: absolute;
  left: 18px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #b0811a;
}

.master-custom-amount-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.master-custom-amount-input:focus {
  border-color: #b0811a;
  box-shadow: 0 0 0 3px rgba(176, 129, 26, 0.18);
  background: #ffffff;
}

/* Payment Method Switcher */
.master-pay-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.master-pay-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.master-pay-radio.active {
  border-color: #b0811a;
  background: rgba(176, 129, 26, 0.08);
  color: #b0811a;
}

/* Right Column: Dashboard Stack */
.master-dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.master-kpi-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 18px;
}

.master-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(176, 129, 26, 0.12);
  color: #b0811a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.master-kpi-info strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.master-kpi-info span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* Impact Pillars Section */
.master-impact-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.master-pillar-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.master-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(176, 129, 26, 0.3);
}

.master-pillar-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(176, 129, 26, 0.12);
  color: #b0811a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.master-pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.master-pillar-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Masterpiece Dark Banner */
.master-dark-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 32px;
  padding: 56px 48px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.master-dark-banner h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
}

.master-dark-banner p {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
}

@media (max-width: 992px) {
  .master-giving-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Church Profile Lightbox Popup Video Modal & Hero Play Button Card
   ========================================================================== */

.hero-standalone-play-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 20px;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-standalone-play-btn:hover {
  transform: scale(1.08);
}

.play-btn-circle-standalone {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #b0811a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(176, 129, 26, 0.55), 0 0 0 10px rgba(176, 129, 26, 0.15);
  transition: all 0.3s ease;
}

.hero-standalone-play-btn:hover .play-btn-circle-standalone {
  background: #c79624;
  box-shadow: 0 18px 50px rgba(176, 129, 26, 0.75), 0 0 0 14px rgba(176, 129, 26, 0.25);
}

.play-btn-pulse-ring {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2.5px solid rgba(176, 129, 26, 0.7);
  animation: standalonePlayPulse 2.2s infinite;
  z-index: 1;
}

@keyframes standalonePlayPulse {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.75); opacity: 0; }
}

.play-btn-label {
  position: relative;
  z-index: 2;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.hero-standalone-play-btn:hover .play-btn-label {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(176, 129, 26, 0.6);
}

/* Transparent Dark Blur Lightbox Video Modal Backdrop (No Gradient, Same Page Background) */
.church-video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.church-video-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.church-video-modal-card {
  width: min(920px, 94vw);
  background: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.church-video-modal-backdrop.open .church-video-modal-card {
  transform: scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.video-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000000;
}

.video-modal-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Modernized Weekly Gathering Times Cards & Calendar Download UX
   ========================================================================== */

.gathering-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .gathering-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gathering-card-grid {
    grid-template-columns: 1fr;
  }
}

.gathering-modern-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gathering-modern-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 129, 26, 0.4);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

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

.gathering-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(176, 129, 26, 0.1);
  color: #b0811a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gathering-icon-badge svg {
  width: 22px;
  height: 22px;
}

.gathering-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.gathering-time-pill svg {
  width: 14px;
  height: 14px;
  color: #b0811a;
}

.gathering-card-body {
  margin-bottom: 20px;
}

.gathering-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.gathering-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.gathering-cal-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1.5px solid rgba(176, 129, 26, 0.3);
  background: rgba(176, 129, 26, 0.05);
  color: #b0811a;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gathering-cal-btn:hover {
  background: #b0811a;
  border-color: #b0811a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(176, 129, 26, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODULE 1: STORE (COMING SOON) MODERN AESTHETICS
   ========================================================================== */
.badge-subtle {
  display: inline-block;
  background: rgba(176, 129, 26, 0.15);
  color: #b0811a;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 4px;
}

.store-hero-section {
  padding: 70px 0 50px 0;
  background: linear-gradient(180deg, rgba(176, 129, 26, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
}

.store-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .store-hero-grid {
    grid-template-columns: 1fr;
  }
}

.store-title {
  font-size: 2.7rem;
  font-weight: 900;
  color: var(--ink);
  margin: 14px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.store-lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.store-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-hero-badge-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(176, 129, 26, 0.3);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(176, 129, 26, 0.08);
}

.badge-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(176, 129, 26, 0.12);
  color: #b0811a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.badge-card-inner h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.badge-card-inner p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.badge-stats-row {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.badge-stat strong {
  display: block;
  font-size: 1.3rem;
  color: #b0811a;
  font-weight: 900;
}

.badge-stat span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.store-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

/* Store Item Card — Matches Modern Event Card Architecture */
.store-item-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.store-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.store-item-media {
  width: 100%;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.store-item-card:hover .store-item-media {
  transform: scale(1.03);
}

.store-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-item-body {
  padding: 18px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-item-category {
  font-size: 0.76rem;
  color: #b0811a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-item-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.store-item-body p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.store-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 16px;
  gap: 12px;
}

.store-price-estimate {
  font-size: 0.88rem;
  font-weight: 900;
  color: #047857;
  background: #ecfdf5;
  padding: 6px 12px;
  border-radius: 999px;
}

.store-transparency-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

@media (max-width: 800px) {
  .store-transparency-card {
    grid-template-columns: 1fr;
  }
}

.transparency-left {
  padding: 44px;
}

.transparency-left h2 {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 12px 0;
  letter-spacing: -0.01em;
}

.transparency-left p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.transparency-checklist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.check-item svg {
  color: #10b981;
  width: 22px;
  height: 22px;
}

.transparency-right {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.transparency-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.9) 100%);
}

.transparency-caption {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #ffffff;
}

.transparency-caption h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.transparency-caption p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

/* ==========================================================================
   MODULE 2: HEALTH & WELLNESS MODERN AESTHETICS
   ========================================================================== */
.wellness-hero-section {
  padding: 70px 0 40px 0;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
}

.daily-tracker-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 30px;
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.08);
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.tracker-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tracker-progress-badge {
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 900;
  font-size: 0.9rem;
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.tracker-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tracker-item {
  cursor: pointer;
}

.tracker-item input[type="checkbox"] {
  display: none;
}

.tracker-item-box {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.tracker-item.completed .tracker-item-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
}

.habit-icon {
  width: 30px;
  height: 30px;
  color: #10b981;
  flex-shrink: 0;
}

.habit-details strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.habit-details span {
  font-size: 0.8rem;
  color: var(--muted);
}

.wellness-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 34px;
  overflow-x: auto;
}

.wellness-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wellness-tab-btn.active {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.25);
}

.pane-intro {
  margin-bottom: 30px;
}

.pane-intro h2 {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pane-intro p {
  color: var(--muted);
  font-size: 1.02rem;
}

.nutrition-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

/* Modern Recipe Card */
.recipe-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.recipe-image {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.35s ease;
}

.recipe-card:hover .recipe-image {
  transform: scale(1.03);
}

.recipe-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 120, 87, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.recipe-body {
  padding: 18px 6px 6px 6px;
}

.recipe-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.recipe-body p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.55;
}

.recipe-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 14px;
  font-weight: 600;
}

.workout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

/* Modern Workout Card */
.workout-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.workout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.workout-thumb {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.35s ease;
}

.workout-card:hover .workout-thumb {
  transform: scale(1.03);
}

.workout-level {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workout-level.beginner { background: rgba(16, 185, 129, 0.9); }
.workout-level.intermediate { background: rgba(245, 158, 11, 0.9); }
.workout-level.senior { background: rgba(59, 130, 246, 0.9); }

.workout-info {
  padding: 18px 6px 6px 6px;
}

.workout-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.workout-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.55;
}

.workout-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 14px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.fitness-streams-schedule {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stream-schedule-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.stream-schedule-card.live-now {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.stream-status-badge {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stream-status-badge.scheduled {
  color: #3b82f6;
}

.lifestyle-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.article-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.article-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   MODULE 3: LIVESTREAM CATEGORY & SCHEDULE MODERN AESTHETICS
   ========================================================================== */
.stream-cat-pill {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.stream-cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

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

.schedule-row {
  display: grid;
  grid-template-columns: 180px 140px 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.schedule-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(176, 129, 26, 0.3);
}

.schedule-col-thumb {
  width: 180px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.schedule-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.schedule-row:hover .schedule-thumb-img {
  transform: scale(1.06);
}

.schedule-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.schedule-thumb-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(176, 129, 26, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.schedule-row:hover .schedule-thumb-play {
  transform: scale(1.12);
  background: #b0811a;
}

.schedule-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .schedule-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .schedule-col-thumb {
    width: 100%;
    height: 160px;
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .schedule-row {
    grid-template-columns: 1fr;
  }
}

.schedule-col-time strong {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
  font-weight: 900;
}

.schedule-col-time span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.badge-cat {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.badge-cat.worship { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-cat.fitness { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-cat.outreach { background: rgba(176, 129, 26, 0.16); color: #b0811a; }

.schedule-col-details h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #0f172a;
}

.schedule-col-details p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

/* ==========================================================================
   MODULE 4: OUTREACH & IMPACT GALLERY MODERN AESTHETICS
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

/* Modern Impact Card — 28px Radius, 16px Inner Padding */
.impact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.impact-card-media {
  width: 100%;
  height: 210px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.35s ease;
}

.impact-card:hover .impact-card-media {
  transform: scale(1.03);
}

.impact-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.impact-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(176, 129, 26, 0.95);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.impact-play-btn:hover {
  transform: scale(1.12);
  background: #b0811a;
}

.impact-card-body {
  padding: 18px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.impact-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.impact-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.impact-card-body p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.impact-stats-row {
  display: flex;
  gap: 18px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.impact-stat-item strong {
  display: block;
  font-size: 1.1rem;
  color: #b0811a;
  font-weight: 900;
}

.impact-stat-item span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   REWORKED CHURCH CONNECTION FORM STYLES
   ========================================================================== */
.church-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.church-checkbox-item {
  cursor: pointer;
  display: block;
}

.church-checkbox-item input[type="checkbox"] {
  display: none;
}

.checkbox-box-inner {
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.church-checkbox-item:hover .checkbox-box-inner {
  border-color: #cbd5e1;
  background: #ffffff;
}

.church-checkbox-item.selected .checkbox-box-inner {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
}

.church-checkbox-item.selected .custom-chk {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.custom-chk {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-chk svg {
  width: 14px;
  height: 14px;
  stroke-width: 3px;
}

.chk-text strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
}

.chk-text span {
  font-size: 0.78rem;
  color: #64748b;
}

/* Address Dispatch Social Buttons */
.address-dispatch-card {
  background: #f8fafc;
  border: 1.5px dashed rgba(176, 129, 26, 0.4);
  border-radius: 18px;
  padding: 16px;
}

.dispatch-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dispatch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dispatch-btn.whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.05);
}

.dispatch-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
}

.dispatch-btn.telegram {
  color: #0088cc;
  border-color: rgba(0, 136, 204, 0.3);
  background: rgba(0, 136, 204, 0.05);
}

.dispatch-btn.telegram:hover {
  background: #0088cc;
  color: #ffffff;
}

.dispatch-btn.sms {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.dispatch-btn.sms:hover {
  background: #3b82f6;
  color: #ffffff;
}

.dispatch-btn.copy {
  color: #b0811a;
  border-color: rgba(176, 129, 26, 0.3);
  background: rgba(176, 129, 26, 0.05);
}

.dispatch-btn.copy:hover {
  background: #b0811a;
  color: #ffffff;
}

/* Modern Clean Form Input Fields with Left Vector Icons */
.form-field-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.field-input {
  width: 100%;
  padding: 12px 14px 12px 42px !important;
  border-radius: 14px !important;
  border: 1.5px solid var(--line) !important;
  background: #ffffff !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.field-input:focus {
  border-color: #b0811a !important;
  box-shadow: 0 0 0 4px rgba(176, 129, 26, 0.12) !important;
}

.field-input-wrap:focus-within .field-icon {
  color: #b0811a;
}

/* ==========================================================================
   INDEPENDENT CHURCH PORTAL APP UI STYLES
   ========================================================================== */
.portal-app-header {
  height: 64px;
  background: #0f172a;
  color: #ffffff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #b0811a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-brand-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0;
  color: #ffffff;
}

.portal-brand-tag {
  font-size: 0.72rem;
  color: #94a3b8;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.portal-page-view {
  display: none;
  animation: pageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-page-view.active {
  display: block;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-page-header {
  margin-bottom: 24px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.portal-page-header h2 {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
}

.portal-page-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* ==========================================================================
   MODERN DASHBOARD UI ARCHITECTURE (FLAGSHIP BRAND SLATE & GOLD PALETTE)
   ========================================================================== */
.portal-app-wrapper {
  width: 100vw;
  height: 100vh;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-dashboard-card {
  width: 100%;
  height: 100%;
  max-width: 1560px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Retractable Sidebar Navigation (Wide by default: 240px with labels, Collapsed: 80px) */
.portal-sidebar-rail {
  width: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  flex-shrink: 0;
  background: transparent;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.portal-sidebar-rail.collapsed {
  width: 80px;
  padding: 16px 8px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.rail-brand-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.rail-brand-text strong {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.rail-brand-text small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: #b0811a;
  color: #ffffff;
  border-color: #b0811a;
}

.rail-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: stretch;
  margin-top: 10px;
}

.portal-sidebar-rail .rail-nav-item {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  color: #ffffff !important;
  opacity: 0.9 !important;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box;
}

.portal-sidebar-rail .rail-nav-item i,
.portal-sidebar-rail .rail-nav-item svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
}

.portal-sidebar-rail .rail-nav-item .nav-label {
  font-size: 0.88rem !important;
  font-weight: 600 !important; /* Semi-bold for menu links */
  white-space: nowrap !important;
  color: #ffffff !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
}

.portal-sidebar-rail .rail-nav-item:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.portal-sidebar-rail .rail-nav-item:hover i,
.portal-sidebar-rail .rail-nav-item:hover svg,
.portal-sidebar-rail .rail-nav-item:hover .nav-label {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4) !important;
}

.portal-sidebar-rail .rail-nav-item.active {
  background: #b0811a !important;
  opacity: 1 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(176, 129, 26, 0.45) !important;
}

.portal-sidebar-rail .rail-nav-item.active i,
.portal-sidebar-rail .rail-nav-item.active svg,
.portal-sidebar-rail .rail-nav-item.active .nav-label {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 600 !important; /* Semi-bold for active menu links */
  text-shadow: none !important;
}

/* Hide text elements when collapsed */
.portal-sidebar-rail.collapsed .rail-brand-text,
.portal-sidebar-rail.collapsed .nav-label,
.portal-sidebar-rail.collapsed .rail-user-info {
  display: none !important;
}

.portal-sidebar-rail.collapsed .rail-nav-item {
  justify-content: center;
  padding: 0;
  width: 48px;
  margin: 0 auto;
}

.portal-sidebar-rail.collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.portal-sidebar-rail.collapsed .sidebar-toggle-btn {
  margin-left: 0;
  margin-top: 6px;
}

.rail-footer-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.rail-divider {
  width: 80%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 2px;
}

.rail-user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rail-user-profile-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rail-user-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.rail-user-avatar-wrap:hover {
  transform: scale(1.06);
}

.rail-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.online-dot {
  width: 11px;
  height: 11px;
  background: #b0811a;
  border: 2px solid #0f172a;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  box-shadow: 0 0 6px rgba(176, 129, 26, 0.6);
}

/* Profile Dropup Menu Modal */
.profile-dropup-modal {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 210px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.profile-dropup-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portal-sidebar-rail.collapsed .profile-dropup-modal {
  left: 4px;
  width: 190px;
}

.dropup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.dropup-item i,
.dropup-item svg {
  width: 18px;
  height: 18px;
  color: #b0811a;
  flex-shrink: 0;
}

.dropup-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dropup-item.dropup-danger {
  color: #f87171;
}

.dropup-item.dropup-danger i,
.dropup-item.dropup-danger svg {
  color: #f87171;
}

.dropup-item.dropup-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dropup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* 4-Side Framed Rounded Subtle Grayish Cream Workspace Canvas */
.portal-workspace-canvas {
  flex: 1;
  min-width: 0; /* Crucial: Prevents flex children from pushing canvas width */
  height: 100%;
  background: #f4f6f8; /* Optimized subtle grayish cream background */
  border-radius: 24px;
  margin: 0;
  padding: 32px 32px 32px 32px;
  overflow-y: auto;
  overflow-x: hidden; /* Prevents any horizontal content bleeding */
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Modern Sleek Scrollbar (Inset from Rounded Canvas Edge) */
.portal-workspace-canvas::-webkit-scrollbar {
  width: 6px;
}

.portal-workspace-canvas::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  margin: 28px 4px; /* Keeps scrollbar inside curved top/bottom white corners */
}

.portal-workspace-canvas::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 1px solid #ffffff;
  transition: background 0.2s ease;
}

.portal-workspace-canvas::-webkit-scrollbar-thumb:hover {
  background: #b0811a;
}

.portal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-top-title h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.portal-top-title p {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.portal-search-wrap {
  position: relative;
  width: 320px;
}

.portal-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.88rem;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.portal-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 16px;
  height: 16px;
}

/* Fluid 2-Column Grid (Zero Horizontal Overflow / Zero Bleeding) */
.dashboard-emerald-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 310px);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1240px) {
  .dashboard-emerald-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dash-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* Prevents child cards from pushing column width */
}

.dash-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* Prevents child cards from pushing column width */
}

/* White Curved Module Cards */
.dash-card-module {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

/* Metrics Banner Card (Brand Slate & Gold) */
.green-metrics-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.green-metrics-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.green-metric-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.green-metric-item span {
  font-size: 0.78rem;
  color: #94a3b8;
}

.green-metrics-total {
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 10px;
  color: #b0811a;
}

/* Floating Task Cards */
.task-item-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease;
}

.task-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.task-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  width: fit-content;
}

.task-tag-pill.today { background: rgba(176, 129, 26, 0.12); color: #b0811a; }
.task-tag-pill.pending { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.task-tag-pill.urgent { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

/* Team Activity Avatars */
.team-activity-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #b0811a;
  padding: 2px;
}

.team-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-member-item span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}




