.analytics-tile {
  position: relative;
}
.analytics-tile__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}
.ekklesia-theme #accordion-menu a.dropdown-toggle,
.ekklesia-theme #accordion-menu a.dropdown-toggle.no-arrow {
  border-radius: var(--ekklesia-radius-sm);
  color: rgba(51, 65, 85, 0.9);
  font-weight: 600;
  padding: 12px 20px;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 56px;
}

.ekklesia-theme #accordion-menu .micon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 12px;
}

.ekklesia-theme #accordion-menu .micon .ekk-icon {
  width: 42px;
  height: 42px;
}

.ekklesia-theme #accordion-menu .mtext {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.25;
  color: rgba(30, 41, 59, 0.92);
  margin-left: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

:root {
  --ekklesia-pearl: #f9fbff;
  --ekklesia-ivory: #f1f5ff;
  --ekklesia-mist: #e3ecff;
  --ekklesia-ice: #d6f6ff;
  --ekklesia-deep: #0f172a;
  --ekklesia-indigo: #1e3a8a;
  --ekklesia-azure: #1d8ff0;
  --ekklesia-sky: #38bdf8;
  --ekklesia-mint: #2dd4bf;
  --ekklesia-slate-100: #f8fafc;
  --ekklesia-slate-200: #e2e8f0;
  --ekklesia-slate-400: #94a3b8;
  --ekklesia-slate-500: #64748b;
  --ekklesia-slate-600: #475569;
  --ekklesia-slate-700: #334155;
  --ekklesia-slate-900: #0f172a;
  --ekklesia-card-bg: rgba(255, 255, 255, 0.9);
  --ekklesia-card-border: rgba(148, 163, 184, 0.2);
  --ekklesia-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
  --ekklesia-radius-lg: 28px;
  --ekklesia-radius-md: 20px;
  --ekklesia-radius-sm: 14px;
  --ekklesia-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(14, 165, 233, 0.85) 55%, rgba(45, 212, 191, 0.75) 100%);
  --ekklesia-gradient-soft: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(45, 212, 191, 0.14));
  --sidebar-width: 320px;
  --sidebar-collapsed-width: 96px;
}

body.ekklesia-theme {
  min-height: 100vh;
  background:
    radial-gradient(140% 140% at 95% 5%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(120% 120% at 0% 0%, rgba(13, 148, 136, 0.18), transparent 65%),
    linear-gradient(180deg, var(--ekklesia-pearl) 0%, var(--ekklesia-ivory) 40%, var(--ekklesia-mist) 100%);
  position: relative;
  color: var(--ekklesia-slate-700);
}

body.ekklesia-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
    radial-gradient(65% 65% at 100% 20%, rgba(45, 212, 191, 0.12), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.92) 28%, rgba(245, 249, 255, 0.95) 100%);
  pointer-events: none;
  z-index: -2;
}

body.ekklesia-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12) 0, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.1) 0, transparent 60%),
    radial-gradient(circle at 50% 75%, rgba(34, 197, 94, 0.08) 0, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

body.ekklesia-theme .main-container {
  background: transparent;
  padding-left: calc(var(--sidebar-width) + 40px);
  padding-right: max(40px, 4vw);
  padding-top: 120px;
  padding-bottom: 48px;
  position: relative;
  transition: padding-left 0.3s ease;
}

@media (max-width: 1300px) {
  .ekklesia-theme .left-side-bar,
  .ekklesia-theme .brand-logo {
    width: 260px;
  }

  .ekklesia-theme .header {
    width: calc(100% - 260px);
    margin-left: 260px;
  }

  body.sidebar-collapsed .left-side-bar {
    transform: translateX(calc(-100% - 12px));
  }
}

@media (max-width: 1199.98px) {
  body.ekklesia-theme .main-container {
    padding-left: clamp(28px, 5vw, 44px);
  }

  .ekklesia-theme .header {
    width: 100%;
    margin-left: 0;
  }

  .ekklesia-theme .left-side-bar {
    transform: translateX(-100%);
  }

  .ekklesia-theme .left-side-bar.open {
    transform: translateX(0);
  }

  body.sidebar-collapsed .left-side-bar {
    transform: translateX(-100%);
  }
}

body.ekklesia-theme .xs-pd-20-10 {
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--ekklesia-radius-lg);
  box-shadow: var(--ekklesia-shadow);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

body.ekklesia-theme .xs-pd-20-10::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--ekklesia-radius-lg) - 1px);
  background: var(--ekklesia-gradient-soft);
  opacity: 0.4;
  pointer-events: none;
}

body.ekklesia-theme .xs-pd-20-10 > * {
  position: relative;
  z-index: 1;
}

.ekklesia-theme .header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  padding: 0 32px;
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.ekklesia-theme .header:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.08) 60%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.ekklesia-theme .header-left .menu-icon {
  display: flex !important;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ekklesia-theme .header-left .menu-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.ekklesia-theme .left-side-bar .close-sidebar {
  display: none !important;
}

.ekklesia-theme .header .user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ekklesia-sky-100), var(--ekklesia-sky-200));
  overflow: hidden;
  flex-shrink: 0;
}

.ekklesia-theme .header .user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.ekklesia-theme .header .user-icon i {
  font-size: 20px;
  color: var(--ekklesia-sky-600);
}

.ekklesia-theme .header .user-name {
  font-weight: 600;
  color: var(--ekklesia-slate-700);
}

.ekklesia-theme .header .dropdown-menu {
  border-radius: var(--ekklesia-radius-sm);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.15);
}

.ekklesia-theme .header .dropdown-item {
  color: var(--ekklesia-slate-600);
  font-weight: 500;
}

.ekklesia-theme .header .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.12);
}

.ekklesia-theme .left-side-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.12);
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 1050;
  overflow: hidden;
}

.ekklesia-theme .left-side-bar .brand-logo {
  transition: width 0.3s ease, padding 0.3s ease;
}

