:root {
  --primary: #971c58;
  --primary-dark: #5e0c38;
  --primary-soft: #fbeef4;
  --logo-ring: #b54578;
  --flame-orange: #ff6a2b;
  --flame-gold: #f7b733;
  --flame-cream: #fff2b7;
  --mountain: #17110f;
  --ember: #ff6a2b;
  --ink: #1a1622;
  --muted: #6a6270;
  --line: #ebe3df;
  --surface: #ffffff;
  --surface-alt: #f5f0ee;
  --gold: #f7b733;
  --green: #2e9e6b;
  --shadow: 0 24px 60px rgba(26, 22, 34, 0.16);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 212, 0, 0.18), transparent 23rem),
    radial-gradient(circle at top left, rgba(194, 87, 156, 0.16), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, #fff 32%, #fbf0f7 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.theme-dark {
  --ink: #f7f2f5;
  --muted: #c9bdc5;
  --line: rgba(255, 255, 255, 0.14);
  --surface: #211821;
  --surface-alt: #2d202b;
  background:
    radial-gradient(circle at top left, rgba(151, 28, 88, 0.28), transparent 32rem),
    linear-gradient(180deg, #17141a 0%, #211821 100%);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .glass,
body.theme-dark .admin-panel,
body.theme-dark .admin-card,
body.theme-dark .giving-card,
body.theme-dark .fund-card,
body.theme-dark .hub-card,
body.theme-dark .insight-panel {
  background: #211821;
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

.glass {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(30, 30, 36, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  border-radius: 999px;
  color: #46404a;
  font-size: 0.93rem;
  padding: 10px 13px;
}

.main-nav a:hover,
.main-nav .pill-link {
  background: var(--ink);
  color: white;
}

.main-nav .building-donate-link {
  background: linear-gradient(135deg, var(--flame-orange), var(--primary));
  color: white;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.22);
}

.main-nav .join-link {
  background: linear-gradient(135deg, var(--flame-gold), var(--flame-cream));
  color: var(--mountain);
  box-shadow: 0 12px 28px rgba(247, 183, 51, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 760px;
  margin-top: -76px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 17, 20, 0.78), rgba(18, 17, 20, 0.34), rgba(18, 17, 20, 0.08)),
    linear-gradient(180deg, rgba(18, 17, 20, 0.12), rgba(18, 17, 20, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 180px 0 84px;
  color: white;
}

.eyebrow,
.section-kicker,
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd9ec;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
}

.hero-actions,
.admin-actions,
.payment-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: default;
  opacity: 0.74;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #bd3b7d);
  color: white;
  box-shadow: 0 16px 34px rgba(151, 28, 88, 0.3);
}

.button.secondary {
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(30, 30, 36, 0.12);
}

.button.flame-secondary {
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.96), rgba(255, 106, 0, 0.92));
  color: var(--mountain);
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.24);
}

.button.legacy-cta {
  background:
    linear-gradient(135deg, var(--flame-gold), var(--flame-cream) 46%, var(--logo-ring));
  color: var(--mountain);
  box-shadow:
    0 16px 34px rgba(255, 106, 0, 0.2),
    inset 0 0 0 1px rgba(23, 17, 15, 0.1);
}

.button.full {
  width: 100%;
}

.glow {
  animation: glowPulse 2.7s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 14px 36px rgba(151, 28, 88, 0.28);
  }

  50% {
    box-shadow: 0 18px 54px rgba(151, 28, 88, 0.55);
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats span {
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  font-size: 1.35rem;
}

.inline-link {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-countdown {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 212, 0, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.28), transparent 36%),
    rgba(23, 17, 15, 0.54);
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.18);
  backdrop-filter: blur(16px);
}

.hero-countdown span,
.hero-countdown small {
  color: rgba(255, 242, 183, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-countdown strong {
  grid-row: span 2;
  color: var(--flame-gold);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 0.88;
  text-shadow: 0 0 28px rgba(255, 212, 0, 0.42);
}

.section-pad {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.app-shell,
.split-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: center;
}

.phone-frame {
  position: relative;
  max-width: 380px;
  padding: 14px;
  border: 10px solid #17141a;
  border-radius: 42px;
  background: #17141a;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
  color: white;
  font-size: 0.82rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffedf6;
  font-size: 0.76rem;
  font-weight: 800;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b8d;
  box-shadow: 0 0 0 6px rgba(255, 75, 141, 0.18);
  content: "";
}

.phone-screen {
  display: grid;
  gap: 14px;
  min-height: 540px;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(151, 28, 88, 0.08), transparent 40%),
    white;
}

.mini-card,
.fund-card,
.hub-card,
.prayer-card,
.testimony-card,
.genz-card,
.admin-card,
.admin-panel,
.giving-card,
.receipt-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(30, 30, 36, 0.08);
}

