:root {
  --primary: #0a4f30;
  --secondary: #0f653e;
  --accent: #7ac200;
  --highlight: #e0e502;
  --text-dark: #153222;
  --text-muted: #567064;
  --bg-light: #f6fbf8;
  --white: #ffffff;
  --border-soft: rgba(10, 79, 48, 0.1);
  --shadow-soft: 0 15px 35px rgba(10, 79, 48, 0.08);
  --shadow-hover: 0 18px 40px rgba(10, 79, 48, 0.14);
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --transition: all 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.section-padding {
  padding: 5rem 0;
}

.bg-light-green {
  background: var(--bg-light);
}

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

.text-primary-green {
  color: var(--primary) !important;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(122, 194, 0, 0.14);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  margin: 1rem 0;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 760px;
}

.custom-navbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  padding: 0.9rem 0;
  transition: var(--transition);
}

.custom-navbar.scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 10px 26px rgba(10, 79, 48, 0.1);
}

.navbar-brand {
  color: var(--primary) !important;
}

.navbar-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .navbar-logo {
    height: 56px;
    max-width: 88vw;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo {
    height: 48px;
    max-width: 78vw;
  }
}

.navbar .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.65rem 1rem !important;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

.btn-theme,
.btn-accent,
.btn-outline-theme {
  border-radius: 999px;
  padding: 0.82rem 1.4rem;
  font-weight: 700;
  transition: var(--transition);
  border-width: 2px;
}

.btn-theme {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-color: var(--primary);
}

.btn-theme:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 79, 48, 0.18);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  color: var(--text-dark);
  border-color: var(--accent);
}

.btn-accent:hover {
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(122, 194, 0, 0.24);
}

.btn-outline-theme {
  color: var(--primary);
  border-color: rgba(10, 79, 48, 0.25);
  background: transparent;
}

.btn-outline-theme:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(10, 79, 48, 0.82), rgba(15, 101, 62, 0.78)),
    url('../img/hero-home.svg') center/cover no-repeat;
  color: var(--white);
}

.page-hero {
  background:
    linear-gradient(rgba(10, 79, 48, 0.9), rgba(15, 101, 62, 0.85)),
    url('../img/page-banner.svg') center/cover no-repeat;
  color: var(--white);
  padding-bottom: 5rem;
}

