/* ============================================
   CURAID — Design System & Global Styles
   Warm, Trust-Focused Design for Impact
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens (Light Mode) --- */
:root {
  /* Primary — Deep Charcoal */
  --primary: #1A1C1E;
  --primary-light: #2C2F33;
  --primary-dark: #0D0E0F;
  --primary-50: rgba(26,28,30,0.05);
  --primary-100: rgba(26,28,30,0.1);
  --primary-200: rgba(26,28,30,0.2);

  /* Accent — Sage/Earth Earth */
  --accent: #6B8E6D; /* Deep Sage */
  --accent-light: #8BA88E;
  --accent-dark: #4F6A51;

  /* Success / Status */
  --success: #3E5F4E;
  --success-light: #5A826B;
  --warning: #C18C5D;
  --danger: #9E4B4B;
  --info: #5D8AA8;

  /* Neutrals (Earth-inspired) */
  --white: #FFFFFF;
  --cream: #F5F3EF; /* Stone/Cream */
  --cream-dark: #EAE7E1;
  --gray-50: #F9F9F7;
  --gray-100: #F1F1ED;
  --gray-200: #E5E5DE;
  --gray-300: #D1D1C7;
  --gray-400: #A0A096;
  --gray-500: #707066;
  --gray-600: #55554D;
  --gray-700: #40403A;
  --gray-800: #2D2D29;
  --gray-900: #1A1C1E;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-card: var(--white);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-warm: var(--cream);
  --gradient-trust: var(--gray-50);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Lora', serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 120px; /* More extreme spacing */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows (Softer, deeper) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 30px 60px rgba(0,0,0,0.12);
  --shadow-card: 0 4px 24px rgba(26,28,30,0.04);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 1000ms; /* Further slowed down from 700ms */
  --duration-slow: 1500ms;   /* Further slowed down from 1000ms */

  /* Layout */
  --max-width: 1400px; /* Wider layout */
  --nav-height: 70px;
}



/* --- Dropdown Styles --- */
.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

/* --- Search Bar & Header --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

a { text-decoration: none; color: var(--accent); transition: color var(--duration-fast); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Navbar Minimalist --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-out);
}



.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-500);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast);
  font-size: 0.92rem;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--duration-normal) var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}



.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 6px 0;
  transition: all var(--duration-normal);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.btn-pill { border-radius: var(--radius-full); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--primary); background: var(--gray-100); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }

/* --- Hero Section Immersive --- */
.hero-immersive {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--cream);
  background-image: 
    linear-gradient(rgba(26, 28, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 28, 30, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0;
  position: relative;
  padding-top: var(--nav-height);
  padding-bottom: 80px;
  overflow: hidden;
  animation: heroGridMove 25s linear infinite;
}

@keyframes heroGridMove {
  0% { background-position: 0 0; }
  100% { background-position: -50px -50px; }
}

.hero-immersive::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, var(--cream) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-immersive::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(107, 142, 109, 0.15) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { transform: scale(1) translateY(0); opacity: 0.6; }
  100% { transform: scale(1.05) translateY(-2%); opacity: 1; }
}

.hero-reveal-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: slideUpFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xl);
  color: var(--gray-600);
}

.hero-immersive h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  color: var(--gray-900);
}

.hero-immersive h1 .accent-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.35rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-actions-new {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.96);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

/* Specificity override for reveal animation on the scroll indicator */
.hero-scroll-indicator.reveal.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.indicator-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* --- Stats Bar --- */
.stats-bar {
  padding: var(--space-2xl) 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-item h3 .accent-num { color: var(--accent); }

.stat-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- Section Styles --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-header h2 { margin-bottom: var(--space-md); }

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Base Reveal - Enhanced Modern Style */
.reveal, .reveal-slide-up, .process-step-item, .comparison-table {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal.visible, .reveal-slide-up.visible, .process-step-item.visible, .comparison-table.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* --- Process Section Vertical --- */
.process-vertical-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Sticky Scroll Animation (Process Section) --- */
.scroll-pin-container {
  height: 400vh; /* 4 steps */
  position: relative;
}

.sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  width: 100%;
  align-items: center;
}

.sticky-left-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding-right: var(--space-xl);
}