.mini-card {
  padding: 18px;
}

.mini-card.blessed {
  background: linear-gradient(135deg, #2a1826, var(--primary));
  color: white;
}

.mini-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-grid button {
  min-height: 70px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 800;
}

.mini-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}

.progress-ring {
  --pct: 1.7867;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 58%, transparent 60%),
    conic-gradient(var(--primary) calc(var(--pct) * 1%), rgba(151, 28, 88, 0.12) 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.progress-ring.small {
  width: 76px;
}

.progress-ring span {
  font-weight: 900;
}

.feature-list,
.schedule-grid,
.community-grid,
.command-grid,
.receipt-grid,
.cms-grid,
.admin-grid {
  display: grid;
  gap: 18px;
}

.feature-list {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.feature-list article {
  padding-top: 18px;
  border-top: 2px solid var(--primary);
}

.feature-list span {
  color: var(--primary);
  font-weight: 900;
}

.member-hub-section {
  width: min(1280px, calc(100% - 32px));
  padding-top: 48px;
}

.member-hub-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 0.86fr;
  gap: 18px;
  align-items: stretch;
}

.hub-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.hub-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 212, 0, 0.18), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(194, 87, 156, 0.14), transparent 34%);
  content: "";
  pointer-events: none;
}

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

.daily-fire-card {
  grid-row: span 2;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 212, 0, 0.28), transparent 28%),
    linear-gradient(145deg, #241622, var(--primary-dark));
  color: white;
}

.daily-fire-card .card-label,
.daily-fire-card p,
.daily-fire-card .points-strip span {
  color: rgba(255, 242, 183, 0.82);
}

.hub-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.streak-orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 242, 183, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 183, 0.98) 0 44%, rgba(255, 106, 0, 0.28) 45% 59%, transparent 60%),
    conic-gradient(var(--flame-gold), var(--flame-orange), var(--logo-ring), var(--flame-gold));
  color: var(--mountain);
  text-align: center;
  box-shadow:
    0 18px 46px rgba(255, 106, 0, 0.28),
    inset 0 0 28px rgba(255, 255, 255, 0.46);
}

.streak-orb strong {
  margin-top: 14px;
  font-size: 2.35rem;
  line-height: 1;
}

.streak-orb span {
  margin-top: -20px;
  color: var(--mountain);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.points-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.points-strip span {
  padding: 14px;
  border: 1px solid rgba(255, 242, 183, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.points-strip strong {
  display: block;
  color: white;
  font-size: 1.35rem;
}

.hub-confetti-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reading-days,
.mini-action-grid,
.app-install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.reading-days {
  grid-template-columns: repeat(4, 1fr);
}

.reading-days button,
.mini-action-grid button,
.app-install-grid button,
.notification-chips button {
  border: 1px solid rgba(185, 79, 147, 0.22);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.reading-days button:hover,
.reading-days button.selected,
.mini-action-grid button:hover,
.app-install-grid button:hover,
.notification-chips button:hover,
.notification-chips button.selected {
  border-color: var(--gold);
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(194, 87, 156, 0.1)),
    white;
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.14);
  transform: translateY(-2px);
}

.reading-days button.selected::after {
  content: " done";
  color: var(--primary);
  font-size: 0.74rem;
}

.reading-progress {
  margin-top: 12px;
}

.progress-caption {
  display: block;
  margin-top: 10px;
  color: var(--primary-dark);
}

.prayer-chain-card {
  background:
    linear-gradient(145deg, rgba(255, 242, 183, 0.82), rgba(255, 255, 255, 0.94)),
    white;
}

.prayer-meter {
  display: grid;
  gap: 2px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 212, 0, 0.28), transparent 34%),
    var(--surface-alt);
}

.prayer-meter strong {
  color: var(--primary-dark);
  font-size: 3rem;
  line-height: 1;
}

.watch-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.mobile-ready-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(194, 87, 156, 0.12), white);
}

.notification-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.notification-chips button.selected {
  background: var(--primary);
  color: white;
}

