/* === prayer.css — standalone Prayer Room styles ========================= */

:root{
  --brand:#1e0082;
  --brand-1:#4f46e5;
  --brand-2:#7c3aed;

  --text:#2c2419;
  --muted:#6b6358;
  --line:#e8e2d8;

  --card:#fff;
  --warm-bg:#f7f3ed;
  --warm-surface:#fffdf9;
  --warm-shadow:0 12px 28px rgba(44, 36, 25, .08);

  --btn-warning-start:#f59e0b;
  --btn-warning-end:#d97706;
  --btn-warning-hover-start:#eab308;
  --btn-warning-hover-end:#ca8a04;

  /* card height used for prayer tiles */
  --prayer-tile-h:210px;

  /* ===== Header tokens (themeable) ===== */
  --header-bg-start: rgba(10, 55, 35, 0.92); /* forest default */
  --header-bg-end:   rgba(10, 55, 35, 0.72);
  --header-link:     rgba(255,255,255,.92);
  --header-link-hover:#ffffff;

  --header-pad-y: .85rem;  /* makes header taller */
  --brand-size: 1.28rem;   /* church name size */
  --tagline-size: .78rem;  /* tagline size */
  --site-header-offset: 4.25rem; /* sticky tabs offset below header */
  --prayer-tabs-sticky-top: var(--site-header-offset);
  --prayer-tabs-z: 1025;
  --prayer-tabs-gap: 0.75rem;
  --prayer-tabs-bar-height: 3.65rem;
  --prayer-scrollport-top-gap: 10px;
}

@media (min-width:576px){ :root{ --prayer-tile-h:220px; } }
@media (min-width:992px){ :root{ --prayer-tile-h:230px; } }

/* === Prayer Room / member UI readability scale (~110% at 100% zoom) ===== */
body.app-shell.prayer-ui-scaled{
  --prayer-ui-scale: 1.1;
  --brand-size: calc(1.28rem * var(--prayer-ui-scale));
  --tagline-size: calc(.78rem * var(--prayer-ui-scale));
  --header-pad-y: calc(.85rem * var(--prayer-ui-scale));
  --site-header-offset: calc(4.25rem * var(--prayer-ui-scale));
  --prayer-tabs-gap: calc(0.75rem * var(--prayer-ui-scale));
  --prayer-tabs-bar-height: calc(3.65rem * var(--prayer-ui-scale));
  --prayer-scrollport-top-gap: calc(10px * var(--prayer-ui-scale));
  --prayer-tile-h: calc(210px * var(--prayer-ui-scale));
  line-height: calc(1.55 * var(--prayer-ui-scale));
}

@media (min-width:576px){
  body.app-shell.prayer-ui-scaled{
    --prayer-tile-h: calc(220px * var(--prayer-ui-scale));
  }
}

@media (min-width:992px){
  body.app-shell.prayer-ui-scaled{
    --prayer-tile-h: calc(230px * var(--prayer-ui-scale));
  }
}

@media (max-width: 767.98px){
  body.app-shell.prayer-ui-scaled:has(.prayer-tabs){
    --prayer-tabs-bar-height: calc(2.375rem * var(--prayer-ui-scale));
    --prayer-tabs-gap: calc(0.35rem * var(--prayer-ui-scale));
  }
}

/* Theme presets (churchy) */
body.theme-royal{
  --brand:#2a0a7a;
  --brand-1:#4f46e5;
  --brand-2:#7c3aed;
  --text:#14162b;

  --header-bg-start: rgba(42, 10, 122, 0.92);
  --header-bg-end:   rgba(42, 10, 122, 0.72);
}

body.theme-forest{
  --brand:#0f3d2e;
  --brand-1:#1f6f54;
  --brand-2:#2f8f6a;
  --text:#0c1a12;

  --header-bg-start: rgba(10, 55, 35, 0.92);
  --header-bg-end:   rgba(10, 55, 35, 0.72);
}

body.theme-burgundy{
  --brand:#5b1020;
  --brand-1:#7a1b2f;
  --brand-2:#a12a45;
  --text:#1c0f14;

  --header-bg-start: rgba(91, 16, 32, 0.92);
  --header-bg-end:   rgba(91, 16, 32, 0.72);
}

body.theme-navy{
  --brand:#0b1f3a;
  --brand-1:#163a6b;
  --brand-2:#2a5aa6;
  --text:#0b1220;

  --header-bg-start: rgba(11, 31, 58, 0.92);
  --header-bg-end:   rgba(11, 31, 58, 0.72);
}

/* 2) BASE / GLOBAL */

*{ box-sizing:border-box; }
html{ height:100%; }
html, body{
  width:100%;
  overflow-x:hidden;
}

img, video{
  max-width:100%;
  height:auto;
}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;
  color:var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,252,245,.9), transparent 55%),
    linear-gradient(180deg, var(--warm-bg) 0%, #faf8f5 280px, #f8f6f2 100%);
  line-height: 1.55;
  letter-spacing: .01em;
}
input, select, textarea{
  font-size:16px;
}
a{ color:var(--brand-1); text-decoration:none; }
a:hover{ text-decoration:underline; }

.list-group-item{ padding-top:.6rem; padding-bottom:.6rem; }

/* --------------------------------------------------------------------- */
/* 3) HEADER / NAVBAR (sticky glass + air waves)                           */
/* --------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;

  /* fallback if glass class removed */
  background: linear-gradient(90deg, var(--brand,#1e0082), var(--brand-1));
  color:#fff;

  overflow: visible;
}

/* Taller header */
.site-header.navbar{
  padding-top: var(--header-pad-y);
  padding-bottom: var(--header-pad-y);
}

/* Brand + tagline sizing */
.site-header .navbar-brand{
  color:#fff;
  line-height:1.05;
  font-size: var(--brand-size);
}

.site-header .navbar-brand small,
.site-brand-tagline{
  font-size: var(--tagline-size);
  opacity:.86;
}

/* Church brand mark in header */
.site-brand{
  max-width: calc(100vw - 5rem);
  text-decoration: none !important;
}

@media (min-width: 992px){
  .site-header--combined .site-brand{
    max-width: 100%;
  }
}

.site-brand:hover{
  text-decoration: none !important;
}

.church-logo-mark{
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  flex-shrink: 0;
}

.church-logo-fallback{
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-brand-text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav links */
.site-header .nav-link{
  color: var(--header-link);
  font-weight:600;
  padding:.45rem .65rem;
  border-radius:999px;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
@media (max-width: 991.98px){
  .site-header .navbar-nav{
    padding-top:.75rem;
  }

  .site-header .nav-link{
    display:block;
    padding:.65rem .75rem;
  }
}

.site-header .nav-link:hover{
  color: var(--header-link-hover);
  background: rgba(255,255,255,.12);
  text-decoration:none;
  transform: translateY(-1px);
}

.site-header.site-header--glass{
  background: linear-gradient(
    90deg,
    var(--header-bg-start),
    var(--header-bg-end)
  ) !important;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Combined Prayer Room header (logo + name + tagline + nav — no duplicate banner) */
.site-header--combined.navbar{
  --header-pad-y: 1.15rem;
  --brand-size: 1.38rem;
  --tagline-size: .82rem;
  --site-header-offset: 5.15rem;
  border-bottom: 6px solid var(--brand-2, #7c3aed);
  box-shadow: 0 6px 18px rgba(44, 36, 25, .07);
  overflow-x: clip;
}

.site-header--combined.site-header--glass{
  border-bottom: 6px solid var(--brand-2, #7c3aed);
}

.site-header--combined.site-header--glass:not(.site-header--has-photo){
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, .97),
    rgba(247, 243, 237, .94)
  ) !important;
  color: var(--text);
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .navbar-brand,
.site-header--combined.site-header--glass:not(.site-header--has-photo) .nav-link{
  color: var(--text);
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .site-brand-tagline{
  color: var(--muted);
  opacity: 1;
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .nav-link:hover{
  color: var(--text);
  background: rgba(0, 0, 0, .06);
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .navbar-toggler{
  border-color: rgba(0, 0, 0, .12);
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .navbar-toggler-icon{
  filter: none;
}

/* Unbranded church: no logo/banner yet — calm default header */
.site-header--combined.site-header--no-branding.site-header--glass:not(.site-header--has-photo){
  background: linear-gradient(
    165deg,
    rgba(255, 253, 249, .98) 0%,
    rgba(241, 245, 252, .96) 45%,
    rgba(247, 243, 237, .94) 100%
  ) !important;
  border-bottom-color: rgba(124, 58, 237, .35);
}

.site-header--combined.site-header--no-branding .site-brand-title{
  font-weight: 700;
  letter-spacing: -.01em;
}

.site-header--combined.site-header--no-branding .church-logo-fallback{
  background: linear-gradient(145deg, var(--brand, #4f46e5), var(--brand-2, #7c3aed));
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .22);
}

.site-header--combined.site-header--no-branding.site-header--glass:not(.site-header--has-photo) .church-logo-fallback{
  color: #fff;
}

.site-header--combined.site-header--no-branding .site-header-waves{
  opacity: .35;
}

.site-header--combined .church-logo-mark{
  width: 52px;
  height: 52px;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .church-logo-mark{
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .15));
}

.site-header--combined .church-logo-fallback{
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  box-shadow: none;
}

.site-header--combined.site-header--glass:not(.site-header--has-photo) .church-logo-fallback{
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .1);
  color: var(--text);
}

.site-header--combined .site-brand-text{
  line-height: 1.2;
}

.site-header--combined .site-brand-tagline{
  opacity: .9;
  line-height: 1.3;
  margin-top: .12rem;
}

/* Admin-selected header text palette (combined Prayer Room header only) */
.site-header--combined[class*="site-header--text-"] .navbar-brand,
.site-header--combined[class*="site-header--text-"] .site-brand-tagline,
.site-header--combined[class*="site-header--text-"] .nav-link{
  transition: color .12s ease, background-color .12s ease;
}

.site-header--combined.site-header--text-light .navbar-brand,
.site-header--combined.site-header--text-light .site-brand-tagline,
.site-header--combined.site-header--text-light .nav-link{
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
}

.site-header--combined.site-header--text-light .site-brand-tagline{
  color: rgba(255, 255, 255, .9) !important;
}

.site-header--combined.site-header--text-light .nav-link:hover,
.site-header--combined.site-header--text-light .nav-link:focus-visible{
  color: #ffffff !important;
  background: rgba(255, 255, 255, .14);
}

.site-header--combined.site-header--text-light .navbar-toggler{
  border-color: rgba(255, 255, 255, .4);
}

.site-header--combined.site-header--text-light .navbar-toggler-icon{
  filter: none;
}

.site-header--combined.site-header--text-dark .navbar-brand,
.site-header--combined.site-header--text-dark .site-brand-tagline,
.site-header--combined.site-header--text-dark .nav-link{
  color: #1f2937 !important;
  text-shadow: none;
}

.site-header--combined.site-header--text-dark .site-brand-tagline{
  color: #4b5563 !important;
  opacity: 1;
}

.site-header--combined.site-header--text-dark .nav-link:hover,
.site-header--combined.site-header--text-dark .nav-link:focus-visible{
  color: #111827 !important;
  background: rgba(0, 0, 0, .06);
}

.site-header--combined.site-header--text-dark .navbar-toggler{
  border-color: rgba(31, 41, 55, .25);
}

.site-header--combined.site-header--text-dark .navbar-toggler-icon,
.site-header--combined.site-header--text-navy .navbar-toggler-icon,
.site-header--combined.site-header--text-burgundy .navbar-toggler-icon,
.site-header--combined.site-header--text-forest .navbar-toggler-icon{
  filter: invert(1) grayscale(1);
}

.site-header--combined.site-header--text-dark .church-logo-fallback{
  background: rgba(0, 0, 0, .08);
  border-color: rgba(0, 0, 0, .12);
  color: #1f2937;
}

.site-header--combined.site-header--text-gold .navbar-brand,
.site-header--combined.site-header--text-gold .site-brand-tagline,
.site-header--combined.site-header--text-gold .nav-link{
  color: #c9a227 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.site-header--combined.site-header--text-gold .site-brand-tagline{
  color: #d4b84a !important;
}

.site-header--combined.site-header--text-gold .nav-link:hover,
.site-header--combined.site-header--text-gold .nav-link:focus-visible{
  color: #e0c45a !important;
  background: rgba(0, 0, 0, .12);
}

.site-header--combined.site-header--text-gold .navbar-toggler{
  border-color: rgba(201, 162, 39, .45);
}

.site-header--combined.site-header--text-gold .navbar-toggler-icon{
  filter: none;
}

.site-header--combined.site-header--text-navy .navbar-brand,
.site-header--combined.site-header--text-navy .site-brand-tagline,
.site-header--combined.site-header--text-navy .nav-link{
  color: #2c3e5c !important;
  text-shadow: none;
}

.site-header--combined.site-header--text-navy .site-brand-tagline{
  color: #4a5f7a !important;
}

.site-header--combined.site-header--text-navy .nav-link:hover,
.site-header--combined.site-header--text-navy .nav-link:focus-visible{
  color: #1e2f47 !important;
  background: rgba(44, 62, 92, .1);
}

.site-header--combined.site-header--text-navy .navbar-toggler{
  border-color: rgba(44, 62, 92, .28);
}

.site-header--combined.site-header--text-burgundy .navbar-brand,
.site-header--combined.site-header--text-burgundy .site-brand-tagline,
.site-header--combined.site-header--text-burgundy .nav-link{
  color: #6b2d3c !important;
  text-shadow: none;
}

.site-header--combined.site-header--text-burgundy .site-brand-tagline{
  color: #8a4455 !important;
}

.site-header--combined.site-header--text-burgundy .nav-link:hover,
.site-header--combined.site-header--text-burgundy .nav-link:focus-visible{
  color: #552430 !important;
  background: rgba(107, 45, 60, .1);
}

.site-header--combined.site-header--text-burgundy .navbar-toggler{
  border-color: rgba(107, 45, 60, .28);
}

.site-header--combined.site-header--text-forest .navbar-brand,
.site-header--combined.site-header--text-forest .site-brand-tagline,
.site-header--combined.site-header--text-forest .nav-link{
  color: #2d5a45 !important;
  text-shadow: none;
}

.site-header--combined.site-header--text-forest .site-brand-tagline{
  color: #457a5e !important;
}

.site-header--combined.site-header--text-forest .nav-link:hover,
.site-header--combined.site-header--text-forest .nav-link:focus-visible{
  color: #1f4635 !important;
  background: rgba(45, 90, 69, .1);
}

.site-header--combined.site-header--text-forest .navbar-toggler{
  border-color: rgba(45, 90, 69, .28);
}

.site-header--combined.site-header--text-cream .navbar-brand,
.site-header--combined.site-header--text-cream .site-brand-tagline,
.site-header--combined.site-header--text-cream .nav-link{
  color: #f5f0e6 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
}

.site-header--combined.site-header--text-cream .site-brand-tagline{
  color: rgba(245, 240, 230, .9) !important;
}

.site-header--combined.site-header--text-cream .nav-link:hover,
.site-header--combined.site-header--text-cream .nav-link:focus-visible{
  color: #fffdf8 !important;
  background: rgba(255, 255, 255, .12);
}

.site-header--combined.site-header--text-cream .navbar-toggler{
  border-color: rgba(245, 240, 230, .4);
}

.site-header--combined.site-header--text-cream .navbar-toggler-icon{
  filter: none;
}

/* Church banner photo inside combined header (reuses church_banner asset) */
.site-header--has-photo{
  overflow: hidden;
}

.site-header--combined.site-header--has-photo .site-header-photo{
  max-width: 100%;
}

.site-header--has-photo.site-header--glass{
  background: transparent !important;
}

.site-header-photo{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: var(--header-photo-size, cover);
  background-position: var(--header-photo-x, 50%) var(--header-photo-y, 50%);
  background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(.96) contrast(1.02);
  pointer-events: none;
}

.site-header-photo-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .38) 0%,
      rgba(28, 32, 30, .14) 32%,
      rgba(255, 252, 245, .08) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 252, 245, .2) 0%,
      transparent 55%
    );
  pointer-events: none;
}

/* Prayer Room header overlay strength (combined header + photo only) */
.site-header--combined.site-header--overlay-light.site-header--has-photo .site-header-photo-overlay{
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .22) 0%,
      rgba(28, 32, 30, .08) 36%,
      rgba(255, 252, 245, .04) 62%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 252, 245, .12) 0%,
      transparent 55%
    );
}

.site-header--combined.site-header--overlay-dark.site-header--has-photo .site-header-photo-overlay{
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .58) 0%,
      rgba(28, 32, 30, .32) 34%,
      rgba(255, 252, 245, .12) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(28, 32, 30, .28) 0%,
      transparent 55%
    );
}

