/* ==========================================================================
   Human Rise Foundation — Dark Glass Design System
   The single stylesheet for the public site and the /dashboard/ admin.

   1  Tokens            7  Home page             13 Receipt
   2  Base              8  Content pages         14 Auth
   3  Layout            9  Programs & campaigns  15 Membership
   4  Buttons & badges  10 Forms                 16 Dashboard
   5  Cards & grids     11 Donation              17 Short landscape screens
   6  Header & footer   12 Payment results       18 Motion, fallback, print

   Layout is full width. Spacing: --gutter 10px, --page-y 10px, section gap 10px, --gap 10px, --pad 11px.
   Breakpoints: 1280 nav collapse · 1024 sidebar collapse · 992 layouts stack
                768 tablet · 560 phone · 380 small phone
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  color-scheme: dark;

  --bg: #070b12;
  --bg-2: #0c1420;
  --bg-3: #16243a;
  --glass: rgba(15, 33, 54, 0.52);
  --glass-elevated: rgba(26, 48, 70, 0.62);
  --glass-strong: rgba(12, 20, 32, 0.9);
  --glass-soft: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  --accent: #20c997;
  --accent-strong: #3bdcae;
  --accent-soft: rgba(32, 201, 151, 0.15);
  --accent-2: #38bdf8;
  --accent-2-soft: rgba(56, 189, 248, 0.15);
  --warm: #ff8a2a;
  --warm-soft: rgba(255, 138, 42, 0.16);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.15);
  --on-accent: #04241b;
  --on-warm: #ffffff;

  --text: #f8fafc;
  --text-2: #dbe3ed;
  --muted: #a3b0c2;
  --border: rgba(177, 216, 255, 0.16);
  --border-strong: rgba(192, 224, 255, 0.28);

  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.48);
  --blur: blur(20px) saturate(175%);
  --sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%);

  /* Compact spacing scale: every page takes its rhythm from these. */
  --nav-h: 62px;
  --gutter: 10px;
  --page-y: 10px;
  --section-y: 5px; /* two adjoining sections sum to exactly 10px */
  --gap: 10px;
  --pad: 11px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Aliases for variable names still referenced by inline template snippets. */
  --color-primary: var(--accent);
  --color-success: var(--accent);
  --color-accent: var(--warm);
  --color-muted: var(--muted);
  --color-ink: var(--text);
  --color-ink-soft: var(--text-2);
  --color-border: var(--border);
}

/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-2);
  /* Stays transparent: a body background would paint over the fixed backdrop in body::before. */
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Fixed backdrop in two layers: the softened photo, then light and tint above it.
   The glass panels frost this, and text placed directly on the page stays legible. */
body::before,
body::after { content: ""; position: fixed; pointer-events: none; }
body::before {
  inset: -12px;
  z-index: -2;
  background: url("../images/Community group.avif") center / cover no-repeat var(--bg);
  filter: blur(4px) brightness(0.72) saturate(1.15);
}
body::after {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48vmax 38vmax at 100% 8%, rgba(255, 138, 42, 0.2), transparent 62%),
    radial-gradient(52vmax 40vmax at 6% -4%, rgba(37, 127, 255, 0.25), transparent 62%),
    radial-gradient(52vmax 40vmax at 72% 104%, rgba(32, 201, 151, 0.17), transparent 62%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.66) 0%, rgba(12, 20, 32, 0.74) 100%);
}

body.show-offcanvas { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 5px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 6px; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
ul { margin: 0 0 8px; padding-left: 1.2em; }
li { margin-bottom: 3px; }
li::marker { color: var(--accent); }
figure { margin: 0; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--accent-strong); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(32, 201, 151, 0.35); color: #fff; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--on-accent); }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.text-center { text-align: center; }
.is-italic { font-style: italic; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 10px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 10px; }
.w-full { width: 100%; }
.pre-wrap { white-space: pre-wrap; }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-gap.center { justify-content: center; }

/* 3. LAYOUT ================================================================ */
body:not(.dash, .checkout-page) { display: flex; flex-direction: column; }
.main-content { flex: 1 0 auto; padding-top: var(--nav-h); min-width: 0; }

.container { width: 100%; }

.section,
.contact-band,
.moa-page {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}
.home-section { padding: var(--section-y) var(--gutter); }
.inner-page-offset, .login-page, .reg-page { padding-top: var(--page-y); }
.main-content > :last-child { padding-bottom: var(--page-y); }
/* An empty group (e.g. no ongoing programmes) must not leave a gap behind. */
.program-section:not(:has(article, p)) { display: none; }

/* Outer glass layer that groups a home-page section; its cards sit on top of it. */
.home-section > .container,
#board-of-directors {
  padding: var(--gap);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 30, 46, 0.3);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--glass-edge);
}
#board-of-directors { width: calc(100% - var(--gutter) * 2); margin: var(--section-y) auto; }

.section-tint-blue { background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.045) 50%, transparent); }
.section-tint-green { background: linear-gradient(180deg, transparent, rgba(32, 201, 151, 0.05) 50%, transparent); }
.section-tint-orange { background: linear-gradient(180deg, transparent, rgba(245, 185, 113, 0.04) 50%, transparent); }

.section-heading {
  margin: 0 0 8px;
  text-align: center;
}
.section-heading p { margin-bottom: 0; }
.section-heading p:last-child { color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 4. BUTTONS & BADGES ====================================================== */
.btn-premium-primary,
.btn-premium-secondary,
.btn-donate-premium,
.btn-cta-orange,
.hero-btn-primary,
.donate-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  max-width: 100%;
  padding: 0.45rem 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-premium-primary,
.hero-btn-primary {
  background: linear-gradient(115deg, #287dff 0%, #20c997 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(40, 125, 255, 0.28);
}
.btn-donate-premium,
.donate-submit-btn {
  background: linear-gradient(115deg, #ff7a18 0%, #ff9f43 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(255, 122, 24, 0.28);
}
.btn-premium-primary:hover,
.hero-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40, 125, 255, 0.38);
}
.btn-donate-premium:hover,
.donate-submit-btn:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 24, 0.4); }

.btn-premium-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-premium-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-cta-orange { background: linear-gradient(115deg, #ff7a18 0%, #ff9f43 100%); color: var(--on-warm); box-shadow: 0 8px 22px rgba(255, 122, 24, 0.28); }
.btn-cta-orange:hover { color: var(--on-warm); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 24, 0.4); }

.btn-block { width: 100%; }
.btn-pill { min-height: 38px; padding: 0.4rem 10px; font-size: 0.85rem; }

.read-more-link,
.link-arrow { display: inline-block; margin-top: auto; font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--glass-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-lg { padding: 0.3rem 10px; font-size: 0.875rem; }

.badge-green, .badge.paid, .badge.approved, .badge.resolved, .badge.active, .badge.ongoing {
  background: var(--accent-soft); border-color: rgba(32, 201, 151, 0.45); color: #6ee7c5;
}
.badge-blue, .badge.new, .badge.inprogress {
  background: var(--accent-2-soft); border-color: rgba(56, 189, 248, 0.45); color: #8ad8fb;
}
.badge-orange, .badge.pending, .badge.under, .badge.underreview, .badge.paused, .badge.pendingapproval {
  background: var(--warm-soft); border-color: rgba(245, 185, 113, 0.45); color: #f8cf9d;
}
.badge.failed, .badge.rejected {
  background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.45); color: #fca5a5;
}
.badge.closed, .badge.archived, .badge.draft, .badge.completed {
  background: rgba(163, 176, 194, 0.12); border-color: rgba(163, 176, 194, 0.35); color: var(--text-2);
}

.alert {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  color: var(--text);
  font-size: 0.925rem;
}
.alert ul { margin: 0; padding: 0; list-style: none; }
.alert-success { border-color: rgba(32, 201, 151, 0.5); background: rgba(13, 62, 49, 0.92); }
.alert-error { border-color: rgba(248, 113, 113, 0.55); background: rgba(74, 24, 28, 0.92); }
.alert-info { border-color: rgba(56, 189, 248, 0.5); background: rgba(15, 52, 74, 0.92); }

.site-messages { margin: 10px 0 0; padding-inline: var(--gutter); }

/* 5. CARDS & GRIDS ========================================================= */
.glass-card,
.card-surface {
  border: 1px solid rgba(177, 216, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(31, 65, 92, 0.24) 48%, rgba(9, 24, 42, 0.32)), var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 10px 28px rgba(0, 8, 20, 0.3), var(--glass-edge);
  padding: var(--pad);
  min-width: 0;
}

.programs-grid,
.about-activity-grid,
.about-commit-grid,
.about-compliance-grid,
.about-mem-grid,
.impact-grid,
.stories-container,
.program-list,
.completed-showcase,
.home-card-grid,
.card-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.grid-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.home-card-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.program-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
a.program-card:hover,
.program-list .program-card:hover,
.programs-grid .program-card:hover,
.card-grid .program-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.program-card-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: var(--bg-3);
}
.program-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: var(--pad);
}
.program-card-content > p { color: var(--muted); font-size: 0.95rem; }
.program-card-content > .btn-premium-primary,
.program-card-content > .btn-premium-secondary { margin-top: auto; }
.program-card-content.centered { align-items: center; text-align: center; }
.program-card-content.centered > .btn-premium-primary { width: 100%; }
.program-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -40px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--glass-strong);
  color: var(--accent);
  flex-shrink: 0;
}
.program-card-icon svg { stroke: currentColor; }
.program-card:has(> .program-card-img) {
  --card-accent: #318bff;
  --card-glow: rgba(56, 189, 248, 0.24);
  position: relative;
  isolation: isolate;
  min-height: 300px;
  border-color: rgba(192, 224, 255, 0.3);
  border-radius: 18px;
  background: rgba(8, 21, 37, 0.72);
  box-shadow: 0 12px 30px rgba(0, 8, 20, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.program-card:has(> .program-card-img):nth-child(4n + 2) { --card-accent: #29b86a; --card-glow: rgba(48, 220, 150, 0.25); }
.program-card:has(> .program-card-img):nth-child(4n + 3) { --card-accent: #ef812d; --card-glow: rgba(255, 145, 55, 0.27); }
.program-card:has(> .program-card-img):nth-child(4n + 4) { --card-accent: #9063e8; --card-glow: rgba(171, 120, 255, 0.27); }
.program-card:has(> .program-card-img) > .program-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.program-card:has(> .program-card-img)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(5, 15, 29, 0.08) 0%, rgba(5, 15, 29, 0.25) 36%, rgba(5, 15, 29, 0.94) 100%),
    radial-gradient(ellipse at 18% 12%, var(--card-glow), transparent 62%);
  pointer-events: none;
}
.program-card:has(> .program-card-img)::after {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  z-index: 3;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  pointer-events: none;
}
.program-card:has(> .program-card-img):hover > .program-card-img { transform: scale(1.05); }
.program-card:has(> .program-card-img) .program-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 18px;
}
.program-card:has(> .program-card-img) .program-card-content > h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.program-card:has(> .program-card-img) .program-card-content > p {
  margin-bottom: 10px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}
.program-card:has(> .program-card-img) .program-card-content > .program-progress {
  margin-top: 4px;
}
.program-card:has(> .program-card-img) .program-card-content > a {
  align-self: flex-start;
  margin-top: auto;
}
.program-card:has(> .program-card-img) .program-card-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: var(--card-accent);
  color: #ffffff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.program-card:has(> .program-card-img):has(.program-card-icon) .program-card-content {
  justify-content: flex-start;
  padding-top: 76px;
}
.program-card:has(> .program-card-img) .program-card-content > p { color: rgba(239, 246, 255, 0.86); }
.program-card:has(> .program-card-img) .program-card-content > a { color: #ffffff; }
.program-card:has(> .program-card-img) .program-card-content > a:hover { color: #bce7ff; }

#home-programs .programs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#home-programs .program-card:has(> .program-card-img) { min-height: 440px; }
#home-programs .program-card:has(> .program-card-img) .program-card-content {
  justify-content: flex-start;
  min-height: 440px;
  padding: clamp(120px, 9vw, 170px) 18px 22px;
}
#home-programs .program-card:has(> .program-card-img) .program-card-icon {
  position: relative;
  inset: auto;
  margin: 0 0 40px;
}
#home-programs .program-card:has(> .program-card-img) .program-card-content > h4 { margin-bottom: 8px; }
#home-programs .program-card:has(> .program-card-img) .program-card-content > p { margin-bottom: 10px; }
#home-programs .program-card:has(> .program-card-img) .program-card-content > a { margin-top: auto; }

@media (max-width: 1100px) {
  #home-programs .programs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #home-programs .program-card:has(> .program-card-img),
  #home-programs .program-card:has(> .program-card-img) .program-card-content { min-height: 400px; }
}
@media (max-width: 760px) {
  #home-programs .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-programs .program-card:has(> .program-card-img),
  #home-programs .program-card:has(> .program-card-img) .program-card-content { min-height: 360px; }
}
@media (max-width: 480px) {
  #home-programs .programs-grid { grid-template-columns: minmax(0, 1fr); }
}

.card-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-media { display: block; position: relative; }
.card-media .badge { background: var(--glass-strong); }

.stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.stat-icon svg { stroke: currentColor; }
.stat-icon.tone-blue { background: var(--accent-2-soft); color: var(--accent-2); }
.stat-icon.tone-warm { background: var(--warm-soft); color: var(--warm); }
.stat-icon.is-centered { margin-inline: auto; }
.stat-icon.mb { margin-bottom: 10px; }

.accent-top { position: relative; overflow: hidden; }
.accent-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}
.accent-blue::before { background: var(--accent-2); }
.accent-green::before { background: var(--accent); }
.accent-orange::before { background: var(--warm); }
.card-corner-badge { position: absolute; top: 0.9rem; right: 0.9rem; }

.filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--muted); }
.empty-note { color: var(--muted); font-size: 1.05rem; text-align: center; grid-column: 1 / -1; }

.program-progress { width: 100%; margin: 0.5rem 0 10px; }
.program-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
}
.program-progress-track.is-thick { height: 12px; }
.program-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease);
}
.program-progress-label { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; }

/* 6. HEADER & FOOTER ======================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.5);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.premium-navbar {
  display: flex;
  align-items: center;
  gap: var(--gap);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.premium-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 0; color: var(--text); }
.premium-brand:hover { color: var(--text); }
.premium-logo {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}
.premium-brand-text { min-width: 0; line-height: 1.15; }
.premium-brand-text strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.premium-brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.64rem; white-space: nowrap; }

.premium-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.premium-nav-links > li { position: relative; margin: 0; }
.premium-nav-links > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 40px;
  padding: 0.4rem 8px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.premium-nav-links > li > a:hover { background: var(--glass-hover); color: var(--text); }
.premium-nav-links > li > a.active { color: var(--accent-strong); }
.premium-nav-links > li > a.active::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.premium-nav-links > .has-dropdown > a::before {
  content: "";
  order: 1;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.premium-staff-link { color: var(--warm) !important; }

.premium-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease), visibility 0.18s;
}
/* Invisible bridge so the pointer can travel from link to menu. */
.premium-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-dropdown:hover > .premium-dropdown,
.has-dropdown:focus-within > .premium-dropdown { opacity: 1; visibility: visible; transform: none; }
.premium-dropdown li { margin: 0; }
.premium-dropdown a {
  display: block;
  padding: 0.55rem 8px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.875rem;
}
.premium-dropdown a:hover { background: var(--accent-soft); color: var(--text); }

.premium-nav-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.premium-nav-actions form { margin: 0; }
.premium-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.premium-text-link:hover { background: var(--glass-hover); color: var(--text); }
.premium-nav-actions .user-name { max-width: 110px; display: inline-block; overflow: hidden; text-overflow: ellipsis; line-height: 40px; }
.btn-donate-premium { min-height: 42px; padding: 0.5rem 10px; font-size: 0.875rem; white-space: nowrap; }
.mobile-donate-btn { display: none; }

.premium-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--glass-soft);
  cursor: pointer;
  flex-shrink: 0;
}
.premium-nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--text); }

/* Off-canvas menu — a sibling of <header>, because a backdrop-filter ancestor
   would otherwise trap position:fixed children inside the header box. */
.premium-offcanvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 7, 13, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.premium-offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1110;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  border-left: 1px solid var(--border-strong);
  background: rgba(12, 20, 32, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s;
}
body.show-offcanvas .premium-offcanvas-overlay { opacity: 1; visibility: visible; }
body.show-offcanvas .premium-offcanvas-menu { transform: none; visibility: visible; }

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.premium-offcanvas-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--glass-soft);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.premium-offcanvas-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 10px 12px; }

.mobile-nav-links { margin: 0; padding: 0; list-style: none; }
.mobile-nav-links > li { margin: 0; border-bottom: 1px solid var(--border); }
.mobile-nav-links > li > a {
  display: flex;
  align-items: center;
  min-height: 50px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-nav-links > li > a.active { color: var(--accent-strong); }
.mobile-nav-links > .has-dropdown { display: grid; grid-template-columns: 1fr 48px; }
.submenu-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 50px;
  border: 0;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.submenu-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
.has-dropdown.is-open > .submenu-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
.mobile-nav-links .premium-dropdown {
  position: static;
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 8px;
  padding: 0.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-nav-links .premium-dropdown::before { display: none; }
.mobile-nav-links .has-dropdown.is-open > .premium-dropdown { display: block; }
.mobile-nav-links .premium-dropdown a { display: flex; align-items: center; min-height: 44px; font-size: 0.95rem; }

.mobile-nav-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 10px; }
.mobile-nav-actions .premium-text-link {
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--glass-soft);
  color: var(--text);
}
.mobile-nav-actions form { width: 100%; margin: 0; }
.mobile-nav-actions .user-name { max-width: none; line-height: 1.2; }
.mobile-nav-actions .btn-donate-premium { width: 100%; min-height: 46px; }

@media (max-width: 1279.98px) {
  .premium-nav-links, .premium-nav-actions { display: none; }
  .premium-nav-toggle { display: flex; }
  .mobile-donate-btn { display: inline-flex; margin-left: auto; }
  .premium-brand-text small { display: block; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .premium-logo { width: 40px; height: 40px; }
  .premium-brand-text strong { font-size: 0.74rem; }
  .premium-brand-text small { display: none; }
  .mobile-donate-btn { min-height: 40px; padding: 0.4rem 8px; font-size: 0.8rem; }
  .mobile-donate-btn svg { display: none; }
}
@media (max-width: 380px) {
  .premium-navbar { gap: 8px; }
  .premium-brand-text strong { font-size: 0.66rem; letter-spacing: 0.03em; }
  .mobile-donate-btn { padding: 0.35rem 8px; font-size: 0.75rem; }
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.5);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr 1.2fr;
  gap: var(--gap);
  padding: var(--pad) var(--gutter) var(--pad);
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text); }
.footer-brand strong { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.06em; line-height: 1.2; }
.footer-about > p { color: var(--muted); font-size: 0.925rem; }
.site-footer h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.footer-links a,
.footer-causes a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.35;
}
.footer-links a:hover, .footer-causes a:hover { color: var(--accent-strong); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 10px 0; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass-soft);
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.footer-contact-row { display: flex; align-items: center; gap: 8px; margin-bottom: 0.45rem; color: var(--muted); font-size: 0.9rem; }
.footer-contact-row span { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.footer-contact-row p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.footer-newsletter-form { display: flex; gap: 0.5rem; }
.footer-newsletter-form input[type="email"] { flex: 1; min-width: 0; }
.footer-newsletter-form button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.footer-newsletter-form button:hover { background: var(--accent-strong); }
.footer-newsletter-form svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 12px;
  margin-inline: auto;
  padding: 10px var(--gutter);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-legal-links a { color: var(--muted); }
.footer-legal-links a:hover { color: var(--accent-strong); }
.footer-top {
  position: absolute;
  top: -22px;
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.footer-top:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-3px); }

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 7. HOME PAGE ============================================================= */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(18, 30, 46, 0.5);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; width: max-content; padding-block: 0.5rem; animation: ticker 180s linear infinite; }
.ticker-track > span { padding-right: 12px; }
.ticker.is-reverse .ticker-track { animation-direction: reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* All slides share one grid cell, so the wrapper is always as tall as the
   tallest slide and nothing has to be measured with JavaScript. */
.hero-slider-wrap { position: relative; display: grid; overflow: hidden; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.hero-slide-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 13, 22, 0.94) 0%, rgba(8, 13, 22, 0.76) 48%, rgba(8, 13, 22, 0.5) 100%);
}
.hero-split-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: var(--gap);
  width: 100%;
  padding: 8px var(--gutter) 36px;
}
.hero-main-title {
  margin-bottom: 5px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.br-lg { display: none; }
.hero-accent-green { color: var(--accent); }
.hero-accent-blue { color: var(--accent-2); }
.hero-main-sub { margin-bottom: 8px; color: var(--text-2); font-size: 0.875rem; line-height: 1.4; }
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hero-btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: var(--text); font-weight: 600; }
.hero-btn-ghost:hover { color: var(--accent-2); }
.hero-play-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--glass-soft); font-size: 0.7rem; }

.hero-donate-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(18, 30, 46, 0.58);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg), var(--glass-edge);
  padding: 10px;
}
.donate-card-label { margin: 0 0 5px; color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.donate-amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.donate-amt-btn { cursor: pointer; margin: 0; }
.donate-amt-btn br { display: none; }
.donate-amt-btn span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 3px;
  height: 100%;
  min-height: 42px;
  padding: 3px 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.donate-amt-btn strong { color: var(--text); font-size: 0.82rem; }
.donate-amt-btn small { flex-basis: 100%; font-size: 0.66rem; }
.donate-amt-btn input,
.amount-options-v2 input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.donate-amt-btn span:hover { border-color: var(--accent); }
.donate-amt-btn input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text-2); }
.donate-amt-btn input:focus-visible + span,
.amount-options-v2 input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.hero-donate-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: end; }
.donate-row-2 { display: contents; }
.donate-full { grid-column: span 2; }
.donate-field-wrap { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.donate-field-wrap label { color: #fff; font-size: 0.76rem; font-weight: 500; }
.hero-donate-form input, .hero-donate-form select { min-height: 38px; padding: 0.25rem 8px; font-size: 0.875rem; }
.donate-submit-btn { width: 100%; min-height: 38px; padding: 0.25rem 6px; font-size: 0.85rem; white-space: nowrap; }

#hero-slide-2 { justify-content: center; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 55%, #10283a 100%); }
.community-slide-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; width: 100%; padding: 8px var(--gutter) 36px; text-align: center; }
.community-slide-content > * { margin: 0; }
@media (min-width: 768px) {
  .community-slide-content { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); align-items: center; }
  .community-slide-content .community-avatars-wrap { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}
.community-slide-title { font-size: clamp(1.35rem, 2.6vw, 2.1rem); margin-bottom: 0.4rem; }
.community-slide-sub { color: var(--muted); }
.community-avatars-wrap {
  --r: 74px;
  --size: 40px;
  position: relative;
  width: calc(var(--r) * 2 + var(--size));
  height: calc(var(--r) * 2 + var(--size));
  max-width: 100%;
  margin: 10px auto 10px;
}
.community-avatar-orbit { position: absolute; inset: 0; animation: orbit 48s linear infinite; }
.community-avatar {
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  background: var(--bg-3);
  box-shadow: var(--shadow-sm);
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-avatar-float {
  position: absolute;
  top: calc(50% - var(--size) / 2);
  left: calc(50% - var(--size) / 2);
  width: var(--size);
  height: var(--size);
  transform: rotate(calc(var(--i) * 30deg)) translateX(var(--r)) rotate(calc(var(--i) * -30deg));
}
.community-avatar-float img { animation: orbit 48s linear infinite reverse; }
.community-avatar-main {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: calc(var(--size) * 1.5);
  height: calc(var(--size) * 1.5);
  border-color: var(--accent);
  transform: translate(-50%, -50%);
}
.avatar-you-badge {
  position: absolute;
  left: 50%;
  bottom: 4px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.64rem;
  font-weight: 700;
  transform: translateX(-50%);
}
.community-empty-msg { position: absolute; top: 50%; left: 0; right: 0; margin: 0; color: var(--muted); transform: translateY(-50%); }
@keyframes orbit { to { transform: rotate(360deg); } }

.hero-slider-dots { position: absolute; left: 50%; bottom: 4px; z-index: 5; display: flex; gap: 2px; transform: translateX(-50%); }
.hero-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero-dot-active::after, .hero-dot:hover::after { border-color: var(--accent); background: var(--accent); }
.hero-slider-arrow {
  position: absolute;
  bottom: 2px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-slider-arrow:hover { border-color: var(--accent); color: var(--accent-strong); }
.hero-slider-arrow-prev { left: calc(50% - 66px); }
.hero-slider-arrow-next { left: calc(50% + 34px); }

@media (max-width: 767.98px) {
  .hero-split-inner { grid-template-columns: minmax(0, 1fr); }
  /* Lighter at the top so the photo stays visible behind the heading on phones. */
  .hero-bg-overlay { background: linear-gradient(180deg, rgba(7, 11, 18, 0.62) 0%, rgba(7, 11, 18, 0.86) 45%, rgba(7, 11, 18, 0.94) 100%); }
  .hero-text-col { text-align: center; }
  .hero-btns { justify-content: center; }
}
@media (max-width: 560px) {
  .hero-donate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-submit-btn { grid-column: 1 / -1; min-height: 42px; }
  .donate-full { grid-column: 1 / -1; }
  .hero-donate-form input, .hero-donate-form select { min-height: 40px; padding-inline: 0.5rem; font-size: 1rem; }
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px 10px;
  width: calc(100% - var(--gutter) * 2);
  margin: var(--gap) auto var(--section-y);
}
.stat-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stat-item:nth-child(2) .stat-icon { background: var(--accent-2-soft); color: var(--accent-2); }
.stat-item:nth-child(3) .stat-icon { background: var(--warm-soft); color: var(--warm); }
.stat-item:nth-child(4) .stat-icon { background: var(--accent-2-soft); color: var(--accent-2); }
.stat-info { min-width: 0; }
.stat-info h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
.stat-info p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }

.feature-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: var(--pad); }
.feature-body > p { flex: 1; color: var(--muted); font-size: 0.95rem; }
.feature-body > h4 { font-size: 1.25rem; margin-bottom: 0; }
.center-card { text-align: center; }
.center-card > h4 { margin-bottom: 8px; }
.center-card > p { color: var(--muted); font-size: 0.925rem; }
.icon-row-card { display: flex; align-items: flex-start; gap: 10px; }
.icon-row-card strong { display: block; margin-bottom: 0.4rem; font-size: 1.05rem; }
.icon-row-card p { margin: 0; color: var(--muted); font-size: 0.925rem; }
.two-col-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.statement-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.statement-text { color: var(--muted); }
.card-eyebrow-blue { color: var(--accent-2); }

.membership-cta-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: var(--gap); background: linear-gradient(120deg, rgba(32, 201, 151, 0.14), rgba(56, 189, 248, 0.1)), var(--glass); }
.membership-cta-text { flex: 1 1 320px; min-width: 0; }
.membership-cta-text h3 { margin-bottom: 0.4rem; }
.membership-cta-text p { margin: 0; color: var(--text-2); }