.ekklesia-theme .left-side-bar .brand-logo a {
  transition: justify-content 0.3s ease, padding 0.3s ease;
}

.ekklesia-theme .left-side-bar .brand-name,
.ekklesia-theme .left-side-bar .ekklesia-subtitle {
  transition: opacity 0.3s ease, display 0.3s ease;
}

.ekklesia-theme .left-side-bar .mtext {
  transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
}

.ekklesia-theme .left-side-bar #accordion-menu a.dropdown-toggle {
  transition: justify-content 0.3s ease, padding 0.3s ease;
}

.ekklesia-theme .left-side-bar .micon {
  transition: margin-right 0.3s ease;
}

body.sidebar-collapsed .left-side-bar {
  width: var(--sidebar-collapsed-width) !important;
  transform: translateX(0) !important;
  overflow: visible !important;
}

body.sidebar-collapsed .left-side-bar .brand-logo {
  width: var(--sidebar-collapsed-width) !important;
  padding: 20px 8px !important;
  height: 70px !important;
}

body.sidebar-collapsed .left-side-bar .brand-logo a {
  justify-content: center;
  padding: 0 !important;
  height: 100% !important;
}

body.sidebar-collapsed .left-side-bar .brand-name,
body.sidebar-collapsed .left-side-bar .ekklesia-subtitle {
  display: none !important;
}

body.sidebar-collapsed .left-side-bar .menu-block {
  padding: 12px 8px 48px !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
}

body.sidebar-collapsed .left-side-bar .mtext {
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

body.sidebar-collapsed .left-side-bar #accordion-menu {
  padding: 0 !important;
}

body.sidebar-collapsed .left-side-bar #accordion-menu > li {
  margin-bottom: 4px !important;
}

body.sidebar-collapsed .left-side-bar #accordion-menu a.dropdown-toggle {
  justify-content: center;
  padding: 14px 8px !important;
  min-height: 48px !important;
  height: 48px !important;
}

body.sidebar-collapsed .left-side-bar .micon {
  margin-right: 0 !important;
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
}

body.sidebar-collapsed .left-side-bar .micon .ekk-icon {
  width: 40px !important;
  height: 40px !important;
}

body.sidebar-collapsed .left-side-bar .submenu {
  display: none !important;
}

/* Flyout submenu for collapsed sidebar */
body.sidebar-collapsed .left-side-bar .submenu-flyout {
  position: fixed;
  left: var(--sidebar-collapsed-width);
  top: 0;
  min-width: 240px;
  max-width: 280px;
  background: #142127;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  z-index: 1051;
  display: none;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  overflow-x: hidden;
}

body.sidebar-collapsed .left-side-bar .submenu-flyout.show {
  display: block;
}

body.sidebar-collapsed .left-side-bar .submenu-flyout-header {
  padding: 12px 20px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

body.sidebar-collapsed .left-side-bar .submenu-flyout-item {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
}

body.sidebar-collapsed .left-side-bar .submenu-flyout-item:hover,
body.sidebar-collapsed .left-side-bar .submenu-flyout-item.active {
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  text-decoration: none;
}

body.sidebar-collapsed .left-side-bar #accordion-menu > li.dropdown:hover .submenu-flyout {
  display: block;
}

/* Tooltip for collapsed menu items (non-dropdown only) */
body.sidebar-collapsed .left-side-bar #accordion-menu > li:not(.dropdown) > a[data-tooltip] {
  position: relative;
}

body.sidebar-collapsed .left-side-bar #accordion-menu > li:not(.dropdown) > a[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 1052;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-left: 12px;
}

body.sidebar-collapsed .left-side-bar #accordion-menu > li:not(.dropdown) > a[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid #1e293b;
  margin-left: 7px;
  z-index: 1053;
  pointer-events: none;
}

body.sidebar-collapsed .header {
  margin-left: var(--sidebar-collapsed-width) !important;
  width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

body.sidebar-collapsed .main-container {
  padding-left: calc(var(--sidebar-collapsed-width) + 40px) !important;
}

.ekklesia-theme .brand-logo {
  width: var(--sidebar-width);
}

.ekklesia-theme .brand-logo {
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 36px 38px 28px;
  position: relative;
}

.ekklesia-theme .brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(45, 212, 191, 0.1));
  opacity: 0.6;
  pointer-events: none;
}

.ekklesia-theme .brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 60%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.ekklesia-theme .ekklesia-subtitle {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: rgba(71, 85, 105, 0.6);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.ekklesia-theme .menu-block {
  padding: 18px 24px 48px;
}

.ekklesia-theme #accordion-menu > li {
  margin-bottom: 6px;
}

.ekklesia-theme #accordion-menu a.dropdown-toggle,
.ekklesia-theme #accordion-menu a.dropdown-toggle.no-arrow {
  border-radius: var(--ekklesia-radius-sm);
  color: rgba(51, 65, 85, 0.9);
  font-weight: 600;
  padding: 12px 20px;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 56px;
}

.ekklesia-theme #accordion-menu .micon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 12px;
}

.ekklesia-theme #accordion-menu .micon .ekk-icon {
  width: 44px;
  height: 44px;
}

.ekklesia-theme #accordion-menu .mtext {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.25;
  color: rgba(30, 41, 59, 0.92);
  margin-left: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ekklesia-theme #accordion-menu a.dropdown-toggle:hover,
.ekklesia-theme #accordion-menu a.dropdown-toggle.no-arrow:hover {
  background: rgba(59, 130, 246, 0.14);
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
}

.ekklesia-theme #accordion-menu a.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.3));
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 20px 38px rgba(59, 130, 246, 0.25);
  color: var(--ekklesia-slate-900);
}

.ekk-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(16, 185, 129, 0.12));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08), 0 14px 26px rgba(15, 23, 42, 0.12);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #0f172a;
}

