/* ============================================================
   TOON AID  — Master Stylesheet
   Newcastle United Black & White Theme
   "Charity begins at home"
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colours */
  --black:        #0A0A0A;
  --black-soft:   #111111;
  --black-rich:   #1A1A1A;
  --grey-900:     #222222;
  --grey-700:     #444444;
  --grey-500:     #777777;
  --grey-300:     #BBBBBB;
  --grey-200:     #DDDDDD;
  --grey-100:     #F0F0F0;
  --grey-50:      #F8F8F8;
  --white:        #FFFFFF;
  --blue:         #1B6CA8;
  --blue-light:   #2C8FD4;
  --blue-dark:    #155487;
  --blue-pale:    #EBF4FB;
  --gold:         #C9A84C;
  --gold-light:   #E8C96B;
  --gold-pale:    #FDF6E3;
  --red:          #C0392B;
  --red-light:    #E74C3C;
  --green:        #27AE60;
  --green-light:  #2ECC71;

  /* Stripe pattern colours (NUFC Kit) */
  --stripe-dark:  rgba(255,255,255,0.04);
  --stripe-light: transparent;

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  4rem;
  --text-hero: clamp(4rem, 10vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.12);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.16);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.22);
  --shadow-xl:   0 40px 100px rgba(0,0,0,0.30);
  --shadow-blue: 0 8px 32px rgba(27,108,168,0.30);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.35);
  --glow-white:  0 0 40px rgba(255,255,255,0.08);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --t-base:   300ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:   600ms cubic-bezier(0.4,0,0.2,1);
  --t-bounce: 400ms cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index */
  --z-below:  -1;
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-toast:   300;
  --z-nav:     400;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  /* Do NOT use overflow-x:hidden on html — it breaks position:fixed in iOS Safari */
  overscroll-behavior-x: none;
}

/* Ensure in-page anchors are not hidden behind the fixed navbar */
section[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--black-rich);
  background-color: var(--white);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* Subtle NUFC stripe texture across entire page */
  background-image: repeating-linear-gradient(
    90deg,
    var(--stripe-dark) 0px,
    var(--stripe-dark) 1px,
    var(--stripe-light) 1px,
    var(--stripe-light) 60px
  );
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
svg { display: block; }

/* ── Utility Classes ─────────────────────────────────────── */
.container        { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow{ width: 100%; max-width: 800px;  margin: 0 auto; padding: 0 var(--space-6); }
.sr-only          { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.text-center      { text-align: center; }
.text-left        { text-align: left; }
.text-right       { text-align: right; }
.text-white       { color: var(--white); }
.text-blue        { color: var(--blue); }
.text-gold        { color: var(--gold); }
.text-grey        { color: var(--grey-500); }
.font-display     { font-family: var(--font-display); }
.font-heading     { font-family: var(--font-heading); }
.hidden           { display: none !important; }
.flex             { display: flex; }
.flex-center      { display: flex; align-items: center; justify-content: center; }
.flex-between     { display: flex; align-items: center; justify-content: space-between; }
.gap-4            { gap: var(--space-4); }
.gap-8            { gap: var(--space-8); }
.mt-8             { margin-top: var(--space-8); }
.mb-8             { margin-bottom: var(--space-8); }
.w-full           { width: 100%; }
.relative         { position: relative; }
.overflow-hidden  { overflow: hidden; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--grey-500);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  outline: none;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--primary:hover {
  background: var(--grey-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--blue:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--black);
  border-color: var(--gold);
  font-weight: 800;
}
.btn--gold:hover {
  background-position: right center;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--donate {
  background: linear-gradient(135deg, var(--gold) 0%, #E8C96B 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--black);
  border-color: var(--gold);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  animation: shimmer 3s linear infinite;
}
.btn--donate:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn--sm  { padding: 9px 20px; font-size: var(--text-xs); }
.btn--lg  { padding: 18px 40px; font-size: var(--text-base); }
.btn--xl  { padding: 22px 52px; font-size: var(--text-lg); }
.btn--full{ width: 100%; justify-content: center; }

.btn--loading { opacity: 0.7; pointer-events: none; cursor: wait; }
.btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: var(--space-2);
}

/* ── Navigation ──────────────────────────────────────────── */
#nav-placeholder { position: relative; z-index: var(--z-nav); }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transition: box-shadow var(--t-base), border-color var(--t-base);
  background: transparent;
  /* overflow must be visible so dropdowns show below the navbar */
  overflow: visible;
}

/* Use ::before for the blur so backdrop-filter doesn't create a new stacking
   context on .navbar itself — otherwise dropdown children can paint behind
   page sections that have their own stacking contexts. */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--t-base), backdrop-filter var(--t-base);
  z-index: -1;
  pointer-events: none;
}
.navbar.scrolled::before,
.navbar.dropdown-open::before {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.navbar.scrolled,
.navbar.dropdown-open {
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--space-4);
  height: 80px;
}