.sticky-step {
  opacity: 0.3;
  transform: translateX(-15px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-step.active {
  opacity: 1;
  transform: translateX(0);
}

.sticky-right-visual {
  height: 60vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.sticky-visual-element {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: var(--space-2xl);
  text-align: center;
  transform: scale(0.9) translateY(20px);
}

.sticky-visual-element.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 10;
}

@media (max-width: 992px) {
  .sticky-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .sticky-right-visual {
    height: 35vh;
    order: -1;
  }
}

/* --- Horizontal Filmstrip Scrub Animation --- */
.horizontal-scrub-window {
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}

.horizontal-scrub-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  padding: 0 var(--space-xl);
  /* The track translates left exactly its remaining width relative to the viewport! */
  transform: translateX(calc(var(--scroll-progress, 0) * (100vw - 100%)));
  will-change: transform;
}

.horizontal-scrub-track .benefit-card {
  width: 360px;
  flex-shrink: 0;
  white-space: normal;
}



.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: border-color var(--duration-normal);
}

.process-step-item:hover {
  border-color: var(--accent);
}

.step-num-circle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-details h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.step-details p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.bg-cream {
  background: var(--cream) !important;
}

/* Removed Horizontal Slides */

.slide-icon {
  margin-top: var(--space-2xl);
  color: var(--accent-light);
}

.slide-icon i {
  width: 64px !important;
  height: 64px !important;
}

.intro-slide {
  background: var(--primary-dark);
}

/* --- Campaign Cards Premium --- */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-2xl);
}

.campaign-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.campaign-card-image {
  height: 260px;
}

.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.campaign-card:hover .campaign-card-image img {
  transform: scale(1.05);
}

.campaign-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active { background: rgba(39,174,96,0.9); color: white; }
.badge-funded { background: rgba(26,54,93,0.9); color: white; }
.badge-urgent { background: rgba(231,76,60,0.9); color: white; }
.badge-verified { background: rgba(52,152,219,0.9); color: white; }

.campaign-card-body { 
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.campaign-card-ngo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  color: var(--gray-500);
}

.campaign-card-ngo img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--info);
  border-radius: 50%;
  color: white;
  font-size: 10px;
}

.campaign-card-body h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  color: var(--gray-900);
}

.campaign-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--gray-500);
}

.campaign-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Progress Bar --- */
.progress-wrapper { margin-bottom: var(--space-md); }

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
}

.progress-info .raised {
  font-weight: 700;
  color: var(--primary);
}

.progress-info .goal {
  color: var(--gray-500);
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: var(--radius-full);
  transition: width 1.5s var(--ease-out);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percentage {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.campaign-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-md);
}

.donors-count {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.donate-btn-sm {
  padding: 8px 20px;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.donate-btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,150,59,0.25);
}

.step-card p { font-size: 0.9rem; color: var(--gray-500); }

/* --- Timeline Redesign --- */
.timeline-wrapper {
  position: relative;
  padding: var(--space-3xl) 0;
  margin-top: var(--space-xl);
}

.timeline-path {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.4;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  gap: var(--space-md);
}

.timeline-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}

.step-dot {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--primary-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal);
  position: relative;
}

.timeline-step:hover .step-dot {
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  color: var(--accent);
}

.timeline-step h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--primary-dark);
}

.timeline-step p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .timeline-path { display: none; }
  .timeline-steps { flex-direction: column; align-items: center; gap: var(--space-xl); }
  .timeline-step { max-width: 100%; }
}

/* --- Comparison Table --- */
.comparison-section { background: var(--gradient-warm); }

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table thead th {
  background: var(--primary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
}

.comparison-table tbody td {
  padding: var(--space-md) var(--space-lg);
  background: white;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr.highlight-row td {
  background: rgba(26,54,93,0.05);
  font-weight: 600;
  color: var(--primary);
}

/* --- NGO Spotlight --- */
.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.spotlight-image { height: 100%; min-height: 300px; }
.spotlight-image img { width: 100%; height: 100%; object-fit: cover; }

.spotlight-content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-content .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 12px;
  background: rgba(39,174,96,0.1);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  width: fit-content;
}

/* --- Campaign Detail Page --- */
.campaign-hero {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--gradient-warm);
}