.ekk-icon svg {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ekk-icon.is-large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12), 0 20px 36px rgba(15, 23, 42, 0.16);
}

.ekk-icon.is-large svg {
  width: 58%;
  height: 58%;
  stroke-width: 1.7;
}

.ekk-icon.is-compact {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1), 0 10px 18px rgba(15, 23, 42, 0.12);
}

.ekk-icon.is-compact svg {
  width: 66%;
  height: 66%;
  stroke-width: 1.7;
}

.ekk-icon.is-soft {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12));
}

.ekk-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  color: var(--ekklesia-slate-600);
  font-weight: 500;
}

.ekk-checkbox:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.2),
    0 12px 20px rgba(15, 23, 42, 0.08);
}

.ekk-checkbox__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.ekk-checkbox__control {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid rgba(59, 130, 246, 0.28);
  background: rgba(248, 250, 252, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.ekk-checkbox__control::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid transparent;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.ekk-checkbox__label {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.35;
}

.ekk-checkbox__input:checked + .ekk-checkbox__control {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.9));
  border-color: rgba(37, 99, 235, 0.82);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  color: #fff;
}

.ekk-checkbox__input:checked + .ekk-checkbox__control::after {
  border-color: currentColor;
  transform: rotate(-45deg) scale(1);
}

.ekk-checkbox__input:focus-visible + .ekk-checkbox__control {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.ekk-checkbox__input:disabled + .ekk-checkbox__control {
  background: rgba(226, 232, 240, 0.6);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.ekk-checkbox__input:disabled ~ .ekk-checkbox__label {
  color: rgba(100, 116, 139, 0.6);
}

.ekk-icon-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.16));
  color: #7c2d12;
}

.ekk-icon-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(45, 212, 191, 0.22));
  color: #0f5132;
}

.ekk-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--ekklesia-slate-600);
  font-weight: 500;
}

.ekk-radio:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2), 0 12px 20px rgba(15, 23, 42, 0.08);
}

.ekk-radio__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}

.ekk-radio__control {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.28);
  background: rgba(248, 250, 252, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ekk-radio__control::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform 0.18s ease;
}

.ekk-radio__label {
  font-size: 0.92rem;
  line-height: 1.3;
}

.ekk-radio.is-selected {
  border-color: rgba(37, 99, 235, 0.82);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28), 0 12px 24px rgba(37, 99, 235, 0.12);
  color: var(--ekklesia-slate-700);
}

.ekk-radio__input:checked + .ekk-radio__control {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.9));
  border-color: rgba(37, 99, 235, 0.82);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.ekk-radio__input:checked + .ekk-radio__control::after {
  transform: scale(1);
}

.ekk-radio__input:focus-visible + .ekk-radio__control {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.ekk-radio.is-disabled,
.ekk-radio__input:disabled + .ekk-radio__control {
  background: rgba(226, 232, 240, 0.6);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
  cursor: not-allowed;
}

.ekk-radio.is-disabled .ekk-radio__label,
.ekk-radio__input:disabled ~ .ekk-radio__label {
  color: rgba(100, 116, 139, 0.6);
}

.ekk-icon-azure {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(59, 130, 246, 0.18));
  color: #0f1f4b;
}

.ekk-icon-amber {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(249, 115, 22, 0.2));
  color: #78350f;
}

.ekk-icon-rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(251, 113, 133, 0.2));
  color: #7f1d1d;
}

.ekk-icon-sky {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(56, 189, 248, 0.22));
  color: #0f1f4b;
}

.ekk-icon-violet {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(168, 85, 247, 0.2));
  color: #33166d;
}

.ekk-icon-slate {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.34), rgba(71, 85, 105, 0.24));
  color: #111827;
}

.analytics-summary {
  margin-bottom: 12px;
}

.analytics-tile {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.analytics-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.analytics-tile--compact {
  padding: 20px;
}

.analytics-tile--compact .tile-icon {
  flex: 0 0 56px;
}

.analytics-tile--compact .tile-body {
  flex: 1 1 auto;
  min-width: 0;
}

.analytics-tile--compact .tile-body .tile-value {
  font-size: clamp(1.1rem, 0.9vw + 0.9rem, 1.45rem);
}

.analytics-tile--compact .tile-body .tile-meta {
  font-size: 0.85rem;
}

.ekklesia-date-range {
  display: flex;
  gap: 8px;
}

.ekklesia-date-range .form-control {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 575.98px) {
  .ekklesia-date-range {
    flex-direction: column;
  }
}

.analytics-tile .tile-icon {
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-body .tile-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.85);
  margin-bottom: 4px;
}

.analytics-tile .tile-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tile-body .tile-value {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.75rem);
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.tile-body .tile-meta {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.8);
}

.status-summary-row > .col {
  display: flex;
}

.status-summary-row .analytics-tile {
  width: 100%;
}

.tile-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.1));
}

.tile-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(45, 212, 191, 0.12));
}

.tile-gold {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(253, 186, 116, 0.14));
}

.tile-slate {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.22), rgba(71, 85, 105, 0.16));
}

.badge-soft-primary,
.badge-soft-success,
.badge-soft-secondary,
.badge-soft-info {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-soft-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.18);
}

.badge-soft-success {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.22);
}

.badge-soft-secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.24);
}

.badge-soft-info {
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.2);
}

.analytics-tile .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill--draft {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.status-pill--submitted {
  background: rgba(96, 165, 250, 0.18);
  color: #1d4ed8;
}

.status-pill--approved {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.status-pill--rejected {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.status-pill--paid {
  background: rgba(14, 165, 233, 0.18);
  color: #0369a1;
}

.ekklesia-btn--ghost {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.12), rgba(226, 232, 240, 0.08));
  color: #1e3a8a;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: none;
}

.ekklesia-btn--ghost .ekklesia-btn__label {
  color: inherit;
}

.ekklesia-btn--ghost:hover,
.ekklesia-btn--ghost:focus {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(59, 130, 246, 0.14));
  border-color: rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
}