.nav-brand {
  flex-shrink: 0;
  margin-right: var(--space-4);
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.1);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-brand-name span { color: var(--gold); }
.nav-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--grey-300);
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-heading);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  min-width: 200px;
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-base);
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-nav) + 10);
  max-width: min(280px, calc(100vw - 32px));
}

.nav-menu > li:last-child .nav-dropdown-menu,
.nav-menu > li:nth-last-child(2) .nav-dropdown-menu {
  left: auto;
  right: 0;
}

@media (min-width: 1161px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: all var(--t-fast);
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  padding-left: var(--space-6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex-shrink: 1;
}

#navAuthArea {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

#navAuthArea > * {
  flex-shrink: 0;
}

.nav-actions > .btn--donate {
  flex-shrink: 0;
}

.nav-login {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}
.nav-login:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
}
.nav-user:hover .nav-user-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-user-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.nav-user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.nav-user-sub {
  font-size: .65rem;
  font-weight: 500;
  opacity: .75;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav-user span:last-child {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-avatar {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700; color: var(--white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  position: relative;
  z-index: calc(var(--z-overlay) + 2);
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0D0D0D 30%,
    #0A1929 60%,
    #050E18 100%
  );
}

/* NUFC Stripes overlay */
.hero-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 24px,
    transparent 24px,
    transparent 48px
  );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(27,108,168,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  left: -100px; bottom: -100px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}

/* Heart decoration (NUFC-style: black+white+blue heart from logo) */
.hero-heart-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 35vw, 500px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.07;
}
.hero-heart-deco::before,
.hero-heart-deco::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 50%;
  width: 50%; height: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-heart-deco::before { top: 0; left: 0; }
.hero-heart-deco::after  { top: 0; right: 0; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6) var(--space-16);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--space-4);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--blue-light);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.88;
  margin-bottom: var(--space-4);
}
.hero-title .accent  { color: var(--gold); }
.hero-title .outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.hero-tagline {
  font-family: 'Montserrat', cursive;
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 400;
  font-style: italic;
  color: var(--blue-light);
  margin-bottom: var(--space-6);
  letter-spacing: 0.01em;
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-12);
}

.hero-raised {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  backdrop-filter: blur(10px);
}
.hero-raised-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
}
.hero-raised-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--gold);
  letter-spacing: 0.03em;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}
.hero-scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-weight: 600;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* ── Ticker / Marquee ─────────────────────────────────────── */
.ticker {
  background: var(--gold);
  padding: var(--space-3) 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}
.ticker-dot {
  width: 6px; height: 6px;
  background: var(--black);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--black-soft);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px,
    transparent 1px, transparent 60px
  );
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

.stat-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.stat-suffix { color: var(--gold); }
.stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: var(--space-24) 0;
}
.section--dark {
  background: var(--black-soft);
  color: var(--white);
}
.section--black {
  background: var(--black);
  color: var(--white);
}
.section--grey {
  background: var(--grey-50);
}

.section-header {
  margin-bottom: var(--space-12);
}
.section-header--center {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* ── Why Toon Aid ─────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-xl);
  padding: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--black), var(--blue));
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}
.pillar-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 64px; height: 64px;
  background: var(--black);
  color: #fff;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-6);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pillar-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--black);
}
.pillar-desc {
  color: var(--grey-500);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* ── What We Do ───────────────────────────────────────────── */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.what-card {
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.what-card-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--t-slow);
}
.what-card:hover .what-card-bg { transform: scale(1.05); }