.campaign-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.campaign-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.campaign-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.campaign-info { padding-top: var(--space-md); }

.condition-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.therapy-detail {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.therapy-detail .detail-item {
  text-align: center;
}

.therapy-detail .detail-item .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.therapy-detail .detail-item .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.campaign-story {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}

.campaign-story h3 { margin-bottom: var(--space-md); }
.campaign-story p { color: var(--gray-600); line-height: 1.8; }

/* --- Donate Section --- */
.donate-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-100);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.amount-btn {
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: 0.95rem;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}

.custom-amount {
  width: 100%;
  padding: 14px var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  transition: border-color var(--duration-fast);
}

.custom-amount:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- Donor Wall --- */
.donor-wall {
  margin-top: var(--space-xl);
}

.donor-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-100);
}

.donor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.donor-info .name { font-weight: 600; font-size: 0.9rem; }
.donor-info .time { font-size: 0.75rem; color: var(--gray-400); }
.donor-amount { margin-left: auto; font-weight: 700; color: var(--primary); }

/* --- Outcomes Timeline --- */
.outcome-timeline { margin-top: var(--space-xl); }

.outcome-item {
  position: relative;
  padding-left: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-left: 2px solid var(--primary-200);
}

.outcome-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid white;
}

.outcome-item .date {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.outcome-item p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }

.outcome-item img {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  max-height: 200px;
  object-fit: cover;
}

/* --- NGO Profile --- */
.ngo-header {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--gradient-hero);
  color: white;
}

.ngo-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.ngo-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: white;
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
}

.ngo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.ngo-title h1 { color: white; margin-bottom: var(--space-xs); }
.ngo-title .city { opacity: 0.8; font-size: 1rem; }

.ngo-trust-info {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.trust-item .label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.trust-item .value { font-weight: 600; margin-top: 2px; }

/* --- Dashboard Styles --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: var(--space-xl) 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--gray-600);
  font-weight: 500;
  transition: all var(--duration-fast);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: var(--primary-50);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.dashboard-content {
  padding: var(--space-2xl);
  background: var(--gray-50);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--duration-normal);
}

.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dash-stat-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.dash-stat-card .icon.purple { background: var(--primary-100); color: var(--primary); }
.dash-stat-card .icon.orange { background: rgba(201,150,59,0.1); color: var(--accent); }
.dash-stat-card .icon.green { background: rgba(39,174,96,0.1); color: var(--success); }
.dash-stat-card .icon.blue { background: rgba(52,152,219,0.1); color: var(--info); }

.dash-stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.dash-stat-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- Tables --- */
.data-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.data-table thead th {
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-50);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.data-table tbody td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active { background: rgba(39,174,96,0.1); color: var(--success); }
.status-funded { background: rgba(26,54,93,0.1); color: var(--primary); }
.status-closed { background: rgba(107,114,128,0.1); color: var(--gray-500); }
.status-pending { background: rgba(243,156,18,0.1); color: var(--warning); }
.status-confirmed { background: rgba(39,174,96,0.1); color: var(--success); }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-lg); }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px; /* Prevents iOS zoom */
  transition: all 0.2s;
  background: var(--white);
  color: var(--gray-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --- Login Page --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-warm);
  padding: var(--space-xl);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-xl);
}

.auth-tab {
  flex: 1;
  padding: var(--space-md);
  text-align: center;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.user-type-selector {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.user-type-btn {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-fast);
  font-family: var(--font-body);
}

.user-type-btn:hover { border-color: var(--primary-200); }

.user-type-btn.active {
  border-color: var(--primary);
  background: var(--primary-50);
}

.user-type-btn .icon { font-size: 1.5rem; margin-bottom: var(--space-xs); }
.user-type-btn .label { font-weight: 600; font-size: 0.85rem; }

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand { max-width: 280px; }

.footer-brand .logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand .logo span { color: var(--accent); }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  transition: color var(--duration-fast);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  pointer-events: none;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  pointer-events: auto;
  animation: slideDownFade 0.5s var(--ease-spring);
  border: 1px solid var(--gray-100);
}