.badge-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.badge-ladder span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 9px 11px;
  font-size: 0.86rem;
  font-weight: 900;
}

.badge-ladder span.earned {
  border-color: rgba(255, 106, 0, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.28), rgba(194, 87, 156, 0.14)),
    white;
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.12);
}

.badge-card label {
  display: block;
  margin: 14px 0 8px;
  color: #4a434d;
  font-size: 0.86rem;
  font-weight: 800;
}

.member-registration-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(194, 87, 156, 0.12), white);
}

.member-register-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.registration-status {
  margin: 12px 0 0;
  border-radius: 14px;
  background: var(--surface-alt);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.testimony-preview {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 520px;
  margin-bottom: 0;
}

.building-section {
  width: min(1280px, calc(100% - 32px));
}

.sanctuary-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.sanctuary-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  gap: 22px;
  overflow: hidden;
  min-height: 720px;
  padding: 28px;
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 86%, rgba(255, 106, 0, 0.36), transparent 32%),
    radial-gradient(circle at 30% 22%, rgba(194, 87, 156, 0.32), transparent 28%),
    linear-gradient(180deg, #1e1320 0%, #160f16 58%, #080605 100%);
  box-shadow: 0 30px 80px rgba(23, 17, 15, 0.34);
  color: white;
}

.sanctuary-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 212, 0, 0.24) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  background-size: 74px 74px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
  content: "";
  pointer-events: none;
}

.sanctuary-copy,
.sanctuary-metrics,
.sanctuary-visual {
  position: relative;
  z-index: 1;
}

.sanctuary-copy {
  max-width: 720px;
}

.sanctuary-copy .card-label {
  color: var(--flame-cream);
}

.sanctuary-copy h3 {
  margin: 8px 0 10px;
  color: white;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.95;
}

.sanctuary-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
}

.sanctuary-visual {
  display: grid;
  place-items: center;
  min-height: 390px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 212, 0, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.sanctuary-visual.is-igniting {
  box-shadow:
    inset 0 -30px 80px rgba(255, 106, 0, 0.22),
    0 0 50px rgba(255, 212, 0, 0.24);
  transform: translateY(-2px);
}

.sanctuary-visual svg {
  width: min(100%, 860px);
  height: auto;
  overflow: visible;
}

.ember-sky {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 70%, rgba(255, 106, 0, 0.16), transparent 20%),
    radial-gradient(circle at 72% 52%, rgba(194, 87, 156, 0.18), transparent 24%);
}

.masonry-fill {
  filter: drop-shadow(0 0 18px rgba(255, 212, 0, 0.2));
}

.sanctuary-brick {
  fill: url(#brickFill);
  stroke: rgba(23, 17, 15, 0.38);
  stroke-width: 1.4;
  opacity: 0;
  transform: translateY(-18px) scale(0.86);
  transform-box: fill-box;
  transform-origin: center;
  animation: brickLay 720ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.sanctuary-brick:nth-child(3n) {
  fill: #ffb321;
}

.sanctuary-brick:nth-child(4n) {
  fill: #c2579c;
}

.sanctuary-brick:nth-child(5n) {
  fill: #fff2b7;
}

.sanctuary-brick.foundation-brick {
  fill: #ffd400;
  filter: drop-shadow(0 0 9px rgba(255, 212, 0, 0.58));
}

@keyframes brickLay {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.76);
  }

  62% {
    opacity: 1;
    transform: translateY(3px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sanctuary-outline {
  fill: none;
  stroke: rgba(255, 242, 183, 0.86);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 13px rgba(255, 212, 0, 0.18));
}

.development-lines {
  fill: none;
  stroke: rgba(255, 212, 0, 0.58);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 16;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.24));
  animation: developmentMarch 2.3s linear infinite;
}

@keyframes developmentMarch {
  to {
    stroke-dashoffset: -84;
  }
}

.foundation-glow path:first-child {
  fill: rgba(255, 106, 0, 0.28);
  filter: drop-shadow(0 0 18px rgba(255, 212, 0, 0.62));
}

.foundation-glow .ground-line {
  fill: none;
  stroke: var(--flame-gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 18 16;
  animation: emberMarch 2.8s linear infinite;
}

@keyframes emberMarch {
  to {
    stroke-dashoffset: -68;
  }
}

.sanctuary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sanctuary-metrics span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.sanctuary-metrics small {
  color: rgba(255, 242, 183, 0.78);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sanctuary-metrics strong {
  color: white;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.sanctuary-side {
  display: grid;
  gap: 18px;
}

.ember-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(194, 87, 156, 0.12), white);
}

.demo-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
}