.what-card--local .what-card-bg {
  background: linear-gradient(135deg, var(--black) 0%, var(--grey-900) 100%);
}
.what-card--international .what-card-bg {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--black) 100%);
}

.what-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.what-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-10);
}

.what-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(6px);
}

.what-card-title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.what-card-desc {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.what-card-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--gold);
}
.what-card-amount span {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-1);
}

/* ── Campaign Cards ───────────────────────────────────────── */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.campaign-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.campaign-card-img {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--grey-100);
}
.campaign-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.campaign-card:hover .campaign-card-img img { transform: scale(1.05); }

.campaign-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge--emergency { background: rgba(192,57,43,0.9); color: var(--white); }
.badge--international { background: rgba(27,108,168,0.9); color: var(--white); }
.badge--local { background: rgba(0,0,0,0.85); color: var(--white); }
.badge--annual { background: rgba(201,168,76,0.9); color: var(--black); }

.campaign-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.campaign-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}
.campaign-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.campaign-desc {
  font-size: var(--text-sm);
  color: var(--grey-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-6);
}

.campaign-progress {
  margin-bottom: var(--space-5);
}
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--grey-200);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--black) 0%, var(--blue) 100%);
  border-radius: var(--r-full);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar-fill--emergency {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.progress-raised {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--black);
  letter-spacing: 0.03em;
}
.progress-target {
  font-size: var(--text-xs);
  color: var(--grey-500);
  font-family: var(--font-heading);
  font-weight: 600;
}
.progress-percent {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.campaign-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--grey-500);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.campaign-donors { color: var(--black); }

/* ── Impact Strip ─────────────────────────────────────────── */
.impact-strip {
  background: var(--black);
  padding: var(--space-20) 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
}

.impact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  transition: all var(--t-base);
}
.impact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(27,108,168,0.4);
  transform: translateY(-4px);
}

.impact-quote {
  font-size: var(--text-base);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  position: relative;
}
.impact-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--blue);
  line-height: 0;
  position: absolute;
  top: 1.5rem;
  left: -0.5rem;
  opacity: 0.4;
}

.impact-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.impact-avatar {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  flex-shrink: 0;
}
.impact-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
}
.impact-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-heading);
}

/* ── Transparency Banner ──────────────────────────────────── */
.transparency-banner {
  background: var(--gold);
  padding: var(--space-12) 0;
  overflow: hidden;
  position: relative;
}
.transparency-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 40px
  );
}
.transparency-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
}
.transparency-text { max-width: 620px; }
.transparency-pct {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--black);
  line-height: 0.9;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.transparency-pct span {
  font-size: 0.4em;
  vertical-align: super;
  line-height: 0;
}

/* ── Partners Strip ───────────────────────────────────────── */
.partners-strip {
  padding: var(--space-16) 0;
  background: var(--grey-50);
  overflow: hidden;
}
.partners-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: var(--space-8);
}
.partners-scroll {
  display: flex;
  gap: var(--space-10);
  animation: partners-scroll 20s linear infinite;
  width: max-content;
}
.partner-logo {
  height: 48px;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: all var(--t-base);
  flex-shrink: 0;
}
.partner-logo:hover {
  opacity: 1;
  filter: none;
}
.partner-text {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--grey-700);
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity var(--t-base);
}
.partner-text:hover { opacity: 1; }

/* ── Get Involved CTA ─────────────────────────────────────── */
.cta-section {
  background: var(--black-soft);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 20px,
    transparent 20px, transparent 40px
  );
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

.cta-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: var(--space-10) var(--space-8);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.cta-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.cta-card-icon {
  width: 60px; height: 60px;
  background: rgba(27,108,168,0.2);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(27,108,168,0.3);
}
.cta-card-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.cta-card-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--space-6);
}