.impact-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--gap);
  width: calc(100% - var(--gutter) * 2);
  margin: var(--section-y) auto;
}
.programs-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.programs-info p { margin-bottom: 10px; color: var(--muted); }
.impact-videos-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.video-thumb-card { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-md); background: var(--bg-3); }
.video-thumb-card a { display: block; width: 100%; height: 100%; }
.video-thumb-card img,
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.video-thumb-card:hover img, .video-card:hover .video-frame img { transform: scale(1.04); }
.video-play-overlay, .video-frame-play { position: absolute; inset: 0; display: grid; place-items: center; }
.play-icon-btn, .video-frame-play span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(7, 11, 18, 0.88);
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.video-thumb-card:hover .play-icon-btn, .video-card:hover .video-frame-play span { background: var(--accent); color: var(--on-accent); }
.video-thumb-caption { margin-top: 0.55rem; color: var(--text-2); font-size: 0.9rem; line-height: 1.4; }
.impact-section-footer { grid-column: 1 / -1; text-align: center; }

.video-card { display: block; padding: 0; overflow: hidden; color: inherit; transition: transform 0.25s var(--ease), border-color 0.25s ease; }
.video-card:hover { transform: translateY(-4px); border-color: var(--border-strong); color: inherit; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.video-card-body { padding: 10px 10px 10px; }
.video-card-body h3 { display: -webkit-box; margin-bottom: 0.5rem; overflow: hidden; font-size: 1.05rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card-body p { display: -webkit-box; margin-bottom: 10px; overflow: hidden; color: var(--muted); font-size: 0.9rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card-cta { color: var(--accent-strong); font-size: 0.9rem; font-weight: 600; }

.cta-banner-wrapper { padding: var(--section-y) var(--gutter) 0; }
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 12px;
  margin-inline: auto;
  padding: var(--pad);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(32, 201, 151, 0.2), rgba(56, 189, 248, 0.13) 60%, rgba(245, 185, 113, 0.1)), var(--glass);
  box-shadow: var(--shadow-md);
}
.cta-banner-content { display: flex; flex: 1 1 340px; align-items: center; gap: 10px; min-width: 0; }
.cta-banner-content h2 { margin-bottom: 0.3rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-banner-content p { margin: 0; color: var(--text-2); }
.cta-icon-large { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.cta-icon-large svg { stroke: currentColor; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 992px) {
  .impact-section-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cta-banner-content { flex-direction: column; text-align: center; }
  .cta-actions, .cta-actions > a { width: 100%; }
}

/* 8. CONTENT PAGES ========================================================= */
.about-mission-text { margin: 0; padding: var(--pad); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--sheen), var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-edge); color: var(--text-2); font-size: clamp(1.02rem, 1.5vw, 1.2rem); text-align: center; }

.about-activity-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.about-activity-img { background: var(--bg-3); }
.about-activity-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.about-activity-body { display: flex; flex: 1; flex-direction: column; padding: var(--pad); }
.about-activity-body p { flex: 1; color: var(--muted); font-size: 0.95rem; }

.about-commit-icon, .about-compliance-icon, .about-mem-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.about-commit-icon svg, .about-compliance-icon svg, .about-mem-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-commit-card p, .about-compliance-pill p, .about-mem-card p { color: var(--muted); font-size: 0.95rem; }
.about-compliance-pill strong { display: block; margin-bottom: 0.45rem; font-family: var(--font-display); font-size: 1.05rem; }
.about-mem-card { position: relative; }
.about-mem-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.15rem 8px;
  border: 1px solid rgba(32, 201, 151, 0.45);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #6ee7c5;
  font-size: 0.72rem;
  font-weight: 600;
}
.about-mem-cta { margin: 10px 0 0; color: var(--muted); text-align: center; }
.about-mem-cta p { margin-bottom: 10px; }

.about-board-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.about-board-card { text-align: center; }
.about-board-card.is-left { text-align: left; }
.about-board-card h4 { margin-bottom: 0.2rem; font-size: 1.02rem; }
.about-board-card p { color: var(--muted); font-size: 0.875rem; }
.about-board-card.is-left p { margin-bottom: 8px; }
.about-board-avatar { width: 60px; height: 60px; margin: 0 auto 8px; overflow: hidden; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--bg-3); }
.about-board-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-board-note { margin: 10px 0 0; color: var(--muted); font-size: 0.925rem; text-align: center; }
.about-board-note a { font-weight: 600; }
.opportunity-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.about-section-with-photo,
.involvement-section-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gap);
  align-items: center;
  margin-bottom: var(--gap);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.about-section-with-photo { padding-block: var(--pad); }
.about-section-with-photo:nth-of-type(even) .about-section-photo { order: 2; }
.about-section-photo, .involvement-section-photo { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-3); }
.about-section-photo img, .involvement-section-photo img { width: 100%; height: 100%; max-height: 280px; aspect-ratio: 16 / 9; object-fit: cover; }
.about-content ul, .involvement-content ul { color: var(--text-2); }
.involvement-content { min-width: 0; }
.involvement-content h4 { margin-top: 10px; color: var(--text); }
.involvement-content em { color: var(--muted); font-size: 0.9rem; }
.involvement-content .btn-premium-primary, .involvement-content .btn-premium-secondary { margin-top: 0.5rem; }
@media (max-width: 860px) {
  .about-section-with-photo, .involvement-section-with-photo { grid-template-columns: minmax(0, 1fr); }
  .about-section-with-photo:nth-of-type(even) .about-section-photo { order: 0; }
  .about-section-photo img, .involvement-section-photo img { aspect-ratio: 16 / 9; }
}

.impact-section { margin-bottom: var(--gap); scroll-margin-top: calc(var(--nav-h) + 16px); }
.impact-section > h3, .program-section > h3 { margin-bottom: 10px; text-align: center; }
.impact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.impact-grid article { text-align: center; }
.impact-grid strong { display: block; color: var(--accent-strong); font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.1; }
.impact-grid span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.story-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.story-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--bg-3); }
.story-card h4 { margin: 10px 10px 0.5rem; }
.story-card p { margin: 0 10px 10px; color: var(--muted); font-size: 0.95rem; }
.transformations-grid { display: grid; gap: var(--gap); }
.transformation { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.phase h4 { margin-bottom: 8px; }
.phase ul { margin: 0; font-size: 0.95rem; }
.phase.before { border-top: 3px solid rgba(163, 176, 194, 0.5); }
.phase.after { border-top: 3px solid var(--accent); }
.phase.before li::marker { color: var(--muted); }

.home-card-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--sheen), var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: var(--pad);
}
.home-card-grid article img { width: calc(100% + 2 * var(--pad)); max-width: none; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 8px; aspect-ratio: 16 / 8; object-fit: cover; }
.home-card-grid article span { margin-bottom: 0.3rem; color: var(--accent); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; }
.home-card-grid article p { color: var(--muted); font-size: 0.95rem; }
.home-card-grid article a { margin-top: auto; font-weight: 600; }

.course-module { margin: 10px 0 0; padding: var(--pad); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); }
.course-module-title { margin-bottom: 10px; }
.course-lessons { padding: 0; list-style: none; }
.course-lessons li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.course-lessons li:last-child { border-bottom: 0; }

.moa-page { columns: 1; column-gap: var(--gap); }
.moa-page > .page-hero, .moa-page > .moa-intro { column-span: all; }
@media (min-width: 1100px) { .moa-page { columns: 2; } }
@media (min-width: 1700px) { .moa-page { columns: 3; } }
.moa-intro { margin-bottom: 10px; color: var(--muted); text-align: center; }
.moa-article {
  margin-bottom: var(--gap);
  break-inside: avoid;
  padding: var(--pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--sheen), var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.moa-article h3 { color: var(--text); }
.moa-article h4 { margin-top: 10px; }
.moa-article ol, .moa-article ul { padding-left: 1.3em; }
.moa-article li { margin-bottom: 0.5em; }
.moa-article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.moa-article th, .moa-article td { padding: 0.5rem 8px; border: 1px solid var(--border); text-align: left; }

.moa-ul { padding-left: 1.3em; }
.moa-sub-label { color: var(--text); font-weight: 600; }
.moa-table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }

.article-card { column-gap: var(--gap); }
.article-card > :not(.article-body) { break-inside: avoid; }
@media (min-width: 1100px) { .article-card { columns: 2; } }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 0.925rem; font-weight: 500; }
.article-title { margin-bottom: 8px; }
.article-meta { margin-bottom: 10px; color: var(--muted); }
.article-lede { margin-bottom: 10px; color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.article-img { width: 100%; max-height: 340px; aspect-ratio: 21 / 9; margin-bottom: 10px; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-3); }
.article-body { color: var(--text-2); font-size: 0.975rem; line-height: 1.6; }
.article-body img { border-radius: var(--radius-md); }
.article-body table { display: block; overflow-x: auto; }
.article-body pre { overflow-x: auto; }
.category-tag { display: inline-block; margin-bottom: 0.3rem; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hash-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 10px; }
.hash-tags span { padding: 0.2rem 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--glass-soft); color: var(--muted); font-size: 0.8rem; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass-soft);
}
.spec-grid h4 { margin-bottom: 0.2rem; font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.spec-grid p { margin: 0; color: var(--text); }
.support-block { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; }

/* 9. PROGRAMS & CAMPAIGNS ================================================== */
.program-section { margin-bottom: var(--gap); }
.prog-fund-card, .prog-donations-card { margin-top: 10px; padding: var(--pad); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--glass-soft); }
.prog-raised-line { margin: 8px 0 0; color: var(--text-2); }
.prog-stats-row, .camp-stats-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 10px 0 10px; text-align: center; }
.prog-stats-row > div, .camp-stats-row > div { flex: 1 1 80px; min-width: 0; }
.prog-stats-row strong, .camp-stats-row strong { display: block; color: var(--accent-strong); font-size: 1.15rem; }
.prog-stats-row span, .camp-stats-row span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prog-donation-row, .camp-donation-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.prog-donation-row:last-child, .camp-donation-row:last-child { border-bottom: 0; }
.prog-donation-row > div:first-child, .camp-donation-row > div:first-child { min-width: 0; }
.prog-donation-message, .camp-donation-message { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.875rem; }
.prog-donation-meta, .camp-donation-meta { display: flex; flex-direction: column; text-align: right; flex-shrink: 0; }
.prog-donation-amount, .camp-donation-amount { color: var(--accent-strong); font-weight: 700; }