.analytics-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.12);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.analytics-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.analytics-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.analytics-panel__subtitle {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.75);
  margin: 2px 0 0;
}

.panel-indicator {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 160px;
  text-align: right;
}

.panel-indicator .indicator-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(59, 130, 246, 0.75);
  letter-spacing: 0.08em;
}

.panel-indicator .indicator-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d4ed8;
}

.analytics-chart {
  min-height: 320px;
}

.analytics-panel__insights {
  display: grid;
  gap: 12px;
}

.insight-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.insight-metric .insight-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.85);
}

.insight-metric .insight-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.insight-metric .insight-meta {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.75);
}

.snapshot-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.snapshot-header .snapshot-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.snapshot-header .snapshot-subtitle {
  display: block;
  font-size: 0.9rem;
  color: rgba(100, 116, 139, 0.75);
}

.snapshot-list {
  display: grid;
  gap: 12px;
}

.snapshot-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-item__title {
  font-weight: 700;
  color: #0f172a;
}

.snapshot-item__meta {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.8);
}

.snapshot-item__value {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.snapshot-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.85);
}

.finance-setup-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.finance-setup-hero__badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 32px rgba(59, 130, 246, 0.18);
}

.finance-setup-hero__badge .ekk-icon {
  width: 48px;
  height: 48px;
  color: #1e3a8a;
}

.finance-setup-hero__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.finance-setup-hero__content p {
  margin-bottom: 14px;
  color: rgba(71, 85, 105, 0.85);
  font-size: 0.98rem;
}

.finance-setup-hero__tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.finance-setup-hero__tips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(51, 65, 85, 0.85);
}

.finance-setup-hero__tips li::before {
  content: "●";
  font-size: 0.6rem;
  color: rgba(59, 130, 246, 0.8);
}

.ekklesia-select-wrapper {
  position: relative;
}

.ekklesia-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 14px;
  color: #0f172a;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.ekklesia-select:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ekklesia-select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9));
  mask: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ekklesia-color-input {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  padding: 0;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.ekklesia-color-input input[type="color"] {
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  background: transparent;
}

.ekklesia-color-input input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 12px;
}

.ekklesia-color-input input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 12px;
}

.finance-swatch-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.75);
}

.finance-swatch-preview__chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-block;
}

@media (max-width: 767.98px) {
  .finance-setup-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .finance-setup-hero__badge {
    width: 64px;
    height: 64px;
  }

  .finance-setup-hero__badge .ekk-icon {
    width: 40px;
    height: 40px;
  }
}

.snapshot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.95rem;
  color: rgba(51, 65, 85, 0.9);
}

.snapshot-item strong {
  font-weight: 700;
  color: #0f172a;
}

.highlight-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.highlight-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-item .highlight-label,
.highlight-item .highlight-title {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-item strong,
.highlight-item .highlight-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.budget-metrics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.budget-metric {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.budget-metric__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.85);
}

.budget-metric__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.budget-metric__meta {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.78);
}

.budget-metric--income {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.12));
}

.budget-metric--expense {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(239, 68, 68, 0.1));
}

.budget-metric--net {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(45, 212, 191, 0.12));
}

.budget-metric--variance {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(168, 85, 247, 0.12));
}

.budget-line-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.budget-line-type--income {
  background: rgba(16, 185, 129, 0.16);
  color: #0f5132;
}

.budget-line-type--expense {
  background: rgba(248, 113, 113, 0.18);
  color: #7f1d1d;
}

.budget-line-note {
  font-size: 0.85rem;
  margin-top: 4px;
}

.project-progress {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.project-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.project-health-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-health-card {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-health-card--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(14, 165, 233, 0.18));
  color: #0f172a;
}

.project-health-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(71, 85, 105, 0.82);
}

.project-health-card__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.project-health-card footer {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.8);
}

.snapshot-card__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(71, 85, 105, 0.9);
}

.snapshot-grid.snapshot-grid--3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.snapshot-grid.snapshot-grid--supporters {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.ekk-btn-group__inline-form {
  display: flex;
  align-items: stretch;
  margin: 4px;
}

.ekk-btn-group__inline-form .ekklesia-btn {
  margin: 0;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-list__item {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-list__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(100, 116, 139, 0.75);
  margin-bottom: 4px;
}

.detail-list__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.analytics-panel__body {
  padding: 20px;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 150px;
}

.score-chip--high {
  background: rgba(248, 113, 113, 0.16);
  color: #7f1d1d;
}

.score-chip--medium {
  background: rgba(251, 191, 36, 0.18);
  color: #78350f;
}

.score-chip--low {
  background: rgba(74, 222, 128, 0.16);
  color: #065f46;
}

.spiritual-heatmap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spiritual-heatmap__cell {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.12);
}

.spiritual-heatmap__cell--strong {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.65), rgba(16, 185, 129, 0.75));
}

.spiritual-heatmap__cell--medium {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.6), rgba(246, 191, 38, 0.7));
}

.spiritual-heatmap__cell--low {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.6), rgba(239, 68, 68, 0.75));
}

.care-alert-card {
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.6), rgba(250, 204, 21, 0.3));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.care-alert-card__meta {
  font-size: 0.8rem;
  color: rgba(120, 53, 15, 0.78);
}

.care-alert-card__actions {
  display: flex;
  justify-content: flex-end;
}

.ekk-btn-group {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
}

.ekk-btn-group > * {
  margin: 4px;
}