/* ── News Cards ───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.news-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: all var(--t-base);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-card-img {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--grey-100);
}
.news-card-img img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-cat {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
}

.news-card-body { padding: var(--space-6); }
.news-card-date {
  font-size: var(--text-xs);
  color: var(--grey-500);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.news-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}
.news-card-excerpt {
  font-size: var(--text-sm);
  color: var(--grey-500);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast);
}
.read-more:hover { gap: 10px; }

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter {
  background: var(--black);
  padding: var(--space-20) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.newsletter-form {
  display: flex;
  gap: var(--space-3);
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: var(--blue); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin-bottom: var(--space-4);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
  font-style: italic;
  color: var(--blue-light);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 400;
}
.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 300px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
  font-family: var(--font-heading);
  font-weight: 500;
}
.footer-links a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-weight: 400;
}
.footer-contact-icon { flex-shrink: 0; font-size: var(--text-base); }

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--t-base);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-weight: 500;
}
.footer-payment-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-4);
}
.payment-badge {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* ── Forms (Auth, Donate, etc.) ───────────────────────────── */
.form-page {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}
.form-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000 0%, #0A1929 50%, #000 100%);
}
.form-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 48px
  );
}

.form-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: var(--space-10) var(--space-12);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
}
.form-card--wide { max-width: 640px; }

.form-card-logo {
  text-align: center;
  margin-bottom: var(--space-8);
}
.form-card-logo img {
  width: 72px; margin: 0 auto var(--space-3);
}
.form-card-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.form-card-logo-text span { color: var(--gold); }

.form-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--space-2);
  text-align: center;
}
.form-subtitle {
  font-size: var(--text-sm);
  color: var(--grey-500);
  text-align: center;
  margin-bottom: var(--space-8);
}

.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: var(--space-2);
}
.form-label .required { color: var(--red); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--black);
  font-family: var(--font-body);
  transition: all var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(27,108,168,0.1);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.1);
}
.form-input-icon {
  position: relative;
}
.form-input-icon .form-input {
  padding-left: 44px;
}
.form-input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-500);
  pointer-events: none;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--grey-500);
  margin-top: var(--space-2);
  font-family: var(--font-heading);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--red);
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}
.form-divider span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--grey-500);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.form-footer {
  font-size: var(--text-sm);
  text-align: center;
  color: var(--grey-500);
  margin-top: var(--space-6);
  font-family: var(--font-heading);
}
.form-footer a {
  color: var(--blue);
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.checkbox-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--grey-300);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
  vertical-align: middle;
  position: relative;
}
/* Checked state — works anywhere .checkbox-custom is adjacent to a checkbox */
input[type="checkbox"]:checked + .checkbox-custom,
.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--black);
  border-color: var(--black);
}
/* Checkmark via pseudo-element */
input[type="checkbox"]:checked + .checkbox-custom::after,
.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
/* Hide the native checkbox whenever a .checkbox-custom sibling follows */
input[type="checkbox"] + .checkbox-custom,
.checkbox-group input[type="checkbox"] {
  /* dummy rule — see below for the actual hide */
}
/* Visually hide the native input while keeping it accessible */
label:has(.checkbox-custom) > input[type="checkbox"],
.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.password-strength {
  margin-top: var(--space-2);
  display: flex;
  gap: 3px;
}
.strength-bar {
  flex: 1; height: 4px;
  border-radius: var(--r-full);
  background: var(--grey-200);
  transition: background-color var(--t-base);
}
.strength-bar.active-1 { background: var(--red); }
.strength-bar.active-2 { background: var(--gold); }
.strength-bar.active-3 { background: var(--blue-light); }
.strength-bar.active-4 { background: var(--green); }