.demo-gift-grid button {
  border: 1px solid rgba(185, 79, 147, 0.24);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(194, 87, 156, 0.12)),
    white;
  color: var(--mountain);
  padding: 12px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.demo-gift-grid button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(194, 87, 156, 0.18);
}

.confetti-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 15px;
  border-radius: 3px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: sanctuaryConfetti 1100ms ease-out forwards;
}

@keyframes sanctuaryConfetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
}

.command-grid {
  grid-template-columns: 1.25fr 0.8fr 0.95fr;
}

.fund-card {
  padding: 24px;
}

.fund-card.flagship {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(151, 28, 88, 0.08), rgba(232, 161, 61, 0.12)),
    white;
}

.money-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 10px;
}

.money-line strong,
.admin-card strong,
.giving-card [data-giving-total] {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.progress-track {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 28, 88, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.campaign-tools {
  width: min(1280px, calc(100% - 32px));
}

.legacy-wall-section {
  width: min(1280px, calc(100% - 32px));
}

.legacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.legacy-hero h2 {
  max-width: 850px;
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.legacy-countdown {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(255, 212, 0, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.28), transparent 44%),
    linear-gradient(135deg, var(--mountain), var(--primary-dark));
  color: white;
  box-shadow: 0 20px 44px rgba(23, 17, 15, 0.18);
}

.legacy-countdown span,
.legacy-countdown small {
  color: rgba(255, 242, 183, 0.78);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-countdown strong {
  font-size: 2rem;
  line-height: 1;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.legacy-plaque,
.legacy-calculator,
.legacy-perks {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(30, 30, 36, 0.08);
}

.plaque-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  margin: 18px 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 212, 0, 0.2), transparent 28%),
    linear-gradient(145deg, #1c141c, #0b0809);
}

.plaque-wall {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  opacity: 0.42;
}

.plaque-wall span {
  border: 1px solid rgba(255, 242, 183, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.12), rgba(194, 87, 156, 0.16));
}

.plaque-plate {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(82%, 330px);
  padding: 30px 22px;
  border: 1px solid rgba(255, 242, 183, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.36), rgba(255, 242, 183, 0.88), rgba(194, 87, 156, 0.2)),
    #f8d56b;
  color: var(--mountain);
  text-align: center;
  box-shadow:
    0 20px 54px rgba(255, 106, 0, 0.22),
    inset 0 0 20px rgba(255, 255, 255, 0.48);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.plaque-plate.is-reserved {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 26px 70px rgba(255, 106, 0, 0.38),
    0 0 45px rgba(255, 212, 0, 0.4),
    inset 0 0 28px rgba(255, 255, 255, 0.62);
}

.plaque-plate small,
.plaque-plate span {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plaque-plate strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.legacy-years {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
}

.legacy-years strong {
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.legacy-years span {
  color: var(--muted);
}

.legacy-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.legacy-breakdowns button {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(185, 79, 147, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.14), rgba(194, 87, 156, 0.08)),
    white;
  padding: 14px;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border 160ms ease;
}

.legacy-breakdowns button:hover,
.legacy-breakdowns button.selected {
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.16);
  transform: translateY(-2px);
}

.legacy-breakdowns small {
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-breakdowns strong {
  font-size: 1.35rem;
}

.legacy-breakdowns span {
  color: var(--muted);
  font-size: 0.88rem;
}

.perk-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.perk-list div {
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.14), rgba(194, 87, 156, 0.08)),
    var(--surface-alt);
}

.perk-list strong,
.perk-list span {
  display: block;
}

.perk-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.insight-grid,
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.insight-panel,
.software-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(30, 30, 36, 0.08);
}

.phase-stack,
.channel-stack,
.receipt-stack {
  display: grid;
  gap: 12px;
}

.phase-row,
.channel-row {
  display: grid;
  gap: 7px;
}

.phase-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.phase-row small {
  color: var(--muted);
}

.channel-row {
  grid-template-columns: 86px 1fr auto;
  align-items: center;
}

.channel-row .progress-track {
  height: 8px;
}

.plan-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.plan-chip {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-alt);
}

.plan-chip span {
  color: var(--primary);
  font-weight: 900;
}

.plan-chip small {
  color: var(--muted);
}

.receipt-stack div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-alt);
}

.receipt-stack small {
  display: block;
  color: var(--muted);
}