.toast.toast-success { border-bottom: 2px solid var(--success); }
.toast.toast-error { border-bottom: 2px solid var(--danger); }
.toast.toast-activity { border-bottom: 2px solid var(--accent); }

@keyframes slideDownFade {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-spring);
}
/* ============================================
   Bottom Navigation Bar (Mobile)
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-list {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-500);
  font-size: 0.7rem;
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 70px; } /* Space for bottom nav */
  .footer { padding-bottom: 90px; }
  .toast-container { bottom: 80px; }
}

/* ============================================
   Responsive Tables
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.data-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block;
    width: 100%;
  }
  .data-table thead { display: none; }
  .data-table tr { margin-bottom: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 8px; }
  .data-table td { border: none; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
  .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--gray-500); }
}
.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: var(--space-xs);
}

/* --- Live Donation Alert (Merged into Toast System) --- */
.toast-activity .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .campaign-detail { grid-template-columns: 1fr; }
  .donate-section { position: static; }
  .spotlight-card { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-links.mobile-open {
    right: 0;
  }
  .mobile-menu-btn {
    display: flex;
    z-index: 1000;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .steps-grid { grid-template-columns: 1fr; }
  .campaigns-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ngo-header-content { flex-direction: column; text-align: center; }
  .ngo-trust-info { flex-direction: column; gap: var(--space-md); }
  .therapy-detail { flex-direction: column; }
  .donate-amount-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .container { padding: 0 var(--space-md); }
  .auth-card { padding: var(--space-xl); }
}

/* === DONOR BENEFITS === */
.benefits-section { padding: var(--space-4xl) 0; background: var(--gradient-trust); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.benefit-card { background: var(--white); border-radius: var(--radius-xl); padding: var(--space-2xl); text-align: center; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out); position: relative; overflow: hidden; }
.benefit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-accent); opacity: 0; transition: opacity var(--duration-normal); }
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.benefit-card:hover::before { opacity: 1; }
.benefit-icon { width: 64px; height: 64px; margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--gradient-warm); border-radius: var(--radius-lg); }
.benefit-card h4 { margin-bottom: var(--space-sm); font-family: var(--font-heading); }
.benefit-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; } }

/* === QUICK DONATE MODAL === */
.quick-donate-overlay { position: fixed; inset: 0; background: rgba(21,19,18,0.5); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--duration-normal); }
.quick-donate-overlay.active { opacity: 1; pointer-events: all; }
.quick-donate-modal { background: var(--white); border-radius: var(--radius-xl); max-width: 480px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); transform: translateY(20px) scale(0.97); transition: transform var(--duration-normal) var(--ease-spring); display: flex; flex-direction: column; }
.quick-donate-overlay.active .quick-donate-modal { transform: translateY(0) scale(1); }

@media (max-width: 480px) {
  .quick-donate-modal { width: 100%; height: 100%; border-radius: 0; max-width: none; max-height: 100vh; transform: translateY(20px); }
  .quick-donate-overlay.active .quick-donate-modal { transform: translateY(0); }
}
.quick-donate-header { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg); border-bottom: 1px solid var(--gray-100); }
.quick-donate-header img { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; }
.quick-donate-close { margin-left: auto; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-400); padding: 4px 8px; border-radius: var(--radius-sm); }
.quick-donate-body { padding: var(--space-lg); }
.quick-donate-amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-sm); margin-bottom: var(--space-md); }
.quick-donate-amounts .amount-btn { padding: 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); font-weight: 600; font-size: 0.9rem; color: var(--gray-700); cursor: pointer; transition: all var(--duration-fast); font-family: var(--font-body); }
.quick-donate-amounts .amount-btn:hover { border-color: var(--accent); color: var(--accent); }
.quick-donate-amounts .amount-btn.active { border-color: var(--accent); background: rgba(201,150,59,0.08); color: var(--accent-dark); }