/* ── Donate Page ──────────────────────────────────────────── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.amount-btn {
  padding: var(--space-4) var(--space-3);
  background: var(--grey-50);
  border: 2px solid var(--grey-200);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--black);
  cursor: pointer;
  transition: all var(--t-base);
  text-align: center;
  line-height: 1;
}
.amount-btn span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--grey-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.amount-btn.active span { color: rgba(255,255,255,0.6); }

.frequency-toggle {
  display: flex;
  gap: var(--space-2);
  background: var(--grey-100);
  padding: var(--space-1);
  border-radius: var(--r-md);
  margin-bottom: var(--space-5);
}
.freq-btn {
  flex: 1;
  padding: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--grey-700);
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}
.freq-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.payment-method-btn {
  padding: var(--space-5) var(--space-4);
  border: 2px solid var(--grey-200);
  border-radius: var(--r-lg);
  background: var(--white);
  cursor: pointer;
  transition: all var(--t-base);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--grey-700);
}
.payment-method-btn:hover, .payment-method-btn.active {
  border-color: var(--black);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}
.payment-method-btn .payment-icon {
  font-size: 1.6rem;
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 80px;
}

.dashboard-sidebar {
  background: var(--black-soft);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-8) 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--space-4); }
.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: all var(--t-fast);
}
.sidebar-nav-item a:hover,
.sidebar-nav-item.active a {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.sidebar-nav-item.active a { color: var(--gold); }
.sidebar-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--space-4) var(--space-4);
}
.sidebar-section-label {
  padding: 0 var(--space-8);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: var(--space-2);
}

.dashboard-main {
  padding: var(--space-8) var(--space-10);
  background: var(--grey-50);
}

.dashboard-header {
  margin-bottom: var(--space-8);
}
.dashboard-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--black);
}
.dashboard-header p {
  color: var(--grey-500);
  margin-top: var(--space-2);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.dash-stat {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  border: 1px solid var(--grey-200);
}
.dash-stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: var(--space-2);
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--black);
}
.dash-stat-sub {
  font-size: var(--text-xs);
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-heading);
  margin-top: var(--space-1);
}

.dash-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--grey-200);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.dash-card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
}

/* Member code badge */
.member-code-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.1em;
}
.member-code-badge .label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-300);
}

/* Vote widget */
.vote-widget { }
.vote-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.vote-option {
  padding: var(--space-4) var(--space-6);
  border: 2px solid var(--grey-200);
  border-radius: var(--r-lg);
  background: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--black);
  cursor: pointer;
  transition: all var(--t-base);
}
.vote-option:hover, .vote-option.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.vote-deadline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--red);
}

/* ── Page Hero (Interior Pages) ──────────────────────────── */
.page-hero {
  background: var(--black);
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 20px,
    transparent 20px, transparent 40px
  );
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
}
.page-hero-label::before {
  content: '';
  display: block; width: 32px; height: 2px;
  background: var(--blue-light);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 8vw, 7rem);
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: var(--space-4);
}
.page-hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.75;
}

/* ── Alerts / Toasts ──────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.alert--success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.25); color: #1a7a42; }
.alert--error   { background: rgba(192,57,43,0.1);  border: 1px solid rgba(192,57,43,0.25);  color: var(--red); }
.alert--info    { background: rgba(27,108,168,0.1); border: 1px solid rgba(27,108,168,0.25); color: var(--blue-dark); }
.alert--warning { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);  color: #7a5c00; }

/* ── Site Editor (admin-site-editor.html) ─────────────────── */
.site-editor-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--grey-200);
  padding-bottom: 0;
  /* Ensure tabs stay clickable above any decorative overlays */
  position: relative;
  z-index: 1;
}
.site-editor-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--grey-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.site-editor-tab:hover  { color: var(--black); }
.site-editor-tab.active { color: var(--black); border-bottom-color: var(--black); }

.site-editor-panel {
  animation: fadeIn 0.18s ease;
  position: relative;
  z-index: 1;
}

.logo-preview-wrap {
  background: var(--grey-100);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: inline-block;
  border: 1px solid var(--grey-200);
}

/* Nav editor */
.nav-editor-item {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.nav-editor-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.nav-editor-key {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.nav-editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.nav-editor-dropdown {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--grey-200);
}
.nav-editor-dropdown-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav-editor-dd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
  .nav-editor-row    { grid-template-columns: 1fr; }
  .nav-editor-dd-row { grid-template-columns: 1fr; }
}