.mini-metrics {
  display: flex;
  gap: 10px;
}

.mini-metrics span {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-alt);
}

.pledge-card label,
.giving-card label,
.admin-panel label {
  display: block;
  margin: 16px 0 8px;
  color: #4a434d;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
}

.pledge-output {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.timeline-item {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(30, 30, 36, 0.08);
}

.timeline-item span {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
  border: 4px solid rgba(151, 28, 88, 0.16);
  border-radius: 50%;
  background: white;
}

.timeline-item.active span {
  border-color: var(--primary);
  background: var(--primary);
}

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

.schedule-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: #211821;
  color: white;
}

.schedule-grid article:nth-child(even) {
  background: var(--primary);
}

.schedule-grid span {
  color: #ffd8ea;
  font-weight: 900;
}

.schedule-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.top-worship-section {
  width: min(1280px, calc(100% - 32px));
}

.top-worship-copy {
  max-width: 860px;
  margin-bottom: 24px;
}

.top-worship-copy h2 {
  max-width: 900px;
}

.top-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.top-service-strip span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(194, 87, 156, 0.18);
  border-radius: 18px;
  background: white;
  padding: 12px 14px;
  box-shadow: 0 12px 28px rgba(30, 30, 36, 0.08);
}

.top-service-strip strong {
  color: var(--primary);
}

.top-worship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.priority-live-card {
  margin-top: 0;
}

.instagram-carousel-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.24), transparent 35%),
    linear-gradient(145deg, white, #fff7fb);
  padding: 18px;
  box-shadow: 0 24px 64px rgba(30, 30, 36, 0.12);
}

.carousel-heading {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.carousel-heading h3 {
  margin-bottom: 0;
}

.carousel-heading a {
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 9px 11px;
  font-size: 0.84rem;
  font-weight: 900;
}

.instagram-carousel {
  position: relative;
  min-height: 330px;
}

.instagram-slide {
  display: none;
  gap: 14px;
  animation: fadeSlide 420ms ease both;
}

.instagram-slide.active {
  display: grid;
}

.instagram-slide img {
  width: 100%;
  height: 230px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--surface-alt);
}

.instagram-slide div {
  display: grid;
  gap: 5px;
}

.instagram-slide span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instagram-slide p {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--flame-gold), var(--primary));
  color: white;
  font-weight: 900;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.livestream-card {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 212, 0, 0.2), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(194, 87, 156, 0.24), transparent 34%),
    linear-gradient(145deg, #211821, #120d13);
  box-shadow: 0 26px 70px rgba(23, 17, 15, 0.24);
}

.livestream-topline,
.livestream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.livestream-topline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 900;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--flame-cream);
  padding: 8px 11px;
}

.live-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flame-orange);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 11px rgba(255, 106, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

.livestream-viewer,
.modal-video {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.16), rgba(194, 87, 156, 0.18)),
    #070507;
  aspect-ratio: 16 / 9;
}

.livestream-viewer iframe,
.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.livestream-glow {
  position: absolute;
  inset: auto 12% -28px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.44);
  filter: blur(22px);
  pointer-events: none;
}

.livestream-actions .button {
  min-height: 44px;
}

.text-button,
.small-button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-weight: 800;
  padding: 10px 13px;
}

.small-button {
  background: var(--ink);
  color: white;
}

.community-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.prayer-card,
.testimony-card,
.genz-card {
  padding: 24px;
}

.card-top,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prayer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.prayer-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-alt);
}

.prayer-list button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 900;
  padding: 0;
}

.quote-stack {
  display: grid;
  gap: 10px;
}

blockquote {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: var(--surface-alt);
  color: #4c4650;
}

.genz-card {
  background:
    linear-gradient(135deg, rgba(151, 28, 88, 0.92), rgba(232, 161, 61, 0.72)),
    var(--primary);
  color: white;
}

.genz-card .card-label,
.genz-card p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 52px;
  padding: 44px;
  border-radius: 28px;
  background: #211821;
  color: white;
  box-shadow: var(--shadow);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(18, 17, 20, 0.62);
  backdrop-filter: blur(12px);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow);
}

.watch-panel {
  width: min(980px, 100%);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 212, 0, 0.18), transparent 34%),
    linear-gradient(145deg, white, #fff7fb);
}

.modal-video {
  margin: 18px 0;
  box-shadow: 0 22px 52px rgba(23, 17, 15, 0.18);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  font-weight: 900;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.amount-grid button,
.segmented button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
  font-weight: 900;
}