.form-check.form-switch {
  padding-left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check.form-switch .form-check-input {
  width: 2.6rem;
  height: 1.4rem;
  margin-left: -2.5rem;
  background-color: rgba(148, 163, 184, 0.4);
  border: none;
  transition: background-color 0.2s ease;
}

.form-check.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.form-check.form-switch .form-check-input:checked {
  background-color: rgba(37, 99, 235, 0.8);
}

.form-check.form-switch .form-check-label {
  font-size: 0.9rem;
  color: rgba(51, 65, 85, 0.9);
  cursor: pointer;
}

.chart-placeholder {
  min-height: 240px;
  width: 100%;
}

.chart-placeholder--md {
  min-height: 280px;
}

.onboarding-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.onboarding-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.onboarding-hero__value {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.onboarding-hero__meta {
  margin: 0;
  color: rgba(51, 65, 85, 0.75);
  font-size: 0.95rem;
}

.form-section-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  padding: 26px;
  margin-bottom: 24px;
}

.form-section-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.form-section-card__header h5 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.form-section-card__header p {
  margin: 0;
  color: rgba(100, 116, 139, 0.75);
  font-size: 0.92rem;
}

.form-section-card__body {
  display: block;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(248, 250, 252, 0.85);
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-option input:checked + span,
.chip-option span {
  transition: color 0.3s ease;
}

.chip-option input:checked ~ span,
.chip-option input:checked + span {
  color: #1d4ed8;
}

.chip-option:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.member-onboard-form .form-control,
.member-onboard-form .form-control-file,
.member-onboard-form select {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.96);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.member-onboard-form .form-control:focus,
.member-onboard-form select:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.ekklesia-multi-select.is-ready .ekklesia-multi-select__source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ekklesia-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ekklesia-multi-select {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ekklesia-multi-select__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(30, 41, 59, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ekklesia-multi-select__toggle:hover {
  border-color: rgba(59, 130, 246, 0.3);
  color: #1d4ed8;
}

.ekklesia-multi-select__toggle:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.ekklesia-multi-select__label {
  flex: 1;
  text-align: left;
}

.ekklesia-multi-select__caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(148, 163, 184, 0.8);
  border-bottom: 2px solid rgba(148, 163, 184, 0.8);
  transform: rotate(45deg);
  margin-left: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ekklesia-multi-select.is-open .ekklesia-multi-select__caret {
  transform: rotate(-135deg) translateY(2px);
  border-color: rgba(59, 130, 246, 0.8);
}

.ekklesia-multi-select.has-value .ekklesia-multi-select__toggle {
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.ekklesia-multi-select__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.ekklesia-multi-select__chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.ekklesia-multi-select__chip--more {
  background: rgba(14, 116, 144, 0.12);
  color: #0f172a;
  border-color: rgba(56, 189, 248, 0.3);
}

.ekklesia-multi-select__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
  padding: 14px;
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ekklesia-multi-select.is-open .ekklesia-multi-select__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ekklesia-multi-select__panel::-webkit-scrollbar {
  width: 6px;
}

.ekklesia-multi-select__panel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.ekklesia-multi-select__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ekklesia-multi-select__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ekklesia-multi-select__option:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(2px);
}

.ekklesia-multi-select__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ekklesia-multi-select__option-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.ekklesia-multi-select__option-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.ekklesia-multi-select__option[aria-selected="true"] .ekklesia-multi-select__option-check {
  background-image: var(--ekklesia-gradient);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.ekklesia-multi-select__option[aria-selected="true"] .ekklesia-multi-select__option-check::after {
  transform: rotate(45deg) scale(1);
}

.ekklesia-multi-select__option-label {
  color: rgba(30, 41, 59, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.ekklesia-multi-select.is-empty .ekklesia-multi-select__toggle {
  cursor: not-allowed;
  color: rgba(100, 116, 139, 0.85);
  border-style: dashed;
}

.ekklesia-multi-select.is-empty .ekklesia-multi-select__caret {
  opacity: 0;
}

.ekklesia-multi-select__option[aria-selected="true"] .ekklesia-multi-select__option-label {
  color: #1d4ed8;
}

.ekklesia-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
  background-image: linear-gradient(120deg, #2563eb 0%, #7c3aed 45%, #db2777 100%);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.32);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ekklesia-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ekklesia-btn--primary:hover,
.ekklesia-btn--primary:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 45px rgba(59, 130, 246, 0.38);
}

.ekklesia-btn--primary:hover::after,
.ekklesia-btn--primary:focus-visible::after {
  opacity: 1;
}

.ekklesia-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
}

.ekklesia-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.ekklesia-btn__label {
  position: relative;
  z-index: 1;
}

.ekklesia-btn__sparkle {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.2), transparent 40%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.ekklesia-btn--primary:hover .ekklesia-btn__sparkle,
.ekklesia-btn--primary:focus-visible .ekklesia-btn__sparkle {
  transform: scale(1.1);
  opacity: 1;
}

.ekklesia-btn--primary {
  background-size: 180% 180%;
  animation: ekklesiaButtonPulse 6s ease infinite;
}

@keyframes ekklesiaButtonPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ekklesia-btn--sm {
  min-width: auto;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-actions .ekklesia-btn {
  min-width: 240px;
}

.journey-form-card,
.journey-timeline-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.journey-form-card h6,
.journey-timeline-card h6 {
  font-weight: 700;
  color: #0f172a;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.journey-timeline::-webkit-scrollbar {
  width: 6px;
}

.journey-timeline::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.journey-timeline__item {
  position: relative;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.journey-timeline__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.journey-timeline__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.journey-timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.journey-timeline__description {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.85);
  margin-bottom: 12px;
}

.journey-timeline__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.journey-timeline__footer a {
  font-weight: 600;
}

.filter-action-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 575.98px) {
  .filter-action-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.filter-reset-btn {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(71, 85, 105, 0.85);
  background: rgba(248, 250, 252, 0.8);
  transition: border 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-reset-btn:hover,
.filter-reset-btn:focus-visible {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  outline: none;
}

.flatpickr-input {
  cursor: pointer;
}

.flatpickr-input[readonly] {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(30, 41, 59, 0.88);
  font-weight: 600;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.flatpickr-input[readonly]:focus-visible,
.flatpickr-input[readonly]:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  outline: none;
}

.flatpickr-calendar {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  display: none;
}

.flatpickr-months {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(236, 72, 153, 0.18));
}

.flatpickr-months .flatpickr-month {
  color: #0f172a;
  font-weight: 700;
}

.flatpickr-weekdays {
  background: transparent;
  color: rgba(71, 85, 105, 0.85);
}

.flatpickr-weekday {
  font-weight: 600;
  color: rgba(71, 85, 105, 0.78);
}

.flatpickr-day {
  border-radius: 12px;
  color: rgba(30, 41, 59, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flatpickr-day:hover {
  background: rgba(59, 130, 246, 0.13);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.flatpickr-day.today {
  border: none;
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  font-weight: 700;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
  background-image: linear-gradient(120deg, #2563eb 0%, #7c3aed 45%, #db2777 100%);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.3);
  border: none;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: rgba(148, 163, 184, 0.6);
  background: transparent;
  cursor: not-allowed;
}

.flatpickr-time {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.flatpickr-time input {
  color: rgba(30, 41, 59, 0.88);
  font-weight: 600;
}

.flatpickr-time .flatpickr-am-pm {
  font-weight: 600;
}

.member-roster {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-roster__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.75);
}

.member-roster__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(125, 211, 252, 0.12));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

.member-roster__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-roster__meta strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.member-roster__meta span {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.75);
}

.member-roster__cta {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.member-roster__cta:hover {
  text-decoration: underline;
}

.ekklesia-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(51, 65, 85, 0.8) !important;
  transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.ekklesia-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.32);
  transform: translateY(-1px);
}

.ekklesia-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-image: var(--ekklesia-gradient);
  border-color: transparent;
  color: var(--ekklesia-slate-100) !important;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.ekklesia-theme .dataTables_wrapper .dataTables_length label,
.ekklesia-theme .dataTables_wrapper .dataTables_filter label {
  color: rgba(51, 65, 85, 0.85);
}

.ekklesia-theme .dataTables_wrapper .dataTables_filter input,
.ekklesia-theme .dataTables_wrapper .dataTables_length select {
  color: var(--ekklesia-slate-700);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.92);
}

.ekklesia-theme .main-container .title .h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  background: linear-gradient(120deg, #60a5fa 0%, #38bdf8 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ekklesia-theme .timeline,
.ekklesia-theme .list-group,
.ekklesia-theme .nav-tabs {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--ekklesia-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--ekklesia-shadow);
}

.ekklesia-theme .nav-tabs .nav-link {
  color: rgba(71, 85, 105, 0.78);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
}

.ekklesia-theme .nav-tabs .nav-link.active {
  background-image: var(--ekklesia-gradient);
  color: var(--ekklesia-slate-100);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.ekklesia-theme .breadcrumb {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.ekklesia-theme .breadcrumb-item {
  color: rgba(71, 85, 105, 0.7);
}

.ekklesia-theme .breadcrumb-item.active {
  color: var(--ekklesia-slate-900);
  font-weight: 600;
}

.ekklesia-theme .alert {
  border-radius: var(--ekklesia-radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(51, 65, 85, 0.85);
}

.ekklesia-theme .alert-danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #b91c1c;
}

.ekklesia-theme .alert-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #166534;
}

.ekklesia-theme .section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent);
  margin: 24px 0;
}

.ekklesia-theme .table-responsive {
  border-radius: var(--ekklesia-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ekklesia-shadow);
}

.ekklesia-theme .stat-figure {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ekklesia-slate-900);
}

.ekklesia-theme .stat-label {
  font-size: 0.95rem;
  color: rgba(100, 116, 139, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ekklesia-theme .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  font-weight: 600;
}

.ekklesia-theme .stat-trend.negative {
  background: rgba(248, 113, 113, 0.16);
  color: #991b1b;
}

.ekklesia-theme .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(244, 247, 255, 0.8);
}

.ekklesia-theme .table-striped tbody tr:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.9);
}

.ekklesia-theme .skeleton-glow {
  position: relative;
  overflow: hidden;
  background: rgba(209, 213, 219, 0.25);
  border-radius: 12px;
}

.ekklesia-theme .skeleton-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(226, 232, 240, 0.35) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.ekklesia-theme .timeline::before {
  background-color: rgba(59, 130, 246, 0.2);
}

.ekklesia-theme .timeline .timeline-icon {
  background: var(--ekklesia-gradient);
  color: var(--ekklesia-slate-100);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.25);
}

.ekklesia-theme .timeline .timeline-body {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--ekklesia-shadow);
}

.ekklesia-theme .progress {
  background: rgba(226, 232, 240, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.ekklesia-theme .progress-bar {
  background-image: var(--ekklesia-gradient);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.ekklesia-theme .ql-toolbar,
.ekklesia-theme .tox-tinymce,
.ekklesia-theme .tox-editor-header,
.ekklesia-theme .tox-toolbar__primary,
.ekklesia-theme .tox-statusbar,
.ekklesia-theme .tox .tox-menubar {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.18) !important;
}

.ekklesia-theme .tox .tox-menubar > button,
.ekklesia-theme .tox .tox-toolbar__primary button {
  color: rgba(51, 65, 85, 0.8);
}

.ekklesia-theme .tox .tox-toolbar__primary button:hover,
.ekklesia-theme .tox .tox-menubar > button:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--ekklesia-slate-100);
}

.ekklesia-theme .cke_top,
.ekklesia-theme .cke_bottom,
.ekklesia-theme .cke_contents {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.ekklesia-theme .cke_toolgroup a.cke_button {
  color: rgba(226, 232, 240, 0.82) !important;
}

.ekklesia-theme .cke_toolgroup a.cke_button:hover {
  background: rgba(59, 130, 246, 0.18) !important;
  border-radius: 10px !important;
}

.ekklesia-theme .close-sidebar {
  color: rgba(71, 85, 105, 0.6);
  transition: transform 0.3s ease;
}

.ekklesia-theme .close-sidebar:hover {
  color: var(--ekklesia-slate-900);
  transform: rotate(90deg);
}

.ekklesia-theme .mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  z-index: 1045;
  display: none;
}

.ekklesia-theme .mobile-menu-overlay.show {
  display: block;
}

/* Ensure overlay never shows on desktop (width > 1200px) */
@media (min-width: 1201px) {
  .ekklesia-theme .mobile-menu-overlay {
    display: none !important;
  }
  
  .ekklesia-theme .mobile-menu-overlay.show {
    display: none !important;
  }
}

/* Ensure modals appear above sidebar and other elements */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1055 !important;
}