.site-header--has-photo .site-header-inner{
  position: relative;
  z-index: 2;
}

.site-header--has-photo .navbar-brand,
.site-header--has-photo .nav-link{
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.site-header--has-photo .site-brand-tagline{
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* Prayer Room header typography (logged-in combined header only) */
.site-header--combined.site-header--header-text-size-small.navbar{
  --brand-size: 1.18rem;
  --tagline-size: .74rem;
}

.site-header--combined.site-header--header-text-size-medium.navbar{
  --brand-size: 1.38rem;
  --tagline-size: .82rem;
}

.site-header--combined.site-header--header-text-size-large.navbar{
  --brand-size: 1.62rem;
  --tagline-size: .9rem;
}

.site-header--combined.site-header--header-text-weight-bold .navbar-brand,
.site-header--combined.site-header--header-text-weight-bold .site-brand-tagline,
.site-header--combined.site-header--header-text-weight-bold .nav-link,
.site-header--combined.site-header--header-text-weight-bold .navbar-nav button.nav-link{
  font-weight: 700;
}

.site-header--combined.site-header--header-text-outline-off.site-header--has-photo .navbar-brand,
.site-header--combined.site-header--header-text-outline-off.site-header--has-photo .site-brand-tagline,
.site-header--combined.site-header--header-text-outline-off.site-header--has-photo .nav-link,
.site-header--combined.site-header--header-text-outline-off .navbar-brand,
.site-header--combined.site-header--header-text-outline-off .site-brand-tagline,
.site-header--combined.site-header--header-text-outline-off .nav-link{
  text-shadow: none;
}

.site-header--combined.site-header--header-text-outline-light.site-header--has-photo .navbar-brand,
.site-header--combined.site-header--header-text-outline-light .navbar-brand{
  text-shadow: 0 1px 8px rgba(0, 0, 0, .38), 0 0 1px rgba(0, 0, 0, .2);
}

.site-header--combined.site-header--header-text-outline-light.site-header--has-photo .site-brand-tagline,
.site-header--combined.site-header--header-text-outline-light .site-brand-tagline{
  text-shadow: 0 1px 6px rgba(0, 0, 0, .34), 0 0 1px rgba(0, 0, 0, .18);
}

.site-header--combined.site-header--header-text-outline-light.site-header--has-photo .nav-link,
.site-header--combined.site-header--header-text-outline-light .nav-link{
  text-shadow: 0 1px 7px rgba(0, 0, 0, .36), 0 0 1px rgba(0, 0, 0, .18);
}

.site-header--combined.site-header--header-text-outline-strong.site-header--has-photo .navbar-brand,
.site-header--combined.site-header--header-text-outline-strong .navbar-brand{
  text-shadow:
    0 2px 14px rgba(0, 0, 0, .62),
    0 1px 3px rgba(0, 0, 0, .48),
    0 0 1px rgba(0, 0, 0, .35);
}

.site-header--combined.site-header--header-text-outline-strong.site-header--has-photo .site-brand-tagline,
.site-header--combined.site-header--header-text-outline-strong .site-brand-tagline{
  text-shadow:
    0 2px 12px rgba(0, 0, 0, .58),
    0 1px 2px rgba(0, 0, 0, .42);
}

.site-header--combined.site-header--header-text-outline-strong.site-header--has-photo .nav-link,
.site-header--combined.site-header--header-text-outline-strong .nav-link{
  text-shadow:
    0 2px 12px rgba(0, 0, 0, .58),
    0 1px 2px rgba(0, 0, 0, .42);
}

.site-header--has-photo .site-header-waves{
  opacity: .22;
}

.site-header--combined.site-header--has-photo.navbar{
  --site-header-offset: 5.45rem;
}

@media (min-width: 768px){
  .site-header--combined.navbar{
    --header-pad-y: 1.28rem;
    --site-header-offset: 5.55rem;
  }

  .site-header--combined.site-header--has-photo.navbar{
    --site-header-offset: 5.85rem;
  }
}

.site-header-waves{
  position:absolute;
  inset:0;
  pointer-events:none;

  /* breath / fog wisps: soft, random, not water */
  background:
    radial-gradient(140% 70% at 12% 18%, rgba(255,255,255,.14), rgba(255,255,255,0) 62%),
    radial-gradient(110% 60% at 52%  6%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(130% 75% at 88% 28%, rgba(255,255,255,.12), rgba(255,255,255,0) 66%),
    radial-gradient(90%  55% at 34% 46%, rgba(255,255,255,.06), rgba(255,255,255,0) 70%);

  filter: blur(22px);
  opacity: .55;
  mix-blend-mode: screen;
}

/* 3b) CHURCH IDENTITY BANNER (warm welcome below header)                  */
.church-identity-banner{
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 1.25rem;
  border-radius: 0 0 1.25rem 1.25rem;
  min-height: 7.5rem;
  background: linear-gradient(
    125deg,
    var(--header-bg-start, rgba(26, 61, 92, .92)),
    var(--header-bg-end, rgba(74, 124, 158, .78)) 55%,
    rgba(255, 252, 245, .35) 100%
  );
  box-shadow: 0 14px 32px rgba(44, 36, 25, .08);
}

.church-identity-banner-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.church-identity-banner-photo{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
  filter: saturate(.9) contrast(1.03);
  pointer-events: none;
  user-select: none;
}

.church-identity-banner-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 32, .38), rgba(10, 20, 32, .68)),
    radial-gradient(90% 70% at 15% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}

.church-identity-banner--has-photo .church-identity-banner-inner{
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.church-identity-banner-inner{
  position: relative;
  z-index: 2;
  padding: 1.35rem 1rem 1.5rem;
  color: #fff;
  text-align: center;
  max-width: 100%;
}

/* Prayer Room pages: keep main content from competing with full-width banner */
body.has-church-identity-banner .app-main{
  padding-top: 1rem;
}

.church-identity-kicker{
  margin: 0 0 .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  opacity: .88;
}

.church-identity-title{
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.church-identity-tagline{
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: .92;
}

/* Prayer Room tab bar sticks below the navbar (offset synced on body.app-shell) */
body.app-shell:has(.site-header--combined){
  --site-header-offset: 5.15rem;
  --prayer-tabs-sticky-top: var(--site-header-offset);
}

body.app-shell:has(.site-header--combined.site-header--has-photo){
  --site-header-offset: 5.45rem;
  --prayer-tabs-sticky-top: var(--site-header-offset);
}

@media (min-width: 768px){
  body.app-shell:has(.site-header--combined){
    --site-header-offset: 5.55rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.site-header--combined.site-header--has-photo){
    --site-header-offset: 5.85rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }
}

/* 4) TABS (Active / Answered / Past) — fixed under header on Prayer Room pages   */
/* --------------------------------------------------------------------- */
body.app-shell:has(.prayer-tabs) .prayer-tabs{
  position: fixed;
  top: calc(
    var(--prayer-tabs-sticky-top, var(--site-header-offset))
    + var(--prayer-tabs-gap)
    + env(safe-area-inset-top, 0px)
  );
  left: 0;
  right: 0;
  z-index: var(--prayer-tabs-z, 1025);

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;

  max-width: 100%;
  margin: 0;
  box-sizing: border-box;

  padding: 8px max(12px, calc((100% - min(100% - 24px, 1140px)) / 2));
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top: none;
  background: rgba(255, 253, 249, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(44, 36, 25, .08);
}

/* Reserve flow space: tab bar height + gap below header */
body.app-shell:has(.prayer-tabs) .prayer-tabs + *{
  margin-top: calc(var(--prayer-tabs-bar-height) + var(--prayer-tabs-gap));
}

body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs-row-with-filter{
  position: fixed;
  top: calc(
    var(--prayer-tabs-sticky-top, var(--site-header-offset))
    + var(--prayer-tabs-gap)
    + env(safe-area-inset-top, 0px)
  );
  left: 0;
  right: 0;
  z-index: var(--prayer-tabs-z, 1025);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 8px max(12px, calc((100% - min(100% - 24px, 1140px)) / 2));
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-top: none;
  background: rgba(255, 253, 249, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(44, 36, 25, .08);
  overflow: visible;
}

body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs + .prayer-filter-menu{
  margin-top: 0;
}

body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs{
  position: static;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.prayer-filter-menu{
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.prayer-filter-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.prayer-filter-btn:hover,
.prayer-filter-btn:focus-visible{
  color: var(--brand-1, #4f46e5);
  border-color: rgba(79, 70, 229, .25);
  background: rgba(79, 70, 229, .06);
  outline: none;
}

.prayer-filter-menu.is-open .prayer-filter-btn{
  color: var(--brand-1, #4f46e5);
  border-color: rgba(79, 70, 229, .35);
  background: rgba(79, 70, 229, .1);
}

.prayer-filter-icon{
  display: block;
}

.prayer-filter-panel{
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  z-index: 1030;
  min-width: min(18rem, calc(100% - 2rem));
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 36, 25, .12);
}

.prayer-filter-panel-field + .prayer-filter-panel-field{
  margin-top: .65rem;
}

.prayer-filter-panel .prayer-sort-label{
  display: block;
  margin-bottom: .25rem;
}

.prayer-filter-panel .prayer-search-input,
.prayer-filter-panel .prayer-sort-select{
  width: 100%;
}

@media (max-width: 767.98px){
  body.app-shell:has(.site-header--combined){
    --site-header-offset: 5.5rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.site-header--combined.site-header--has-photo){
    --site-header-offset: 5.85rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.site-header--combined.site-header--header-text-size-large){
    --site-header-offset: 6rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.site-header--combined.site-header--header-text-size-large.site-header--has-photo){
    --site-header-offset: 6.35rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.prayer-tabs){
    --prayer-tabs-bar-height: 2.375rem;
    --prayer-tabs-gap: 0.35rem;
    --prayer-tabs-content-gap: 17px; /* 12px visual gap; +5px clears rendered tab row vs variable */
  }

  body.app-shell:has(.prayer-tabs) .prayer-tabs{
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 3px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 1px 5px rgba(44, 36, 25, .04);
    border-color: rgba(0, 0, 0, .05);
  }

  body.app-shell:has(.prayer-tabs) .prayer-tabs::-webkit-scrollbar{
    display: none;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs-row-with-filter{
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 3px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 1px 5px rgba(44, 36, 25, .04);
    border-color: rgba(0, 0, 0, .05);
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs-row-with-filter::-webkit-scrollbar{
    display: none;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs{
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, .07);
    background: rgba(0, 0, 0, .035);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .02);
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs::-webkit-scrollbar{
    display: none;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-filter-menu{
    order: 0;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-filter-btn{
    width: 1.875rem;
    height: 1.875rem;
    min-width: 30px;
    min-height: 30px;
    border-radius: 6px;
    border-color: rgba(0, 0, 0, .08);
    box-shadow: none;
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab{
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 28px;
    padding: 0.22rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border-radius: 5px;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color .12s ease, color .12s ease;
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab:not(:last-child){
    border-right: 1px solid rgba(0, 0, 0, .07);
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab:hover{
    transform: none;
    background: rgba(255, 255, 255, .5);
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab.active{
    background: #fff;
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab.active + .prayer-tab{
    border-left: none;
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab:nth-child(3){
    flex-basis: 0;
    max-width: none;
  }

  body.app-shell:has(.prayer-tabs) .archive-toolbar{
    position: relative;
    z-index: 1;
    overflow: visible;
    max-width: 100%;
  }

  .archive-toolbar-row--controls{
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }

  .archive-toolbar-row--filters{
    flex-direction: column;
    align-items: stretch;
  }

  .archive-toolbar-field,
  .archive-toolbar-field--search{
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .archive-search-input,
  .archive-sort-select{
    min-height: 44px;
    width: 100%;
    max-width: 100%;
  }

  .archive-filter-group{
    width: 100%;
  }

  .archive-filter-btn{
    flex: 1 1 auto;
    min-height: 44px;
    min-width: 0;
  }

  .archive-page-intro{
    margin-bottom: .75rem;
  }

  .archive-page-lead{
    font-size: .92rem;
    line-height: 1.4;
  }
}

.prayer-tab{
  padding:.55rem .95rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}

.prayer-tab:hover{
  transform: translateY(-1px);
  text-decoration:none;
}

.prayer-tab.active{
  background: rgba(255,255,255,.88);
  border-color: rgba(0,0,0,.16);
}

/* --------------------------------------------------------------------- */
/* 5) PRAYER CARD GRID + CARD LOOK                                         */
/* --------------------------------------------------------------------- */
.prayer-tile-wall{ margin: 1.75rem 0; }

/* Base "glass" prayer card */
.card.prayer-tile{
  background: var(--warm-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(0,0,0,.07);
  border-left: 5px solid var(--brand-2, #1f5131);

  border-radius: 16px;
  box-shadow: var(--warm-shadow);

  padding: 0;
  height: auto;
  min-height: var(--prayer-tile-h);
  display:flex;
  flex-direction:column;

  transition: box-shadow .15s ease, border-color .15s ease;
}

.card.prayer-tile .card-body{
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prayer-card-head{
  gap: .5rem;
}

.prayer-card-identity{
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-width: 0;
  flex: 1;
}

.prayer-card-identity-text{
  min-width: 0;
  flex: 1;
}

.prayer-card-name-row{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .35rem;
  line-height: 1.3;
}

.prayer-card-name{
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
}

.prayer-card-meta-dot,
.prayer-card-meta-date{
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
}

.prayer-card-meta-time{
  font-size: .78rem;
  font-weight: 500;
  color: #9a9288;
  line-height: 1.25;
  margin-top: .1rem;
}

.prayer-avatar-link{
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .12s ease, box-shadow .12s ease;
}

.prayer-avatar-link:hover{
  opacity: .9;
  text-decoration: none;
}

.prayer-avatar-link:focus-visible{
  outline: 2px solid var(--brand-1, #4f46e5);
  outline-offset: 2px;
}

.prayer-avatar-link .prayer-avatar-sm,
.prayer-avatar-link .prayer-avatar-fallback{
  pointer-events: none;
}

.prayer-card-label{
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .2rem !important;
}

.prayer-card-request{
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
  font-weight: 500;
}

.card.prayer-tile:hover{
  transform:none;
  box-shadow: 0 16px 34px rgba(44, 36, 25, .11);
  border-color: rgba(0,0,0,.09);
}

/* Urgent / Answered tint states (still glass) */
.card.prayer-tile.prayer-urgent{
  background:linear-gradient(180deg, #fffaf3, var(--warm-surface));
  border-left-color:#d97706;
}

.card.prayer-tile.prayer-answered{
  background: linear-gradient(165deg, #f8fcf9 0%, #f0f7f2 48%, var(--warm-surface) 100%);
  border-left-color: #3d9a72;
  border-left-width: 4px;
  box-shadow: 0 8px 22px rgba(47, 143, 106, .08);
}

.card.prayer-tile.prayer-tile--testimony{
  overflow: visible;
}

.prayer-answered-banner{
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  background: linear-gradient(90deg, rgba(47, 143, 106, .14), rgba(212, 168, 75, .08));
  border-bottom: 1px solid rgba(47, 143, 106, .12);
}

.prayer-answered-banner-icon{
  font-size: 1.1rem;
  line-height: 1;
  opacity: .9;
}

.prayer-answered-banner-text{
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2a6b52;
}

.prayer-tile-body--answered{
  padding-top: 1rem;
}

.prayer-badge-answered,
.archive-badge-answered{
  background: #e8f5ee !important;
  color: #2a6b52 !important;
  border: 1px solid rgba(47, 143, 106, .25);
  font-weight: 600;
}

.prayer-card-request--answered{
  font-size: .98rem;
  line-height: 1.5;
  color: #4a443c;
}

.prayer-tile-wall--answered .prayer-tile{
  min-height: 0;
}
/* Make cards a positioning container for the bottom-right menu */
.card.prayer-tile{
  position: relative;
}

/* Card actions menu (single tiny icon) */
.prayer-tile { position: relative; }

.card-actions{
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: auto;
  z-index: 5;
}

.card-actions .dropdown-toggle,
.card-actions-btn{
  width:auto;
  height:auto;
  min-width:2.25rem;
  min-height:2.25rem;
  padding:.25rem .4rem;
  border-radius:.5rem;
  border:none;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  font-weight:700;
  font-size:1.15rem;
  line-height:1;
  color:#6b5d4f;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.card-actions-btn:hover,
.card-actions .dropdown-toggle:hover{
  background:rgba(0,0,0,.04);
  color:#4a4238;
}

/* Tiny helper text */
.prayer-note{ font-size:1rem; color:var(--muted); font-weight:600; letter-spacing:.2px; }

/* --------------------------------------------------------------------- */
/* 6) INLINE PRAISE HEADER (scrollable) INSIDE ANSWERED CARDS              */
/* --------------------------------------------------------------------- */
.praise-inline{
  margin-bottom: .6rem;
  border: 1px solid rgba(47, 143, 106, .15);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244, 251, 246, .85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(47, 143, 106, .06);
}

.praise-inline-head{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .75rem;
  border-bottom: 1px solid rgba(47, 143, 106, .1);
  background: linear-gradient(90deg, rgba(47,143,106,.12), rgba(212, 168, 75, .06));
}

.praise-inline-icon{ font-size: 1.05rem; line-height: 1; }

.praise-inline-title{
  font-weight: 700;
  letter-spacing: .2px;
}

.praise-inline-box{
  padding: .65rem .75rem;
  font-size: .98rem;
  line-height: 1.45;
  word-break: break-word;
  color: #2c2419;
}

.praise-inline-expandable .praise-inline-box{
  padding-bottom: .35rem;
}

/* Answered page intro */
.answered-page-intro{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(47, 143, 106, .14);
  background: linear-gradient(135deg, #fffdf8 0%, #f4faf6 55%, #faf6ee 100%);
}

.answered-page-intro-icon{
  font-size: 1.75rem;
  line-height: 1;
  flex: 0 0 auto;
  opacity: .85;
}

.answered-page-intro-title{
  color: #2a6b52;
  font-weight: 700;
}

.answered-page-intro-text{
  color: #5c5346;
  font-size: .98rem;
  line-height: 1.5;
}

/* Reaction sections on answered cards */
.prayer-reactions--answered{
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: .75rem;
}

.rx-section{
  margin-bottom: 0;
}

.rx-section-label{
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2a6b52;
  margin: 0 0 .2rem;
}

.rx-section-label--muted{
  color: #6b6560;
}

.rx-section-hint{
  font-size: .8rem;
  color: #7a736c;
  margin: 0 0 .5rem;
  line-height: 1.35;
}

.rx-section--support{
  padding: .65rem .75rem;
  border-radius: 10px;
  background: rgba(0,0,0,.025);
  border: 1px solid rgba(0,0,0,.05);
}

.rx-praise-count-wrap{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.rx-total-label{
  font-size: .72rem;
  font-weight: 600;
  color: #5c5346;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rx-praise-total-pill{
  background: #e8f5ee;
  border-color: rgba(47, 143, 106, .28);
  color: #2a6b52;
  font-weight: 700;
}

.rx-react-btn--praise.is-selected{
  border-color: rgba(47, 143, 106, .45);
  background: rgba(47, 143, 106, .12);
}

.rx-answered-counts .rx-answered-detail-btn{
  color: #6b6560 !important;
  text-decoration: none;
  min-height: 40px;
}

.rx-answered-counts .rx-answered-detail-btn:hover{
  color: #2a6b52 !important;
  text-decoration: underline;
}

.prayer-empty-state--answered{
  border-color: rgba(47, 143, 106, .12);
  background: linear-gradient(180deg, #fffdf8, #f6fbf8);
}

/* Scrollbar polish (optional) */
.praise-inline-box::-webkit-scrollbar{ width: 10px; }
.praise-inline-box::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.6);
}
.reaction-pill-wrap{
  position: relative;
  display: inline-block;
}

.reaction-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.32rem .6rem;
  border:1px solid #e6e9f2;
  border-radius:999px;
  background:#fff;
  font-weight:700;
  line-height:1;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  cursor:pointer;
}

.reaction-pill:hover{
  background:#f7fbff;
  border-color:#dfe6ff;
}

.reaction-pill .rx-label{
  opacity:.75;
  font-weight:500;
}

.reaction-pill .rx-total{
  font-weight:500;
  padding-left:.1rem;
}

.reaction-pill .rx-caret{
  opacity:.55;
  font-weight:500;
  margin-left:.1rem;
}

.rx-flyout{
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);

  /* Let content decide width */
  width: max-content;
  min-width: 220px;
  max-width: 420px;

  padding:.55rem .65rem;
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  display:none;
  z-index: 10002;
}
/* Mobile: center the flyout so it can't go off-screen */
@media (max-width: 576px){
  .reaction-pill-wrap .rx-flyout{
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;

    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);

    max-height: calc(100vh - 160px);
    overflow: auto;

    /* keep your glass look */
    margin: 0;
  }
}
/* Reaction input row (clean + responsive) */
.rx-react-row{
  display:flex;
  gap:.45rem;
  margin-bottom:.55rem;
  flex-wrap:wrap;
  align-items:center;
}

/* Emoji-only buttons */
.rx-react-btn{
  position:relative;

  width:38px;
  height:38px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);

  cursor:pointer;
  transition: all .12s ease;
}

.rx-react-btn:hover{
  background:#f7fbff;
  border-color:#dfe6ff;
}

/* Selected reaction (shows what THIS user chose) */
.rx-react-btn.is-selected{
  background: rgba(79,70,229,0.14);
  border-color: rgba(79,70,229,0.55);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.18);
  transform: translateY(-1px);
}

/* Selected reaction (what the user used) */
.rx-react-btn.is-selected{
  background: rgba(79, 70, 229, .12);     /* uses your brand vibe */
  border-color: rgba(79, 70, 229, .45);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .18);
  transform: translateY(-1px);
}

.rx-react-btn.is-selected .rx-emoji{
  transform: scale(1.06);
}
.rx-emoji{
  font-size: .95rem;
  line-height: 1;
}

/* Tooltip bubble (does not affect layout) */
.rx-react-btn::after{
  content: attr(data-label);
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);

  display:none;
  padding:.28rem .5rem;
  border-radius:999px;

  background: rgba(20,20,24,.92);
  color:#fff;

  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  pointer-events:none;
  z-index: 10003;
}

/* Little pointer */
.rx-react-btn::before{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(100% + 4px);

  display:none;
  width:0; height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:7px solid rgba(20,20,24,.92);
  pointer-events:none;
  z-index: 10003;
}

/* Desktop: show meaning on hover (fine pointer only — avoids stuck touch hover) */
@media (hover: hover) and (pointer: fine){
  .rx-react-btn:hover::after,
  .rx-react-btn:hover::before{
    display:block;
  }
}

/* Touch / JS-pinned tooltip */
.rx-react-btn.show-help::after,
.rx-react-btn.show-help::before{
  display:block;
}

/* Flip tooltip below emoji when near top of viewport */
.rx-react-btn.rx-tip-below::after{
  bottom:auto;
  top: calc(100% + 10px);
}

.rx-react-btn.rx-tip-below::before{
  bottom:auto;
  top: calc(100% + 4px);
  border-top:none;
  border-bottom:7px solid rgba(20,20,24,.92);
}

/* ===== Encouragements (below reactions) ===== */
.rx-encouragements{
  position:relative;
  margin-top:.4rem;
  padding-top:.35rem;
  border-top:1px solid rgba(0,0,0,.06);
}

.rx-encouragements-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:.35rem;
  margin-top:.1rem;
  margin-bottom:.1rem;
}

.rx-encouragements-title{
  font-size:.72rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#8a8175;
  margin:0;
}

.prayer-card-request .prayer-urgent-inline{
  display: inline;
  font-size: inherit;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #c2410c;
  white-space: normal;
}

.prayer-card-request .prayer-urgent-inline [aria-hidden="true"]{
  margin-right: .12rem;
}

.prayer-urgent-sep{
  color: #b45309;
  font-weight: 600;
}

.rx-encouragement-item{
  font-size:.84rem;
  line-height:1.45;
  color:#4a4238;
  margin-bottom:.35rem;
  padding:.35rem .5rem;
  background:linear-gradient(180deg, rgba(255,252,245,.95), rgba(255,255,255,.6));
  border-radius:.5rem;
  border:1px solid rgba(201,162,39,.12);
  white-space:normal;
}

.rx-encouragement-body{
  font-style:italic;
}

.rx-encouragement-meta{
  color:#6c757d;
  font-size:.8rem;
}

.rx-encouragement-meta a{
  font-weight:600;
  text-decoration:none;
}

.rx-encouragement-owner-actions{
  display:inline;
  margin-left:.15rem;
  font-size:.75rem;
  white-space:nowrap;
}

.rx-encouragement-owner-actions .btn-link{
  vertical-align:baseline;
  line-height:inherit;
}

.rx-encouragement-edit-form{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
  align-items:center;
  margin-top:.2rem;
}

.rx-encouragement-edit-form .form-control{
  flex:1 1 8rem;
  min-width:0;
  font-size:.84rem;
}

.rx-encouragement-edit-error{
  flex:1 0 100%;
  font-size:.72rem;
}

.rx-encouragement-label{
  display:block;
  font-size:.75rem;
  font-weight:600;
  color:#6b5d4f;
  margin-bottom:.25rem;
}

.rx-encouragement-hint{
  font-size:.7rem;
  color:#8a8175;
}

.rx-encouragement-form-wrap{
  margin-top:0;
  margin-bottom:.2rem;
  padding-right:0;
}

.rx-encouragement-form-wrap .input-group{
  max-width:100%;
}

.rx-encouragement-form-wrap--shared .rx-encouragement-input:disabled{
  background:#f8f9fa;
  color:#6c757d;
}

.rx-encouragements-toggle{
  border:1px solid rgba(37,99,235,.15);
  background:rgba(37,99,235,.06);
  border-radius:999px;
  padding:.1rem .38rem;
  font-size:.72rem;
  font-weight:600;
  color:inherit;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
}

.rx-encouragements-toggle:hover{
  background:rgba(37,99,235,.12);
  border-color:rgba(37,99,235,.28);
}

.rx-enc-toggle-arrow{
  color:#2563eb;
  font-weight:900;
  margin-left:.15rem;
}

.rx-encouragements-more-wrap{
  position:static;
}

.rx-encouragements-flyout{
  padding:.45rem .5rem;
  border:1px solid rgba(0,0,0,.10);
  border-radius:.85rem;
  background:rgba(255,255,255,.98);
  box-shadow:0 .5rem 1.25rem rgba(15,23,42,.12);
  box-sizing:border-box;
}

.rx-encouragements-flyout[hidden]{
  display:none !important;
}

.rx-encouragements--expanded{
  position:relative;
  z-index:20;
}

.rx-encouragements--expanded .rx-encouragements-head{
  position:relative;
}

.rx-encouragements--expanded .rx-encouragements-flyout{
  position:absolute;
  top:100%;
  left:0;
  right:auto;
  width:max-content;
  min-width:min(16rem, 100%);
  max-width:min(100%, 26rem);
  z-index:150;
  margin-top:.35rem;
  max-height:min(16rem, 55vh);
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.rx-encouragements--expanded .rx-encouragements-flyout .rx-encouragement-item{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* “Open” class is for touch/click pinning */
.reaction-pill-wrap.open .rx-flyout{
  display:block;
}

.rx-row{
  display:flex;
  gap:.5rem;
  align-items:flex-start;
  margin-bottom:.35rem;
}

.rx-row:last-child{ margin-bottom:0; }

.rx-e{ width: 1.4rem; }
.rx-n{
  width: 1.6rem;
  font-weight:500;
  opacity:.8;
}

.rx-users{
  flex:1;
  min-width:0;
  white-space: nowrap;
}
.rx-user{
  font-weight: 500;
  text-decoration: none;
}
.rx-user:hover{
  text-decoration: underline;
}
.rx-more{
  opacity:.7;
  font-weight:500;
  white-space: nowrap;
}

/* --------------------------------------------------------------------- */
/* 8) PRAISE REPORTS LIST (optional block on Active page)                  */
/* --------------------------------------------------------------------- */
.praise-wrap{ border-radius:16px; }

.praise-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:14px 14px 12px;
  border-radius:16px 16px 0 0;

  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border:1px solid rgba(0,0,0,.06);
  border-bottom:0;

  position:relative;
  overflow:hidden;
}

.praise-header::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  background: var(--brand-2, #2f8f6a);
}

.praise-title{
  display:flex;
  align-items:center;
  gap:12px;
}

.praise-icon{ font-size:1.3rem; line-height:1; }

.praise-h{ font-weight:700; letter-spacing:.2px; }

.praise-sub{
  font-size:.92rem;
  opacity:.75;
  margin-top:2px;
}

.praise-badge{
  background: var(--brand-2, #2f8f6a);
  color:#fff;
  border:0;
  padding:.35rem .55rem;
  border-radius:999px;
}

/* Scrollable list wrapper */
.answered-list-box{
  background:#fff;
  border:1px solid #e9ecef;
  border-top:0;
  border-radius:0 0 16px 16px;

  box-shadow:0 2px 8px rgba(0,0,0,.04);

  max-height:320px;
  overflow-y:auto;
  padding:0;
}

/* List items look like “testimony cards” */
.praise-item{
  padding:14px 14px;
  background: rgba(255,255,255,.92);
}

.praise-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.praise-main{ flex:1; min-width:0; }

.praise-from{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.praise-dot{
  width:9px; height:9px;
  border-radius:999px;
  background: var(--brand-2, #2f8f6a);
  flex:0 0 auto;
}

.praise-user{ font-size:.92rem; opacity:.7; }

.praise-block{
  border-left:3px solid rgba(0,0,0,.08);
  padding-left:10px;
  margin-top:10px;
}

.praise-label{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.7;
  margin-bottom:2px;
}

.praise-text{ word-break:break-word; }

.praise-answer{
  border-left-color: var(--brand-2, #2f8f6a);
  background: rgba(47,143,106,.08);
  border-radius:10px;
  padding:10px 10px 10px 12px;
}

.praise-meta{
  flex:0 0 auto;
  text-align:right;
  font-size:.85rem;
  opacity:.75;
  white-space:nowrap;
}

.praise-meta-line{ font-weight:700; opacity:.8; }

.praise-meta-date{
  margin-top:2px;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* --------------------------------------------------------------------- */
/* 9) BUTTONS                                                             */
/* --------------------------------------------------------------------- */
.btn-primary{
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  border:none;
  color: rgba(255,255,255,.95);
  font-weight:700;
}
.btn-primary:hover{ filter: brightness(.96); }

.btn-warning{
  background: linear-gradient(90deg, var(--btn-warning-start), var(--btn-warning-end));
  border:none;
  color:#020202 !important;
  font-weight:700;
}
.btn-warning:hover{
  background: linear-gradient(90deg, var(--btn-warning-hover-start), var(--btn-warning-hover-end));
  filter: brightness(.98);
}

/* Report button styling (kept “blue”, with matching hover) */
.btn.btn-report{
  background-color: #357bdc;
  border-color: rgba(0,0,0,.25);
  color:#fff;
  font-weight:700;
}
.btn.btn-report:hover,
.btn.btn-report:focus{
  background-color: #285ea8;
  border-color: #285ea8;
  color:#fff;
}

/* --------------------------------------------------------------------- */
/* 10) AVATARS                                                            */
/* --------------------------------------------------------------------- */
.prayer-avatar-sm{
  width:32px;
  height:32px;
  border-radius:6px;   /* slightly rounded square */
  object-fit:cover;
  display:block;
}

.prayer-avatar-fallback{
  width:32px;
  height:32px;
  border-radius:6px;
  background: var(--brand-2, #495057);
  color:#fff;
  font-size:0.8rem;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-transform:uppercase;
}

/* --------------------------------------------------------------------- */
/* 11) PROFILE PHOTO CROPPER (edit profile page)                           */
/* --------------------------------------------------------------------- */
.crop-preview-wrapper{
  margin-top:0.5rem;
  display:flex;
  justify-content:flex-start;
}

#crop-box{
  width:220px;
  height:220px;
  border-radius:12px;
  overflow:hidden;
  background:#f8f9fa;
  border:1px solid rgba(0,0,0,0.12);
  position:relative;
}

#crop-box img{
  max-width:none;
  position:absolute;
  top:0;
  left:0;
  transform-origin:0 0;
}

/* --------------------------------------------------------------------- */
/* 12) HERO HEADER (if you’re using it somewhere)                          */
/* --------------------------------------------------------------------- */
.prayer-hero{
  background: linear-gradient(135deg, var(--brand-2, #1f5131), var(--brand-1, #3b7b4c));
  color:#fff;
  border-radius:1rem;
  padding:1.75rem 1.5rem;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.prayer-hero-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1.5rem;
}

.prayer-hero-text{ max-width:600px; }

.prayer-hero-kicker{
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-weight:700;
  opacity:0.85;
}

.prayer-hero-title{
  font-size:1.75rem;
  margin:0.2rem 0 0.4rem;
  font-weight:700;
}

.prayer-hero-sub{
  margin:0;
  font-size:0.95rem;
  opacity:0.9;
}

.prayer-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.6rem 0.9rem;
  border-radius:999px;
  background: rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  font-size:0.85rem;
  white-space:nowrap;
}

.hero-icon{ font-size:1.25rem; }
.hero-label{ font-weight:600; }

/* Mobile adjustments */
@media (max-width: 767.98px){
  .prayer-hero{ padding:1.25rem 1rem; }
  .prayer-hero-inner{ flex-direction:column; align-items:flex-start; }
  .prayer-hero-title{ font-size:1.4rem; }
  .prayer-hero-badge{ margin-top:0.5rem; }
}


/* make sure cards can stack above each other */
.card.prayer-tile{
  overflow: visible;
  z-index: 1;
}
.modal{
  max-height: calc(100dvh - 20px);
  z-index: 1055;
}

.modal-backdrop{
  z-index: 1050;
}

.modal-body{
  overflow-y:auto;
}

body.modal-open .reaction-pill-wrap.open .rx-flyout{
  display: none !important;
}

body.modal-open .card.prayer-tile.prayer-tile--overlay-open{
  z-index: auto;
}
.card.prayer-tile.prayer-tile--overlay-open,
.card.prayer-tile:has(.card-actions.dropdown.show),
.card.prayer-tile:has(.card-actions .dropdown-menu.show){
  z-index:120;
  overflow:visible;
}

.card.prayer-tile.prayer-tile--testimony.prayer-tile--overlay-open,
.card.prayer-tile.prayer-tile--testimony:has(.card-actions.dropdown.show),
.card.prayer-tile.prayer-tile--testimony:has(.card-actions .dropdown-menu.show){
  overflow:visible;
}

.card-actions.dropdown.show,
.card-actions .dropdown-menu.show{
  z-index:180;
}

.site-header--glass{
  /* Intentionally empty: glass background is defined in .site-header.site-header--glass above */
}
/* ===== Emoji row layout (no duplicate rx-react-btn definitions) ===== */
.rx-bar{ position: relative; }

.rx-emoji-row{
  display:flex;
  align-items:center;
  gap:.35rem;
  flex-wrap:wrap;
}

/* total number + flyout wrapper */
.rx-total-wrap{
  display:inline-block;
  position:relative;
}

.rx-total-pill{
  margin-left:.35rem;
  padding:.25rem .55rem;
  font-size:.75rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#f3f3f3;
  cursor:pointer;
  transition:all .15s ease;
}

.rx-total-pill:hover{
  background:#e6e6e6;
}
@media (max-width: 576px){
  .card.prayer-tile{
    height:auto;
    min-height:180px;
  }
}

/* --------------------------------------------------------------------- */
/* 13) MOBILE PILOT — member-first touch usability (360–430px)             */
/* --------------------------------------------------------------------- */
@media (max-width: 575.98px){
  main.container{
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }

  .site-header .navbar > .container{
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header .navbar-brand{
    max-width: calc(100vw - 4.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.1rem;
  }

  .site-header--combined.site-header--header-text-size-small .navbar-brand{
    font-size: 1rem;
  }

  .site-header--combined.site-header--header-text-size-medium .navbar-brand{
    font-size: 1.1rem;
  }

  .site-header--combined.site-header--header-text-size-large .navbar-brand{
    font-size: 1.24rem;
  }

  .site-header--combined.site-header--header-text-size-small .site-brand-tagline{
    font-size: .7rem;
  }

  .site-header--combined.site-header--header-text-size-medium .site-brand-tagline{
    font-size: .76rem;
  }

  .site-header--combined.site-header--header-text-size-large .site-brand-tagline{
    font-size: .82rem;
  }

  .site-header .navbar-brand small{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .site-header .navbar-toggler{
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.55rem;
  }

  .site-header .nav-link,
  .site-header .navbar-nav button.nav-link{
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .prayer-tile-wall > [class*="col-"]{
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card.prayer-tile .card-body{
    padding-bottom: 2.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rx-encouragements--expanded .rx-encouragements-flyout{
    width:100%;
    min-width:0;
    max-width:100%;
    left:0;
    right:auto;
  }

  .card.prayer-tile .card-body > p{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .prayer-card-head{
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .prayer-card-head > .d-flex.gap-1{
    flex-wrap: wrap;
  }

  .prayer-card-identity{
    flex: 1 1 100%;
    max-width: calc(100% - 2.75rem);
  }

  .rx-react-btn{
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .rx-emoji{
    font-size: 1.1rem;
  }

  .rx-total-pill,
  .rx-answered-detail-btn{
    min-height: 40px;
    padding: 0.35rem 0.6rem;
  }

  .rx-answered-detail-btn{
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    text-align: left;
    line-height: 1.3;
  }

  .card-actions{
    right:8px;
    top:8px;
    bottom:auto;
  }

  .card-actions .dropdown-toggle,
  .card-actions-btn{
    min-width:2.5rem;
    min-height:2.5rem;
    padding:.3rem .45rem;
    font-size:1.2rem;
  }

  .card-actions .dropdown-menu{
    min-width: 11rem;
  }

  .card-actions .dropdown-item{
    padding: 0.65rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .reaction-pill-wrap .rx-flyout,
  .rx-answered-detail-wrap .rx-flyout{
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(70vh, calc(100dvh - 120px));
    overflow: auto;
    margin: 0;
  }

  .rx-flyout .rx-users{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .prayer-modal-mobile{
    margin: 0.5rem auto;
    max-width: calc(100% - 1rem);
    width: calc(100% - 1rem);
  }

  .modal.prayer-modal-mobile,
  .modal .prayer-modal-mobile{
    max-height: calc(100dvh - 1rem);
  }

  .modal-body textarea.form-control{
    min-height: 8rem;
  }

  .btn-primary.w-100,
  main .text-center.mb-4 > .btn-primary{
    min-height: 44px;
    width: 100%;
    max-width: 100%;
  }

  #crop-box{
    width: min(220px, 100%);
    max-width: 100%;
  }

  .crop-preview-wrapper{
    max-width: 100%;
  }

  .archive-mobile-card .btn,
  .archive-restore-btn{
    min-height: 44px;
  }

  .answered-page-intro{
    flex-direction: column;
    padding: 1rem;
  }

  .praise-inline-box{
    max-height: 140px;
  }
}

@media (max-width: 767.98px){
  h3.mb-3,
  .card.mb-4 .card-header{
    font-size: 1.1rem;
  }

  .row > .col-lg-6{
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-body[style*="max-height"]{
    max-height: none !important;
    overflow-y: visible !important;
  }

  .list-group-item .d-flex.justify-content-between{
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .list-group-item .d-flex.flex-column.gap-1.ms-2{
    margin-left: 0 !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }

  .list-group-item .btn-sm{
    min-height: 40px;
    flex: 1 1 auto;
  }

  .table-responsive{
    -webkit-overflow-scrolling: touch;
  }

  .card.mb-4 form .btn{
    min-height: 44px;
  }

  .alert.d-flex.flex-wrap{
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* --------------------------------------------------------------------- */
/* 14) ANNOUNCEMENTS / PASTOR WELCOME BANNERS                              */
/* --------------------------------------------------------------------- */
.announcements-panel{
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.announcement-banner{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(135deg, #fffdf8, #fff);
  box-shadow: 0 8px 20px rgba(44, 36, 25, .06);
}

.announcement-banner--featured{
  border-left: 5px solid var(--brand-2, #2f8f6a);
  background: linear-gradient(135deg, rgba(47,143,106,.08), #fffdf8 55%, #fff);
  box-shadow: 0 12px 26px rgba(44, 36, 25, .09);
}

.announcement-banner--welcome{
  position: relative;
  padding-top: 1.35rem;
  border: 1px solid rgba(201, 162, 39, .22);
  background: linear-gradient(
    145deg,
    rgba(255, 249, 235, .95) 0%,
    #fffdf8 42%,
    #fff 100%
  );
  box-shadow: 0 16px 34px rgba(44, 36, 25, .1);
}

.announcement-pinned-badge{
  position: absolute;
  top: .65rem;
  right: .85rem;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, .18);
  color: #5c4a1a;
  border: 1px solid rgba(201, 162, 39, .32);
}

.announcement-banner--welcome .announcement-banner-icon{
  background: linear-gradient(135deg, rgba(201, 162, 39, .2), rgba(47, 143, 106, .12));
  font-size: 1.15rem;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
}

.announcement-banner--welcome .announcement-banner-label{
  color: #6b5420;
}

.announcement-banner--welcome .announcement-banner-text{
  font-size: 1.02rem;
  color: var(--text);
}

.announcement-banner--success{
  border-left-color: #2f8f6a;
}

.announcement-banner--info{
  border-left-color: var(--brand-1, #4f46e5);
}

.announcement-banner--secondary{
  border-left-color: #8a8278;
}

.announcement-banner-icon{
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--brand-2, #2f8f6a);
}

.announcement-banner--featured .announcement-banner-icon{
  background: rgba(47,143,106,.14);
}

.announcement-banner-from{
  margin: 0;
  font-size: .95rem;
}

.announcement-banner-label{
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .15rem;
}

.announcement-banner-text{
  line-height: 1.55;
  font-size: 1rem;
}

.announcement-banner-date{
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* --------------------------------------------------------------------- */
/* 14b) LONG PRAYER TEXT — READ MORE / SHOW LESS                           */
/* --------------------------------------------------------------------- */
.prayer-text-expandable{
  position: relative;
}

.prayer-text-expandable-inner{
  white-space: pre-wrap;
  word-break: break-word;
}

.prayer-text-clamped{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.prayer-text-toggle{
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: .15rem;
}

.prayer-text-toggle:hover,
.prayer-text-toggle:focus{
  text-decoration: underline;
}

/* --------------------------------------------------------------------- */
/* 14c) CHURCH HUB LAYOUT + SIDEBAR WIDGETS                               */
/* --------------------------------------------------------------------- */
.church-hub-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 992px){
  .church-hub-layout:not(.church-hub-layout--no-sidebar){
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.church-hub-main{
  min-width: 0;
}

.church-hub-sidebar{
  min-width: 0;
}

.church-hub-widgets{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.hub-widget{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, #fffdf8);
  box-shadow: 0 8px 20px rgba(44, 36, 25, .06);
  overflow: hidden;
}

.hub-widget-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
}

.hub-widget-title{
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
}

.hub-widget-body{
  padding: .5rem .65rem .75rem;
}

.hub-widget-mobile-toggle{
  border: none;
  background: transparent;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.hub-widget-mobile-toggle:hover{
  background: rgba(0,0,0,.05);
}

.hub-widget-chevron{
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -.2rem;
  transition: transform .15s ease;
}

.hub-widget--collapsed .hub-widget-body{
  display: none;
}

.hub-widget--collapsed .hub-widget-chevron{
  transform: rotate(-135deg);
  margin-top: .15rem;
}

@media (min-width: 992px){
  .hub-widget--collapsible-mobile.hub-widget--collapsed .hub-widget-body{
    display: block;
  }

  .hub-widget-mobile-toggle{
    display: none !important;
  }
}

.hub-widget-lead{
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted);
}

.hub-widget-btn{
  font-weight: 700;
}

.hub-stat-list{
  display: grid;
  gap: .45rem;
}

.hub-stat-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem .45rem;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.05);
}

.hub-stat-label{
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.hub-stat-value{
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-1, #4f46e5);
  font-variant-numeric: tabular-nums;
}

.hub-info-list,
.hub-info-row{
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.hub-info-label{
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-info-value{
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.hub-info-value a{
  color: var(--brand-1, #4f46e5);
  text-decoration: none;
}

.hub-info-value a:hover{
  text-decoration: underline;
}

.hub-quick-links{
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.hub-quick-link{
  display: block;
  padding: .45rem .55rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-1, #4f46e5);
  text-decoration: none;
  background: rgba(79, 70, 229, .06);
  border: 1px solid rgba(79, 70, 229, .12);
}

.hub-quick-link:hover{
  background: rgba(79, 70, 229, .1);
  color: var(--brand, #1e0082);
}

@media (max-width: 991.98px){
  .church-hub-layout{
    gap: .75rem;
  }

  .church-hub-sidebar{
    margin-bottom: 0;
  }

  .church-hub-widgets{
    gap: .55rem;
  }

  .hub-widget-header{
    padding: .65rem .85rem;
  }

  .hub-widget-body{
    padding: .45rem .55rem .6rem;
  }

  .hub-widget--contact .hub-widget-body,
  .hub-widget--stats .hub-widget-body{
    padding-top: .3rem;
    padding-bottom: .5rem;
  }

  .hub-widget--stats .hub-stat-row{
    padding: .25rem .35rem;
  }

  .hub-announcement-toggle{
    padding: .55rem .65rem;
  }
}

.hub-announcement-list{
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.hub-announcement-item{
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  overflow: hidden;
}

.hub-announcement-item--info{ border-left: 3px solid var(--brand-1, #4f46e5); }
.hub-announcement-item--success{ border-left: 3px solid #2f8f6a; }
.hub-announcement-item--secondary{ border-left: 3px solid #8a8278; }

.hub-announcement-toggle{
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: .65rem .75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.hub-announcement-toggle:hover,
.hub-announcement-toggle:focus-visible{
  background: rgba(0,0,0,.03);
  outline: none;
}

.hub-announcement-toggle-main{
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.hub-announcement-title{
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.hub-announcement-date{
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .01em;
}

.hub-announcement-author{
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
  font-style: italic;
}

.hub-announcement-item.is-open .hub-announcement-title{
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.hub-announcement-body{
  padding: 0 .75rem .75rem;
}

.hub-announcement-text{
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.hub-announcement-meta{
  font-size: .75rem;
  color: var(--muted);
  margin-top: .45rem;
}

.hub-announcement-item.is-open{
  background: linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: inset 0 0 0 1px rgba(47,143,106,.08);
}

.hub-widget--future{
  min-height: 0;
  border-style: dashed;
  border-color: rgba(0,0,0,.08);
  background: transparent;
  box-shadow: none;
}

.admin-branding-remove-zone{
  padding-top: .75rem;
  margin-top: .25rem;
  border-top: 1px dashed rgba(0,0,0,.12);
}

/* --------------------------------------------------------------------- */
/* 15) PRAYER WALL CTA + EMPTY STATES + FOOTER                             */
/* --------------------------------------------------------------------- */
.prayer-wall-cta{
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,253,248,.6));
  border: 1px solid rgba(0,0,0,.06);
}

.prayer-wall-cta-hint{
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.prayer-submit-btn{
  min-width: min(100%, 16rem);
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.prayer-tile-col--hidden{
  display: none !important;
}

.prayer-tile-col--search-hidden{
  display: none !important;
}

.prayer-sort-toolbar-field{
  flex: 1 1 12rem;
  min-width: 0;
}

.prayer-sort-toolbar-field--search{
  flex: 1 1 14rem;
}

.prayer-search-input{
  border-radius: 999px;
  max-width: 100%;
}

.prayer-search-empty{
  font-size: .95rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.prayer-load-more-wrap{
  padding: 0 .5rem;
}

.prayer-load-more-btn{
  min-height: 44px;
  min-width: min(100%, 14rem);
  padding: .55rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border-color: rgba(0, 0, 0, .12);
  background: rgba(255, 253, 249, .92);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(44, 36, 25, .06);
}

.prayer-load-more-btn:hover,
.prayer-load-more-btn:focus-visible{
  background: #fff;
  border-color: rgba(47, 143, 106, .28);
  color: var(--text);
}

.prayer-empty-state{
  text-align: center;
  padding: 2.75rem 1.65rem;
  border-radius: 18px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255,249,235,.85), transparent 70%),
    linear-gradient(180deg, #fffdf8, #fff);
  border: 1px solid rgba(201, 162, 39, .18);
  box-shadow: 0 12px 28px rgba(44, 36, 25, .07);
}

.prayer-empty-state--compact{
  padding: 2rem 1.25rem;
}

.prayer-empty-icon{
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: .85rem;
  filter: drop-shadow(0 4px 8px rgba(44, 36, 25, .08));
}

.prayer-empty-title{
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: .55rem;
  color: var(--text);
  letter-spacing: .01em;
}

.prayer-empty-text{
  color: var(--muted);
  max-width: 30rem;
  margin: 0 auto 1.35rem;
  line-height: 1.6;
  font-size: .98rem;
}

/* Admin branding upload previews */
.admin-branding-preview{
  display: inline-flex;
  padding: .5rem;
  border-radius: 12px;
  background: #faf8f4;
  border: 1px solid rgba(0,0,0,.08);
}

.admin-branding-logo{
  max-height: 56px;
  max-width: 120px;
  object-fit: contain;
}

.admin-branding-preview--banner{
  display: block;
  width: 100%;
  max-width: 280px;
}

.admin-branding-banner{
  width: 100%;
  max-height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.prayer-empty-state--compact .prayer-empty-text{
  margin-bottom: 0;
}

.site-footer{
  background: linear-gradient(180deg, #fff, #faf6f0);
  border-top-color: rgba(0,0,0,.08) !important;
}

.site-footer-brand{
  font-size: .92rem;
  margin: 0;
}

.brand-link,
.shepherdlink-brand-link{
  color: var(--muted);
  text-decoration: none;
  transition: color .12s ease;
}

.brand-link:hover,
.shepherdlink-brand-link:hover{
  color: var(--brand-1);
  text-decoration: none;
}

.brand-link strong,
.shepherdlink-brand-link strong{
  color: var(--text);
  font-weight: 800;
}

.site-footer-tagline{
  letter-spacing: .02em;
}

.site-footer-links a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-links a:hover{
  color: var(--brand-1);
  text-decoration: underline;
}

.site-footer-sep{
  margin: 0 .35rem;
  color: rgba(0,0,0,.25);
}

/* --------------------------------------------------------------------- */
/* 16) ADMIN ATTENTION ALERTS (warm, clear)                                */
/* --------------------------------------------------------------------- */
.admin-summary-badge{
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(47, 143, 106, .12);
  color: var(--brand-2, #2f8f6a);
  border: 1px solid rgba(47, 143, 106, .22);
}

.admin-attention-panel{
  margin-top: 1.1rem;
  background: #fffbf3;
  border: 1px solid rgba(201, 162, 39, .18);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 6px 20px rgba(44, 36, 25, .04);
}

.admin-attention-panel-head{
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .85rem;
}

.admin-attention-bell{
  font-size: 1.15rem;
  color: #9a7b28;
  margin-top: .1rem;
}

.admin-attention-heading{
  font-size: 1rem;
  font-weight: 800;
  color: #2c2419;
}

.admin-attention-lead{
  font-size: .85rem;
  color: #6b6358;
}

.admin-attention-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .65rem;
}

.admin-attention-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(44, 36, 25, .07);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.admin-attention-item:hover{
  border-color: rgba(47, 143, 106, .22);
  box-shadow: 0 6px 16px rgba(44, 36, 25, .06);
  text-decoration: none;
  color: inherit;
}

.admin-attention-item-icon{
  font-size: 1.1rem;
  color: #5a6a7a;
}

.admin-attention-item-count{
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #2c2419;
}

.admin-attention-item-label{
  font-weight: 700;
  font-size: .88rem;
}

.admin-attention-item-desc{
  font-size: .78rem;
  color: #6b6358;
}

.admin-attention-item-action{
  margin-top: .25rem;
  font-size: .78rem;
  font-weight: 700;
  color: #2f6fad;
}

.admin-card-badge{
  font-size: .75rem;
  font-weight: 700;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, .16);
  color: #6b5420;
  border: 1px solid rgba(201, 162, 39, .28);
}

.admin-card-badge--muted{
  background: rgba(0, 0, 0, .05);
  color: var(--muted);
  border-color: rgba(0, 0, 0, .08);
}

.admin-nav-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-2, #2f8f6a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.admin-user-pending{
  background: rgba(201, 162, 39, .08);
}

/* Profile notification preferences */
.profile-notify-panel{
  padding: .85rem .95rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.profile-notify-panel legend{
  float: none;
  width: auto;
  padding: 0;
}

.profile-notify-summary li{
  padding: .2rem 0;
}

/* --------------------------------------------------------------------- */
/* ADMIN PAGE — control center shell, workspaces, mobile                 */
/* --------------------------------------------------------------------- */
.admin-page{
  --admin-sidebar-w: 16.25rem;
  --admin-navy: #1e3a5f;
  --admin-navy-2: #243f66;
  --admin-surface: #ffffff;
  --admin-canvas: #eef1f6;
  --admin-ink: #1a2b42;
  --admin-muted: #5c6b7e;
  --admin-accent: #2f6fad;
  background: var(--admin-canvas);
  margin: 0 -.75rem;
  padding: .5rem .75rem 2rem;
  border-radius: 0;
  color: var(--admin-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.admin-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
}

@media (min-width: 992px){
  .admin-shell{
    grid-template-columns: var(--admin-sidebar-w) minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }
}

.admin-sidebar{
  position: sticky;
  top: 3.5rem;
  z-index: 20;
  margin-bottom: .75rem;
}

@media (min-width: 992px){
  .admin-sidebar{
    display: flex;
    flex-direction: column;
    top: calc(var(--site-header-offset, 5.5rem) + 0.75rem);
    align-self: start;
    position: sticky;
    max-height: calc(100vh - var(--site-header-offset, 5.5rem) - 1.5rem);
    overflow-y: auto;
    margin-bottom: 0;
    padding: 1.1rem .85rem 1.25rem;
    background: linear-gradient(180deg, var(--admin-navy) 0%, var(--admin-navy-2) 100%);
    border-radius: 14px 0 0 14px;
    box-shadow: 4px 0 24px rgba(26, 43, 66, .12);
  }

  .admin-sidebar-nav{
    flex: 0 0 auto;
  }
}

.admin-sidebar-brand{
  display: flex;
  align-items: center;
  gap: .65rem;
}

.admin-sidebar-brand--mobile{
  padding: .5rem .55rem .65rem;
  margin-bottom: .35rem;
  background: linear-gradient(135deg, var(--admin-navy), var(--admin-navy-2));
  border-radius: 12px;
}

.admin-sidebar-brand--mobile .admin-sidebar-church{
  color: #fff;
  font-size: .88rem;
}

.admin-sidebar-brand--mobile .admin-sidebar-role{
  color: rgba(255, 255, 255, .55);
}

.admin-sidebar-logo--mobile.admin-sidebar-logo--initial{
  width: 2.1rem;
  height: 2.1rem;
  font-size: .95rem;
}

@media (min-width: 992px){
  .admin-sidebar-brand:not(.admin-sidebar-brand--mobile){
    padding: 0 .35rem 1rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .admin-sidebar-brand:not(.admin-sidebar-brand--mobile) .admin-sidebar-church{
    color: #fff;
  }
}

.admin-sidebar-logo{
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, .95);
  flex-shrink: 0;
}

.admin-sidebar-logo--initial{
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--admin-navy);
}

.admin-sidebar-church{
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.admin-sidebar-role{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.admin-sidebar-nav{
  display: flex;
  flex-direction: row;
  gap: .3rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: .4rem .45rem;
  margin: 0 -.15rem;
  scroll-snap-type: x proximity;
  background: var(--admin-surface);
  border: 1px solid rgba(26, 43, 66, .08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26, 43, 66, .06);
}

@media (min-width: 992px){
  .admin-sidebar-nav{
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: .15rem;
  }
}

.admin-sidebar-link{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: .48rem .65rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border: none;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}

@media (min-width: 992px){
  .admin-sidebar-link{
    width: 100%;
    padding: .52rem .65rem;
    color: rgba(255, 255, 255, .82);
  }
}

@media (max-width: 991.98px){
  .admin-sidebar-link{
    color: var(--admin-muted);
  }
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus{
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991.98px){
  .admin-sidebar-link:hover,
  .admin-sidebar-link:focus{
    background: rgba(47, 111, 173, .08);
    color: var(--admin-accent);
  }
}

.admin-sidebar-link--alert{
  color: rgba(255, 255, 255, .92);
}

.admin-sidebar-bi{
  font-size: 1.05rem;
  opacity: .9;
  flex-shrink: 0;
}

.admin-sidebar-label{
  line-height: 1.2;
  flex: 1;
}

.admin-sidebar-badge{
  margin-left: auto;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 143, 106, .9);
  color: #fff;
}

.admin-sidebar-badge--warn{
  background: rgba(201, 140, 45, .95);
  color: #fff;
}

.admin-sidebar-help{
  margin-top: auto;
  padding: .85rem .5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.admin-sidebar-help-title{
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}

.admin-sidebar-help-text{
  font-size: .75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .55);
}

.admin-main{
  min-width: 0;
  padding: .85rem .85rem 1.5rem;
}

@media (min-width: 992px){
  .admin-main{
    align-self: start;
    padding: 1.35rem 1.5rem 2rem;
    background: var(--admin-canvas);
    border-radius: 0 14px 14px 0;
  }
}

.admin-page-header{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.admin-page-title{
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--admin-ink);
  margin: 0;
}

.admin-page-lead{
  font-size: .9rem;
  color: var(--admin-muted);
  max-width: 32rem;
  line-height: 1.5;
  margin: 0;
}

.admin-page-header-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.admin-btn-prayer{
  background: #fff;
  border: 1px solid rgba(47, 111, 173, .35);
  color: #2f6fad;
  font-weight: 600;
  border-radius: 8px;
  padding: .4rem .85rem;
}

.admin-btn-prayer:hover{
  background: rgba(47, 111, 173, .06);
  border-color: #2f6fad;
  color: #245a8f;
}

.admin-btn-public{
  background: #fff;
  border: 1px solid rgba(47, 143, 106, .35);
  color: #2f8f6a;
  font-weight: 600;
  border-radius: 8px;
  padding: .4rem .85rem;
}

.admin-btn-public:hover{
  background: rgba(47, 143, 106, .06);
  border-color: #2f8f6a;
  color: #267a58;
}

.admin-section{
  margin-bottom: 1.75rem;
  scroll-margin-top: 6.25rem;
}

.admin-section:target{
  animation: admin-section-focus .45s ease;
}

@keyframes admin-section-focus{
  0%{ outline: 2px solid rgba(47, 143, 106, .35); outline-offset: 4px; }
  100%{ outline: 2px solid transparent; outline-offset: 4px; }
}

.admin-section--last{
  margin-bottom: 0;
}

.admin-section--overview{
  margin-bottom: 2rem;
}

.admin-section-head{
  margin-bottom: .85rem;
}

.admin-section-title{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-ink);
  letter-spacing: -.02em;
}

.admin-section-lead{
  font-size: .86rem;
  color: var(--admin-muted);
  margin-top: .15rem;
  max-width: 40rem;
}

.admin-stat-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}

@media (max-width: 1199.98px){
  .admin-stat-grid{
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  }
}

.admin-stat-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem .75rem .95rem;
  border-radius: 12px;
  background: var(--admin-surface);
  border: none;
  box-shadow: 0 2px 12px rgba(26, 43, 66, .06);
}

.admin-stat-card--highlight{
  box-shadow: 0 2px 14px rgba(201, 140, 45, .12);
}

.admin-stat-icon-wrap{
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .55rem;
}

.admin-stat-card--members .admin-stat-icon-wrap{
  background: rgba(47, 111, 173, .12);
  color: #2f6fad;
}

.admin-stat-card--pending .admin-stat-icon-wrap{
  background: rgba(201, 140, 45, .14);
  color: #9a6f1f;
}

.admin-stat-card--prayers .admin-stat-icon-wrap{
  background: rgba(47, 143, 106, .12);
  color: #2f8f6a;
}

.admin-stat-card--reports .admin-stat-icon-wrap{
  background: rgba(120, 90, 180, .12);
  color: #6b52a8;
}

.admin-stat-card--contacts .admin-stat-icon-wrap{
  background: rgba(43, 150, 160, .12);
  color: #2a8a94;
}

.admin-stat-label{
  font-size: .72rem;
  font-weight: 600;
  color: var(--admin-muted);
  line-height: 1.25;
  margin-bottom: .2rem;
}

.admin-stat-value{
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--admin-ink);
  margin-bottom: .45rem;
}

.admin-stat-link{
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-stat-card--members .admin-stat-link{ color: #2f6fad; }
.admin-stat-card--pending .admin-stat-link{ color: #9a6f1f; }
.admin-stat-card--prayers .admin-stat-link{ color: #2f8f6a; }
.admin-stat-card--reports .admin-stat-link{ color: #6b52a8; }
.admin-stat-card--contacts .admin-stat-link{ color: #2a8a94; }

.admin-stat-link:hover{
  text-decoration: underline;
}

.admin-workspace-card,
.admin-panel-card{
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 14px rgba(26, 43, 66, .06);
  overflow: hidden;
  background: var(--admin-surface);
  margin-bottom: .85rem;
}

.admin-workspace-card:last-child{
  margin-bottom: 0;
}

.admin-workspace-card-head,
.admin-panel-card-header{
  background: #fff;
  border-bottom: 1px solid rgba(26, 43, 66, .06);
  padding: .9rem 1.15rem;
}

.admin-workspace-card-title{
  font-size: .95rem;
  font-weight: 700;
  color: var(--admin-ink);
}

.admin-workspace-card-body,
.admin-panel-card-body{
  background: var(--admin-surface);
  padding: 1.1rem 1.15rem 1.15rem;
}

.admin-branding-workspace{
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.admin-branding-workspace .admin-workspace-card{
  margin-bottom: 0;
}

.admin-branding-form-stack{
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.admin-member-group--divider{
  border-top: 1px solid rgba(26, 43, 66, .08);
}

.admin-count-pill{
  font-size: .78rem;
  font-weight: 600;
  color: var(--admin-muted);
  background: rgba(26, 43, 66, .05);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.admin-prayer-list{
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.admin-prayer-card{
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(26, 43, 66, .06);
}

@media (min-width: 576px){
  .admin-prayer-card{
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.admin-prayer-card-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin-bottom: .35rem;
}

.admin-prayer-card-text{
  font-size: .92rem;
  line-height: 1.45;
  color: var(--admin-ink);
}

.admin-prayer-card-actions{
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex-shrink: 0;
}

.admin-prayer-card-actions-danger{
  padding-top: .35rem;
  border-top: 1px dashed rgba(220, 53, 69, .25);
}

.admin-announcement-list{
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 0 1.15rem 1.15rem;
}

.admin-announcement-card{
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(26, 43, 66, .06);
}

.admin-empty-state{
  color: var(--admin-muted);
  font-size: .92rem;
}

.admin-page .form-control,
.admin-page .form-select,
.admin-page input[type="file"]{
  border-color: rgba(26, 43, 66, .12);
  border-radius: 8px;
  font-size: .9rem;
}

.admin-page .form-control:focus,
.admin-page .form-select:focus{
  border-color: rgba(47, 111, 173, .45);
  box-shadow: 0 0 0 3px rgba(47, 111, 173, .12);
}

.admin-workspace-card-body--flush-top{
  padding-top: .65rem;
}

.admin-branding-grid{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.admin-branding-block--prayer-room{
  border-left: 3px solid rgba(47, 143, 106, .35);
}

.admin-callout{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  margin-bottom: .75rem;
  font-size: .9rem;
}

.admin-callout--pending{
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .28);
  color: #5c4818;
}

.admin-callout--review{
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .32);
  color: #6b5420;
}

.admin-needs-review-badge{
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, .22);
  color: #6b5420;
}

.admin-compose-panel{
  padding: 1.1rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(26, 43, 66, .06);
}

.admin-compose-title{
  font-weight: 700;
  color: var(--admin-ink);
}

.admin-branding-block{
  padding: .95rem 1rem;
  margin-bottom: .85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(248, 245, 239, .9));
  border: 1px solid rgba(0, 0, 0, .06);
}

.admin-branding-block--compact{
  padding: .85rem .95rem;
  margin-bottom: 0;
}

.admin-branding-block--last{
  margin-bottom: 0;
}

.admin-branding-block-title{
  font-size: .92rem;
  font-weight: 800;
  margin: 0 0 .2rem;
  color: var(--text);
}

.admin-branding-block-lead{
  margin-bottom: .65rem;
}

.admin-branding-form{
  margin: 0;
}

.admin-form-actions{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.admin-form-actions--compact{
  margin-top: .75rem;
  padding-top: .7rem;
}

.admin-form-actions-btn{
  min-width: 10rem;
}

.admin-header-photo-editor{
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 245, 239, .92));
}

.admin-header-photo-editor-title{
  font-weight: 800;
  margin: 0 0 .15rem;
}

.admin-header-photo-editor-preview{
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 6.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background-color: #e8e4dc;
  background-size: var(--header-photo-size, cover);
  background-position: var(--header-photo-x, 50%) var(--header-photo-y, 50%);
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  filter: saturate(.96) contrast(1.02);
}

.admin-header-photo-editor-preview--draggable{
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-header-photo-editor-preview--dragging{
  cursor: grabbing;
}

.admin-header-photo-editor-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .38) 0%,
      rgba(28, 32, 30, .14) 32%,
      rgba(255, 252, 245, .08) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 252, 245, .2) 0%,
      transparent 55%
    );
}

.admin-header-photo-editor-preview[data-overlay="light"] .admin-header-photo-editor-overlay{
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .22) 0%,
      rgba(28, 32, 30, .08) 36%,
      rgba(255, 252, 245, .04) 62%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 252, 245, .12) 0%,
      transparent 55%
    );
}

.admin-header-photo-editor-preview[data-overlay="dark"] .admin-header-photo-editor-overlay{
  background:
    linear-gradient(
      95deg,
      rgba(28, 32, 30, .58) 0%,
      rgba(28, 32, 30, .32) 34%,
      rgba(255, 252, 245, .12) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(28, 32, 30, .28) 0%,
      transparent 55%
    );
}

.admin-header-photo-editor-sample{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: .65rem 1rem;
  pointer-events: none;
  color: #fff;
}

.admin-header-photo-editor-preview.site-header--header-text-size-small{
  --admin-header-sample-title: .92rem;
  --admin-header-sample-tagline: .66rem;
}

.admin-header-photo-editor-preview.site-header--header-text-size-medium{
  --admin-header-sample-title: 1rem;
  --admin-header-sample-tagline: .72rem;
}

.admin-header-photo-editor-preview.site-header--header-text-size-large{
  --admin-header-sample-title: 1.14rem;
  --admin-header-sample-tagline: .78rem;
}

.admin-header-photo-editor-sample-title{
  font-size: var(--admin-header-sample-title, 1rem);
  font-weight: 700;
  line-height: 1.2;
}

.admin-header-photo-editor-sample-tagline{
  font-size: var(--admin-header-sample-tagline, .72rem);
  font-weight: 600;
  opacity: .9;
  margin-top: .15rem;
  line-height: 1.3;
}

.admin-header-photo-editor-preview.site-header--header-text-weight-bold .admin-header-photo-editor-sample-title,
.admin-header-photo-editor-preview.site-header--header-text-weight-bold .admin-header-photo-editor-sample-tagline{
  font-weight: 700;
}

.admin-header-photo-editor-preview.site-header--header-text-outline-off .admin-header-photo-editor-sample-title,
.admin-header-photo-editor-preview.site-header--header-text-outline-off .admin-header-photo-editor-sample-tagline{
  text-shadow: none;
}

.admin-header-photo-editor-preview.site-header--header-text-outline-light .admin-header-photo-editor-sample-title{
  text-shadow: 0 1px 8px rgba(0, 0, 0, .38), 0 0 1px rgba(0, 0, 0, .2);
}

.admin-header-photo-editor-preview.site-header--header-text-outline-light .admin-header-photo-editor-sample-tagline{
  text-shadow: 0 1px 6px rgba(0, 0, 0, .34), 0 0 1px rgba(0, 0, 0, .18);
}

.admin-header-photo-editor-preview.site-header--header-text-outline-strong .admin-header-photo-editor-sample-title{
  text-shadow:
    0 2px 14px rgba(0, 0, 0, .62),
    0 1px 3px rgba(0, 0, 0, .48);
}

.admin-header-photo-editor-preview.site-header--header-text-outline-strong .admin-header-photo-editor-sample-tagline{
  text-shadow:
    0 2px 12px rgba(0, 0, 0, .58),
    0 1px 2px rgba(0, 0, 0, .42);
}

.admin-header-photo-editor-zoom-value{
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 2.75rem;
  text-align: right;
}

.admin-header-photo-editor-zoom .form-range{
  width: 100%;
}

.prayer-sort-toolbar-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.prayer-sort-toolbar-row .prayer-sort-select{
  width: 100%;
  max-width: 100%;
}

.prayer-sort-label{
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted, #6c757d);
  min-width: 6.5rem;
}

.prayer-sort-select{
  max-width: 16rem;
  border-radius: 999px;
}

.card-actions .dropdown-menu form .dropdown-item{
  width: 100%;
  text-align: left;
}

.admin-manage-members{
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.admin-manage-members-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.admin-manage-members-toggle::-webkit-details-marker{
  display: none;
}

.admin-manage-members-toggle::after{
  content: "▾";
  font-size: .85rem;
  opacity: .55;
  transition: transform .15s ease;
}

.admin-manage-members[open] .admin-manage-members-toggle::after{
  transform: rotate(180deg);
}

.admin-manage-members-body{
  padding: 0 1rem 1rem;
}

.admin-member-status-badges{
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}

.admin-member-role-badge{
  white-space: nowrap;
}

.admin-member-actions-cell{
  min-width: 6.75rem;
  vertical-align: middle;
}

.admin-member-actions-dropdown{
  display: inline-block;
}

.admin-member-actions-dropdown .dropdown-toggle{
  min-width: 6.25rem;
  justify-content: space-between;
}

.admin-member-action-form{
  margin: 0;
}

.admin-member-actions-dropdown .dropdown-menu{
  min-width: 12.5rem;
}

.admin-member-actions-dropdown .dropdown-menu form .dropdown-item{
  width: 100%;
  text-align: left;
}

.admin-reset-password-collapse{
  max-width: 14rem;
  margin-left: auto;
}

.admin-member-email-hint{
  max-width: 16rem;
  margin-left: auto;
}

.admin-member-search{
  max-width: 22rem;
}

.admin-scope-badge{
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: rgba(47, 143, 106, .12);
  color: var(--brand-2, #2f8f6a);
  border: 1px solid rgba(47, 143, 106, .22);
  vertical-align: middle;
}

.admin-preview-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.admin-row-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-row-actions--danger{
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px dashed rgba(220, 53, 69, .28);
}

.admin-row-actions--danger .btn-outline-danger{
  font-weight: 600;
}

.admin-details-btn{
  list-style: none;
  cursor: pointer;
}

.admin-details-btn::-webkit-details-marker{
  display: none;
}

@media (max-width: 575.98px){
  .admin-row-actions{
    justify-content: stretch;
  }

  .admin-row-actions .btn{
    flex: 1 1 auto;
  }

  .admin-preview-links .btn{
    flex: 1 1 calc(50% - .25rem);
  }
}

.admin-list-panel{
  border-radius: 10px;
  overflow: hidden;
}

.admin-list-panel .list-group-item{
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 0, .06);
}

.admin-data-table{
  --bs-table-bg: rgba(255, 255, 255, .55);
  margin-bottom: 0;
}

.admin-scroll-panel{
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
}

.admin-reset-password-form{
  min-width: 180px;
  max-width: 100%;
}

.admin-reports-card--needs-review{
  box-shadow: 0 2px 16px rgba(201, 140, 45, .14);
}

.admin-reports-card--needs-review .admin-workspace-card-head{
  background: #fffdf8;
}

.admin-page .card .form-control,
.admin-page .card .form-select,
.admin-page .card input[type="file"],
.admin-page .admin-workspace-card .form-control,
.admin-page .admin-workspace-card .form-select,
.admin-page .admin-workspace-card input[type="file"]{
  max-width: 100%;
}

.admin-branding-preview{
  max-width: 100%;
}

@media (max-width: 991.98px){
  .admin-sidebar{
    position: sticky;
    top: 3.5rem;
  }

  .admin-sidebar-badge{
    margin-left: .2rem;
  }
}

@media (max-width: 575.98px){
  .admin-page{
    margin: 0 -.5rem;
    padding: .35rem .5rem 1.25rem;
  }

  .admin-main{
    padding: .65rem .35rem 1rem;
  }

  .admin-stat-grid{
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat-value{
    font-size: 1.5rem;
  }

  .admin-page-header-actions{
    width: 100%;
  }

  .admin-page-header-actions .btn{
    flex: 1 1 calc(50% - .25rem);
    justify-content: center;
  }

  .admin-scroll-panel{
    max-height: none;
  }

  .admin-form-actions{
    justify-content: stretch;
  }

  .admin-form-actions-btn{
    width: 100%;
    min-width: 0;
  }

  .admin-workspace-card-body,
  .admin-panel-card-body,
  .admin-branding-block{
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .admin-compose-panel{
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .admin-branding-preview--banner{
    max-width: 100%;
  }

  .admin-header-photo-editor-preview{
    height: 5.5rem;
  }

  .admin-page-header{
    flex-direction: column;
  }

  .admin-member-table thead,
  .admin-reports-table thead{
    display: none;
  }

  .admin-member-table tr,
  .admin-reports-table tr{
    display: block;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(44, 36, 25, .08);
  }

  .admin-member-table td,
  .admin-reports-table td{
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem 0;
    border: 0;
    text-align: left !important;
  }

  .admin-member-table td::before,
  .admin-reports-table td::before{
    content: attr(data-label);
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--admin-muted);
    flex-shrink: 0;
  }

  .admin-member-table td[data-label="Actions"],
  .admin-reports-table td[data-label="Actions"]{
    flex-direction: column;
    align-items: stretch;
  }

  .admin-member-table td[data-label="Actions"]::before,
  .admin-reports-table td[data-label="Actions"]::before{
    margin-bottom: .25rem;
  }

  .admin-member-actions-dropdown,
  .admin-reset-password-collapse,
  .admin-member-email-hint{
    margin-left: 0;
    max-width: 100%;
  }

  .admin-member-actions-dropdown .dropdown-toggle{
    width: 100%;
  }
}

@media (max-width: 575.98px){
  .admin-attention-grid{
    grid-template-columns: 1fr;
  }

  .admin-nav-badge{
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: .68rem;
  }

  .admin-stat-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px){
  .church-identity-banner{
    border-radius: 0 0 1rem 1rem;
    min-height: 6.5rem;
  }

  .church-identity-banner-inner{
    padding: 1.1rem .85rem 1.25rem;
  }

  .church-identity-title{
    font-size: 1.25rem;
  }

  .announcement-banner{
    flex-direction: column;
    gap: .65rem;
  }

  .announcement-pinned-badge{
    position: static;
    align-self: flex-start;
    margin-bottom: .25rem;
  }

  .announcement-banner--welcome{
    padding-top: 1rem;
  }

  .prayer-submit-btn{
    width: 100%;
  }
}

/* --------------------------------------------------------------------- */
/* 17) PWA + APP SHELL (mobile-first, conservative)                        */
/* --------------------------------------------------------------------- */
html{
  -webkit-tap-highlight-color: rgba(26, 61, 92, .12);
}

.app-shell{
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Prayer Room: desktop scroll below header/tabs; mobile uses normal document scroll */
@media (min-width: 768px){
  body.app-shell:has(.prayer-tabs-row-with-filter){
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .site-header{
    position: relative;
    top: auto;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .pwa-install-banner,
  body.app-shell:has(.prayer-tabs-row-with-filter) .pwa-install-fallback{
    flex: 0 0 auto;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .app-main{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: calc(
      var(--prayer-tabs-gap)
      + var(--prayer-tabs-bar-height)
      + var(--prayer-scrollport-top-gap)
    );
    padding-top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .site-footer{
    margin-top: auto;
    flex-shrink: 0;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-layout,
  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-sidebar,
  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-main,
  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-widgets{
    margin-top: 0;
    padding-top: 0;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tile-wall{
    margin-top: 0;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tile-wall.row.g-3{
    --bs-gutter-y: 0;
    margin-top: 0;
    row-gap: 1rem;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tile-wall.row > [class*="col-"]{
    margin-top: 0;
  }
}

@media (max-width: 767.98px){
  body.app-shell:has(.prayer-tabs-row-with-filter),
  body.app-shell:has(.prayer-tabs){
    display: block;
    height: auto;
    overflow-x: clip;
    overflow-y: visible;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .site-header,
  body.app-shell:has(.prayer-tabs) .site-header{
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    max-width: 100%;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .pwa-install-banner,
  body.app-shell:has(.prayer-tabs-row-with-filter) .pwa-install-fallback,
  body.app-shell:has(.prayer-tabs) .pwa-install-banner,
  body.app-shell:has(.prayer-tabs) .pwa-install-fallback{
    position: relative;
    z-index: 1029;
    margin-top: var(
      --mobile-site-header-height,
      calc(var(--site-header-offset) + env(safe-area-inset-top, 0px))
    );
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .app-main,
  body.app-shell:has(.prayer-tabs) .app-main{
    flex: none;
    min-height: 0;
    margin-top: 0;
    padding-top: var(
      --mobile-site-header-height,
      calc(var(--site-header-offset) + env(safe-area-inset-top, 0px))
    ) !important; /* beat Bootstrap py-4 !important on <main> */
    overflow: visible;
    overscroll-behavior-y: auto;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs-row-with-filter,
  body.app-shell:has(.prayer-tabs) .app-main > .prayer-tabs{
    position: sticky;
    top: var(
      --mobile-site-header-height,
      calc(var(--site-header-offset) + env(safe-area-inset-top, 0px))
    );
    left: auto;
    right: auto;
    width: 100%;
    margin-bottom: var(--prayer-tabs-content-gap);
    z-index: var(--prayer-tabs-z, 1025);
  }

  body.app-shell:has(.prayer-tabs) .prayer-tabs + *:not(.prayer-filter-menu),
  body.app-shell:has(.prayer-tabs-row-with-filter) .prayer-tabs-row-with-filter + *{
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 991.98px){
  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-main{
    order: 1;
  }

  body.app-shell:has(.prayer-tabs-row-with-filter) .church-hub-sidebar{
    order: 2;
  }
}

@media (max-width: 575.98px){
  body.app-shell:has(.prayer-tabs){
    --prayer-tabs-bar-height: 2.375rem;
  }

  body.app-shell:has(.prayer-tabs) .prayer-tab{
    min-height: 28px;
    padding: 0.2rem 0.42rem;
    font-size: 0.73rem;
  }
}

.app-main{
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
}

.pwa-standalone .site-header{
  padding-top: env(safe-area-inset-top, 0);
}

.pwa-install-banner{
  position: sticky;
  top: 0;
  z-index: 1040;
  background: linear-gradient(180deg, #fff9f0, #fffdf8);
  border-bottom: 1px solid rgba(201, 162, 39, .28);
  box-shadow: 0 6px 18px rgba(44, 36, 25, .06);
}

.pwa-install-banner-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem .75rem;
}

.pwa-install-banner-text{
  flex: 1 1 12rem;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.4;
}

.pwa-install-banner-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.pwa-install-fallback{
  margin-top: -.5rem;
  margin-bottom: .75rem;
  padding-left: 12px;
  padding-right: 12px;
  line-height: 1.45;
}

.pwa-standalone .pwa-install-banner,
.pwa-standalone .pwa-install-fallback{
  display: none !important;
}

/* Floating prayer submit (active tab — fixed while scrolling) */
.prayer-fab{
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 1050;

  display: inline-flex;
  align-items: center;
  gap: .4rem;

  min-height: 52px;
  padding: 0 1.1rem 0 .95rem;
  border: none;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--brand-1, #4f46e5), var(--brand-2, #7c3aed));
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;

  box-shadow: 0 14px 32px rgba(26, 61, 92, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.prayer-fab:hover,
.prayer-fab:focus-visible{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(26, 61, 92, .32);
  filter: brightness(1.03);
}

.prayer-fab:active{
  transform: translateY(0);
}

.prayer-fab-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 1.25rem;
  line-height: 1;
}

/* Extra bottom room when FAB visible (mobile) */
@media (max-width: 767.98px){
  body.app-shell:has(.prayer-fab) .app-main{
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0));
  }
}

@media (min-width: 768px){
  .prayer-fab{
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: 0 1rem 0 .85rem;
    font-size: .9rem;
  }

  .prayer-fab-icon{
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.15rem;
  }
}

/* --------------------------------------------------------------------- */
/* 18) MOBILE UX + VISUAL POLISH (PWA pass)                                */
/* --------------------------------------------------------------------- */
.prayer-tab{
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px){
  body.app-shell:has(.prayer-tabs) .prayer-tile-wall.row.g-3{
    --bs-gutter-y: 0;
    margin-top: 0;
    row-gap: 1rem;
  }
}

.prayer-tabs{
  /* color/shadow only — no layout transitions */
  transition: box-shadow .15s ease, background-color .15s ease;
}

.card.prayer-tile{
  -webkit-tap-highlight-color: transparent;
}

.card.prayer-tile:active{
  transform:none;
}

.prayer-card-name{
  font-size: 1.02rem;
  line-height: 1.3;
}

.prayer-card-request{
  font-size: .98rem;
  line-height: 1.5;
}

/* Page loading shimmer (opt-in via .is-page-loading on main) */
.is-page-loading .prayer-tile-wall{
  pointer-events: none;
}

.is-page-loading .card.prayer-tile{
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.is-page-loading .card.prayer-tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%);
  animation: prayer-shimmer 1.2s ease-in-out infinite;
}

@keyframes prayer-shimmer{
  100%{ transform: translateX(100%); }
}

.prayer-empty-state{
  transition: opacity .2s ease;
}

.prayer-empty-state .btn{
  min-height: 44px;
}

.site-footer{
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0)) !important;
}

.site-footer-verse{
  opacity: .88;
  line-height: 1.45;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer-note{
  opacity: .85;
}

/* Auth + profile forms (mobile) */
.auth-page .auth-card,
.profile-page .profile-card{
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow .15s ease;
}

.auth-church-logo{
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.auth-church-reassurance{
  line-height: 1.45;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.auth-page .auth-card:hover,
.profile-page .profile-card:hover{
  box-shadow: 0 12px 28px rgba(44, 36, 25, .08);
}

.auth-page .form-control,
.profile-page .form-control{
  min-height: 44px;
  font-size: 1rem;
}

.auth-page .btn-primary,
.auth-page .btn[type="submit"],
.profile-action-btn{
  min-height: 44px;
}

.profile-card-header{
  background: linear-gradient(180deg, #fffdf8, #fff);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.profile-card-hero{
  background: linear-gradient(180deg, #fff, #fffdf8);
}

.profile-card-footer{
  background: #faf8f4;
  border-top: 1px solid rgba(0,0,0,.06);
}

.profile-card-footer .profile-action-btn{
  flex: 1 1 auto;
}

@media (max-width: 575.98px){
  .auth-page .col-md-5,
  .auth-page .col-lg-4,
  .profile-page .col-md-6,
  .profile-page .col-lg-5{
    padding-left: 0;
    padding-right: 0;
  }

  .prayer-tab{
    min-height: 46px;
    padding: .6rem .55rem;
  }

  .site-header--combined.navbar{
    --header-pad-y: .75rem;
    --brand-size: 1.12rem;
    --tagline-size: .72rem;
    --site-header-offset: 5.75rem;
  }

  .site-header--combined .church-logo-mark,
  .site-header--combined .church-logo-fallback{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 1.1rem;
  }

  .site-header--combined .site-brand-tagline{
    max-width: 12rem;
  }

  .site-header--combined.site-header--has-photo.navbar{
    --site-header-offset: 6.1rem;
  }

  body.app-shell:has(.site-header--combined){
    --site-header-offset: 5.75rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  body.app-shell:has(.site-header--combined.site-header--has-photo){
    --site-header-offset: 6.1rem;
    --prayer-tabs-sticky-top: var(--site-header-offset);
  }

  .site-header--combined.site-header--overlay-medium.site-header--has-photo .site-header-photo-overlay{
    background:
      linear-gradient(
        100deg,
        rgba(28, 32, 30, .48) 0%,
        rgba(28, 32, 30, .2) 40%,
        rgba(255, 252, 245, .1) 70%,
        transparent 100%
      );
  }

  .site-header--combined.site-header--overlay-light.site-header--has-photo .site-header-photo-overlay{
    background:
      linear-gradient(
        100deg,
        rgba(28, 32, 30, .3) 0%,
        rgba(28, 32, 30, .12) 42%,
        rgba(255, 252, 245, .06) 72%,
        transparent 100%
      );
  }

  .site-header--combined.site-header--overlay-dark.site-header--has-photo .site-header-photo-overlay{
    background:
      linear-gradient(
        100deg,
        rgba(28, 32, 30, .62) 0%,
        rgba(28, 32, 30, .36) 40%,
        rgba(255, 252, 245, .14) 70%,
        transparent 100%
      );
  }

  .prayer-card-request{
    font-size: 1rem;
    line-height: 1.55;
  }

  .prayer-wall-cta.d-md-none-hide{
    display: none;
  }

  .profile-card-footer{
    flex-direction: column;
  }

  .profile-card-footer .profile-action-btn{
    width: 100%;
  }
}

/* Past Prayers archive */
.archive-page-stack{
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

@media (min-width: 768px){
  .archive-page-stack .archive-page-intro{
    order: 1;
  }

  .archive-page-stack .archive-toolbar{
    order: 2;
  }

  .archive-page-stack .archive-list,
  .archive-page-stack .archive-load-more-wrap,
  .archive-page-stack .archive-search-empty,
  .archive-page-stack .archive-empty-filter{
    order: 3;
  }
}

.archive-page-intro{
  padding-bottom: .25rem;
}

.archive-page-title{
  font-weight: 700;
  color: #2c2419;
}

.archive-page-lead{
  font-size: .98rem;
  line-height: 1.45;
}

.archive-toolbar-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.archive-toolbar-row--controls{
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.archive-toolbar-row--filters{
  justify-content: flex-start;
}

.archive-toolbar-field{
  flex: 1 1 12rem;
  min-width: 0;
}

.archive-toolbar-field--search{
  flex: 1 1 14rem;
}

.archive-toolbar-label{
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b6560;
}

.archive-search-input{
  border-radius: 999px;
  max-width: 100%;
}

.archive-search-empty{
  font-size: .95rem;
  line-height: 1.45;
}

.archive-load-more-wrap{
  padding: 0 .5rem;
}

.archive-load-more-btn{
  min-height: 44px;
  min-width: min(100%, 16rem);
  padding: .55rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border-color: rgba(0, 0, 0, .12);
  background: rgba(255, 253, 249, .92);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(44, 36, 25, .06);
}

.archive-load-more-btn:hover,
.archive-load-more-btn:focus-visible{
  background: #fff;
  border-color: rgba(47, 143, 106, .28);
  color: var(--text);
}

.archive-filter-group{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.archive-filter-btn{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: #fff;
  color: #4a443c;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.archive-filter-btn:hover{
  background: #faf8f4;
  border-color: rgba(47, 143, 106, .25);
}

.archive-filter-btn.active{
  background: #e8f5ee;
  border-color: rgba(47, 143, 106, .35);
  color: #2a6b52;
}

.archive-filter-count{
  font-size: .75rem;
  font-weight: 700;
  opacity: .75;
}

.archive-sort-label{
  min-width: 11rem;
}

.archive-sort-select{
  border-radius: 999px;
}

.archive-item--hidden{
  display: none !important;
}

.archive-item-summary{
  line-height: 1.45;
  color: #4a443c;
}

.archive-badge-archived{
  background: #f0eeea !important;
  color: #5c5346 !important;
  border: 1px solid rgba(0,0,0,.08);
}

.archive-table-card .archive-table thead th{
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b6560;
}

.archive-mobile-card{
  border-left: 3px solid rgba(92, 74, 50, .15);
}

.archive-mobile-card[data-archive-answered="1"]{
  border-left-color: #3d9a72;
  background: linear-gradient(180deg, #fff, #fafcf9);
}

.prayer-empty-state--archive{
  border-color: rgba(92, 74, 50, .1);
  background: linear-gradient(180deg, #fffdf8, #faf8f4);
}

/* Pastoral contact — member promo + form + admin list */
.pastoral-contact-promo{
  border-radius: 12px;
  border: 1px solid rgba(92, 74, 50, .12);
  background: linear-gradient(135deg, #fffdf8 0%, #f8f4ec 100%);
  padding: 1rem 1.1rem;
}

.pastoral-contact-promo-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.pastoral-contact-promo-icon{
  font-size: 1.35rem;
  line-height: 1;
  opacity: .75;
  flex: 0 0 auto;
}

.pastoral-contact-promo-title{
  font-weight: 600;
  color: #3d3428;
}

.pastoral-contact-promo-text{
  color: #5c5346;
  flex: 1 1 12rem;
  margin: 0;
}

.pastoral-contact-promo-btn{
  flex: 0 0 auto;
  margin-left: auto;
}

.pastoral-contact-card-header{
  background: linear-gradient(180deg, #fffdf8, #fff);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.pastoral-contact-lead{
  color: #5c5346;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.pastoral-contact-admin-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pastoral-contact-admin-item{
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fffdf8;
}

.pastoral-contact-admin-item--new{
  border-color: rgba(212, 168, 75, .45);
  box-shadow: 0 0 0 1px rgba(212, 168, 75, .15);
}

.pastoral-contact-admin-item--closed{
  opacity: .85;
  background: #faf8f4;
}

.pastoral-contact-admin-message{
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .95rem;
  color: #2c2419;
}

.pastoral-contact-admin-meta dt{
  font-weight: 500;
}

@media (max-width: 575.98px){
  .pastoral-contact-promo-inner{
    flex-direction: column;
    align-items: stretch;
  }

  .pastoral-contact-promo-btn{
    margin-left: 0;
    width: 100%;
  }
}

.admin-getting-started-list{
  margin: 0;
  padding: 0;
}

.admin-getting-started-item{
  margin-bottom: .5rem;
}

.admin-getting-started-link{
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #2c2419;
  font-size: .95rem;
}

.admin-getting-started-link:hover{
  color: #1a3d5c;
}

.admin-getting-started-item.is-done .admin-getting-started-link{
  color: #5a6b5e;
}

.admin-getting-started-check{
  flex-shrink: 0;
  width: 1.25rem;
  font-weight: 700;
  color: #1a3d5c;
}

.admin-getting-started-item.is-done .admin-getting-started-check{
  color: #2d6a4f;
}

/* One-time member welcome panel (Prayer Room) */
.member-welcome-panel{
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem 2.5rem 1rem 1rem;
  border-radius: .75rem;
  background: linear-gradient(180deg, #fff9f0, #fff);
}

.member-welcome-panel .btn-close{
  position: absolute;
  top: .65rem;
  right: .65rem;
}

.member-welcome-title{
  font-weight: 700;
}

/* Admin first-steps launch card */
.admin-first-steps-card{
  border-left: 4px solid var(--accent, #c9a227);
  background: linear-gradient(180deg, #fffdf8, #fff);
}

.admin-first-steps-head{
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}

.admin-first-steps-icon{
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, .14);
  color: #9a7b1a;
  font-size: 1.15rem;
}

.admin-first-steps-list{
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.admin-first-steps-item{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
  padding: .55rem .65rem;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(44, 36, 25, .06);
}

.admin-first-steps-item--done{
  opacity: .85;
}

.admin-first-steps-item--done .admin-first-steps-label{
  text-decoration: line-through;
  color: var(--muted);
}

.admin-first-steps-check{
  flex-shrink: 0;
  width: 1.25rem;
  color: #9a7b1a;
  text-align: center;
}

.admin-first-steps-item--done .admin-first-steps-check{
  color: #2d6a4f;
}

.admin-first-steps-label{
  flex: 1 1 auto;
  font-weight: 600;
  font-size: .92rem;
}

.admin-first-steps-action{
  flex: 1 1 100%;
  padding-left: 1.9rem;
}

@media (min-width: 576px){
  .admin-first-steps-action{
    flex: 0 0 auto;
    padding-left: 0;
    margin-left: auto;
  }
}

/* Admin invitation experience */
.admin-invitation-hero{
  background: linear-gradient(135deg, #f8fbff 0%, #fff9f0 100%);
  border: 1px solid rgba(26, 61, 92, .08);
}

.admin-invitation-hero-layout{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px){
  .admin-invitation-hero-layout{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-invitation-hero-icon{
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 62, 62, .1);
  color: #b83232;
  font-size: 1.1rem;
  margin-bottom: .65rem;
}

.admin-invitation-hero-stats{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.admin-invitation-stat{
  flex: 1 1 5.5rem;
  min-width: 5.5rem;
  text-align: center;
  padding: .65rem .5rem;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(44, 36, 25, .08);
}

.admin-invitation-stat--highlight{
  border-color: rgba(201, 162, 39, .45);
  background: #fffdf5;
}

.admin-invitation-stat-value{
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.admin-invitation-stat-label{
  font-size: .72rem;
  color: var(--muted);
  margin-top: .2rem;
  line-height: 1.25;
}

.admin-invitation-join-steps{
  display: grid;
  gap: .45rem;
  padding-left: 0;
  list-style: none;
  counter-reset: invite-step;
}

.admin-invitation-join-steps li{
  counter-increment: invite-step;
  padding-left: 2rem;
  position: relative;
}

.admin-invitation-join-steps li::before{
  content: counter(invite-step);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(26, 61, 92, .1);
  color: #1a3d5c;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-invitation-url-input{
  font-size: .85rem;
  word-break: break-all;
}

.admin-invitation-message{
  font-size: .85rem;
  line-height: 1.5;
  resize: vertical;
}

.admin-invitation-qr-card .btn{
  min-width: 10rem;
}

@media (max-width: 575.98px){
  .admin-first-steps-item{
    padding: .65rem .55rem;
  }

  .admin-invitation-hero-stats{
    width: 100%;
  }

  .admin-invitation-stat{
    flex: 1 1 calc(33% - .5rem);
    min-width: 0;
  }

  .admin-invitation-tools .input-group{
    flex-direction: column;
  }

  .admin-invitation-tools .input-group .form-control{
    border-radius: .375rem .375rem 0 0 !important;
  }

  .admin-invitation-tools .input-group .btn{
    border-radius: 0 0 .375rem .375rem !important;
    width: 100%;
  }
}

/* === Prayer UI scale — component sizing (member-facing routes only) ===== */
body.app-shell.prayer-ui-scaled .prayer-tab{
  padding: calc(.55rem * var(--prayer-ui-scale)) calc(.95rem * var(--prayer-ui-scale));
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-filter-btn{
  width: calc(2.5rem * var(--prayer-ui-scale));
  height: calc(2.5rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-filter-panel{
  padding: calc(.85rem * var(--prayer-ui-scale));
  gap: calc(.75rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-sort-label,
body.app-shell.prayer-ui-scaled .prayer-filter-panel .form-control,
body.app-shell.prayer-ui-scaled .prayer-filter-panel .form-select{
  font-size: calc(.92rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .card.prayer-tile .card-body{
  padding: calc(1.1rem * var(--prayer-ui-scale)) calc(1.15rem * var(--prayer-ui-scale)) calc(1.2rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-name{
  font-size: calc(1.05rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-meta-dot,
body.app-shell.prayer-ui-scaled .prayer-card-meta-date{
  font-size: calc(.88rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-meta-time{
  font-size: calc(.78rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-label{
  font-size: calc(.68rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-request{
  font-size: calc(1.02rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-card-request--answered{
  font-size: calc(.98rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-read-more-btn,
body.app-shell.prayer-ui-scaled .prayer-text-clamp-toggle{
  font-size: calc(.84rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .encouragement-item,
body.app-shell.prayer-ui-scaled .encouragement-text{
  font-size: calc(.98rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .rx-emoji-btn,
body.app-shell.prayer-ui-scaled .reaction-pill{
  font-size: calc(1.1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .card-actions .btn,
body.app-shell.prayer-ui-scaled .prayer-submit-btn{
  font-size: calc(.84rem * var(--prayer-ui-scale));
  padding: calc(.4rem * var(--prayer-ui-scale)) calc(.75rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-widget-title{
  font-size: calc(.95rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-widget-header{
  padding: calc(.75rem * var(--prayer-ui-scale)) calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-widget-body{
  padding: calc(.5rem * var(--prayer-ui-scale)) calc(.65rem * var(--prayer-ui-scale)) calc(.75rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-widget-lead{
  font-size: calc(.88rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-stat-label{
  font-size: calc(.82rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-stat-value{
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-info-label{
  font-size: calc(.75rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-info-value{
  font-size: calc(.9rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-quick-link{
  font-size: calc(.88rem * var(--prayer-ui-scale));
  padding: calc(.45rem * var(--prayer-ui-scale)) calc(.55rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .hub-widget-btn{
  font-size: calc(.95rem * var(--prayer-ui-scale));
  padding: calc(.45rem * var(--prayer-ui-scale)) calc(.85rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .church-hub-widgets{
  gap: calc(.75rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-fab{
  min-height: calc(52px * var(--prayer-ui-scale));
  padding: 0 calc(1.1rem * var(--prayer-ui-scale)) 0 calc(.95rem * var(--prayer-ui-scale));
  font-size: calc(.95rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .prayer-fab-icon{
  width: calc(1.65rem * var(--prayer-ui-scale));
  height: calc(1.65rem * var(--prayer-ui-scale));
  font-size: calc(1.25rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .modal-title{
  font-size: calc(1.1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .modal-body{
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .modal-body .form-control,
body.app-shell.prayer-ui-scaled .modal-body .form-select,
body.app-shell.prayer-ui-scaled .modal-body textarea.form-control{
  font-size: calc(1rem * var(--prayer-ui-scale));
  min-height: calc(44px * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .modal-body .btn{
  font-size: calc(.95rem * var(--prayer-ui-scale));
  min-height: calc(44px * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .member-welcome-panel{
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .member-welcome-title{
  font-size: calc(1.05rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .auth-page .auth-card .card-header,
body.app-shell.prayer-ui-scaled .profile-page .profile-card .card-header{
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .auth-page .form-control,
body.app-shell.prayer-ui-scaled .profile-page .form-control,
body.app-shell.prayer-ui-scaled .pastoral-contact-form .form-control,
body.app-shell.prayer-ui-scaled .pastoral-contact-form .form-select{
  font-size: calc(1rem * var(--prayer-ui-scale));
  min-height: calc(44px * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .auth-page .btn,
body.app-shell.prayer-ui-scaled .profile-action-btn,
body.app-shell.prayer-ui-scaled .pastoral-contact-form .btn{
  font-size: calc(1rem * var(--prayer-ui-scale));
  min-height: calc(44px * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .pastoral-contact-card .h5,
body.app-shell.prayer-ui-scaled .pastoral-contact-lead{
  font-size: calc(1rem * var(--prayer-ui-scale));
}

body.app-shell.prayer-ui-scaled .site-footer{
  font-size: calc(.92rem * var(--prayer-ui-scale));
}

@media (max-width: 767.98px){
  body.app-shell.prayer-ui-scaled:has(.prayer-tabs) .prayer-tab{
    font-size: calc(.75rem * var(--prayer-ui-scale));
    padding: calc(.42rem * var(--prayer-ui-scale)) calc(.62rem * var(--prayer-ui-scale));
  }

  body.app-shell.prayer-ui-scaled:has(.prayer-fab) .app-main{
    padding-bottom: calc(4.25rem * var(--prayer-ui-scale) + env(safe-area-inset-bottom, 0));
  }

  body.app-shell.prayer-ui-scaled:has(.prayer-tabs-row-with-filter) .prayer-filter-btn{
    width: calc(2.25rem * var(--prayer-ui-scale));
    height: calc(2.25rem * var(--prayer-ui-scale));
  }
}

@media (min-width: 768px){
  body.app-shell.prayer-ui-scaled .prayer-fab{
    min-height: calc(48px * var(--prayer-ui-scale));
    font-size: calc(.9rem * var(--prayer-ui-scale));
  }
}