.amount-grid button.selected,
.segmented button.selected,
.platform-list button.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 340px;
}

.toast div {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.giving-hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.giving-copy h1 {
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.compliance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.compliance-strip span {
  padding: 10px 13px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(30, 30, 36, 0.08);
}

.giving-card {
  padding: 28px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.platform-list {
  display: grid;
  gap: 10px;
}

.platform-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 14px;
  text-align: left;
}

.platform-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.receipt-grid {
  grid-template-columns: repeat(3, 1fr);
}

.receipt-grid article {
  padding: 24px;
}

.success-hero {
  display: grid;
  min-height: calc(100vh - 110px);
  place-items: center;
}

.success-card {
  position: relative;
  overflow: hidden;
  width: min(760px, 100%);
  padding: 38px;
  text-align: center;
}

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

.success-orb {
  position: absolute;
  inset: auto 12% -120px;
  z-index: 0;
  height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 212, 0, 0.46), transparent 48%),
    radial-gradient(circle at 45% 72%, rgba(255, 106, 0, 0.42), transparent 54%);
  filter: blur(18px);
  animation: successGlow 2.4s ease-in-out infinite;
}

@keyframes successGlow {
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.success-confetti-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.success-confetti-piece {
  width: 10px;
  height: 18px;
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.34);
  animation-duration: 1500ms;
}

.success-card h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.celebration-meter {
  display: grid;
  gap: 6px;
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid rgba(255, 212, 0, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 212, 0, 0.24), transparent 38%),
    linear-gradient(135deg, #211821, var(--primary-dark));
  color: white;
}

.celebration-meter span,
.celebration-meter small {
  color: rgba(255, 242, 183, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.celebration-meter strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.success-card .payment-choice {
  justify-content: center;
  margin-top: 26px;
}

.password-reset-hero {
  display: grid;
  min-height: calc(100vh - 110px);
  place-items: center;
}

.password-reset-card {
  width: min(720px, 100%);
  padding: 34px;
}

.password-reset-card h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.password-reset-card form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.password-reset-card form[hidden] {
  display: none;
}

.admin-body {
  display: grid;
  grid-template-columns: 58px 292px minmax(0, 1fr);
  min-height: 100vh;
  background: #fbf7f4;
}

.admin-rail {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 12px;
  height: 100vh;
  padding: 78px 10px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-rail a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
}

.admin-rail a:hover,
.admin-rail a:first-child {
  background: var(--primary-soft);
  color: var(--primary);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(151, 28, 88, 0.42), transparent 38%),
    linear-gradient(180deg, #1a1320 0%, #2a1324 52%, #4b0e2f 100%);
  color: white;
}

.admin-brand {
  align-items: center;
  padding: 0 4px 18px;
}

.admin-brand img {
  width: 48px;
  height: 48px;
}

.admin-brand strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-sidebar nav,
.nav-group {
  display: grid;
  gap: 7px;
}

.nav-group {
  margin-bottom: 10px;
}

.nav-group > span {
  margin: 10px 12px 4px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
  font-weight: 800;
}

.admin-sidebar nav a b {
  font-weight: 800;
}

.admin-sidebar nav a em {
  min-width: 24px;
  border-radius: 999px;
  background: var(--flame-orange);
  color: white;
  padding: 3px 7px;
  font-size: 0.72rem;
  font-style: normal;
  text-align: center;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--logo-ring));
  color: white;
  box-shadow: 0 12px 28px rgba(151, 28, 88, 0.28);
}

.sidebar-status {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-status p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.admin-profile-chip {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(79, 11, 48, 0.86);
}

.admin-profile-chip > strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d84262;
  color: white;
}

.admin-profile-chip b,
.admin-profile-chip small {
  display: block;
}

.admin-profile-chip small {
  color: rgba(255, 255, 255, 0.58);
}

.admin-main {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 22px 64px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 430px) auto;
  align-items: center;
  gap: 18px;
  margin: 0 -22px 24px;
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 244, 0.9);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  max-width: 780px;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.admin-topbar p,
.admin-topbar small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.admin-global-search {
  position: relative;
  display: block;
}

.admin-global-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-global-search input {
  min-height: 52px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 26px rgba(26, 22, 34, 0.08);
}

.admin-actions {
  justify-content: flex-end;
}