/* ── Site Editor payment provider cards ─────────────────────── */
.pp-card { border: 1px solid var(--grey-200); }

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}
.toast {
  background: var(--black-rich);
  color: var(--white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-start; gap: var(--space-3);
  animation: slide-in-right var(--t-base) ease-out;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}
.toast--success { border-color: var(--green); }
.toast--error   { border-color: var(--red); }
.toast--gold    { border-color: var(--gold); }

/* ── Loading / Skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--grey-200) 25%, var(--grey-100) 50%, var(--grey-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}

/* ── Animations & Keyframes ───────────────────────────────── */
@keyframes float-up {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  30%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(60px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.12; }
}

@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes count-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* AOS overrides */
[data-aos] { will-change: transform, opacity; }

/* ═══════════════════════════════════════════════════════════
   COLOUR THEMES
   Applied via  <html data-theme="...">
   Each theme overrides only the palette variables. All layout,
   spacing and typography remain identical across themes.
   ═══════════════════════════════════════════════════════════ */

/* ── Ocean (Navy / Cyan) ─────────────────────────────────── */
[data-theme="ocean"] {
  --black:        #071425;
  --black-soft:   #0B1D35;
  --black-rich:   #0E2240;
  --grey-900:     #112545;
  --grey-700:     #4A5E72;
  --grey-500:     #6E8FA8;
  --grey-300:     #9DB8CC;
  --grey-200:     #C5D9E8;
  --grey-100:     #E4EFF6;
  --grey-50:      #F0F7FB;
  --gold:         #00C6D4;
  --gold-light:   #33D9E5;
  --gold-pale:    #E0F9FB;
  --blue:         #0A8FB5;
  --blue-light:   #1DB8DC;
  --blue-dark:    #076E8C;
  --blue-pale:    #D6F3FB;
  --stripe-dark:  rgba(0,198,212,0.06);
  --stripe-light: transparent;
  --shadow-gold:  0 8px 32px rgba(0,198,212,0.35);
  --shadow-blue:  0 8px 32px rgba(10,143,181,0.30);
}

/* ── Forest (Deep Green / Emerald) ──────────────────────── */
[data-theme="forest"] {
  --black:        #081A0A;
  --black-soft:   #0E2410;
  --black-rich:   #102A12;
  --grey-900:     #163018;
  --grey-700:     #41604A;
  --grey-500:     #678A6F;
  --grey-300:     #94B59D;
  --grey-200:     #C3D9C8;
  --grey-100:     #E4F0E6;
  --grey-50:      #F2F8F3;
  --gold:         #00C853;
  --gold-light:   #33D46D;
  --gold-pale:    #E0FFF0;
  --blue:         #0A9E6A;
  --blue-light:   #14C882;
  --blue-dark:    #077A50;
  --blue-pale:    #D6F9EC;
  --stripe-dark:  rgba(0,200,83,0.06);
  --stripe-light: transparent;
  --shadow-gold:  0 8px 32px rgba(0,200,83,0.35);
  --shadow-blue:  0 8px 32px rgba(10,158,106,0.30);
}

/* ── Royal (Deep Purple / Gold) ─────────────────────────── */
[data-theme="royal"] {
  --black:        #120626;
  --black-soft:   #1A0D38;
  --black-rich:   #1E1044;
  --grey-900:     #24144E;
  --grey-700:     #573E80;
  --grey-500:     #7A67A0;
  --grey-300:     #A898C3;
  --grey-200:     #D0C6E4;
  --grey-100:     #EBE6F5;
  --grey-50:      #F5F2FA;
  --gold:         #FFD700;
  --gold-light:   #FFE033;
  --gold-pale:    #FFFBE6;
  --blue:         #9C27B0;
  --blue-light:   #BA68C8;
  --blue-dark:    #7B1FA2;
  --blue-pale:    #F3E5F5;
  --stripe-dark:  rgba(255,215,0,0.05);
  --stripe-light: transparent;
  --shadow-gold:  0 8px 32px rgba(255,215,0,0.35);
  --shadow-blue:  0 8px 32px rgba(156,39,176,0.30);
}

/* ── Scarlet (Deep Red / Cream) ─────────────────────────── */
[data-theme="scarlet"] {
  --black:        #1A0808;
  --black-soft:   #260D0D;
  --black-rich:   #2E1010;
  --grey-900:     #3A1414;
  --grey-700:     #7A4040;
  --grey-500:     #9E6868;
  --grey-300:     #C29898;
  --grey-200:     #DFC4C4;
  --grey-100:     #F2E8E8;
  --grey-50:      #FAF3F3;
  --gold:         #FF4444;
  --gold-light:   #FF6666;
  --gold-pale:    #FFF0F0;
  --blue:         #C0392B;
  --blue-light:   #E74C3C;
  --blue-dark:    #992D22;
  --blue-pale:    #FAD7D7;
  --stripe-dark:  rgba(255,68,68,0.06);
  --stripe-light: transparent;
  --shadow-gold:  0 8px 32px rgba(255,68,68,0.35);
  --shadow-blue:  0 8px 32px rgba(192,57,43,0.30);
}

/* ── Theme Picker UI (admin-site-editor) ─────────────────── */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.theme-card {
  border: 2px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  background: var(--white);
}

.theme-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.theme-card.active {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.theme-card-preview {
  height: 90px;
  position: relative;
  overflow: hidden;
}

.theme-card-nav {
  height: 22px;
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}

.theme-card-content {
  position: absolute;
  top: 22px; left: 0; right: 0; bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-card-footer {
  height: 20px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.theme-card-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.theme-card-btn-preview {
  width: 44px; height: 12px;
  border-radius: 3px;
}

.theme-card-info {
  padding: 10px 12px 12px;
}

.theme-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--black-rich);
}

.theme-card-swatches {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.theme-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.theme-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin-left: auto;
}

.theme-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1280px) {
  .nav-inner { gap: var(--space-3); }
  .nav-menu > li > a { padding: var(--space-3) var(--space-2); }
  .nav-actions { gap: var(--space-2); }
  .btn--sm { padding: 8px 14px; }
}

@media (max-width: 1200px) {
  .nav-brand-name { font-size: 1.5rem; }
  .nav-tagline { display: none; }
  .nav-menu > li > a { padding: var(--space-3) var(--space-3); }

  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .campaigns-grid{ grid-template-columns: repeat(2, 1fr); }
  .news-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1160px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hamburger.active {
    position: fixed;
    top: 22px;
    right: var(--space-4);
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 96px;
    background: var(--black);
    z-index: var(--z-overlay);
    padding: 100px var(--space-6) var(--space-8);
    gap: var(--space-2);
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open > li > a {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-4) var(--space-3);
    border-radius: var(--r-sm);
  }
  .nav-actions.open {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    z-index: calc(var(--z-overlay) + 1);
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom));
    background: rgba(10,10,10,0.96);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-actions.open .btn { flex: 1; justify-content: center; }

  /* Mobile dropdowns: collapsed by default, toggled by tap */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding-left: var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding-top: var(--space-1);
    padding-bottom: var(--space-2);
  }
  .nav-dropdown > a .nav-dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: var(--space-2);
  }
  .nav-dropdown.open > a .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu a { font-size: var(--text-base); opacity: 0.6; }

  .what-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; height: auto; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .transparency-content { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .form-card { padding: var(--space-8) var(--space-6); }
  .form-row  { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .campaigns-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-methods { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: clamp(3.5rem, 14vw, 6rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-payment-logos { width: 100%; justify-content: center; gap: var(--space-2); }
  .payment-badge { padding: 5px 10px; }
  .section { padding: var(--space-16) 0; }
}

@media (max-width: 480px) {
  :root { --space-6: 1.25rem; }
  .nav-inner { padding: 0 var(--space-4); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .amount-grid { grid-template-columns: 1fr 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .dashboard-main { padding: var(--space-6) var(--space-4); }
  .form-card { border-radius: var(--r-xl); }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .btn { display: none !important; }
  body { background: white; color: black; }
}

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
}

.modal-close:hover {
  background: var(--grey-200);
  color: var(--black);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