.modal-content {
  position: relative;
  z-index: 1061 !important;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  align-items: center;
}

.photo-grid__thumb {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.donor-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.donor-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  min-width: 220px;
  border-radius: var(--ekklesia-radius-sm);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ekklesia-slate-600);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.donor-type-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.donor-type-option__title {
  font-weight: 600;
  color: var(--ekklesia-slate-700);
}

.donor-type-option__detail {
  font-size: 0.8rem;
  color: var(--ekklesia-slate-500);
  line-height: 1.4;
}

.donor-type-option:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 143, 240, 0.48);
  box-shadow: 0 22px 55px rgba(29, 143, 240, 0.14);
}

.donor-type-option--active {
  background-image: var(--ekklesia-gradient-soft);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.2);
  color: var(--ekklesia-slate-700);
}

.donor-type-option--active .donor-type-option__title {
  color: var(--ekklesia-deep);
}

.donor-type-option--active::after {
  content: '✓';
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ekklesia-deep);
}

@media (max-width: 576px) {
  .donor-type-option {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

table.dataTable thead .sorting:before, table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_desc:after {
  color: rgba(15, 23, 42, 0.35);
  opacity: 0.6;
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: none;
}

.ekklesia-theme #accordion-menu .submenu li {
  margin-bottom: 6px;
  list-style: none;
  position: relative;
  padding-left: 0;
}

.ekklesia-theme #accordion-menu .submenu li:last-child {
  margin-bottom: 0;
}