.admin-auth-form {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(151, 28, 88, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(151, 28, 88, 0.12);
}

.admin-auth-form[hidden] {
  display: none;
}

.admin-auth-form label {
  gap: 3px;
  min-width: 160px;
}

.admin-auth-form span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mfm-magenta);
}

.admin-auth-form input {
  min-height: 42px;
  padding: 0 12px;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.18);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(151, 28, 88, 0.16);
}

.admin-user-chip[hidden] {
  display: none;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-page .brand {
  margin-bottom: 28px;
}

.legal-shell {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(151, 28, 88, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.legal-shell h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.legal-shell h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.legal-shell p {
  max-width: 780px;
  color: var(--muted);
}

.legal-shell a {
  color: var(--mfm-magenta);
  font-weight: 900;
}

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

.admin-card,
.admin-panel {
  border-color: rgba(26, 22, 34, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(26, 22, 34, 0.08);
}

.admin-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

.admin-card::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 34px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(151, 28, 88, 0.22), rgba(46, 158, 107, 0.36));
  content: "";
}

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

.admin-card strong {
  display: block;
  margin: 10px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-card p {
  margin-bottom: 0;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.money-icon {
  background: rgba(46, 158, 107, 0.12);
  color: var(--green);
}

.chart-icon {
  background: rgba(37, 99, 201, 0.12);
  color: #2563c9;
}

.warn-icon {
  background: rgba(232, 161, 61, 0.16);
  color: #c9781a;
}

.table-total {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gateway {
  display: inline-flex;
  justify-content: center;
  border-radius: 14px;
  padding: 12px;
  font-weight: 900;
}

.gateway.ready {
  background: rgba(46, 158, 107, 0.12);
  color: var(--green);
}

.gateway.pending {
  background: rgba(232, 161, 61, 0.16);
  color: #9a650e;
}

.admin-rank-console,
.livestream-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-rank-console article,
.live-admin-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-alt);
}

.admin-rank-console form,
.livestream-admin-grid form {
  display: grid;
  gap: 10px;
}

.rank-ladder {
  display: grid;
  gap: 8px;
}

.rank-ladder span,
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 212, 0, 0.28), rgba(194, 87, 156, 0.14)),
    white;
  color: var(--primary-dark);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-ladder span:first-child {
  background: linear-gradient(135deg, var(--flame-gold), var(--primary));
  color: white;
}

.rank-pill.member,
.rank-pill.worker {
  background: white;
  color: var(--muted);
}

.livestream-admin-grid p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.live-admin-preview .livestream-viewer {
  margin-top: 14px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.summary-strip span {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-alt);
}

.summary-strip strong {
  font-size: 1.1rem;
}

.summary-strip small {
  color: var(--muted);
}

.admin-panel {
  margin-top: 20px;
}

.dashboard-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 20px;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  margin-top: 18px;
}

.compact-tabs {
  width: 270px;
}

.payment-mix-panel {
  display: grid;
  align-content: start;
}

.donut-wrap {
  display: grid;
  gap: 24px;
  justify-items: center;
  margin-top: 26px;
}

.payment-donut {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 0 45%, transparent 46%),
    conic-gradient(var(--primary) 0 52%, #17141a 52% 75%, var(--flame-orange) 75% 89%, #6d1ed4 89% 100%);
}

.payment-donut strong {
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.payment-donut span {
  margin-top: -34px;
  color: var(--muted);
  font-size: 0.8rem;
}

.mix-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.mix-list span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.mix-list b {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.mix-card {
  background: var(--primary);
}

.mix-apple {
  background: #17141a;
}

.mix-google {
  background: var(--flame-orange);
}

.mix-zelle {
  background: #6d1ed4;
}

.worship-ledger-grid,
.receipt-admin-grid,
.settings-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.receipt-admin-grid,
.settings-audit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.worship-ledger-grid article,
.receipt-admin-grid article,
.settings-audit-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 16px;
}

.worship-ledger-grid strong,
.receipt-admin-grid strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.milestone-list,
.leaderboard-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.milestone-list div,
.leaderboard-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
  padding: 14px;
}

.milestone-list div {
  grid-template-columns: 1fr auto;
}

.leaderboard-list b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
}

