/* PKRM — main.css
   Modern Malaysian NGO Design System
   Premium UI with glassmorphism, scroll-reveal, Malaysian motifs
*/

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS & CUSTOM PROPERTIES
   ══════════════════════════════════════════════════════ */
:root {
  /* Malaysian Brand Colors */
  --color-primary:      #CC0001;
  --color-primary-dark: #990001;
  --color-secondary:    #003F87;
  --color-gold:         #FFD700;
  --color-gold-dark:    #E6C200;
  --color-success:      #16A34A;
  --color-warning:      #D97706;
  --color-danger:       #DC2626;

  /* Spacing Scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-12: 6rem;

  /* Border Radius Scale */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadow Scale */
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);
  --shadow-md:  0 4px 12px -2px rgb(0 0 0 / 0.10), 0 2px 6px -2px rgb(0 0 0 / 0.06);
  --shadow-lg:  0 12px 28px -4px rgb(0 0 0 / 0.12), 0 4px 8px -4px rgb(0 0 0 / 0.06);
  --shadow-xl:  0 24px 48px -8px rgb(0 0 0 / 0.14), 0 8px 16px -8px rgb(0 0 0 / 0.06);
  --shadow-2xl: 0 40px 72px -12px rgb(0 0 0 / 0.22);
  --shadow-primary: 0 8px 24px rgba(204, 0, 1, 0.30);
  --shadow-secondary: 0 8px 24px rgba(0, 63, 135, 0.28);
  --shadow-gold: 0 6px 20px rgba(255, 215, 0, 0.40);

  /* Transition Timing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 550ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Gradients */
  --gradient-primary:    linear-gradient(135deg, #CC0001 0%, #990001 100%);
  --gradient-secondary:  linear-gradient(135deg, #003F87 0%, #001a3d 100%);
  --gradient-gold:       linear-gradient(135deg, #FFD700 0%, #E6C200 100%);
  --gradient-hero:       linear-gradient(135deg, #003F87 0%, #002d63 50%, #001a3d 100%);
  --gradient-section:    linear-gradient(180deg, #fff 0%, #F9FAFB 100%);
}

/* ══════════════════════════════════════════════════════
   GLOBAL RESETS & BASE STYLES
   ══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1A1A2E;
}

/* Improved focus styles for accessibility */
:focus-visible {
  outline: 3px solid #CC0001;
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ══════════════════════════════════════════════════════
   HERO SLIDER (2 Slides)
   ══════════════════════════════════════════════════════ */
.hero-slide {
  display: none;
  position: relative;
}

.hero-slide.active {
  display: block;
}

/* Smooth exit for non-active slides */
.hero-slide:not(.active) .hero-fade,
.hero-slide:not(.active) .hero-img {
  opacity: 0;
}

/* Ensure animations replay on re-activation */
.hero-slide.active .hero-fade,
.hero-slide.active .hero-img {
  animation: none; /* reset so re-activation replays */
}

/* Gradient text fallback for browsers that don't support bg-clip */
@supports not (background-clip: text) {
  .hero-slide h1 .bg-gradient-to-r {
    color: #CC0001;
    background: none;
  }
}

/* Indicator bar enhancements */
.indicator-bar {
  position: relative;
  isolation: isolate;
}

.indicator-bar:focus-visible {
  outline: 2px solid #CC0001;
  outline-offset: 2px;
}

/* Navigation circle focus */
.nav-circle:focus-visible {
  outline: 2px solid #003F87;
  outline-offset: 3px;
}

/* Responsive: smaller nav on mobile */
@media (max-width: 640px) {
  .nav-circle {
    width: 34px;
    height: 34px;
  }
  .nav-circle svg {
    width: 14px;
    height: 14px;
  }
  .hero-slide .min-h-\[75vh\] {
    min-height: auto;
  }
  .hero-slide .grid {
    gap: 1.5rem;
  }
}

/* Reduced motion: disable animations */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-fade,
  .hero-slide.active .hero-img {
    animation: none !important;
    opacity: 1 !important;
  }
  .indicator-bar.active .indicator-fill {
    animation: none !important;
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }

/* ══════════════════════════════════════════════════════
   NAVBAR — SCROLL-AWARE STYLES (Dark Wau theme)
   ══════════════════════════════════════════════════════ */
.site-nav {
  transition: background-color 0.4s ease,
              box-shadow 0.4s ease;
}

.site-nav.nav-scrolled > div {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
}

.site-nav.nav-transparent > div {
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════
   MOBILE MENU — Full-screen overlay transitions
   ══════════════════════════════════════════════════════ */
#mobile-menu {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s ease;
  visibility: hidden;
}

#mobile-menu.menu-open {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

/* ══════════════════════════════════════════════════════
   GLASSMORPHISM COMPONENTS
   ══════════════════════════════════════════════════════ */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(0, 26, 61, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-primary {
  background: rgba(204, 0, 1, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════════════════
   GRADIENT TEXT
   ══════════════════════════════════════════════════════ */
.text-gradient-primary {
  background: linear-gradient(135deg, #CC0001, #ff4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, #003F87, #0066cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(90deg, #FFD700, #FFF176, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-malaysia {
  background: linear-gradient(90deg, #CC0001 0%, #FFD700 50%, #003F87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════
   SECTION PATTERNS (Malaysian Batik-inspired)
   ══════════════════════════════════════════════════════ */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.pattern-dots-light {
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.pattern-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.pattern-batik {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(204,0,1,.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0,63,135,.04) 0%, transparent 50%),
    radial-gradient(circle, rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
}

/* ══════════════════════════════════════════════════════
   WAVE SECTION DIVIDERS
   ══════════════════════════════════════════════════════ */
.wave-top {
  position: relative;
}

.wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
}

/* ══════════════════════════════════════════════════════
   ENHANCED BUTTON SYSTEM
   ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.75rem;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.12);
}

.btn:active {
  transform: scale(0.97) translateY(1px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(204, 0, 1, 0.40);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: #fff;
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 63, 135, 0.40);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1A1A2E;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.9375rem 2.25rem;
  border-radius: var(--radius-xl);
}

/* ══════════════════════════════════════════════════════
   ENHANCED CARD SYSTEM
   ══════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1.5px solid #F0F2F5;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #E5E7EB;
}

.card-primary {
  border-top: 3px solid var(--color-primary);
}

.card-secondary {
  border-top: 3px solid var(--color-secondary);
}

.card-gold {
  border-top: 3px solid var(--color-gold);
}

/* ══════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.section-badge-primary {
  background: rgba(204, 0, 1, 0.08);
  color: #CC0001;
  border: 1px solid rgba(204, 0, 1, 0.15);
}

.section-badge-secondary {
  background: rgba(0, 63, 135, 0.08);
  color: #003F87;
  border: 1px solid rgba(0, 63, 135, 0.15);
}

.section-badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: #92700A;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.section-badge-success {
  background: rgba(22, 163, 74, 0.08);
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

/* Page hero sections */
.page-hero {
  position: relative;
  background: var(--gradient-hero);
  color: white;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: #F9FAFB;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-white::after {
  background: #fff;
}

/* ══════════════════════════════════════════════════════
   STAT CARDS
   ══════════════════════════════════════════════════════ */
.stat-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1.5rem;
  border: 1.5px solid #F0F2F5;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   MOBILE MENU SLIDE-IN ANIMATION
   ══════════════════════════════════════════════════════ */
#mobile-menu {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--transition-smooth),
              opacity var(--transition-smooth);
  pointer-events: none;
}

#mobile-menu.menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════ */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.top-bar.hidden-bar {
  max-height: 0;
  padding: 0;
}

/* ══════════════════════════════════════════════════════
   FORM COMPONENTS - Enhanced Design System
   ══════════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid #E5E7EB;
  padding: 0.8125rem 1.0625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1A1A2E;
  background: #fff;
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #CC0001;
  box-shadow: 0 0 0 4px rgba(204, 0, 1, 0.10), 0 2px 6px rgba(0,0,0,.05);
  transform: translateY(-1px);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
  padding-right: 2.75rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-hint {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #DC2626;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Input states */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
  border-color: #16A34A;
  background-color: #F0FDF4;
}

/* ══════════════════════════════════════════════════════
   NAVIGATION COMPONENTS
   ══════════════════════════════════════════════════════ */
.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: all var(--transition-base);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth);
}

.nav-link:hover {
  color: #CC0001;
  background: rgba(204, 0, 1, 0.05);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link-active {
  color: #CC0001;
  background: rgba(204, 0, 1, 0.07);
  font-weight: 600;
}

.nav-link-active::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  transition: all var(--transition-base);
  border: 1.5px solid transparent;
  gap: 0.5rem;
}

.mobile-nav-link:hover {
  background: #F9FAFB;
  color: #CC0001;
  border-color: #F3F4F6;
  transform: translateX(4px);
}

.mobile-nav-link:active {
  transform: translateX(2px) scale(0.99);
}

/* ══════════════════════════════════════════════════════
   FOOTER COMPONENTS
   ══════════════════════════════════════════════════════ */
.footer-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #93C5FD;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-link::before {
  content: '›';
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-base);
  font-weight: 700;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(6px);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════ */

/* Step panel visibility for multi-step forms */
.step-panel {
  display: none;
  animation: fadeInUp 0.4s ease-out;
}

.step-panel.active {
  display: block;
}

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

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(2rem); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.90); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert components */
.alert-item {
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading spinner overlay */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #E5E7EB;
  border-top-color: #CC0001;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #CC0001, #FFD700, #003F87);
  z-index: 9999;
  transition: width 0.15s ease-out;
  border-radius: 0 2px 2px 0;
}

/* Accessibility - Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ══════════════════════════════════════════════════════
   DONATION AMOUNT BUTTONS
   ══════════════════════════════════════════════════════ */
.amount-btn {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.amount-btn.selected {
  background: var(--gradient-primary);
  border-color: #CC0001;
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.amount-btn:hover:not(.selected) {
  border-color: #CC0001;
  color: #CC0001;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════ */
@media print {
  nav, footer, .no-print, .alert-item, .scroll-progress {
    display: none !important;
  }
  body { color: #000; background: #fff; }
  a[href]:after { content: " (" attr(href) ")"; }
}

/* ══════════════════════════════════════════════════════
   ACCESSIBILITY & RESPONSIVE UTILITIES
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .form-input, .form-select, .form-textarea { border-width: 3px; }
  .nav-link, .mobile-nav-link { border-width: 2px; }
}

/* ══════════════════════════════════════════════════════
   MODERN ANIMATION UTILITIES (v2)
   ══════════════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpScale {
  0% { opacity: 0; transform: translateY(30px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scaleIn {
  0% { opacity: 0; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(204,0,1,.2); box-shadow: 0 0 0 0 rgba(204,0,1,.1); }
  50% { border-color: rgba(204,0,1,.4); box-shadow: 0 0 0 6px rgba(204,0,1,.06); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 3s ease-in-out infinite; }
.animate-slide-up { animation: slideUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.animate-slide-up-scale { animation: slideUpScale .8s cubic-bezier(.22,1,.36,1) forwards; }
.animate-scale-in { animation: scaleIn .6s cubic-bezier(.22,1,.36,1) forwards; }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); background-size: 200% 100%; animation: shimmer 3s infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradientShift 4s ease infinite; }
.animate-border-glow { animation: borderGlow 2s infinite; }
.marquee-track { width: max-content; animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Premium card */
.card-premium {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .35s cubic-bezier(.22,1,.36,1);
}
.card-premium:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  border-color: #D1D5DB;
  transform: translateY(-3px);
}

/* Glass utilities */
.glass-light {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
}
.glass-dark {
  background: rgba(13,27,62,.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.1);
}

/* Section badge system */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid;
}

/* Gradient text */
.text-gradient-primary {
  background: linear-gradient(135deg, #CC0001, #FF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-malaysia {
  background: linear-gradient(90deg, #CC0001, #FFD700, #003F87);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