.ekklesia-theme #accordion-menu .submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  color: rgba(30, 41, 59, 0.82);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  margin-left: 0;
}

.ekklesia-theme #accordion-menu .submenu li a::before,
.ekklesia-theme #accordion-menu .submenu li a::after {
  content: none !important;
  display: none !important;
}

.analytics-panel--compact {
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
  gap: 14px;
}

.snapshot-card--compact {
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
  gap: 14px;
}

.snapshot-card--compact .snapshot-header__icon {
  width: 44px;
  height: 44px;
}

.snapshot-card--supporter {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.snapshot-card--horizontal .snapshot-card__icon {
  width: 44px;
  height: 44px;
}

.snapshot-card--supporter .snapshot-card__icon {
  width: 48px;
  height: 48px;
}

.snapshot-card--supporter .snapshot-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-card--supporter .snapshot-card__title {
  font-size: 0.95rem;
}

.snapshot-card--supporter .snapshot-card__meta {
  font-size: 0.82rem;
}

.snapshot-card--supporter .project-progress {
  height: 6px;
}

.snapshot-card--supporter small {
  font-size: 0.8rem;
}

.snapshot-roster {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.snapshot-roster__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.65);
}

.snapshot-roster__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.snapshot-card .html-content {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(30, 41, 59, 0.88);
}

.snapshot-card .html-content p,
.snapshot-card .html-content ul,
.snapshot-card .html-content ol {
  margin-bottom: 0.85rem;
}

/* Member portal layout */
.member-portal-body {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(59, 130, 246, 0.06));
  min-height: 100vh;
  overflow-x: hidden;
}

.member-portal {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.member-portal__sidebar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  min-height: 100vh;
  z-index: 101;
}

.member-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-sidebar__brand-logo img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.member-sidebar__brand-info {
  display: flex;
  flex-direction: column;
}

.member-sidebar__brand-title {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.88);
}

.member-sidebar__brand-subtitle {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.88);
}

.member-sidebar__profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
}

.member-sidebar__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
}

.member-sidebar__profile-info {
  display: flex;
  flex-direction: column;
}

.member-sidebar__profile-name {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.member-sidebar__profile-meta {
  font-size: 0.82rem;
  color: rgba(100, 116, 139, 0.85);
}

.member-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 500;
  color: rgba(71, 85, 105, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.member-nav__link .member-nav__icon svg {
  width: 22px;
  height: 22px;
}

.member-nav__link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: rgba(37, 99, 235, 0.95);
  transform: translateX(2px);
}

.member-nav__link.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(79, 70, 229, 0.14));
  color: rgba(15, 23, 42, 0.95);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.member-nav__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(239, 68, 68, 0.86);
  font-weight: 500;
  transition: background 0.2s ease;
}

.member-nav__logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.member-portal__content {
  background: rgba(248, 250, 252, 0.75);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.member-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.member-topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: rgba(59, 130, 246, 0.12);
  color: rgba(37, 99, 235, 0.95);
}

.member-topbar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-topbar__greeting {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.94);
}

.member-topbar__meta {
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.88);
}

.member-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(30, 41, 59, 0.88);
  font-size: 0.85rem;
}

.member-main {
  padding: clamp(18px, 4vw, 28px) clamp(14px, 4vw, 28px) clamp(36px, 6vw, 48px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 1;
  box-sizing: border-box;
}

.member-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(236, 72, 153, 0.12));
  color: rgba(15, 23, 42, 0.94);
  margin-bottom: 28px;
}

.member-hero__badge .ekk-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15);
}