.camp-header-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 8px; }
.camp-meta { color: var(--muted); font-size: 0.95rem; }
.camp-cover { margin: 0 0 10px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.camp-cover img { width: 100%; max-height: 300px; aspect-ratio: 21 / 9; object-fit: cover; }
.camp-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.camp-main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.camp-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.camp-gallery-item { overflow: hidden; }
.camp-gallery-item img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: cover; transition: transform 0.35s var(--ease); }
.camp-gallery-item:hover img { transform: scale(1.03); }
.camp-gallery-item figcaption { margin-top: 0.3rem; color: var(--muted); font-size: 0.78rem; }
.camp-donate-card { position: sticky; top: calc(var(--nav-h) + 16px); }
.camp-raised { margin: 8px 0 0.2rem; color: var(--text); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.camp-raised span { display: block; color: var(--muted); font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; }
.camp-share { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); text-align: center; }
.camp-share-links, .success-share-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 10px; }
.camp-share-links .btn-premium-secondary, .success-share-links .btn-premium-secondary { min-height: 40px; padding: 0.35rem 8px; font-size: 0.82rem; }
.camp-qr { width: 120px; height: 120px; margin: 0 auto; padding: 6px; border-radius: var(--radius-sm); background: #fff; }
.camp-related h3 { margin-bottom: 10px; }
@media (max-width: 992px) {
  .camp-layout { grid-template-columns: minmax(0, 1fr); }
  .camp-donate-card { position: static; }
  .camp-sidebar { order: -1; }
  .camp-cover img { aspect-ratio: 16 / 9; }
}

/* 10. FORMS ================================================================ */
:where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 0.4rem 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, 0.45);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
:where(textarea) { min-height: 78px; resize: vertical; }
:where(select) { cursor: pointer; }
option { background: var(--bg-2); color: var(--text); }
input::placeholder, textarea::placeholder { color: #8a97aa; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.22);
}
input:disabled, select:disabled, textarea:disabled {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: not-allowed;
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-3) inset;
  transition: background-color 9999s;
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
input[type="file"] { width: 100%; max-width: 100%; color: var(--muted); font-size: 0.9rem; }
input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 0.5rem 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--glass-hover);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.contact-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.contact-band.is-stacked { display: grid; }
.contact-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
.contact-form { width: 100%; }
.contact-intro.glass-card > figure { margin-top: 0; }
.contact-intro p:not(.eyebrow) { color: var(--text-2); }
.contact-photo { margin-top: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.form-grid { display: grid; gap: 0 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.form-group { margin-bottom: 8px; min-width: 0; }
.form-group > label, .form-label { display: block; margin-bottom: 0.35rem; color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.form-label .optional, .optional { color: var(--muted); font-weight: 400; }
.form-help { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.8rem; }
.form-error-text, .errorlist { margin: 0.35rem 0 0; color: #fca5a5; font-size: 0.82rem; font-weight: 500; }
.errorlist { padding: 0; list-style: none; }
.errorlist li::marker { content: ""; }
.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.form-check input { margin-top: 3px; }
.form-check label { margin: 0; font-size: 0.9rem; font-weight: 400; cursor: pointer; }
@media (max-width: 860px) { .contact-split { grid-template-columns: minmax(0, 1fr); } }

/* 11. DONATION ============================================================= */
.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: var(--gap);
  align-items: start;
  margin-inline: auto;
}
.donation-kicker { margin: 0 0 0.5rem; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.donation-impact-panel { position: sticky; top: calc(var(--nav-h) + 16px); }
.donation-impact-panel h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.donation-impact-panel > p:not(.donation-kicker) { color: var(--text-2); }
.donation-impact-panel > img { width: 100%; max-height: 240px; aspect-ratio: 16 / 8; margin: 10px 0; border-radius: var(--radius-md); object-fit: cover; background: var(--bg-3); }
.donation-impact-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.donation-impact-list span { padding: 0.3rem 8px; border: 1px solid rgba(32, 201, 151, 0.4); border-radius: var(--radius-pill); background: var(--accent-soft); color: #9cf0d7; font-size: 0.8rem; font-weight: 500; }
.donation-form-heading { margin-bottom: 10px; }
.donation-form-heading h2 { margin-bottom: 0.35rem; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.donation-form-heading > p:last-child { color: var(--muted); font-size: 0.925rem; }
.donation-field { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.donation-field input, .donation-field select, .donation-field textarea { margin-top: 0.35rem; font-weight: 400; }
.donation-form-grid { display: grid; gap: 0 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.donation-field-full { grid-column: 1 / -1; }
.amount-options-v2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; padding: 0; border: 0; }
.amount-options-v2 legend { margin-bottom: 0.45rem; padding: 0; color: var(--text-2); font-size: 0.875rem; font-weight: 500; }
.amount-options-v2 label { margin: 0; cursor: pointer; }
.amount-options-v2 span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 70px;
  padding: 0.5rem 0.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.amount-options-v2 small { color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.amount-options-v2 span:hover { border-color: var(--accent); transform: translateY(-1px); }
.amount-options-v2 input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.donation-small { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.donation-upi-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.donation-upi-block.is-framed { margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--glass-soft); }
.donation-upi-block > p:not(.donation-kicker) { color: var(--text-2); font-size: 0.925rem; }
/* QR codes stay black-on-white so that every UPI app can scan them. */
.upi-qr { width: min(180px, 100%); height: auto; margin: 10px auto; padding: 10px; border-radius: var(--radius-sm); background: #fff; }
.donation-upi-link a { font-weight: 600; }
.upi-amount { color: var(--text); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.amount-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.amount-preset-btn {
  min-height: 50px;
  padding: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.amount-preset-btn:hover { border-color: var(--accent); }
.amount-preset-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
@media (max-width: 992px) {
  .donation-layout { grid-template-columns: minmax(0, 1fr); }
  .donation-impact-panel { position: static; }
  .donation-form { order: -1; }
}
@media (max-width: 560px) { .amount-options-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 12. PAYMENT RESULTS ====================================================== */
.success-card { text-align: center; }
.success-card > h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.success-check { width: 56px; height: 56px; margin: 0 auto 8px; color: var(--accent); }
.success-check.is-pending { color: var(--warm); }
.success-check.is-failed { color: var(--danger); }
.success-check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-check-circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw 0.6s var(--ease) forwards; }
.success-check-mark { stroke-width: 3; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.4s 0.45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-sub { margin-bottom: 10px; color: var(--text-2); }
.success-amount-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: min(260px, 100%);
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--glass-soft);
}
.success-amount-box > span:first-child { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.success-amount-box > strong { color: var(--text); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.success-details { margin: 0 0 8px; text-align: left; }
.success-card .success-details { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.success-row { display: flex; justify-content: space-between; gap: 10px; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.925rem; }
.success-row:last-child { border-bottom: 0; }
.success-row > span { color: var(--muted); flex-shrink: 0; }
.success-row > strong { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.success-pending-note { margin: 0; color: var(--muted); font-size: 0.9rem; font-style: italic; }
.success-share { margin-bottom: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.success-back-link { font-weight: 500; }

/* 13. RECEIPT ============================================================== */
.receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; }
.receipt-card { padding: var(--pad); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--glass); box-shadow: var(--shadow-md); }
.receipt-header { display: flex; align-items: center; gap: 10px; }
.receipt-logo { width: 64px; height: 64px; padding: 2px; border-radius: 14px; background: #fff; object-fit: contain; flex-shrink: 0; }
.receipt-header > div { min-width: 0; }
.receipt-foundation-name { margin: 0; color: var(--text); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; }
.receipt-tagline { margin: 0.1rem 0 0; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.receipt-org-address, .receipt-org-contact { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.45; overflow-wrap: anywhere; }
.receipt-rule { height: 2px; margin: 10px 0 10px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.receipt-title-bar { margin-bottom: 10px; padding: 8px; border: 1px solid rgba(32, 201, 151, 0.4); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-weight: 600; letter-spacing: 0.08em; text-align: center; }
.receipt-section-heading { margin: 10px 0 0.35rem; color: var(--accent); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.receipt-details { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); margin-bottom: 8px; }
.receipt-row { display: flex; justify-content: space-between; gap: 10px; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row > span { color: var(--muted); flex-shrink: 0; max-width: 45%; }
.receipt-row > strong { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.receipt-status-paid { color: var(--accent-strong); }
.receipt-amount-row { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.receipt-amount-box { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-width: 0; padding: 10px; border: 1px solid rgba(32, 201, 151, 0.45); border-radius: var(--radius-md); background: var(--accent-soft); text-align: center; }
.receipt-amount-box span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.receipt-amount-box strong { color: var(--accent-strong); font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; line-height: 1.2; }
.receipt-amount-box em { color: var(--text-2); font-size: 0.76rem; }
.receipt-qr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; }
.receipt-qr-box img { width: 104px; height: 104px; padding: 5px; border-radius: var(--radius-sm); background: #fff; }
.receipt-qr-box span { color: var(--muted); font-size: 0.7rem; text-align: center; }
.receipt-thankyou { margin-bottom: 10px; padding: 8px 10px; border-left: 3px solid var(--warm); border-radius: 8px; background: var(--warm-soft); color: var(--text-2); font-size: 0.875rem; }
.receipt-signature-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.receipt-seal-box { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border: 1.5px dashed var(--warm); border-radius: 50%; color: var(--muted); font-size: 0.7rem; text-align: center; }
.receipt-signature-line { min-width: 180px; padding-top: 0.35rem; border-top: 1px solid var(--muted); color: var(--muted); font-size: 0.8rem; text-align: center; }
.receipt-footer { padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; text-align: center; }
.receipt-footer p { margin-bottom: 0.3rem; }
.receipt-footer-contact { color: var(--accent); font-weight: 500; }
@media (max-width: 480px) {
  .receipt-amount-row { flex-direction: column; }
  .receipt-header { align-items: flex-start; }
}

/* 14. AUTH ================================================================= */
.login-page, .reg-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--gutter);
}
.login-card, .reg-card { width: 100%; }
@media (min-width: 640px) {
  .login-card, .reg-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 14px; align-items: center; }
  .login-header, .reg-header { margin-bottom: 0; }
}
.login-header, .reg-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; text-align: center; }
.login-logo, .reg-logo { width: 56px; height: 56px; margin-bottom: 8px; padding: 3px; border-radius: 18px; background: #fff; object-fit: contain; }
.login-welcome, .reg-welcome { margin-bottom: 0.25rem; color: var(--accent); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.login-title, .reg-title { margin-bottom: 0.3rem; font-size: clamp(1.4rem, 3vw, 1.7rem); }
.login-sub, .reg-sub { margin: 0; color: var(--muted); font-size: 0.925rem; }
.field { position: relative; margin-bottom: 8px; }
.field .field-input { height: 50px; padding: 10px 8px 0.3rem; }
.field-label {
  position: absolute;
  top: 25px;
  left: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}
.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label { top: 13px; color: var(--accent); font-size: 0.72rem; font-weight: 500; }
.pw-wrap .field-input { padding-right: 48px; }
.eye-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.eye-btn:hover { color: var(--text); }
.eye-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eye-btn .icon-eye-off { display: none; }
.eye-btn.is-visible .icon-eye { display: none; }
.eye-btn.is-visible .icon-eye-off { display: block; }
.field-err { display: block; margin-top: 0.3rem; color: #fca5a5; font-size: 0.8rem; }
.non-field-err { margin-bottom: 10px; padding: 8px 8px; border: 1px solid rgba(248, 113, 113, 0.5); border-radius: var(--radius-sm); background: var(--danger-soft); color: #fecaca; font-size: 0.85rem; }
.register-link, .login-link { margin: 10px 0 0; color: var(--muted); font-size: 0.925rem; text-align: center; }
.register-link a, .login-link a { font-weight: 600; }
.profile-picture-field { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: rgba(8, 13, 22, 0.55); }
.profile-picture-field label { display: block; margin-bottom: 0.45rem; color: var(--text-2); font-size: 0.85rem; font-weight: 500; }
.profile-picture-field small { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.75rem; }

.profile-photo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; margin-bottom: var(--gap); }
.profile-photo-card h3 { margin: 0.1rem 0; }
.profile-photo-help { margin: 0; color: var(--muted); }
.profile-photo-preview { width: 72px; height: 72px; border: 2px solid var(--accent); border-radius: 50%; object-fit: cover; }
.profile-photo-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-photo-form label { color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
.profile-photo-form input { flex: 1 1 200px; width: auto; }
.my-donations-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.my-donations-tag { padding: 0.3rem 8px; border: 1px solid rgba(32, 201, 151, 0.4); border-radius: var(--radius-pill); background: var(--accent-soft); color: #9cf0d7; font-size: 0.85rem; font-weight: 500; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.my-donations-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.my-donations-table th, .my-donations-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; text-align: left; }
.my-donations-table th { background: var(--glass-soft); color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.my-donations-table tr:last-child td { border-bottom: 0; }
.table-empty { padding: 12px !important; color: var(--muted); text-align: center !important; }

/* 15. MEMBERSHIP =========================================================== */
.mem-card { margin-bottom: 10px; padding: var(--pad); border: 1px solid; border-radius: var(--radius-lg); background: var(--glass); text-align: center; }
.mem-card.pending { border-color: rgba(245, 185, 113, 0.5); }
.mem-card.approved { border-color: rgba(32, 201, 151, 0.5); }
.mem-card.rejected { border-color: rgba(248, 113, 113, 0.5); }
.mem-icon { margin-bottom: 0.5rem; font-size: 2.6rem; line-height: 1.2; }
.mem-card > p { color: var(--text-2); }
.mem-id-box { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft); }
.mem-id-box span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mem-id-box strong { color: var(--accent-strong); font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: 0.06em; overflow-wrap: anywhere; }
.mem-details { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding: 8px 10px; border-radius: var(--radius-md); background: var(--glass-soft); text-align: left; }
.mem-row { display: flex; justify-content: space-between; gap: 8px; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.mem-row:last-child { border-bottom: 0; }
.mem-row > span { color: var(--muted); flex-shrink: 0; }
.mem-row > strong { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.status-warm { color: var(--warm); }
.status-green { color: var(--accent-strong); }
.approved-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mem-green-promise { margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed rgba(32, 201, 151, 0.5); }
.mem-green-promise h4 { margin-bottom: 8px; color: var(--accent-strong); }
.mem-green-tagline { margin-top: 10px; color: var(--accent-strong); font-weight: 600; text-align: center; }

.mem-form { padding: var(--pad); }
.mem-form.glass-card-like { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); }
.mem-letterhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mem-letterhead-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 280px; }
.mem-letterhead-brand > div { min-width: 0; }
.mem-letterhead-logo { width: 68px; height: 68px; padding: 2px; border-radius: 14px; background: #fff; object-fit: contain; flex-shrink: 0; }
.mem-letterhead-title { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; }
.mem-letterhead-subtitle { margin: 0.15rem 0; color: var(--warm); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mem-letterhead-address { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.mem-photo-box { position: relative; display: flex; align-items: center; justify-content: center; width: 110px; height: 132px; overflow: hidden; border: 1.5px dashed var(--warm); border-radius: 8px; flex-shrink: 0; }
.mem-photo-box-label { padding: 0.5rem; color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-align: center; text-transform: uppercase; cursor: pointer; }
.mem-photo-preview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.mem-photo-input { position: absolute; inset: 0; z-index: 2; height: 100%; opacity: 0; cursor: pointer; }
.mem-filename-note { color: var(--accent-strong); font-weight: 500; }
.mem-letterhead-rule { height: 2px; margin-bottom: 0.5rem; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mem-section-header { margin: 10px 0 10px; padding: 0.5rem 8px; border-left: 3px solid var(--accent-2); border-radius: 6px; background: var(--accent-2-soft); color: var(--text); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }
.mem-section-header-green { border-left-color: var(--accent); background: var(--accent-soft); }
.mem-grid-2, .mem-grid-3 { display: grid; gap: 0 10px; }
.mem-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mem-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mem-radio-inline ul, .mem-radio-inline > div, .mem-checkbox-grid ul, .mem-checkbox-grid > div { display: flex; flex-wrap: wrap; gap: 0.5rem 10px; margin: 0; padding: 0; list-style: none; }
.mem-radio-inline li, .mem-radio-inline > div > div, .mem-checkbox-grid li, .mem-checkbox-grid > div > div { margin: 0; }
.mem-radio-inline label, .mem-checkbox-grid label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; color: var(--text-2); font-size: 0.9rem; cursor: pointer; }
.mem-checkbox-grid { margin-bottom: 10px; }
.mem-declaration-text { color: var(--text-2); font-size: 0.9rem; }
.mem-subsection { margin-bottom: 10px; }
.mem-subsection-title { margin: 0 0 0.25rem; font-size: 1rem; }
.mem-subsection-title.is-small { font-size: 0.9rem; }
.mem-subsection-desc { margin: 0 0 8px; color: var(--muted); font-size: 0.875rem; }
.mem-office-note { color: var(--muted); font-size: 0.85rem; }
.mem-office-note-italic { font-style: italic; }
.mem-tagline { margin: 10px 0; color: var(--accent-strong); font-weight: 600; letter-spacing: 0.03em; text-align: center; }
.mem-sig-preview { display: block; max-width: 160px; max-height: 70px; margin-bottom: 0.4rem; padding: 4px; border-radius: 6px; background: #fff; object-fit: contain; }
.mem-sig-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mem-sig-row > * { flex: 1 1 130px; min-width: 0; }
.mem-doc-link { display: flex; align-items: center; color: var(--accent-strong); font-weight: 500; }
.mem-submit { width: 100%; margin-top: 8px; }
.organ-extra { margin-top: 8px; }
@media (max-width: 768px) {
  .mem-grid-2, .mem-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .mem-letterhead { flex-direction: column; align-items: center; text-align: center; }
  .mem-letterhead-brand { flex-direction: column; flex-basis: auto; }
}

/* 16. DASHBOARD ============================================================ */
:root { --sidebar-w: 236px; --topbar-h: 54px; }

.dash .overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(4, 7, 13, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.dash .overlay.active { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  background: rgba(12, 20, 32, 0.6);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: transform 0.3s var(--ease), visibility 0.3s;
}
.sidebar-header { display: flex; align-items: center; gap: 8px; min-height: var(--topbar-h); padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); flex-shrink: 0; }
.sidebar-header:hover { color: var(--text); }
.sidebar-header img { width: 42px; height: 42px; padding: 2px; border-radius: 11px; background: #fff; object-fit: contain; }
.sidebar-header strong { display: block; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.2; }
.sidebar-header small { display: block; color: var(--muted); font-size: 0.7rem; }
.sidebar-close { display: none; margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--glass-soft); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.nav-links { flex: 1; margin: 0; padding: 0.5rem 8px 10px; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.nav-links li { margin: 0; }
.nav-title { padding: 10px 8px 3px; color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0.25rem 8px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.85rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-item a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: 0.85; }
.nav-item a:hover { background: var(--glass-hover); color: var(--text); }
.nav-item a.active { background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 2px 0 0 var(--accent); }

.main-wrapper { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--sidebar-w); }
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--topbar-h);
  padding: 4px var(--gutter);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.5);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-left strong { overflow: hidden; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-right form { margin: 0; }
.hamburger { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--glass-soft); color: var(--text); cursor: pointer; flex-shrink: 0; }
.hamburger svg, .notif-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--glass-soft); color: var(--text-2); flex-shrink: 0; }
.notif-link:hover { border-color: var(--accent); color: var(--text); }
.nav-badge { position: absolute; top: -6px; right: -6px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #dc2626; color: #fff; font-size: 0.68rem; font-weight: 700; }
.nav-badge[hidden] { display: none; }
.view-site-link { color: var(--text-2); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }

.content { width: 100%; padding: var(--page-y) var(--gutter); flex: 1; min-width: 0; }
.content h1, .content h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; }
.content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.page-head > div { min-width: 0; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.page-actions form { margin: 0; }
.page-subtitle { margin: 0.2rem 0 0; color: var(--muted); }
.page-intro { margin-bottom: 8px; color: var(--muted); }

.card {
  margin-bottom: var(--gap);
  box-shadow: var(--glass-edge);
  padding: var(--pad);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--sheen), var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
/* Single-record forms flow into columns rather than leaving half the screen empty. */
.card-narrow > form, .card-narrower > form { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.card-narrow .form-actions, .card-narrower .form-actions { grid-column: 1 / -1; }
.card-grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-bottom: var(--gap); }
.card-grid-2 > .card { margin-bottom: 0; }
.card-grid-split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-bottom: var(--gap); }
.card-grid-split > .card { margin-bottom: 0; }
@media (max-width: 860px) { .card-grid-split { grid-template-columns: minmax(0, 1fr); } }
.card p { color: var(--text-2); }
.card p strong { color: var(--text); }
.card .amount-lg { color: var(--accent-strong); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.card table, .prog-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.card th, .card td { padding: 0.45rem 8px; border-bottom: 1px solid var(--border); font-size: 0.875rem; text-align: left; vertical-align: middle; }
.card th { color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.card tbody tr:last-child td { border-bottom: 0; }
.card tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.td-actions > *, .td-actions form, .prog-actions > * { display: inline-flex; margin: 2px 4px 2px 0; vertical-align: middle; }
.d-inline { display: inline-flex; margin: 0; }
.card-grid-2 td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cell-truncate { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-wrap { min-width: 220px; white-space: normal; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.3rem 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn.secondary, .btn.neutral { border-color: var(--border-strong); background: var(--glass-soft); color: var(--text); }
.btn.secondary:hover, .btn.neutral:hover { border-color: var(--accent); background: var(--glass-hover); color: var(--text); }
.btn.success { border-color: rgba(32, 201, 151, 0.55); background: var(--accent-soft); color: #9cf0d7; }
.btn.success:hover { background: var(--accent); color: var(--on-accent); }
.btn.warning { border-color: rgba(245, 185, 113, 0.55); background: var(--warm-soft); color: #f8cf9d; }
.btn.warning:hover { background: var(--warm); color: var(--on-warm); }
.btn.danger { border-color: rgba(248, 113, 113, 0.5); background: var(--danger-soft); color: #fca5a5; }
.btn.danger:hover { background: #ef4444; color: #fff; }
.btn.info { border-color: rgba(56, 189, 248, 0.5); background: var(--accent-2-soft); color: #8ad8fb; }
.btn.info:hover { background: var(--accent-2); color: #04202d; }
.btn.whatsapp { border-color: rgba(37, 211, 102, 0.5); background: rgba(37, 211, 102, 0.12); color: #86efac; }
.btn.whatsapp:hover { background: #25d366; color: #052e16; }
.btn-sm { min-height: 34px; padding: 0.25rem 8px; font-size: 0.8rem; }

.stat-tile-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: var(--gap); }
.stat-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--sheen), var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-sm), var(--glass-edge); transition: transform 0.2s var(--ease), border-color 0.2s ease; }
.stat-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat-tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; }
.stat-tile-green .stat-tile-icon { background: var(--accent-soft); color: var(--accent); }
.stat-tile-blue .stat-tile-icon { background: var(--accent-2-soft); color: var(--accent-2); }
.stat-tile-orange .stat-tile-icon { background: var(--warm-soft); color: var(--warm); }
.stat-tile-info { display: flex; flex-direction: column; min-width: 0; }
.stat-tile-label { color: var(--muted); font-size: 0.8rem; }
.stat-tile-value { color: var(--text); font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.stat-tile-green .stat-tile-value { color: var(--text); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.filter-bar input, .filter-bar select { flex: 1 1 170px; width: auto; min-width: 0; min-height: 42px; font-size: 0.9rem; }
.filter-bar input[type="text"], .filter-bar input[type="url"] { flex-grow: 2; flex-basis: 220px; }
.card.has-form { overflow-x: visible; }

.kv-grid { display: grid; gap: 10px 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 10px; }
.kv-label { margin: 0 0 0.2rem; color: var(--muted) !important; font-size: 0.78rem; letter-spacing: 0.03em; }
.kv-value { margin: 0; color: var(--text) !important; }
.kv-value-lg { margin: 0; color: var(--text) !important; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.tone-warm { color: var(--warm) !important; }
.tone-green { color: var(--accent-strong) !important; }
.block-title { margin: 0 0 10px; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.message-block { padding: 10px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass-soft); color: var(--text-2); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gallery-admin-item { position: relative; }
.gallery-admin-item img { width: 120px; height: 90px; border-radius: 8px; object-fit: cover; }
.gallery-admin-item form { position: absolute; top: 4px; right: 4px; margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.inline-form .form-group { flex: 1 1 200px; margin-bottom: 0; }
.signature-preview { max-width: 220px; max-height: 90px; margin-bottom: 0.5rem; padding: 4px; border-radius: 6px; background: #fff; object-fit: contain; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.prog-toolbar { margin-bottom: 10px; }
.prog-search { max-width: 360px; }
.prog-card { padding: 0; overflow: hidden; }
.prog-table-scroll { max-height: 72vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.prog-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-3); }
.prog-thumb { display: block; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.prog-thumb-empty { display: grid; place-items: center; background: var(--bg-3); color: var(--muted); }
.prog-name-cell { min-width: 220px; white-space: normal; }
.prog-name-cell strong { display: block; }
.prog-subtext { color: var(--muted); font-size: 0.78rem; }
.prog-muted { color: var(--muted); }
.prog-progress-track { width: 100px; height: 8px; overflow: hidden; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.09); }
.prog-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.prog-progress-label { color: var(--muted); font-size: 0.78rem; }
.prog-modal-overlay { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 7, 13, 0.72); }
.prog-modal-overlay.active { display: flex; }
.prog-modal { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: var(--pad); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: rgba(12, 20, 32, 0.74); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-lg); }
.prog-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.prog-modal-header h3 { margin: 0; font-size: 1.05rem; }
.prog-modal-close { width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--glass-soft); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.prog-modal-readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 0 0 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--glass-soft); }
.prog-modal-readonly-grid span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.03em; }
.prog-modal-readonly-grid strong { font-size: 0.95rem; }
.prog-modal-note { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; }
.prog-modal-buttons { display: flex; justify-content: flex-end; gap: 0.5rem; }

/* Staff review reuses the applicant's form partial inside the dashboard. */
.dash .mem-form .btn-premium-primary { width: 100%; }

@media (max-width: 1024px) {
  .sidebar { width: min(300px, 86vw); transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow-lg); }
  .sidebar.active { transform: none; visibility: visible; }
  .sidebar-close { display: block; }
  .main-wrapper { margin-left: 0; }
  .hamburger { display: grid; }
}
@media (max-width: 560px) {
  .view-site-link { display: none; }
  .nav-left strong { font-size: 0.95rem; }
  .nav-right .btn { padding-inline: 8px; }
}

/* PAGE BANNERS ============================================================== */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 85px;
  margin-bottom: var(--gap);
  padding: 5px var(--pad);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(105deg, rgba(32, 201, 151, 0.15), rgba(56, 189, 248, 0.07) 55%, rgba(18, 30, 46, 0.3)), rgba(7, 11, 18, 0.5);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), var(--glass-edge);
}
.contact-band > .page-hero { margin-bottom: 0; }
.page-hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.025), 0 0 0 58px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; color: var(--text-2); font-size: 0.72rem; line-height: 1.3; }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--accent-strong); }
.page-hero .eyebrow { margin: 0; color: #7df0cf; font-size: 0.66rem; }
.page-hero .badge { background: rgba(7, 11, 18, 0.6); }
.page-hero h1 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.18; }
.page-hero p:not(.eyebrow) { margin: 0; color: var(--text-2); font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 560px) { .page-hero p:not(.eyebrow) { font-size: 0.78rem; } }
.page-hero .camp-header-badges { margin: 0; }

/* Donation summary */
.donation-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 201, 151, 0.4);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}
.donation-summary span { color: var(--text-2); font-size: 0.85rem; }
.donation-summary strong { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; }

/* Dashboard pagination, charts and collapsed sidebar */
.dash-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 0.85rem; }
.chart-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: var(--gap); }
.chart-grid > .card { margin-bottom: 0; overflow: visible; }
.bar-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 22px; border-bottom: 1px solid var(--border); }
.bar-col { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: center; height: 100%; min-width: 0; outline-offset: 2px; }
.bar { width: min(70%, 44px); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); transition: background-color 0.15s ease; }
.bar-col:hover .bar, .bar-col:focus .bar { background: var(--accent-strong); }
.bar-tip {
  position: absolute;
  bottom: calc(100% - 18px);
  left: 50%;
  z-index: 3;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.12s ease;
}
.bar-col:hover .bar-tip, .bar-col:focus .bar-tip { opacity: 1; }
.bar-labels { display: flex; gap: 2px; margin-top: 4px; color: var(--muted); font-size: 0.72rem; text-align: center; }
.bar-labels span { flex: 1; min-width: 0; }
.status-bar { display: flex; gap: 2px; height: 14px; margin: 8px 0 10px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.status-seg { min-width: 2px; }
.status-seg.paid, .status-dot.paid { background: var(--accent); }
.status-seg.pending, .status-dot.pending { background: var(--warm); }
.status-seg.failed, .status-dot.failed { background: var(--danger); }
.status-legend { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.status-legend li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: 0.875rem; }
.status-legend strong { margin-left: auto; }
.status-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.chart-table summary { margin-top: 8px; color: var(--muted); font-size: 0.8rem; cursor: pointer; }
.nav-item a span { white-space: nowrap; }

@media (min-width: 1025px) {
  .dash.sidebar-collapsed { --sidebar-w: 62px; }
  .dash.sidebar-collapsed .sidebar-header > div,
  .dash.sidebar-collapsed .nav-item a span,
  .dash.sidebar-collapsed .nav-title { display: none; }
  .dash.sidebar-collapsed .nav-item a { justify-content: center; padding-inline: 0; }
  .dash.sidebar-collapsed .sidebar-header { justify-content: center; padding-inline: 0; }
  .dash.sidebar-collapsed .nav-links { padding-top: 8px; }
  .hamburger { display: grid; }
}

/* DEMO CHECKOUT ============================================================= */
.checkout-page { --checkout: #663aa8; --checkout-strong: #7f4dbf; }
.checkout-page::after {
  background:
    radial-gradient(50vmax 40vmax at 8% 0%, rgba(124, 77, 189, 0.32), transparent 62%),
    radial-gradient(46vmax 36vmax at 100% 100%, rgba(32, 201, 151, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.68), rgba(12, 20, 32, 0.76));
}
.demo-banner { padding: 7px var(--gutter); border-bottom: 1px solid rgba(245, 185, 113, 0.5); background: rgba(92, 60, 15, 0.8); color: #fde7c7; font-size: 0.85rem; text-align: center; }
.demo-banner strong { color: #fff; }
.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--gap);
  align-items: start;
  padding: var(--page-y) var(--gutter);
}
.checkout-merchant { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.checkout-merchant img { width: 44px; height: 44px; padding: 2px; border-radius: 10px; background: #fff; object-fit: contain; flex-shrink: 0; }
.checkout-merchant strong { display: block; font-family: var(--font-display); }
.checkout-label { display: block; margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.checkout-amount { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--glass-elevated); }
.checkout-amount > strong { color: var(--text); font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; overflow-wrap: anywhere; }
.checkout-summary .success-details { margin-bottom: 10px; }
.checkout-secure { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--muted); font-size: 0.8rem; }
.checkout-secure svg { margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.checkout-pay h1 { font-size: 1.2rem; margin-bottom: 8px; }
.checkout-methods { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-bottom: 10px; }
.checkout-method { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--glass-elevated); }
.checkout-method h2 { font-size: 0.95rem; margin-bottom: 6px; }
.checkout-qr { width: 130px; margin: 4px auto; padding: 6px; }
.checkout-buttons { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-top: 6px; }
.checkout-buttons .btn-premium-primary { background: linear-gradient(135deg, var(--checkout), var(--checkout-strong)); color: #fff; box-shadow: 0 8px 22px rgba(124, 77, 189, 0.3); }
.checkout-buttons .btn-premium-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(124, 77, 189, 0.42); }
.checkout-cancel { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); }
.checkout-cancel:hover { color: #fecaca; border-color: var(--danger); }
.checkout-actions { margin: 0; }
@media (max-width: 760px) { .checkout-shell { grid-template-columns: minmax(0, 1fr); } }

/* 17. SHORT LANDSCAPE SCREENS (phones held sideways) ======================== */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 54px; --topbar-h: 50px; }
  .premium-logo { width: 40px; height: 40px; }
  .premium-brand-text small { display: none; }
  .hero-slide { min-height: 0; }
  .login-page, .reg-page { align-items: flex-start; }
  .login-logo, .reg-logo { width: 44px; height: 44px; }
  .mobile-nav-links > li > a, .submenu-toggle { min-height: 44px; }
  .nav-item a { min-height: 38px; }
  .nav-title { padding-top: 8px; }
  .sidebar-header { min-height: var(--topbar-h); padding-block: 0.4rem; }
  .camp-donate-card, .donation-impact-panel { position: static; }
  .prog-modal { max-height: 96vh; }
}
@media (min-width: 568px) and (max-height: 500px) and (orientation: landscape) {
  .offcanvas-header { padding-block: 0.35rem; }
  .hero-split-inner { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); }
  .hero-text-col { text-align: left; }
  .hero-btns { justify-content: flex-start; }
  .hero-donate-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .donate-full { grid-column: span 2; }
  .donate-submit-btn { grid-column: auto; }
  .amount-options-v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* DESKTOP SPACING & HOME PAGE ================================================
   Everything here applies only at the desktop breakpoint. Phones and tablet
   portrait keep the compact layout defined above: the two elements below exist
   only for desktop and stay out of the way everywhere else. */
.hero-media-col, .home-donate { display: none; }

@media (min-width: 992px) and (min-height: 501px) {
  body:not(.dash):not(.checkout-page) { --gutter: 24px; --gap: 14px; --pad: 14px; --section-y: 9px; --page-y: 18px; }

  /* Home page: spacious rhythm, 26px between sections, content in a balanced column. */
  body.home-landing { --home-width: 1400px; --home-gap: 26px; --gap: 22px; --pad: 20px; --section-y: 0px; }
  .home-landing .premium-navbar,
  .home-landing .footer-grid,
  .home-landing .footer-bottom { max-width: calc(var(--home-width) + var(--gutter) * 2); margin-inline: auto; }
  .home-landing .section-heading { margin-bottom: 18px; }
  .home-landing .section-heading h2 { margin-bottom: 6px; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .home-landing .section-heading p:not(.eyebrow) { color: var(--text-2); }
  .home-landing .eyebrow { margin-bottom: 6px; }
  .home-landing .glass-card p { line-height: 1.6; }

  /* Sections: each is its own band, so the page doesn't read as one long card. */
  .home-landing .band-plain,
  .home-landing .band-deep,
  .home-landing .band-glow { margin-top: var(--home-gap); width: 100%; max-width: none; background: none; }
  .home-landing .band-plain { padding: 0 var(--gutter); }
  .home-landing .band-deep,
  .home-landing .band-glow {
    padding: 24px var(--gutter);
    border-block: 1px solid var(--border);
    box-shadow: var(--glass-edge);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
  }
  .home-landing .band-deep { background: rgba(7, 11, 18, 0.5); }
  .home-landing .band-glow { background: linear-gradient(110deg, rgba(32, 201, 151, 0.14), rgba(56, 189, 248, 0.09) 60%, rgba(18, 30, 46, 0.35)), rgba(7, 11, 18, 0.35); }
  .home-landing .home-section > .container,
  .home-landing #board-of-directors > * { max-width: var(--home-width); margin-inline: auto; }
  .home-landing .home-section > .container { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .home-landing #board-of-directors { width: 100%; margin: var(--home-gap) 0 0; padding: 24px var(--gutter); border-width: 1px 0; border-radius: 0; }
  .home-landing .about-board-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .home-landing .about-board-card { flex: 0 0 170px; }
  .home-landing .about-board-note { margin-top: 16px; }
  .home-landing .programs-grid { gap: var(--gap); }
  .home-landing #governance .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-landing .program-card-img { aspect-ratio: 16 / 9; }

  .home-landing .stats-bar-grid,
  .home-landing .impact-section-layout {
    width: calc(100% - var(--gutter) * 2);
    max-width: var(--home-width);
    margin: var(--home-gap) auto 0;
  }
  .home-landing .stats-bar-grid { gap: 18px; padding: 18px 22px; }
  .home-landing .impact-section-layout { gap: 24px; padding: 24px; }
  .home-landing .cta-banner-wrapper { margin-top: var(--home-gap); padding: 0 var(--gutter) var(--home-gap); }
  .home-landing .cta-banner { max-width: var(--home-width); margin-inline: auto; padding: 26px 28px; }
  .home-landing .membership-cta-banner { margin-top: var(--gap); }

  /* Donation section */
  .home-donate { display: block; }
  .home-donate-inner { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 28px; align-items: center; max-width: var(--home-width); margin-inline: auto; }
  .home-donate-copy h2 { margin-bottom: 8px; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .home-donate-copy > p:not(.eyebrow) { margin-bottom: 14px; color: var(--text-2); line-height: 1.6; }
  .home-donate .hero-donate-card { padding: 18px; }
  .home-donate .donate-amount-grid { gap: 10px; margin-bottom: 12px; }
  .home-donate .donate-amt-btn span { min-height: 50px; }
  .home-donate .hero-donate-form { gap: 10px 12px; }
  .home-donate .hero-donate-form input, .home-donate .hero-donate-form select { min-height: 42px; font-size: 0.95rem; }
  .home-donate .donate-submit-btn { min-height: 42px; }
}

/* DESKTOP HERO ===============================================================
   Matches the size-based desktop breakpoint above, and also any mouse-driven
   screen from 768px up. Scaled laptops and narrower windows fall below the size
   check, and would otherwise get the compact tablet hero. Phones and tablets
   have no fine hovering pointer, so they keep the compact layout. */
@media (min-width: 992px) and (min-height: 501px), (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .home-landing .hero-split-inner,
  .home-landing .community-slide-content { max-width: calc(1400px + var(--gutter) * 2); margin-inline: auto; }

  /* Slide 1: words left, donation form right */
  .home-landing .hero-slide { min-height: 430px; }
  .home-landing .hero-split-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 2.6vw, 36px); padding-block: 24px 46px; }
  .home-landing .hero-bg-overlay {
    background:
      radial-gradient(60% 90% at 78% 40%, rgba(32, 201, 151, 0.16), transparent 70%),
      radial-gradient(50% 80% at 10% 100%, rgba(56, 189, 248, 0.14), transparent 70%),
      linear-gradient(100deg, rgba(7, 11, 18, 0.93) 0%, rgba(7, 11, 18, 0.84) 55%, rgba(7, 11, 18, 0.76) 100%);
  }
  .home-landing .hero-main-title { margin-bottom: 12px; font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.08; }
  .home-landing .hero-main-sub { max-width: 58ch; margin-bottom: 14px; font-size: 1.05rem; line-height: 1.55; }
  .home-landing .hero-btns { gap: 10px 16px; }
  .home-landing .hero-form-col .hero-donate-card { padding: 16px; }
  .home-landing .hero-form-col .donate-amount-grid { gap: 10px; margin-bottom: 12px; }
  .home-landing .hero-form-col .donate-amt-btn span { min-height: 50px; }
  .home-landing .hero-form-col .hero-donate-form { gap: 10px 12px; }
  .home-landing .hero-form-col .hero-donate-form input,
  .home-landing .hero-form-col .hero-donate-form select { min-height: 42px; font-size: 0.95rem; }
  .home-landing .hero-form-col .donate-submit-btn { min-height: 42px; }

  /* Slide 2: community photos centred in a row instead of the phone-sized orbit.
     Photos shrink as members are added, so the row stays balanced at any count. */
  .home-landing #hero-slide-2 { align-items: center; }
  .home-landing .community-slide-content { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 14px; padding-block: 24px 46px; }
  .home-landing .community-slide-title { margin: 0; font-size: clamp(2rem, 3vw, 2.8rem); }
  .home-landing .community-slide-sub { font-size: 1.05rem; color: var(--text-2); }
  .home-landing .community-slide-content .community-avatars-wrap {
    --avatar: clamp(140px, 15vw, 210px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 28px);
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-block: 8px;
  }
  .home-landing .community-slide-content .community-avatars-wrap:has(.community-avatar-float:nth-child(5)) { --avatar: clamp(110px, 11vw, 150px); }
  .home-landing .community-slide-content .community-avatars-wrap:has(.community-avatar-float:nth-child(9)) { --avatar: clamp(84px, 8.4vw, 118px); }
  .home-landing .community-avatar-orbit { position: static; display: contents; animation: none; }
  .home-landing .community-avatar-float,
  .home-landing .community-avatar-main {
    position: relative;
    top: auto;
    left: auto;
    flex: none;
    width: var(--avatar);
    height: var(--avatar);
    border-width: 3px;
    box-shadow: var(--shadow-md);
    transform: none;
    transition: transform 0.25s var(--ease);
  }
  .home-landing .community-avatar-main { order: -1; }
  .home-landing .community-avatar-float:hover { transform: translateY(-4px); }
  .home-landing .community-avatar-float img { animation: none; }
  .home-landing .community-empty-msg { position: static; transform: none; }

  .home-landing .hero-slider-dots { bottom: 8px; }
  .home-landing .hero-slider-arrow { bottom: 6px; }
}

/* Wide desktop: the hero form fits on two rows. */
@media (min-width: 1200px) and (min-height: 501px), (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .home-landing .hero-form-col .hero-donate-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-landing .hero-form-col .donate-full { grid-column: auto; }
  .home-landing .hero-form-col .hero-donate-form input::placeholder { font-size: 0.85rem; }
}

@media (min-width: 1200px) and (min-height: 501px) {
  .home-landing #governance .programs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 19. REFERENCE THEME — navy gradient glass (client mock-up) ================
   Override layer for the public site. Templates and content are untouched;
   the dashboard (body.dash) and the demo checkout keep their own look.
   Mock-up: blue glow top-left, orange glow top-right, green / blue glow lower
   down, floating pill navigation, large rounded glass panels, tall photo cards
   with rounded-square icons, blue-to-orange call-to-action banner.
   ========================================================================== */

/* 19.1 Backdrop and tokens ------------------------------------------------ */
html:has(body:not(.dash):not(.checkout-page)) {
  min-height: 100%;
  background-color: #061326;
  background-image:
    radial-gradient(900px 720px at -6% 0, rgba(30, 92, 220, 0.55), transparent 70%),
    radial-gradient(820px 660px at 106% 280px, rgba(240, 124, 40, 0.44), transparent 70%),
    radial-gradient(900px 800px at 104% 1500px, rgba(24, 160, 130, 0.24), transparent 70%),
    radial-gradient(900px 800px at -8% 2700px, rgba(30, 92, 220, 0.26), transparent 70%),
    radial-gradient(1000px 800px at 106% 100%, rgba(32, 98, 220, 0.38), transparent 70%);
  background-repeat: no-repeat;
}
body:not(.dash):not(.checkout-page)::before,
body:not(.dash):not(.checkout-page)::after { display: none; }

body:not(.dash):not(.checkout-page) {
  --accent: #43c65b;
  --accent-strong: #6ad983;
  --accent-soft: rgba(67, 198, 91, 0.16);
  --accent-2: #3b8cf5;
  --accent-2-soft: rgba(59, 140, 245, 0.18);
  --warm: #f58220;
  --warm-soft: rgba(245, 130, 32, 0.18);
  --text-2: #e3ebf6;
  --muted: #b4c3d8;
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --glass: rgba(16, 42, 72, 0.46);
  --glass-strong: rgba(8, 24, 44, 0.9);
  --radius-md: 18px;
  --radius-lg: 26px;
  --panel-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035) 46%, rgba(9, 30, 56, 0.42));
  --panel-border: 1px solid rgba(255, 255, 255, 0.18);
  --panel-shadow: 0 18px 46px rgba(0, 8, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --grad-blue-green: linear-gradient(100deg, #2b7ff2 0%, #35a79f 58%, #48c55a 100%);
  --grad-orange: linear-gradient(100deg, #f26a12 0%, #f99a1f 100%);
}

/* 19.2 Buttons and cards -------------------------------------------------- */
body:not(.dash):not(.checkout-page) .btn-premium-primary,
body:not(.dash):not(.checkout-page) .hero-btn-primary {
  background: var(--grad-blue-green);
  box-shadow: 0 10px 28px rgba(47, 128, 237, 0.32);
}
body:not(.dash):not(.checkout-page) .btn-donate-premium,
body:not(.dash):not(.checkout-page) .donate-submit-btn,
body:not(.dash):not(.checkout-page) .btn-cta-orange {
  background: var(--grad-orange);
  box-shadow: 0 10px 26px rgba(242, 106, 18, 0.34);
}
body:not(.dash):not(.checkout-page) .btn-premium-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.24);
}
body:not(.dash):not(.checkout-page) .glass-card,
body:not(.dash):not(.checkout-page) .card-surface {
  border: var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

/* 19.3 Floating pill navigation (desktop) --------------------------------- */
@media (max-width: 1279.98px) {
  body:not(.dash):not(.checkout-page) .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 19, 38, 0.72);
  }
}
@media (min-width: 1280px) {
  body:not(.dash):not(.checkout-page) { --nav-h: 90px; }

  body:not(.dash):not(.checkout-page) .site-header {
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(5, 17, 36, 0.7), rgba(5, 17, 36, 0));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .premium-navbar { gap: 0; padding-block: 16px; }
  .premium-brand { flex: 1 1 auto; gap: 12px; }
  .premium-logo { width: 58px; height: 58px; padding: 3px; border-radius: 16px; }
  .premium-brand-text strong { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1.12; }
  .premium-brand-text small { margin-top: 4px; font-size: 0.7rem; color: #dce7f6; }

  /* The link list and the action buttons are drawn as the two halves of one capsule. */
  .premium-nav-links,
  .premium-nav-actions {
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)), rgba(8, 26, 50, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 8, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .premium-nav-links {
    flex: 0 1 auto;
    gap: 2px;
    padding: 0 6px 0 9px;
    border-right: 0;
    border-radius: 999px 0 0 999px;
  }
  .premium-nav-actions {
    gap: 2px;
    padding: 0 8px 0 2px;
    border-left: 0;
    border-radius: 0 999px 999px 0;
  }
  .premium-nav-links > li > a,
  .premium-text-link {
    min-height: 42px;
    padding: 0 clamp(10px, 1.1vw, 18px);
    border-radius: 999px;
    color: #e8effa;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .premium-nav-links > li > a:hover,
  .premium-text-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .premium-nav-links > li > a.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  .premium-nav-links > li > a.active::after { display: none; }
  .btn-donate-premium { min-height: 44px; padding: 0 22px; font-size: 0.95rem; }
}

/* 19.4 Home: hero ---------------------------------------------------------- */
.home-landing .ticker {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(227, 235, 246, 0.6);
  font-size: 0.74rem;
}
.home-landing .hero-slider-arrow,
.home-landing .hero-dot::after { border-color: rgba(255, 255, 255, 0.4); }
.home-landing .hero-slider-arrow { background: rgba(255, 255, 255, 0.08); }
.home-landing .hero-accent-green { color: #43c65b; }
.home-landing .hero-accent-blue { color: #2f80ed; }
.home-landing .hero-donate-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.09));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0, 10, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.home-landing .hero-donate-card input,
.home-landing .hero-donate-card select { border-radius: 14px; background-color: rgba(255, 255, 255, 0.07); }
.home-landing .donate-amt-btn span { border-radius: 14px; }
.home-landing .hero-donate-card .donate-submit-btn { border-radius: 999px; }

@media (min-width: 992px) and (min-height: 501px), (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .home-landing .hero-slide {
    min-height: 640px;
    background-position: center 18%;
    /* Soft edges: the photo melts into the page like the mock-up instead of ending in a hard line. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%);
  }
  .home-landing .hero-bg-overlay {
    background:
      radial-gradient(55% 80% at 100% 15%, rgba(245, 130, 32, 0.34), transparent 65%),
      radial-gradient(60% 80% at 0% 100%, rgba(30, 92, 220, 0.4), transparent 65%),
      radial-gradient(50% 70% at 88% 100%, rgba(67, 198, 91, 0.2), transparent 70%),
      linear-gradient(90deg, rgba(5, 18, 40, 0.88) 0%, rgba(5, 18, 40, 0.5) 40%, rgba(5, 18, 40, 0.26) 62%, rgba(5, 18, 40, 0.5) 100%);
  }
  .home-landing .hero-split-inner { padding-block: 90px 100px; }
  .home-landing .br-lg { display: inline; }
  .home-landing .hero-main-title {
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 4.7vw, 4.3rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.02em;
  }
  .home-landing .hero-main-sub { max-width: 30em; margin-bottom: 30px; color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; line-height: 1.65; }
  .home-landing .hero-btns { gap: 14px 26px; }
  .home-landing .hero-btn-primary {
    justify-content: space-between;
    min-width: 200px;
    min-height: 58px;
    padding: 0 28px;
    font-size: 1rem;
  }
  .home-landing .hero-btn-ghost { gap: 14px; font-size: 1rem; }
  .home-landing .hero-play-icon { width: 48px; height: 48px; border: 2px solid #fff; background: transparent; font-size: 0.8rem; }
  .home-landing .hero-form-col .hero-donate-card { padding: 22px; }
}
@media (min-width: 992px) and (min-height: 501px) {
  .home-landing .hero-slide {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%), linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 90px), transparent 100%), linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
    mask-composite: intersect;
  }
  .home-landing .hero-split-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: clamp(24px, 4vw, 70px);
    padding-inline: clamp(24px, 6vw, 96px);
  }
  .home-landing .hero-form-col .hero-donate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-landing .hero-form-col .donate-full,
  .home-landing .hero-form-col .donate-submit-btn { grid-column: 1 / -1; }
  .home-landing .hero-form-col .donate-submit-btn { min-height: 48px; }
}

/* 19.5 Home: stats bar ----------------------------------------------------- */
.home-landing .stats-bar-grid { border-radius: 28px; }
.home-landing .stats-bar-grid .stat-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-landing .stats-bar-grid .stat-icon svg { width: 28px; height: 28px; }
.home-landing .stats-bar-grid .stat-item:nth-child(1) .stat-icon { background: linear-gradient(145deg, rgba(70, 130, 255, 0.45), rgba(40, 80, 190, 0.35)); color: #6fb4ff; }
.home-landing .stats-bar-grid .stat-item:nth-child(2) .stat-icon { background: linear-gradient(145deg, rgba(67, 198, 91, 0.4), rgba(30, 110, 60, 0.35)); color: #58d36f; }
.home-landing .stats-bar-grid .stat-item:nth-child(3) .stat-icon { background: linear-gradient(145deg, rgba(245, 130, 32, 0.42), rgba(130, 70, 20, 0.35)); color: #ff9a3d; }
.home-landing .stats-bar-grid .stat-item:nth-child(4) .stat-icon { background: linear-gradient(145deg, rgba(150, 110, 240, 0.42), rgba(70, 50, 150, 0.35)); color: #b093ff; }
.home-landing .stats-bar-grid .stat-item:nth-child(5) .stat-icon { background: linear-gradient(145deg, rgba(40, 200, 190, 0.4), rgba(20, 110, 110, 0.35)); color: #4fe0d4; }
.home-landing .stat-info h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 600; line-height: 1.15; }
.home-landing .stat-info p { color: #dbe6f5; font-size: 0.9rem; }
@media (min-width: 992px) {
  .home-landing .stats-bar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 22px 8px; }
  .home-landing .stats-bar-grid .stat-item { gap: 14px; padding-inline: 22px; }
  .home-landing .stats-bar-grid .stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.12); }
}

/* 19.6 Home: section panels ------------------------------------------------ */
.home-section > .container,
#board-of-directors {
  border: var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}
.home-landing .section-heading .eyebrow {
  padding: 6px 16px;
  border: 1px solid rgba(88, 150, 255, 0.45);
  border-radius: 999px;
  background: rgba(40, 100, 220, 0.2);
  color: #5aa2ff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}
@media (min-width: 992px) and (min-height: 501px) {
  .home-landing .band-plain,
  .home-landing .band-deep,
  .home-landing .band-glow,
  .home-landing #board-of-directors {
    width: calc(100% - var(--gutter) * 2);
    max-width: var(--home-width);
    margin: var(--home-gap) auto 0;
    padding: 30px;
    border: var(--panel-border);
    border-radius: 30px;
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
  .home-landing .band-glow {
    background: linear-gradient(110deg, rgba(67, 198, 91, 0.12), rgba(59, 140, 245, 0.1) 60%, rgba(255, 255, 255, 0.03)), var(--panel-bg);
  }
  .home-landing .home-section > .container,
  .home-landing #board-of-directors > * { max-width: none; }
}

/* 19.7 Home: programs ------------------------------------------------------
   Header row: pill label and title on the left, "View All Programs" on the right.
   Cards: photo on top that melts into a tinted glass body, rounded-square icon
   straddling the join, then title, text and "Read More". */
.home-landing #home-programs > .container { position: relative; }
.home-landing #home-programs .section-heading { text-align: left; }
.home-landing #home-programs .section-heading h2 { margin-top: 10px; font-size: clamp(1.8rem, 2.4vw, 2.4rem); font-weight: 600; }
.home-landing #home-programs .section-heading .eyebrow { color: #5aa2ff; }
.home-landing #home-programs .programs-grid { gap: 22px; margin-top: 22px; }

#home-programs .program-card:has(> .program-card-img) {
  --card-glow: transparent;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 44, 74, 0.55), rgba(6, 22, 40, 0.88));
  box-shadow: 0 18px 40px rgba(0, 8, 24, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#home-programs .program-card:has(> .program-card-img) > .program-card-img {
  inset: 0 0 auto 0;
  height: 236px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
#home-programs .program-card:has(> .program-card-img)::before {
  background: linear-gradient(180deg, transparent 0, transparent 44%, rgba(6, 22, 40, 0.5) 60%, rgba(6, 22, 40, 0.18) 100%);
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  #home-programs .program-card:has(> .program-card-img)::before {
    background: linear-gradient(180deg, transparent 0, transparent 44%, color-mix(in srgb, var(--card-accent) 24%, rgba(6, 22, 40, 0.78)) 62%, color-mix(in srgb, var(--card-accent) 14%, rgba(6, 22, 40, 0.5)) 100%);
  }
}
#home-programs .program-card:has(> .program-card-img)::after { display: none; }
#home-programs .program-card:has(> .program-card-img) .program-card-content {
  min-height: 440px;
  padding: 206px 22px 24px;
}
#home-programs .program-card:has(> .program-card-img) .program-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 72%, #fff), var(--card-accent));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#home-programs .program-card:has(> .program-card-img) .program-card-icon svg { width: 28px; height: 28px; }
#home-programs .program-card:has(> .program-card-img) .program-card-content > h4 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}
#home-programs .program-card:has(> .program-card-img) .program-card-content > p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.97rem;
  line-height: 1.6;
}
#home-programs .program-card:has(> .program-card-img) .program-card-content > a {
  font-size: 0.97rem;
  font-weight: 500;
}
@media (min-width: 992px) and (min-height: 501px) {
  .home-landing #home-programs > .container > .text-center {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    text-align: right;
  }
  .home-landing #home-programs > .container > .text-center .btn-premium-secondary {
    min-width: 210px;
    min-height: 54px;
    padding: 0 24px;
    font-size: 0.97rem;
  }
}

/* 19.8 Home: impact in action --------------------------------------------- */
.home-landing .impact-section-layout { border-radius: 30px; align-items: center; }
.home-landing .programs-info h2 { font-weight: 500; line-height: 1.2; }
.home-landing .programs-info p { color: #e3ebf6; }
.home-landing .video-thumb-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 8, 24, 0.38);
}
.home-landing .play-icon-btn {
  width: 56px;
  height: 56px;
  padding-left: 4px;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.home-landing .video-thumb-card:hover .play-icon-btn { background: rgba(255, 255, 255, 0.9); color: #0b2a4a; }
.home-landing .video-thumb-caption { margin-top: 12px; color: #fff; font-size: 0.97rem; text-align: center; }

/* 19.9 Home: call-to-action banner ---------------------------------------- */
.home-landing .cta-banner {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: linear-gradient(100deg, #2255b8 0%, rgba(34, 85, 184, 0.88) 28%, rgba(150, 100, 70, 0.8) 62%, #ee8420 100%);
  box-shadow: 0 18px 44px rgba(0, 8, 24, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.home-landing .cta-icon-large {
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(120, 190, 255, 0.75), rgba(40, 110, 200, 0.7));
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 20, 60, 0.35);
}
.home-landing .cta-banner-content { gap: 22px; }
.home-landing .cta-banner-content h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 500; }
.home-landing .cta-banner-content p { color: #fff; font-size: 1.05rem; }
.home-landing .cta-actions .btn-premium-secondary,
.home-landing .cta-actions .btn-cta-orange { min-height: 56px; padding-inline: 28px; }
.home-landing .cta-actions .btn-premium-secondary { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }

/* 19.10 Footer ------------------------------------------------------------- */
body:not(.dash):not(.checkout-page) .site-footer {
  margin-top: var(--gap);
  border-top: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:not(.dash):not(.checkout-page) .footer-grid {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 30px 34px;
  border: var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 50%, rgba(6, 22, 42, 0.5));
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-footer h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.footer-brand strong { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.1em; }
.footer-brand .premium-logo { width: 58px; height: 58px; border-radius: 16px; }
.footer-about > p { color: #e3ebf6; }
.footer-links a,
.footer-causes a { min-height: 34px; gap: 10px; color: #dbe6f5; }
.footer-links a::before,
.footer-causes a::before { content: "\203A"; color: #b4c3d8; font-size: 1.1rem; line-height: 1; }
.footer-socials a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: transparent; }
.footer-newsletter-form {
  position: relative;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.footer-newsletter-form input[type="email"] { min-height: 52px; border: 0; border-radius: 0; background: transparent; }
.footer-newsletter-form button {
  width: 56px;
  height: 52px;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.footer-newsletter-form button:hover { background: rgba(255, 255, 255, 0.16); }
.footer-bottom { border-top: 0; color: #c3d0e2; }
.footer-top {
  top: auto;
  right: 44px;
  bottom: 64px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, #2d6ee6, #1b4bb5);
  box-shadow: 0 10px 24px rgba(0, 20, 70, 0.45);
  color: #fff;
}
@media (min-width: 992px) {
  body:not(.dash):not(.checkout-page) .footer-grid { grid-template-columns: 1.5fr 0.8fr 1.1fr 1.3fr; gap: 0; }
  .footer-links,
  .footer-causes,
  .footer-newsletter { padding-inline: 34px; }
  .footer-causes,
  .footer-newsletter { border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-about { padding-right: 26px; }
}

/* 20. INNER PAGES — the home-page reference theme, applied to every other page ==
   index.html gets its panels, pill headings and photo cards from rules scoped to
   body.home-landing. Every other public page (about, programs, contact, donate,
   campaigns, events, blog, auth, legal ...) only carries body.home-page, so none
   of that reached them. This layer gives them the same look without changing a
   single template. The dashboard (body.dash) and demo checkout are untouched.
   ========================================================================== */

/* 20.1 Section panels: one large rounded glass panel per section ------------ */
body.home-page:not(.home-landing) { --inner-width: 1400px; }

body.home-page:not(.home-landing) .main-content .section,
body.home-page:not(.home-landing) .main-content .contact-band,
body.home-page:not(.home-landing) .main-content .moa-page {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--inner-width);
  margin: var(--gap) auto 0;
  padding: var(--pad);
  border: var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
/* A section nested inside another one must not become a panel inside a panel. */
body.home-page:not(.home-landing) .main-content .section .section {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.home-page:not(.home-landing) .main-content > :last-child { margin-bottom: 0; }

@media (min-width: 992px) {
  body.home-page:not(.home-landing) .main-content .section,
  body.home-page:not(.home-landing) .main-content .contact-band,
  body.home-page:not(.home-landing) .main-content .moa-page { padding: 26px 30px 30px; border-radius: 30px; }
}

/* 20.2 Page banner --------------------------------------------------------- */
body.home-page:not(.home-landing) .page-hero {
  min-height: 0;
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(60% 150% at 100% 0%, rgba(245, 130, 32, 0.26), transparent 65%),
    radial-gradient(60% 150% at 0% 100%, rgba(30, 92, 220, 0.36), transparent 65%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 34px rgba(0, 8, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.home-page:not(.home-landing) .page-hero h1 { font-size: clamp(1.45rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.15; }
body.home-page:not(.home-landing) .page-hero p:not(.eyebrow) { max-width: 72ch; color: #e3ebf6; font-size: 0.97rem; line-height: 1.5; }
body.home-page:not(.home-landing) .crumbs { font-size: 0.8rem; color: #d3e0f2; }
body.home-page:not(.home-landing) .page-hero .eyebrow,
body.home-page:not(.home-landing) .section-heading .eyebrow {
  padding: 5px 14px;
  border: 1px solid rgba(88, 150, 255, 0.45);
  border-radius: 999px;
  background: rgba(40, 100, 220, 0.2);
  color: #5aa2ff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
body.home-page:not(.home-landing) .section-heading { margin-bottom: 18px; }
body.home-page:not(.home-landing) .section-heading h2 { font-weight: 600; }
body.home-page:not(.home-landing) .section-heading p:not(.eyebrow) { color: var(--text-2); }

/* 20.3 Programme cards: photo on top melting into a tinted glass body -------- */
body.home-page:not(.home-landing) .program-list,
body.home-page:not(.home-landing) .completed-showcase,
body.home-page:not(.home-landing) .programs-grid,
body.home-page:not(.home-landing) .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) {
  --card-glow: transparent;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 44, 74, 0.55), rgba(6, 22, 40, 0.88));
  box-shadow: 0 18px 40px rgba(0, 8, 24, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) > .program-card-img {
  inset: 0 0 auto 0;
  height: 230px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img)::before {
  background: linear-gradient(180deg, transparent 0, transparent 44%, rgba(6, 22, 40, 0.5) 60%, rgba(6, 22, 40, 0.18) 100%);
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  body.home-page:not(.home-landing) .program-card:has(> .program-card-img)::before {
    background: linear-gradient(180deg, transparent 0, transparent 44%, color-mix(in srgb, var(--card-accent) 24%, rgba(6, 22, 40, 0.78)) 62%, color-mix(in srgb, var(--card-accent) 14%, rgba(6, 22, 40, 0.5)) 100%);
  }
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img)::after { display: none; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content {
  justify-content: flex-start;
  min-height: 430px;
  padding: 200px 22px 24px;
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-icon {
  position: relative;
  inset: auto;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  background: var(--card-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-icon {
    background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 72%, #fff), var(--card-accent));
  }
}
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-icon svg { width: 28px; height: 28px; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content > h4 { margin-bottom: 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content > p { margin-bottom: 14px; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.55; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content > .program-progress { margin: 0 0 14px; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content > .program-progress p { margin: 0.45rem 0 0; }
body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content > a { margin-top: auto; }

body.home-page:not(.home-landing) .program-section + .program-section { margin-top: 26px; }
body.home-page:not(.home-landing) .program-section > h3 { margin-bottom: 16px; font-weight: 600; }

/* 20.4 Form fields: softer, rounder, same as the home donation card ---------- */
body.home-page:not(.home-landing) .main-content :where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select, textarea) {
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.07);
}
body.home-page:not(.home-landing) .main-content .donation-impact-panel > img,
body.home-page:not(.home-landing) .main-content .article-img,
body.home-page:not(.home-landing) .main-content .camp-cover img,
body.home-page:not(.home-landing) .main-content .contact-photo { border-radius: 20px; }

/* 20.5 Small screens ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  body.home-page:not(.home-landing) .main-content .section,
  body.home-page:not(.home-landing) .main-content .contact-band,
  body.home-page:not(.home-landing) .main-content .moa-page { border-radius: 20px; }
  body.home-page:not(.home-landing) .page-hero { padding: 12px 14px; border-radius: 18px; }
  body.home-page:not(.home-landing) .program-card:has(> .program-card-img),
  body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content { min-height: 380px; }
  body.home-page:not(.home-landing) .program-card:has(> .program-card-img) .program-card-content { padding-top: 180px; }
}

/* 18. MOTION, FALLBACK & PRINT ============================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Browsers without backdrop-filter get near-opaque panels so text stays legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(18, 30, 46, 0.97); --glass-elevated: rgba(26, 42, 60, 0.98); }
  .site-header, .top-navbar { background: rgba(7, 11, 18, 0.98); }
  .sidebar, .site-footer, .ticker, .home-section > .container, #board-of-directors { background: rgba(12, 20, 32, 0.98); }
  .premium-offcanvas-menu, .hero-donate-card, .prog-modal { background: var(--bg-2); }
}

@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none; }
  .no-print, .site-header, .site-footer, .premium-offcanvas-menu, .premium-offcanvas-overlay, .skip-link, .sidebar, .top-navbar, .site-messages { display: none !important; }
  .main-content, .main-wrapper { margin: 0; padding: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  #receipt-section { padding: 0 !important; }
  .receipt-card { max-width: none; border: 0; background: #fff; box-shadow: none; padding: 0; }
  .receipt-card * { color: #111 !important; background: transparent !important; border-color: #bbb !important; }
  .receipt-card img { background: #fff !important; }
  .receipt-rule { background: #333 !important; }
}