.search-box {
  min-width: 260px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(46, 158, 107, 0.12);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-pill.pending {
  background: rgba(232, 161, 61, 0.16);
  color: #9a650e;
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.workflow-grid div {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 112px;
  border-radius: 16px;
  background: var(--surface-alt);
  text-align: center;
}

.workflow-grid strong {
  color: var(--primary);
  font-size: 2rem;
}

.workflow-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.installed-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.installed-wall div {
  padding: 16px;
  border: 1px solid rgba(232, 161, 61, 0.4);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 161, 61, 0.18), rgba(151, 28, 88, 0.08)),
    var(--surface-alt);
}

.installed-wall span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.statement-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}

.statement-preview {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.statement-letterhead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.statement-letterhead span {
  color: var(--muted);
}

.queue-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.queue-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-alt);
}

.queue-list small {
  display: block;
  color: var(--muted);
}

.queue-list button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 9px 12px;
  font-weight: 900;
}

.update-preview {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-alt);
}

.update-preview.show {
  display: block;
}

.cms-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cms-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
}

.carousel-admin-card {
  grid-column: span 2;
}

.carousel-admin-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.carousel-admin-items {
  display: grid;
  gap: 12px;
}

.carousel-admin-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(151, 28, 88, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 242, 183, 0.55), rgba(251, 238, 244, 0.72)),
    white;
}

.carousel-admin-item span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.messaging-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    background: white;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .app-shell,
  .split-section,
  .giving-hero,
  .admin-two-col,
  .messaging-panel,
  .top-worship-grid,
  .admin-rank-console,
  .livestream-admin-grid,
  .sanctuary-command,
  .legacy-hero,
  .legacy-grid,
  .member-hub-grid {
    grid-template-columns: 1fr;
  }

  .daily-fire-card {
    grid-row: auto;
  }

  .command-grid,
  .community-grid,
  .receipt-grid,
  .cms-grid,
  .admin-grid,
  .insight-grid,
  .software-grid,
  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-admin-card {
    grid-column: span 2;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-body {
    display: block;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 150px;
  }

  h1 {
    font-size: 3rem;
  }

  .section-pad {
    width: calc(100% - 24px);
    padding: 58px 0;
  }

  .feature-list,
  .command-grid,
  .schedule-grid,
  .community-grid,
  .timeline,
  .receipt-grid,
  .cms-grid,
  .admin-grid,
  .insight-grid,
  .software-grid,
  .summary-strip,
  .workflow-grid,
  .installed-wall,
  .statement-controls {
    grid-template-columns: 1fr;
  }

  .carousel-admin-card {
    grid-column: span 1;
  }

  .hub-card-top,
  .points-strip,
  .watch-progress,
  .livestream-topline,
  .livestream-actions {
    grid-template-columns: 1fr;
  }

  .livestream-topline,
  .livestream-actions {
    align-items: stretch;
  }

  .livestream-actions .button {
    width: 100%;
  }

  .hero-countdown {
    width: 100%;
    grid-template-columns: 1fr auto;
  }

  .hub-card-top {
    display: grid;
  }

  .streak-orb {
    width: 104px;
  }

  .reading-days {
    grid-template-columns: repeat(2, 1fr);
  }

  .fund-card.flagship {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    width: 124px;
  }

  .sanctuary-stage {
    min-height: 640px;
    padding: 20px;
  }

  .sanctuary-copy h3 {
    font-size: 2.7rem;
  }

  .sanctuary-visual {
    min-height: 300px;
  }

  .sanctuary-metrics {
    grid-template-columns: 1fr;
  }

  .demo-gift-grid {
    grid-template-columns: 1fr;
  }

  .legacy-breakdowns {
    grid-template-columns: 1fr;
  }

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

  .contact-band,
  .admin-topbar,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .queue-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-body {
    grid-template-columns: 52px 260px minmax(0, 1fr);
  }

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

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-grid,
  .dashboard-analytics,
  .worship-ledger-grid,
  .receipt-admin-grid,
  .settings-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-body {
    display: block;
  }

  .admin-rail {
    display: none;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    max-height: none;
  }

  .admin-sidebar nav,
  .admin-sidebar .nav-group {
    grid-template-columns: 1fr;
  }

  .admin-profile-chip {
    position: relative;
  }

  .admin-main {
    padding: 0 14px 48px;
  }

  .admin-topbar {
    margin-inline: -14px;
  }
}

@media (max-width: 680px) {
  .admin-grid,
  .dashboard-analytics,
  .worship-ledger-grid,
  .receipt-admin-grid,
  .settings-audit-grid {
    grid-template-columns: 1fr;
  }

  .admin-auth-form {
    display: grid;
  }

  .payment-donut {
    width: 150px;
  }
}