.member-hero__content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-hero__content p {
  margin-bottom: 12px;
  color: rgba(30, 41, 59, 0.86);
}

.member-hero__tips {
  display: grid;
  grid-gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(30, 41, 59, 0.85);
}

.member-hero__tips li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-hero__tips li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.9);
}

.member-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.member-hero__meta-item {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 12px 16px;
  min-width: 160px;
}

.member-hero__meta-item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(71, 85, 105, 0.9);
  margin-bottom: 4px;
}

.member-hero__meta-item strong {
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.95);
}

.member-hero__meta-item .member-pill {
  font-size: 0.75rem;
}

.member-hero--compact {
  grid-template-columns: auto 1fr;
  padding: clamp(22px, 5vw, 28px);
  gap: clamp(18px, 4vw, 26px);
}

.member-hero--compact .member-hero__content h1 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.member-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.member-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
  color: rgba(71, 85, 105, 0.9);
  font-weight: 500;
  transition: all 0.2s ease;
}

.member-filter-chip:hover {
  border-color: rgba(59, 130, 246, 0.38);
  color: rgba(37, 99, 235, 0.92);
  transform: translateY(-1px);
}

.member-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.18));
  border-color: rgba(59, 130, 246, 0.35);
  color: rgba(15, 23, 42, 0.92);
  box-shadow: 0 14px 32px -22px rgba(59, 130, 246, 0.65);
}

.member-filter-chip__icon svg {
  width: 18px;
  height: 18px;
}

.member-filter-chip__label {
  font-size: 0.92rem;
}

.member-filter-chip__count {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(37, 99, 235, 0.92);
}

.member-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.member-card {
  background: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.member-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.member-card__header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.member-card__header p {
  margin: 0;
  color: rgba(100, 116, 139, 0.88);
}

.member-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-card__footer {
  display: flex;
  justify-content: flex-end;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.member-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.member-timeline__icon .ekk-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-timeline__content {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.75);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-timeline__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.82);
}

.member-timeline__title {
  font-weight: 600;
  margin: 0;
  color: rgba(15, 23, 42, 0.9);
}

.member-timeline__description {
  margin: 0;
  color: rgba(71, 85, 105, 0.92);
  line-height: 1.55;
}

.member-timeline__link {
  font-size: 0.85rem;
  color: rgba(37, 99, 235, 0.92);
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-pill--primary {
  background: rgba(59, 130, 246, 0.16);
  color: rgba(30, 64, 175, 0.92);
}

.member-pill--success {
  background: rgba(16, 185, 129, 0.2);
  color: rgba(6, 95, 70, 0.95);
}

.member-pill--warning {
  background: rgba(251, 191, 36, 0.25);
  color: rgba(120, 53, 15, 0.95);
}

.member-empty-state {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(71, 85, 105, 0.88);
}

.member-empty-state__icon .ekk-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  color: rgba(37, 99, 235, 0.94);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.member-empty-state h3 {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.92);
}

.member-empty-state p {
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-list__item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-list__headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-list__description {
  margin: 0;
  color: rgba(71, 85, 105, 0.9);
}

.member-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.86);
}

.member-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-table__header,
.member-table__row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.member-table__header span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(100, 116, 139, 0.9);
}

.member-table__row {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.95);
}

.member-table__row strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(15, 23, 42, 0.92);
}

.member-table__notes {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.88);
}

.member-table__amount {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.member-table__date {
  font-size: 0.9rem;
  color: rgba(100, 116, 139, 0.88);
}

.member-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.member-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.member-form__actions {
  display: flex;
  justify-content: flex-end;
}

.member-credentials__security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.member-credentials__footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-credentials__note {
  color: rgba(71, 85, 105, 0.9);
  font-size: 0.9rem;
}

.member-visibility-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.member-visibility-option {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(248, 250, 252, 0.8);
}

.member-visibility-option input[type="radio"] {
  margin-top: 6px;
}

.member-visibility-option strong {
  display: block;
  font-size: 0.95rem;
}

.member-visibility-option p {
  margin: 4px 0 0;
  color: rgba(100, 116, 139, 0.9);
  font-size: 0.9rem;
}

.member-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.member-details__item {
  background: rgba(248, 250, 252, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
}

.member-details__item dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(100, 116, 139, 0.88);
  margin-bottom: 6px;
}

.member-details__item dd {
  margin: 0;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
}

.member-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.member-pagination__link {
  font-weight: 500;
  color: rgba(37, 99, 235, 0.9);
}

.member-pagination__link.is-disabled {
  color: rgba(148, 163, 184, 0.8);
  pointer-events: none;
}

.member-pagination__status {
  color: rgba(100, 116, 139, 0.88);
  font-size: 0.9rem;
}

.member-portal__backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .member-portal {
    grid-template-columns: 1fr;
  }

  .member-portal__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-width: 320px;
    width: 85%;
  }

  .member-portal__sidebar.is-open {
    transform: translateX(0);
  }

  .member-topbar__toggle {
    display: inline-flex;
  }

  .member-portal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 100;
  }

  .member-portal__backdrop.is-visible {
    display: block;
  }

  .member-topbar {
    padding: 18px 22px;
  }

  .member-main {
    padding: 22px 20px 48px;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .member-hero {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
  }

  .member-hero__tips li {
    justify-content: center;
  }

  .member-filter-bar {
    justify-content: center;
  }

  .member-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-card {
    padding: 20px;
  }

  .member-main {
    padding: 20px 16px 42px;
    margin: 0;
  }

  .member-table__header,
  .member-table__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .member-portal__sidebar {
    width: 100%;
    max-width: 320px;
  }
}

.snapshot-card .html-content ul,
.snapshot-card .html-content ol {
  padding-left: 1.25rem;
}

.snapshot-card .html-content:last-child p:last-child {
  margin-bottom: 0;
}

.form-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