/* === TESTIMONIALS === */
.testimonials-section { padding: var(--space-4xl) 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xl); }
.testimonial-card { background: var(--cream); border-radius: var(--radius-xl); padding: var(--space-2xl); border: 1px solid var(--gray-100); transition: all var(--duration-normal); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-card .quote { font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: var(--space-md); }
.testimonial-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.8; font-style: italic; margin-bottom: var(--space-lg); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-author .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-hero); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-author .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--gray-400); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* === SEARCH BAR === */
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-input { padding: 8px 16px 8px 36px; border: 1px solid var(--gray-200); border-radius: var(--radius-full); background: var(--gray-50); font-family: var(--font-body); font-size: 0.85rem; width: 180px; transition: border-color var(--duration-normal), background var(--duration-normal), box-shadow var(--duration-normal); color: var(--gray-800); }
.search-input:focus { outline: none; border-color: var(--accent); width: 180px; background: var(--white); box-shadow: var(--shadow-md); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--gray-400); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; min-width: 320px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); max-height: 400px; overflow-y: auto; z-index: 100; display: none; }
.search-results.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); cursor: pointer; transition: background var(--duration-fast); border-bottom: 1px solid var(--gray-100); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-50); }
.search-result-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }

/* === PAYMENT GATEWAY === */
.payment-modal { background: var(--white); border-radius: var(--radius-xl); max-width: 440px; width: 90%; overflow: hidden; box-shadow: var(--shadow-xl); }
.payment-header { background: var(--gradient-hero); color: #fff; padding: var(--space-lg); text-align: center; }
.payment-header h3 { font-size: 1.1rem; color: #fff; }
.payment-header .payment-amount { font-size: 2rem; font-weight: 800; margin: var(--space-sm) 0; font-family: var(--font-heading); }
.payment-body { padding: var(--space-lg); }
.payment-method { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); border: 2px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--duration-fast); background: var(--white); margin-bottom: var(--space-sm); }
.payment-method:hover { border-color: var(--primary-200); }
.payment-method.active { border-color: var(--primary); background: var(--primary-50); }
.bank-details { background: var(--gray-50); border-radius: var(--radius-md); padding: var(--space-md); margin: var(--space-md) 0; }
.bank-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--gray-100); }
.bank-detail-row:last-child { border-bottom: none; }
.payment-success { text-align: center; padding: var(--space-2xl); }
.payment-success .checkmark { width: 72px; height: 72px; margin: 0 auto var(--space-lg); background: rgba(45,138,94,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* === PAGE LAYOUTS === */
.page-hero { padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl); background: var(--gradient-warm); text-align: center; }
.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero p { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg) 0; cursor: pointer; font-weight: 600; color: var(--gray-800); background: none; border: none; width: 100%; text-align: left; font-family: var(--font-body); }
.faq-question:hover { color: var(--primary); }
.faq-question .arrow { transition: transform var(--duration-normal); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--duration-normal); }
.faq-answer-inner { padding: 0 0 var(--space-lg); color: var(--gray-600); line-height: 1.8; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 500px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); max-width: 700px; margin: 0 auto; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius-xl); padding: var(--space-2xl); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.team-card .team-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto var(--space-md); background: var(--gradient-hero); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; font-family: var(--font-heading); }
.team-card h4 { margin-bottom: 4px; }
.team-card .team-role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: var(--space-sm); }
.team-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
@media (max-width: 768px) { .contact-grid, .team-grid { grid-template-columns: 1fr; } }

/* --- Reveal Animations --- */
.reveal, .reveal-mask, .reveal-slide-up {
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
}

.reveal-slide-up {
  transform: translateY(30px);
}

.reveal-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
}

.reveal-mask.visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Impact Pills --- */
.impact-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}

.impact-pill {
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.impact-pill:hover, .impact-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- WhatsApp Floating Support --- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent); /* Brand Sage Green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease-out);
  animation: fabIntro 1.5s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-5px);
  background: var(--accent-dark);
  box-shadow: 0 15px 35px rgba(107, 142, 109, 0.3);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-tooltip {
  position: fixed;
  bottom: 32px;
  right: 90px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.4s var(--ease-out);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.whatsapp-fab:hover + .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fabIntro {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Toolkit Specific Utilities --- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.toolkit-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: transform 0.4s var(--ease-out);
}

.toolkit-card:hover {
  transform: translateY(-8px);
}

.toolkit-card .icon-box {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}