.hero-section::before,
.page-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: 80px;
  background: radial-gradient(circle, rgba(224, 229, 2, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-card,
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

.hero-stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
}

.placeholder-image,
.image-card img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.placeholder-image {
  min-height: 320px;
  background: linear-gradient(135deg, rgba(10,79,48,0.12), rgba(122,194,0,0.18));
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.placeholder-image.small {
  min-height: 240px;
}

.card-lift,
.info-card,
.branch-card,
.schedule-card,
.contact-card,
.donation-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  height: 100%;
}

.card-lift:hover,
.info-card:hover,
.branch-card:hover,
.schedule-card:hover,
.contact-card:hover,
.donation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.icon-badge {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(10, 79, 48, 0.18);
}

.scripture-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.service-time {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.table-schedule thead th {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.table-schedule tbody tr {
  vertical-align: middle;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(122, 194, 0, 0.1);
  color: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
}

.form-control,
.form-select {
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(10,79,48,0.18);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(122, 194, 0, 0.18);
}

.form-message {
  display: none;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}

.form-message.success {
  display: block;
  background: rgba(122, 194, 0, 0.14);
  color: var(--primary);
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.1);
  color: #8a1d2a;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.footer-section {
  background: linear-gradient(180deg, #072f1d, #041f13);
  color: rgba(255,255,255,0.88);
}

.footer-section a {
  color: rgba(255,255,255,0.84);
}

.footer-section a:hover {
  color: var(--highlight);
}

.footer-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
}

.social-link:hover {
  background: rgba(224,229,2,0.18);
  color: var(--white);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  color: var(--text-dark);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(122, 194, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.page-divider {
  height: 70px;
  background: linear-gradient(180deg, rgba(122,194,0,0.08), rgba(255,255,255,0));
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.mini-list i {
  color: var(--accent);
  margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
  .hero-section,
  .page-hero {
    padding-top: 7rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }

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

  .hero-section {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .placeholder-image {
    min-height: 260px;
  }
}


/* ===== Premium premium-green style inspired by reference ===== */
:root {
  --text-dark: #123524;
  --text-muted: #587565;
  --bg-light: #f4f8f4;
  --bg-soft: #e7efe7;
  --white: #ffffff;
  --border-soft: rgba(10, 79, 48, 0.12);
  --shadow-soft: 0 18px 38px rgba(10, 79, 48, 0.08);
  --shadow-hover: 0 20px 42px rgba(10, 79, 48, 0.14);
}
body { padding-top: 88px; background: #fbfefb; color: var(--text-dark); }
@media (max-width: 991.98px) { body { padding-top: 78px; } }
.topbar {
  background: linear-gradient(90deg, #0a4f30, #0f653e);
  color: rgba(255,255,255,0.94);
  font-size: 0.95rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1035;
}
.topbar-inner { min-height: 38px; display:flex; align-items:center; justify-content:space-between; gap:1.25rem; white-space:nowrap; overflow:hidden; }
.topbar a, .topbar span { color: rgba(255,255,255,0.94); }
.topbar i { margin-right: .4rem; color: #e0e502; }
.custom-navbar { top: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(10,79,48,.07); padding: .85rem 0; }
@media (max-width: 991.98px) { .custom-navbar { top: 0; } }
.brand-lockup { display:flex; align-items:center; gap: .85rem; color: inherit !important; }
.brand-mark-wrap { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #edf6ef); border:1px solid #d8e7dc; display:grid; place-items:center; flex: 0 0 46px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); overflow:hidden; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand-text { display:flex; flex-direction:column; line-height:1.02; }
.brand-title { font-size: clamp(1rem, 1.32vw, 1.48rem); font-weight: 800; letter-spacing: -.02em; color: #0a4f30; white-space: nowrap; }
.brand-tagline { font-size: .86rem; color: #5d7866; margin-top: .14rem; white-space: nowrap; }
@media (max-width: 1199.98px) { .brand-title { font-size: 1rem; } .brand-tagline { font-size: .75rem; } }
@media (max-width: 575.98px) { .brand-mark-wrap { width:40px; height:40px; border-radius:12px; } .brand-mark { width:31px; height:31px; } .brand-title { font-size: .82rem; } .brand-tagline { font-size: .64rem; } }
.navbar .nav-link { color: #355845; font-weight: 700; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #0a4f30; }
.navbar .nav-link.active::after, .navbar .nav-link:hover::after { background: linear-gradient(90deg, #7ac200, #e0e502); height: 2px; }
.btn-theme { background: linear-gradient(135deg, #0a4f30, #0f653e); border-color:#0a4f30; color: #fff; box-shadow:none; }
.btn-theme:hover { background: linear-gradient(135deg, #0f653e, #0a4f30); border-color:#0f653e; }
.btn-outline-theme { color:#0a4f30; border-color:#bcd4c3; }
.btn-outline-theme:hover { background:#0a4f30; color:#fff; border-color:#0a4f30; }
.nav-cta { border-radius: .55rem; padding: .78rem 1.1rem; }
.page-hero {
  background: radial-gradient(circle at top right, rgba(122,194,0,.14) 0, rgba(122,194,0,.14) 15%, transparent 15%), linear-gradient(180deg, #f4f8f4 0%, #edf6ee 100%);
  color: var(--text-dark);
  padding: 3.7rem 0 3.1rem;
}
.page-hero .section-badge { background: rgba(122,194,0,.12); color:#0f653e; }
.page-hero h1, .page-hero p { color: var(--text-dark) !important; }
.page-hero::before { display:none; }
.hero-section.hero-split {
  min-height: auto;
  padding: 4.2rem 0 5rem;
  color: var(--text-dark);
  background: radial-gradient(circle at left bottom, rgba(10,79,48,.08) 0, rgba(10,79,48,.08) 20%, transparent 20%), radial-gradient(circle at right top, rgba(122,194,0,.12) 0, rgba(122,194,0,.12) 16%, transparent 16%), linear-gradient(180deg, #f4f8f4 0%, #f1f8f2 100%);
}
.hero-section.hero-split::before { display:none; }
.eyebrow { display:inline-flex; align-items:center; gap:.45rem; color:#0f653e; font-weight:800; font-size:1.05rem; margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height:1.12; font-weight: 800; max-width: 11ch; margin-bottom: 1.2rem; letter-spacing: -.03em; }
.hero-copy { font-size: clamp(1.03rem, 1.5vw, 1.3rem); color: var(--text-muted); max-width: 760px; }
.hero-actions .btn { border-radius: .75rem; padding: .95rem 1.25rem; }
.feature-pills { display:flex; flex-wrap:wrap; gap: .85rem 1rem; }
.feature-pills span { display:inline-flex; align-items:center; gap: .55rem; padding: .85rem 1rem; background:#edf6ee; border:1px solid #d4e6d7; border-radius: 999px; font-weight:700; color:#244c37; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.hero-media-card { position:relative; background:#fff; border-radius: 1.75rem; box-shadow: var(--shadow-soft); overflow:hidden; border: 1px solid rgba(10,79,48,.08); }
.hero-visual { width:100%; aspect-ratio: 1.08 / 1; object-fit: cover; background:#eef5ef; }
.floating-note { position:absolute; left:1.15rem; bottom:1rem; background:rgba(255,255,255,.97); color:#244c37; border-radius:999px; padding:.85rem 1.2rem; box-shadow:0 12px 30px rgba(10,79,48,.12); font-weight:700; display:inline-flex; align-items:center; gap:.6rem; }
.section-badge { background: rgba(122,194,0,.12); color:#0f653e; }
.info-card, .card-lift, .branch-card, .contact-card, .faq-card, .donation-card, .schedule-card, .service-card { background:#fff; border:1px solid #e3efe6; box-shadow: var(--shadow-soft); }
.icon-badge { background: linear-gradient(180deg, #0f653e, #0a4f30); color:#fff; }
.scripture-banner { background: linear-gradient(135deg, #0a4f30, #0f653e); color:#fff; box-shadow: var(--shadow-soft); }
.scripture-banner p, .scripture-banner h2 { color:#fff !important; }
.placeholder-image, .map-embed iframe, .contact-form-wrap, .table-wrap, .donation-methods { border-radius: 1.5rem; box-shadow: var(--shadow-soft); }
.footer { background:#072f1d; color: rgba(255,255,255,.88); }
.footer a, .footer p, .footer li, .footer h3, .footer h4 { color: inherit; }
.back-to-top { background: linear-gradient(135deg, #7ac200, #e0e502); color:#123524; }
@media (max-width: 991.98px) {
  .hero-title { max-width: none; }
  .feature-pills span { width: 100%; justify-content: center; }
}


/* Contact page layout improvements */
.contact-page-section .card-lift,
.contact-page-section .contact-card {
  height: auto;
}

.contact-form-card {
  min-height: 100%;
}

.contact-sidebar {
  align-content: start;
}

.contact-mini-list li {
  align-items: flex-start;
}

.contact-mini-list i {
  color: var(--primary);
  margin-top: 0.2rem;
}

.map-card-wrap {
  overflow: hidden;
}

.map-card-wrap .map-frame {
  min-height: 460px;
  display: block;
}

@media (max-width: 1199.98px) {
  .contact-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .map-card-wrap .map-frame {
    min-height: 340px;
  }
}


/* Contact page - reference-inspired two panel layout */
.contact-appointment-section {
  background: linear-gradient(180deg, #f7f4ea 0%, #f9f7f0 100%);
}
.contact-layout-match {
  justify-content: center;
}
.contact-detail-panel,
.contact-request-panel {
  background: #ffffff;
  border: 1px solid rgba(10,79,48,0.10);
  border-radius: 2rem;
  box-shadow: 0 18px 40px rgba(10,79,48,0.08);
  padding: 1.5rem;
}
.contact-panel-title {
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #2a312d;
  margin-bottom: 0.9rem;
}
.contact-panel-copy,
.contact-form-note {
  color: #7a7067;
  font-size: 1.02rem;
}
.contact-detail-list li {
  align-items: flex-start;
  font-size: 1.02rem;
}
.contact-detail-list i {
  color: #0a4f30;
  margin-top: 0.2rem;
}
.contact-detail-list a {
  color: #457dff;
}
.contact-map-embed-wrap {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(10,79,48,0.08);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.contact-map-toplink {
  position: absolute;
  z-index: 2;
  margin: 1rem;
}
.contact-map-toplink a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.96);
  color: #2c62d6;
  border-radius: 0.85rem;
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(10,79,48,0.08);
}
.contact-map-embed-wrap {
  position: relative;
}
.contact-map-embed {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #f4f4f4;
  border: 1px solid rgba(10,79,48,0.10);
  color: #2d2d2d;
  font-weight: 700;
  white-space: nowrap;
}
.contact-request-form .form-label {
  font-weight: 700;
  color: #4a433d;
  margin-bottom: 0.5rem;
}
.contact-request-form .form-control,
.contact-request-form .form-select {
  min-height: 3.35rem;
  border-radius: 1rem;
  border-color: rgba(10,79,48,0.12);
  background: #fcfcfc;
}
.contact-request-form textarea.form-control {
  min-height: 8.8rem;
  resize: vertical;
}
.btn-send-request {
  min-width: 11.5rem;
  min-height: 4.25rem;
  border-radius: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.btn-call-request {
  min-width: 5.25rem;
  min-height: 4.25rem;
  border-radius: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-weight: 700;
}
.contact-form-actions .btn {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
@media (max-width: 991.98px) {
  .contact-detail-panel,
  .contact-request-panel {
    border-radius: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  .contact-detail-panel,
  .contact-request-panel {
    padding: 1.15rem;
  }
  .contact-map-embed {
    min-height: 270px;
  }
  .contact-form-actions {
    width: 100%;
  }
  .contact-form-actions .btn {
    flex: 1 1 auto;
  }
}


.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(122, 194, 0, 0.12), rgba(10, 79, 48, 0.05));
  border: 1px solid rgba(10, 79, 48, 0.08);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-split {
  min-height: auto;
  background: linear-gradient(180deg, #f4faf6, #eff6f1);
  color: var(--text-dark);
  padding-bottom: 4.5rem;
}

.hero-split::before,
.hero-split::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 194, 0, 0.12), rgba(122, 194, 0, 0));
}

.hero-split::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 0;
}

.hero-split::after {
  width: 360px;
  height: 360px;
  left: -180px;
  bottom: -120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.05;
  font-weight: 900;
  color: #0f3a24;
  max-width: 9ch;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

.hero-media-card,
.event-page-card,
.event-card-home,
.contact-detail-panel,
.contact-request-panel {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border-soft);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.hero-media-card {
  padding: 1.2rem;
  position: relative;
}

.hero-visual {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 1.35rem;
  background: #e7f0ea;
}

.floating-note {
  position: absolute;
  left: 2rem;
  bottom: 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  box-shadow: 0 12px 28px rgba(10, 79, 48, 0.12);
  font-weight: 700;
}

.events-strip-wrap {
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.events-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card-home,
.event-page-card {
  overflow: hidden;
  transition: var(--transition);
}

.event-card-home:hover,
.event-page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.event-card-media {
  position: relative;
}

.event-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(10, 79, 48, 0.10), rgba(122, 194, 0, 0.18));
}

.event-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: rgba(10, 79, 48, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.event-card-body {
  padding: 1.5rem;
}

.event-card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  font-weight: 800;
}

.event-meta {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.event-desc {
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .events-strip {
    display: flex;
    min-width: max-content;
  }
  .event-card-home {
    width: 320px;
  }
  .hero-title {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .brand-title {
    font-size: 0.85rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-tagline {
    font-size: 0.65rem;
  }
  .hero-visual {
    height: 280px;
  }
  .event-card-home {
    width: 280px;
  }
}


/* Requested refinements */
.brand-mark-wrap {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.brand-mark {
  width: 2.3rem !important;
  height: 2.3rem !important;
}

.nav-cta {
  min-width: 5.75rem;
}

.contact-request-form .form-select,
.contact-request-form .form-control {
  min-height: 3.35rem;
}

.contact-form-actions {
  justify-content: flex-end;
}

.contact-detail-list a {
  color: #2c62d6;
}

@media (max-width: 575.98px) {
  .brand-mark {
    width: 2rem !important;
    height: 2rem !important;
  }
}


/* Contact page latest refinements */
.contact-detail-list li:last-child a { color: var(--text-dark); font-weight: 500; }


/* Contact page layout fix */
.contact-appointment-section {
  background: linear-gradient(180deg, #f5f3ea 0%, #f8f7f2 100%);
}
.contact-detail-panel,
.contact-request-panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(10,79,48,0.08);
  border-radius: 1.75rem;
  box-shadow: 0 20px 45px rgba(10,79,48,0.08);
}
.contact-detail-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.contact-detail-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.contact-detail-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.contact-detail-item a,
.contact-detail-item strong {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}
.contact-detail-item a:hover {
  color: var(--secondary);
}
.contact-request-form .form-control,
.contact-request-form .form-select {
  width: 100%;
}
.contact-form-footer {
  border-top: 1px solid rgba(10,79,48,0.08);
  padding-top: 1.1rem;
}
@media (max-width: 767.98px) {
  .contact-detail-panel,
  .contact-request-panel {
    padding: 1.25rem !important;
    border-radius: 1.25rem;
  }
}


.auth-page-wrap {
  padding: 9rem 0 5rem;
  background:
    radial-gradient(circle at top left, rgba(122, 194, 0, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(224, 229, 2, 0.10), transparent 22%),
    linear-gradient(180deg, #f8fcfa 0%, #eef7f1 100%);
  min-height: 100vh;
}

.auth-container {
  width: min(100%, 1440px);
  max-width: 1440px;
}

.auth-container.auth-container-register {
  width: min(100%, 1560px);
  max-width: 1560px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 520px);
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}

.auth-layout-register {
  grid-template-columns: minmax(320px, 440px) minmax(760px, 1fr);
}

.auth-side {
  padding: 2.25rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(10,79,48,0.96), rgba(15,101,62,0.9));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(10, 79, 48, 0.14);
}

.auth-side h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 1rem 0;
  font-weight: 800;
  color: #fff;
}

.auth-side p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: .9rem;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.auth-feature-list i {
  color: var(--highlight);
  font-size: 1rem;
  margin-top: .1rem;
}

.auth-panel {
  display: flex;
}

.auth-card.clean-auth-card {
  width: 100%;
  align-self: center;
  background: #fff;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(10, 79, 48, 0.08);
}

.auth-card-register.clean-auth-card {
  padding: 2rem;
}

.auth-card-header {
  margin-bottom: 1.35rem;
}

.auth-kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(122, 194, 0, 0.12);
  padding: .45rem .8rem;
  border-radius: 999px;
}

.auth-card-header h2 {
  margin: .9rem 0 .35rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--primary);
}

.auth-card-header p {
  color: var(--text-muted);
  margin: 0;
}

.auth-alert {
  margin-bottom: 1rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form-note {
  margin: -.2rem 0 .25rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: #f6fbf8;
  border: 1px solid rgba(10, 79, 48, 0.08);
  color: var(--text-muted);
  font-size: .95rem;
}

.auth-field {
  display: grid;
  gap: .42rem;
}

.auth-field .form-label {
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
}

.auth-input {
  border-radius: 1rem;
  min-height: 56px;
  border-color: rgba(10, 79, 48, 0.14);
  box-shadow: none;
  padding: .9rem 1rem;
}

.auth-input:focus {
  border-color: rgba(10, 79, 48, 0.32);
  box-shadow: 0 0 0 .25rem rgba(10, 79, 48, 0.08);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-input {
  padding-right: 3.6rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: .85rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-password-toggle:hover {
  background: rgba(10, 79, 48, 0.06);
  color: var(--primary);
}

.auth-submit {
  padding-top: .95rem;
  padding-bottom: .95rem;
}

.auth-links {
  margin-top: 1.35rem;
  color: var(--text-muted);
}

.auth-links a {
  font-weight: 700;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}

.auth-tab-btn {
  border: 1px solid rgba(10, 79, 48, 0.12);
  background: #f6fbf8;
  color: var(--text-dark);
  border-radius: 999px;
  padding: .9rem 1rem;
  font-weight: 700;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 14px 28px rgba(10,79,48,.18);
}

.auth-mode-form {
  display: none;
}

.auth-mode-form.active {
  display: grid;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: rgba(10, 79, 48, 0.08);
  color: var(--primary);
}
@media (max-width: 991.98px) {
  .auth-page-wrap {
    padding-top: 7.5rem;
  }

  .auth-layout,
  .auth-layout-register {
    grid-template-columns: 1fr;
  }

  .auth-container.auth-container-register {
    width: min(100%, 960px);
    max-width: 960px;
  }

  .auth-panel {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .auth-card.clean-auth-card,
  .auth-card-register.clean-auth-card {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }
}


.member-dashboard-wrap {
  padding: 9rem 0 5rem;
  background:
    radial-gradient(circle at top left, rgba(122, 194, 0, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fcfa 0%, #eef7f1 100%);
  min-height: 100vh;
}

.member-dashboard-container {
  max-width: 1320px;
}

.member-dashboard-card {
  background: #fff;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(10, 79, 48, 0.08);
  padding: 2rem;
}

.member-dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.member-dashboard-kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(122, 194, 0, 0.12);
  padding: .45rem .8rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}

.member-dashboard-hero h1 {
  margin: 0 0 .45rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
}

.member-dashboard-hero p {
  margin: 0;
  color: var(--text-muted);
}

.member-dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: #f6fbf8;
  border: 1px solid rgba(10, 79, 48, 0.08);
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.member-dashboard-badge i {
  color: var(--accent);
}

.member-dashboard-alert {
  margin-bottom: 1.25rem;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-info-item {
  background: #f9fcfa;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.member-info-item-full {
  margin-bottom: 1.4rem;
}

.member-info-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.member-info-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.member-dashboard-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(10, 79, 48, 0.08);
}

@media (max-width: 767.98px) {
  .member-dashboard-wrap {
    padding: 7.5rem 0 4rem;
  }

  .member-dashboard-card {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }

  .member-dashboard-hero {
    flex-direction: column;
  }

  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .member-dashboard-actions .btn {
    width: 100%;
  }
}


.member-profile-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
}

.member-profile-panel,
.member-profile-subcard {
  background: #fff;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1.4rem;
}

.member-profile-panel {
  padding: 1.5rem;
  box-shadow: 0 14px 35px rgba(10, 79, 48, 0.06);
}

.member-profile-subcard {
  padding: 1.3rem;
  margin-top: 1rem;
  background: #f9fbfa;
}

.member-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(10, 79, 48, 0.08);
  background: #f1f5f3;
}

.member-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(10, 79, 48, 0.08);
  background: #f1f5f3;
  color: var(--primary);
}

.member-profile-center {
  text-align: center;
}

.member-profile-code {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.member-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.badge-soft-green,
.badge-soft-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-soft-green {
  background: rgba(10, 79, 48, 0.1);
  color: var(--primary);
}

.badge-soft-purple {
  background: rgba(97, 86, 214, 0.14);
  color: #4f45c7;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
}

.detail-item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1rem;
  background: #f9fbfa;
  color: var(--text-dark);
}

.detail-item .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.member-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.member-section-heading h2,
.member-section-heading h3 {
  margin: 0;
  color: var(--primary);
}

.member-section-heading p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.member-signature-wrap {
  padding: 1rem;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1rem;
  background: #fff;
}

.member-signature-wrap img {
  max-width: 320px;
  max-height: 120px;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .member-profile-shell {
    grid-template-columns: 1fr;
  }

  .member-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .member-detail-grid {
    grid-template-columns: 1fr;
  }
}

.auth-section-card {
  background: #f8fbf8;
  border: 1px solid rgba(10, 79, 48, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.auth-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.auth-card-register .form-select.auth-input,
.auth-card-register textarea.auth-input,
.auth-card-register input[type="file"].auth-input {
  min-height: 54px;
}

.auth-card-register textarea.auth-input {
  min-height: 108px;
}


.daily-verse-modal-content {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(10, 79, 48, 0.18);
}

.daily-verse-blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.daily-verse-blockquote p {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.daily-verse-subscribe-box {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  padding: 1rem;
}

.member-avatar-centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.member-edit-form .form-label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.member-edit-form .form-control,
.member-edit-form .form-select {
  min-height: 52px;
  border-radius: 0.95rem;
  border-color: rgba(10, 79, 48, 0.12);
}

.member-edit-form textarea.form-control {
  min-height: 120px;
}

.member-form-grid {
  display: grid;
  gap: 1rem;
}

.member-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-form-span-all {
  grid-column: 1 / -1;
}

.member-dashboard-actions-tight {
  justify-content: flex-end;
}

@media (max-width: 1199.98px) {
  .member-form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .member-form-split,
  .member-form-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .member-form-grid-2,
  .member-form-grid-4 {
    grid-template-columns: 1fr;
  }

  .member-dashboard-actions-tight {
    justify-content: stretch;
  }
}


.member-dashboard-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.member-dashboard-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.member-readonly-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.member-readonly-fieldset[disabled] .form-control,
.member-readonly-fieldset[disabled] .form-select,
.member-readonly-fieldset[disabled] textarea.form-control,
.member-readonly-fieldset[disabled] input[type="file"].form-control {
  background: #f5f8f6;
  color: var(--text-dark);
  opacity: 1;
  cursor: not-allowed;
}

.member-readonly-fieldset[disabled] .form-control:disabled,
.member-readonly-fieldset[disabled] .form-select:disabled,
.member-readonly-fieldset[disabled] textarea.form-control:disabled {
  border-color: rgba(10, 79, 48, 0.1);
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .member-dashboard-hero-stack {
    align-items: stretch;
  }

  .member-dashboard-top-actions {
    justify-content: stretch;
  }
}

@media (max-width: 767.98px) {
  .member-dashboard-top-actions .btn {
    width: 100%;
  }
}

/* Admin dashboard redesign */
.admin-dashboard-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-dashboard-hero {
  border-radius: 28px;
  padding: 1.6rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
  border: 1px solid rgba(10,79,48,.08);
  box-shadow: 0 12px 32px rgba(21,50,34,.08);
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: rgba(10,79,48,.08);
  color: #0a4f30;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.admin-dashboard-title {
  font-size: clamp(1.85rem, 2vw, 2.45rem);
  font-weight: 800;
  color: #173a28;
}

.admin-dashboard-subtitle,
.admin-dashboard-date {
  color: #678172;
}

.dashboard-stat-grid,
.dashboard-content-grid,
.dashboard-mini-grid {
  display: grid;
  gap: 1.25rem;
}

.dashboard-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-phase3-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
}

.dashboard-phase3-middle {
  grid-template-columns: minmax(280px, .72fr) minmax(320px, .78fr) minmax(340px, .9fr);
  align-items: start;
}

.dashboard-phase3-bottom {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .46fr);
}

.dashboard-mini-grid {
  grid-template-columns: 1fr;
}

.dashboard-stat-card {
  min-height: 122px;
  border-radius: 24px;
  color: #fff;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 18px 34px rgba(32,54,80,.16);
}

.dashboard-stat-number {
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: .35rem;
}

.dashboard-stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-stat-meta {
  font-size: .95rem;
  color: rgba(255,255,255,.88);
  margin-top: .35rem;
  font-weight: 600;
}

.dashboard-stat-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: conic-gradient(rgba(255,255,255,.92) 0 82deg, rgba(255,255,255,.22) 82deg 360deg);
}
.dashboard-stat-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.stat-blue { background: linear-gradient(135deg, #2f6fed, #2460d9); }
.stat-green { background: linear-gradient(135deg, #34d85a, #2ec74f); }
.stat-orange { background: linear-gradient(135deg, #f39a3c, #f08b2f); }
.stat-slate { background: linear-gradient(135deg, #4a5768, #3f4a59); }

.dashboard-panel {
  background: #fff;
  border: 1px solid rgba(10,79,48,.08);
  border-radius: 26px;
  padding: 1.45rem 1.55rem;
  box-shadow: 0 12px 30px rgba(21,50,34,.08);
}

.dashboard-panel-tall {
  grid-row: span 2;
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.dashboard-panel-head h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #20262d;
}

.dashboard-panel-note,
.dashboard-inline-link,
.dashboard-panel-kpi {
  color: #6d7a88;
  font-size: .95rem;
}

.dashboard-panel-kpi {
  padding: .5rem .8rem;
  border-radius: 999px;
  background: #f4f7f5;
  font-weight: 700;
}

.dashboard-inline-link { font-weight: 700; }
.dashboard-inline-link:hover { color: #0a4f30; }

.branch-chart-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid rgba(10,79,48,.06);
  border-radius: 22px;
  padding: 1rem 1.1rem .8rem;
}

.branch-chart-grid {
  position: relative;
  height: 300px;
}

.branch-chart-lines {
  position: absolute;
  inset: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.branch-chart-lines span {
  display: block;
  border-top: 1px solid #edf1f4;
}

.branch-chart-bars {
  position: absolute;
  inset: 0 0 0 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 0 .35rem;
}

.branch-chart-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: .6rem;
}

.branch-chart-bar-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.branch-chart-bar {
  display: block;
  width: 30px;
  max-width: 100%;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #67d88a 0%, #1a9e65 100%);
  box-shadow: 0 10px 20px rgba(33, 143, 91, .16);
}

.branch-chart-count {
  position: absolute;
  bottom: calc(100% + .45rem);
  font-size: .8rem;
  color: #6c7785;
  font-weight: 700;
}

.branch-chart-label {
  font-size: .84rem;
  color: #6c7785;
  font-weight: 700;
}

.branch-chart-line {
  position: absolute;
  inset: 0 0 32px 0;
  width: 100%;
  height: calc(100% - 32px);
  overflow: visible;
  pointer-events: none;
}

.branch-chart-line polyline {
  fill: none;
  stroke: #55bf62;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  color: #718090;
  font-size: .88rem;
  border-top: 1px solid #eef2f4;
}

.branch-chart-footer i {
  color: #2f6fed;
}

.branch-summary-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1rem;
  align-items: center;
  min-height: 100%;
}

.branch-summary-wrap-v2 {
  min-height: 300px;
}

.branch-summary-legend {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.branch-summary-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  font-size: .95rem;
}

.branch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.branch-name { color: #20262d; }
.branch-percent { color: #6d7a88; font-weight: 700; }

.branch-donut-card {
  display: flex;
  justify-content: center;
}

.branch-donut {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  position: relative;
}

.branch-donut-v2 {
  box-shadow: inset 0 0 0 1px rgba(10,79,48,.04);
}

.branch-donut::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: #f2f4f7;
  box-shadow: inset 0 0 0 18px #f7f8fa;
}

.branch-donut::after {
  content: "";
  position: absolute;
  inset: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, #dfe4e8 0 24%, #f8fafb 25% 100%);
}

.branch-donut-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}

.branch-donut-inner strong {
  font-size: 2rem;
  line-height: 1;
  color: #20262d;
}

.branch-donut-inner span { color: #6d7a88; }

.snapshot-list,
.dashboard-list-stack,
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.snapshot-item {
  border: 1px solid rgba(10,79,48,.06);
  border-radius: 18px;
  padding: 1rem 1rem .9rem;
  background: #fbfdfc;
}

.snapshot-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}

.snapshot-top strong {
  color: #20262d;
}

.snapshot-top span {
  color: #0a4f30;
  font-weight: 800;
}

.snapshot-track {
  height: 11px;
  border-radius: 999px;
  background: #edf2ee;
  overflow: hidden;
}

.snapshot-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f8b58, #89db75);
}

.dashboard-list-tight .dashboard-list-item,
.message-item-v2 {
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: #fbfdfc;
  border: 1px solid rgba(10,79,48,.06);
}

.dashboard-list-icon,
.dashboard-avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dashboard-list-icon {
  background: rgba(10,79,48,.1);
  color: #0a4f30;
}

.dashboard-avatar-sm {
  background: linear-gradient(135deg, #f4b482, #e58563);
  color: #fff;
  font-weight: 800;
}

.dashboard-list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-list-body strong {
  color: #20262d;
  font-size: 1rem;
}

.dashboard-list-body span,
.dashboard-list-meta {
  color: #6d7a88;
  font-size: .9rem;
}

.dashboard-list-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: right;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .78rem;
  font-weight: 700;
}

.chip-green { background: rgba(52,216,90,.14); color: #189649; }
.chip-yellow { background: rgba(243,154,60,.16); color: #c97618; }
.chip-red { background: rgba(233,82,82,.14); color: #d04d4d; }
.chip-soft { background: #eef2f7; color: #6d7a88; }

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

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: .85rem .75rem;
  border-bottom: 1px solid rgba(10,79,48,.08);
  font-size: .95rem;
  white-space: nowrap;
}

.dashboard-table th {
  color: #6d7a88;
  font-weight: 700;
}

.dashboard-table td {
  color: #20262d;
}

.dashboard-table-compact tbody tr:last-child td {
  border-bottom: 0;
}

.quick-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  font-weight: 700;
  color: #20262d;
  border: 1px solid rgba(10,79,48,.05);
}

.quick-action-card span small {
  color: #6d7a88;
  font-weight: 700;
}

.quick-action-card i:first-child {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.5);
}

.quick-action-green { background: #edf7f1; }
.quick-action-lime { background: #f3f7e8; }
.quick-action-orange { background: #fbf1e3; }
.quick-action-blue { background: #ebf3fb; }
.quick-action-soft { background: #eef3f1; }
.quick-action-gray { background: #f2f4f7; }

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(21,50,34,.08);
  color: #0a4f30;
}

.dashboard-mini-panel {
  min-height: 192px;
}

.mini-stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: #173a28;
  margin-bottom: .45rem;
}

.mini-stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #20262d;
}

.mini-stat-meta {
  margin-top: .55rem;
  color: #6d7a88;
}

@media (max-width: 1399.98px) {
  .dashboard-stat-grid,
  .dashboard-phase3-top,
  .dashboard-phase3-bottom,
  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-phase3-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel-tall {
    grid-row: auto;
  }

  .branch-summary-wrap {
    grid-template-columns: 1fr;
  }

  .branch-donut-card {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .dashboard-stat-grid,
  .dashboard-phase3-top,
  .dashboard-phase3-middle,
  .dashboard-phase3-bottom,
  .dashboard-mini-grid {
    grid-template-columns: 1fr;
  }

  .branch-chart-bars {
    gap: .6rem;
  }
}

@media (max-width: 767.98px) {
  .admin-dashboard-hero {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-stat-card,
  .dashboard-list-item,
  .quick-action-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-list-meta,
  .dashboard-list-item .dashboard-chip,
  .quick-action-card i:last-child,
  .dashboard-stat-ring {
    display: none;
  }

  .dashboard-panel {
    padding: 1.15rem;
  }

  .dashboard-panel-head h3 {
    font-size: 1.35rem;
  }

  .branch-chart-grid {
    height: 250px;
  }

  .branch-chart-bar-wrap {
    height: 190px;
  }

  .branch-chart-label {
    font-size: .75rem;
  }

  .branch-chart-footer {
    flex-direction: column;
  }
}
/* Phase 5 polished admin dashboard */
.dashboard-stat-card {
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::before,
.dashboard-stat-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-stat-card::before {
  width: 140px;
  height: 140px;
  right: -34px;
  top: -38px;
  background: rgba(255,255,255,.09);
}

.dashboard-stat-card::after {
  width: 84px;
  height: 84px;
  right: 34px;
  bottom: -28px;
  background: rgba(255,255,255,.06);
}

.dashboard-stat-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-stat-number {
  letter-spacing: -.03em;
}

.dashboard-stat-meta {
  font-size: .9rem;
}

.dashboard-stat-ring {
  width: 88px;
  height: 88px;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.08);
}

.dashboard-stat-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.branch-chart-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.branch-chart-bar {
  position: relative;
}

.branch-chart-bar::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 18%;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.branch-chart-footer {
  flex-wrap: wrap;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.snapshot-item {
  position: relative;
  overflow: hidden;
  padding: 1rem 1rem .95rem;
  min-height: 138px;
}

.snapshot-item::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -18px;
  top: -26px;
  border-radius: 24px;
  transform: rotate(22deg);
  background: rgba(255,255,255,.42);
}

.snapshot-tone-1 { background: linear-gradient(180deg, #f7fcf8 0%, #edf8f0 100%); }
.snapshot-tone-2 { background: linear-gradient(180deg, #fbfcf5 0%, #f3f7e8 100%); }
.snapshot-tone-3 { background: linear-gradient(180deg, #f6fbff 0%, #ebf3fb 100%); }
.snapshot-tone-4 { background: linear-gradient(180deg, #fcfaf6 0%, #f7f1e5 100%); }

.snapshot-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  color: #0a4f30;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(10,79,48,.06);
  box-shadow: 0 8px 20px rgba(21,50,34,.05);
  position: relative;
  z-index: 1;
}

.snapshot-percent {
  margin-top: .7rem;
  color: #6d7a88;
  font-size: .82rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.dashboard-member-cell {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 180px;
}

.dashboard-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #0a4f30, #7ac200);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10,79,48,.16);
}

.message-item-v2 .dashboard-avatar-sm {
  background: linear-gradient(135deg, #0a4f30, #2f6fed);
  box-shadow: 0 10px 20px rgba(32,54,80,.14);
}

.branch-donut-v2 {
  box-shadow: inset 0 0 0 1px rgba(10,79,48,.04), 0 14px 30px rgba(21,50,34,.08);
}

.branch-donut-inner strong {
  letter-spacing: -.03em;
}

@media (max-width: 991.98px) {
  .snapshot-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 6: premium branch visuals */
.branch-chart-card-premium {
  background:
    radial-gradient(circle at top right, rgba(47,111,237,.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: 0 18px 36px rgba(18, 43, 31, .08);
}

.branch-chart-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.branch-chart-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(47,111,237,.08);
  color: #2f6fed;
  font-weight: 800;
  font-size: .82rem;
}

.branch-chart-highlight {
  color: #6d7a88;
  font-size: .93rem;
}

.branch-chart-highlight strong {
  color: #173a28;
}

.branch-chart-grid {
  overflow: hidden;
}

.branch-chart-bar-wrap {
  width: 100%;
}

.branch-chart-bar-group {
  position: absolute;
  inset: auto 50% 0 auto;
  transform: translateX(50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: min(100%, 84px);
  height: 100%;
  z-index: 2;
}

.branch-chart-bar-ghost {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, rgba(214, 225, 231, .7), rgba(239, 243, 246, .95));
  box-shadow: none;
  opacity: .8;
}

.branch-chart-bar:not(.branch-chart-bar-ghost) {
  position: relative;
  bottom: 0;
  width: 15px;
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 14px 28px rgba(22, 138, 87, .16);
}

.branch-chart-bar.metric-total {
  background: linear-gradient(180deg, #5b8cff 0%, #2f6fed 100%);
  box-shadow: 0 14px 28px rgba(47, 111, 237, .20);
}

.branch-chart-bar.metric-baptized {
  background: linear-gradient(180deg, #7ee39c 0%, #27b36f 55%, #148a57 100%);
}

.branch-chart-bar.metric-holyspirit {
  background: linear-gradient(180deg, #ffc067 0%, #f5a133 55%, #e78812 100%);
  box-shadow: 0 14px 28px rgba(245, 161, 51, .22);
}

.branch-chart-bar.metric-active {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 55%, #475569 100%);
  box-shadow: 0 14px 28px rgba(71, 85, 105, .18);
}

.branch-chart-dot {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #55bf62;
  box-shadow: 0 8px 18px rgba(36, 95, 67, .18);
  z-index: 3;
}

.branch-chart-line {
  z-index: 1;
}

.branch-chart-area {
  fill: rgba(85, 191, 98, .11);
}

.branch-chart-line polyline {
  stroke: #55bf62;
  stroke-width: 2.25;
  filter: drop-shadow(0 6px 10px rgba(85, 191, 98, .18));
}

.branch-chart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}

.branch-chart-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(10,79,48,.08);
  background: #fff;
  color: #546372;
  font-size: .85rem;
  box-shadow: 0 8px 18px rgba(17, 36, 25, .04);
}

.branch-chart-tag strong {
  color: #173a28;
}

.branch-summary-wrap-v2 {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(47,111,237,.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: 22px;
  padding: 1rem;
  border: 1px solid rgba(10,79,48,.05);
}

.branch-summary-legend-premium {
  gap: 1rem;
}

.branch-summary-legend-item-premium {
  align-items: start;
  padding: .25rem 0;
}

.branch-legend-copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.branch-legend-copy small {
  color: #7a8794;
  font-size: .8rem;
}

.branch-legend-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.branch-legend-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.branch-donut-card {
  align-items: center;
}

.branch-donut-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(245,248,251,.95) 68%, rgba(233,238,244,.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(10,79,48,.05), 0 18px 34px rgba(38, 55, 74, .12);
}

.branch-donut-v2 {
  width: 214px;
  height: 214px;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.16), 0 18px 34px rgba(38, 55, 74, .12);
}

.branch-donut-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0) 56%, rgba(255,255,255,.4) 72%, rgba(255,255,255,0) 78%);
}

.branch-donut::before {
  inset: 42px;
  background: linear-gradient(180deg, #f2f5f8 0%, #f7f9fb 100%);
  box-shadow: inset 0 0 0 16px #ffffff, 0 8px 18px rgba(0,0,0,.04);
}

.branch-donut::after {
  inset: 83px;
  background: radial-gradient(circle, #dce2e8 0 24%, #f9fbfc 26% 100%);
  box-shadow: inset 0 0 0 1px rgba(10,79,48,.04);
}

.branch-donut-inner {
  gap: .1rem;
}

.branch-donut-inner small {
  color: #7a8794;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.branch-donut-inner strong {
  font-size: 2.35rem;
}

.branch-donut-inner span {
  font-size: .92rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .branch-chart-topline {
    align-items: flex-start;
  }

  .branch-summary-wrap-v2 {
    padding: .85rem;
  }

  .branch-donut-shell {
    width: 220px;
    height: 220px;
  }

  .branch-donut-v2 {
    width: 188px;
    height: 188px;
  }
}

/* Phase 7: premium summary cards */
.dashboard-stat-grid {
  gap: 1.35rem;
}

.dashboard-stat-card {
  min-height: 138px;
  padding: 1.45rem 1.4rem 1.35rem;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 40px rgba(28, 42, 66, .18);
  isolation: isolate;
}

.dashboard-stat-card::before {
  width: 172px;
  height: 172px;
  right: -44px;
  top: -54px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 42%, rgba(255,255,255,0) 70%);
}

.dashboard-stat-card::after {
  width: 112px;
  height: 112px;
  right: 22px;
  bottom: -38px;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 58%, rgba(255,255,255,0) 74%);
}

.dashboard-stat-card > div:first-child {
  max-width: calc(100% - 108px);
}

.dashboard-stat-number {
  font-size: 3rem;
  margin-bottom: .2rem;
  text-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.dashboard-stat-label {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.dashboard-stat-meta {
  margin-top: .48rem;
  font-size: .92rem;
  line-height: 1.25;
  color: rgba(255,255,255,.95);
}

.dashboard-stat-ring {
  --ring-accent: rgba(255,255,255,.96);
  --ring-soft: rgba(255,255,255,.22);
  width: 96px;
  height: 96px;
  align-self: flex-start;
  margin-top: -.1rem;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08) 0 26%, transparent 27% 100%),
    conic-gradient(var(--ring-accent) 0 86deg, var(--ring-soft) 86deg 360deg);
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,.07),
    0 12px 24px rgba(0,0,0,.10);
}

.dashboard-stat-ring::before {
  inset: 20px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.10);
}

.dashboard-stat-ring::after {
  inset: -9px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.dashboard-stat-ring span,
.dashboard-stat-ring i {
  display: none;
}

.dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(28, 42, 66, .22);
}

.stat-blue .dashboard-stat-ring {
  --ring-accent: #f7fbff;
  --ring-soft: rgba(214, 227, 255, .26);
}

.stat-green .dashboard-stat-ring {
  --ring-accent: #fbfff8;
  --ring-soft: rgba(222, 255, 218, .24);
}

.stat-orange .dashboard-stat-ring {
  --ring-accent: #fffaf4;
  --ring-soft: rgba(255, 232, 207, .24);
}

.stat-slate .dashboard-stat-ring {
  --ring-accent: #f8fafc;
  --ring-soft: rgba(224, 232, 243, .18);
}

.stat-blue { background: linear-gradient(135deg, #2e70ef 0%, #2f6fed 52%, #2458cd 100%); }
.stat-green { background: linear-gradient(135deg, #36d95a 0%, #35cf56 52%, #23b54c 100%); }
.stat-orange { background: linear-gradient(135deg, #f7a043 0%, #f39a3c 54%, #ea8124 100%); }
.stat-slate { background: linear-gradient(135deg, #546274 0%, #475364 52%, #384252 100%); }

@media (max-width: 767.98px) {
  .dashboard-stat-card {
    min-height: 118px;
    padding: 1.15rem 1.1rem;
  }

  .dashboard-stat-card > div:first-child {
    max-width: none;
  }

  .dashboard-stat-number {
    font-size: 2.35rem;
  }

  .dashboard-stat-label {
    font-size: 1.05rem;
  }

  .dashboard-stat-meta {
    font-size: .85rem;
  }
}


/* Phase 8: premium lower dashboard panels */
.dashboard-panel-premium {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 45, 31, .06);
  background:
    radial-gradient(circle at top right, rgba(47,111,237,.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 18px 38px rgba(18, 43, 31, .08);
}

.dashboard-panel-premium::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -56px;
  top: -56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,194,0,.10) 0%, rgba(122,194,0,0) 72%);
  pointer-events: none;
}

.dashboard-panel-head-premium {
  position: relative;
  z-index: 1;
  margin-bottom: 1.15rem;
}

.premium-event-list,
.premium-message-list,
.premium-registration-list {
  display: grid;
  gap: .9rem;
  position: relative;
  z-index: 1;
}

.premium-event-item,
.premium-message-item,
.premium-registration-item {
  display: grid;
  align-items: center;
  gap: .95rem;
  border-radius: 18px;
  padding: .95rem 1rem;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(15,45,31,.06);
  box-shadow: 0 12px 24px rgba(18,43,31,.05);
}

.premium-event-item {
  grid-template-columns: 66px minmax(0, 1fr) auto;
}

.premium-event-date {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #eff7f0 0%, #e6f7ea 100%);
  color: #0a4f30;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.premium-event-date span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6d7a88;
}

.premium-event-date strong {
  font-size: 1.4rem;
  line-height: 1;
}

.premium-event-copy,
.premium-message-copy,
.premium-registration-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .22rem;
}

.premium-event-copy strong,
.premium-message-topline strong,
.premium-registration-copy strong {
  font-size: 1rem;
  color: #173a28;
}

.premium-event-copy span,
.premium-registration-copy span,
.premium-message-copy small,
.premium-message-topline span {
  color: #6d7a88;
  font-size: .86rem;
}

.premium-event-copy small {
  color: #8a95a3;
  font-size: .82rem;
}

.premium-event-side,
.premium-registration-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}

.premium-event-link {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0a4f30;
  background: #f4f8f5;
}

.premium-message-item {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
}

.premium-message-avatar {
  width: 54px;
  height: 54px;
  font-size: .9rem;
  border-radius: 16px;
}

.premium-message-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.premium-message-subject {
  font-size: .92rem;
  font-weight: 700;
  color: #293442;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-registration-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.premium-registration-main {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.premium-registration-avatar {
  width: 46px;
  height: 46px;
  font-size: .88rem;
}

.premium-registration-date {
  font-size: .86rem;
  color: #6d7a88;
  font-weight: 700;
}

.mini-panel-premium {
  background:
    radial-gradient(circle at top right, rgba(122,194,0,.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.mini-panel-premium .mini-stat-value {
  font-size: 2.6rem;
}

.mini-panel-premium .mini-stat-meta {
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .premium-event-item,
  .premium-message-item,
  .premium-registration-item {
    grid-template-columns: 1fr;
  }

  .premium-event-side,
  .premium-registration-side {
    align-items: flex-start;
  }

  .premium-message-topline {
    flex-direction: column;
    gap: .2rem;
  }
}


/* Phase 11 admin tables and forms polish */
.admin-page-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.admin-surface {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(250,252,255,.95) 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(15,23,42,.05);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.admin-toolbar-meta {
  color: #748294;
  font-size: .95rem;
  margin: .35rem 0 0;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.admin-filter-card,
.admin-form-card,
.admin-list-card,
.admin-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15,23,42,.045);
}

.admin-filter-card,
.admin-form-card,
.admin-list-card,
.admin-section-card {
  padding: 1.2rem;
}

.admin-form-card .form-label,
.admin-filter-card .form-label,
.admin-section-card .form-label {
  font-weight: 700;
  color: #556373;
  font-size: .9rem;
  margin-bottom: .45rem;
}

.admin-form-card .form-control,
.admin-form-card .form-select,
.admin-filter-card .form-control,
.admin-filter-card .form-select,
.admin-section-card .form-control,
.admin-section-card .form-select,
.admin-section-card textarea,
.admin-form-card textarea {
  border-radius: 16px;
  border-color: rgba(15,23,42,.08);
  min-height: 48px;
  background: #fff;
  box-shadow: none;
}

.admin-form-card textarea,
.admin-section-card textarea {
  min-height: 110px;
}

.admin-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

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

.admin-inline-stat {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.admin-inline-stat-label {
  font-size: .82rem;
  color: #7a8797;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.admin-inline-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1d2d3d;
  margin-top: .3rem;
}

.admin-data-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(248, 251, 255, .8);
  --bs-table-hover-bg: rgba(242,247,252,.95);
  margin-bottom: 0;
}

.admin-data-table thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a8797;
  font-weight: 800;
  border-bottom: 1px solid rgba(15,23,42,.08);
  padding-top: .9rem;
  padding-bottom: .9rem;
  white-space: nowrap;
}

.admin-data-table tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: rgba(15,23,42,.06);
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  background: rgba(11,107,82,.08);
  color: #0b6b52;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-record-title {
  font-weight: 800;
  color: #1d2d3d;
}

.admin-record-subtitle {
  color: #7a8797;
  font-size: .88rem;
}

.admin-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0b6b52;
  background: linear-gradient(135deg, rgba(11,107,82,.12), rgba(122,194,0,.12));
  border: 1px solid rgba(11,107,82,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .72rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.admin-status-pill.success,
.admin-status-pill.published,
.admin-status-pill.active {
  background: rgba(15,122,97,.10);
  color: #0b6b52;
}

.admin-status-pill.warning,
.admin-status-pill.pending {
  background: rgba(245, 158, 11, .12);
  color: #9a6700;
}

.admin-status-pill.danger,
.admin-status-pill.rejected,
.admin-status-pill.inactive,
.admin-status-pill.draft {
  background: rgba(220,53,69,.10);
  color: #b42318;
}

.admin-preview-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  background: #f5f7fb;
}

.admin-empty-state {
  padding: 3.25rem 1rem;
  text-align: center;
  color: #7a8797;
}

.settings-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.settings-section-grid > .settings-section-card {
  grid-column: span 12;
}

.settings-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 14px 30px rgba(15,23,42,.045);
}

.settings-section-title {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1d2d3d;
}

.settings-section-text {
  color: #7a8797;
  margin: 0 0 1rem;
  font-size: .92rem;
}

@media (min-width: 992px) {
  .settings-section-grid > .settings-section-card.span-6 { grid-column: span 6; }
  .settings-section-grid > .settings-section-card.span-4 { grid-column: span 4; }
  .settings-section-grid > .settings-section-card.span-8 { grid-column: span 8; }
}

@media (max-width: 991.98px) {
  .admin-inline-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admin-toolbar {
    flex-direction: column;
  }

  .admin-toolbar-actions,
  .admin-switch-row {
    width: 100%;
  }
}


.admin-cms-shell {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,249,253,.98) 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 30px;
  padding: 1.35rem;
  box-shadow: 0 22px 45px rgba(15,23,42,.06);
}

.admin-cms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-cms-hero-card,
.admin-cms-preview-card,
.admin-cms-section,
.admin-cms-note-card,
.admin-id-side-card,
.admin-media-preview-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(15,23,42,.045);
}

.admin-cms-hero-card,
.admin-cms-preview-card,
.admin-cms-section,
.admin-cms-note-card,
.admin-id-side-card,
.admin-media-preview-card {
  padding: 1.2rem;
}

.admin-cms-title {
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  margin: .4rem 0 .6rem;
  font-weight: 800;
  color: #1d2d3d;
}

.admin-cms-desc,
.admin-cms-note-card p,
.admin-media-preview-card p {
  color: #7a8797;
  margin-bottom: 0;
}

.admin-cms-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}

.admin-cms-meta {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 20px;
  padding: .95rem 1rem;
}

.admin-cms-meta-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a8797;
  font-weight: 800;
}

.admin-cms-meta-value {
  display: block;
  color: #1d2d3d;
  font-size: 1rem;
  font-weight: 800;
  margin-top: .35rem;
}

.admin-cms-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: .9rem;
}

.admin-cms-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1d2d3d;
}

.admin-cms-section-text {
  margin: .35rem 0 0;
  color: #7a8797;
  font-size: .92rem;
}

.admin-cms-section + .admin-cms-section {
  margin-top: 1rem;
}

.admin-cms-section .form-label,
.admin-media-preview-card .form-label,
.admin-id-side-card .form-label,
.admin-cms-hero-card .form-label,
.admin-cms-preview-card .form-label {
  font-weight: 700;
  color: #556373;
  font-size: .9rem;
  margin-bottom: .45rem;
}

.admin-cms-section .form-control,
.admin-cms-section .form-select,
.admin-media-preview-card .form-control,
.admin-media-preview-card .form-select,
.admin-id-side-card .form-control,
.admin-id-side-card .form-select,
.admin-cms-hero-card .form-control,
.admin-cms-hero-card .form-select,
.admin-cms-preview-card .form-control,
.admin-cms-preview-card .form-select {
  border-radius: 16px;
  border-color: rgba(15,23,42,.08);
  min-height: 48px;
  background: #fff;
  box-shadow: none;
}

.admin-cms-section textarea,
.admin-id-side-card textarea,
.admin-cms-preview-card textarea,
.admin-cms-hero-card textarea {
  min-height: 110px;
  border-radius: 16px;
  border-color: rgba(15,23,42,.08);
}

.admin-cms-preview-thumb {
  width: 100%;
  min-height: 170px;
  max-height: 280px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.06);
  background: #f5f7fb;
}

.admin-media-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.admin-media-preview-label {
  color: #7a8797;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: .6rem;
}

.admin-mini-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .7rem;
  border-radius: 999px;
  background: rgba(11,107,82,.08);
  color: #0b6b52;
  font-size: .78rem;
  font-weight: 800;
}

.admin-form-subgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-subgrid > * { grid-column: span 12; }

.admin-form-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.admin-form-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: #f4f8fc;
  border: 1px solid rgba(15,23,42,.06);
  color: #556373;
  font-size: .83rem;
  font-weight: 700;
}

.admin-upload-preview-inline {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem;
  margin-top: .9rem;
  border-radius: 18px;
  background: #f7fafc;
  border: 1px solid rgba(15,23,42,.06);
}

.admin-upload-preview-inline img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  background: #fff;
}

.admin-upload-preview-inline.is-signature img {
  width: 200px;
  height: 72px;
  object-fit: contain;
}

.admin-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-id-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr);
  gap: 1rem;
}

.admin-id-side-stack {
  display: grid;
  gap: 1rem;
}

.admin-id-side-card ul {
  margin-bottom: 0;
}

.admin-id-side-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  background: #f5f7fb;
}

.admin-schedule-row {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

@media (min-width: 992px) {
  .admin-form-subgrid > .span-6 { grid-column: span 6; }
  .admin-form-subgrid > .span-4 { grid-column: span 4; }
  .admin-form-subgrid > .span-3 { grid-column: span 3; }
  .admin-form-subgrid > .span-8 { grid-column: span 8; }
}

@media (max-width: 1199.98px) {
  .admin-cms-hero,
  .admin-id-shell,
  .admin-form-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .admin-cms-meta-grid {
    grid-template-columns: 1fr;
  }

  .admin-cms-shell {
    padding: 1rem;
  }
}


.branch-chart-metrics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: .95rem;
}

.branch-chart-metrics-legend span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #607080;
  font-size: .83rem;
  font-weight: 700;
}

.branch-chart-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(15, 23, 42, .12);
}

.branch-chart-legend-swatch.metric-total { background: #2f6fed; }
.branch-chart-legend-swatch.metric-baptized { background: #27b36f; }
.branch-chart-legend-swatch.metric-holyspirit { background: #f5a133; }
.branch-chart-legend-swatch.metric-active { background: #64748b; }

@media (max-width: 767.98px) {
  .branch-chart-bar-group {
    width: min(100%, 68px);
    gap: 4px;
  }

  .branch-chart-bar:not(.branch-chart-bar-ghost) {
    width: 12px;
  }
}
