/* ==========================================================================
   MATERIAL 3 EXPRESSIVE & GOOGLE PIXEL DESIGN TOKENS
   ========================================================================== */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-bright: #3B82F6;
  --primary-container: #E0EAFF;
  --on-primary: #FFFFFF;
  --on-primary-container: #001B3F;
  
  --secondary: #0F172A;
  --secondary-container: #EEF2F6;
  --on-secondary: #FFFFFF;
  --on-secondary-container: #1E293B;

  --background: #F7F8FA;
  --surface: #FFFFFF;
  --surface-variant: #F1F4F9;
  --surface-dim: #E8EDF4;
  
  --text-main: #08090B;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  
  --outline: #E2E8F0;
  --outline-variant: #CBD5E1;
  
  --shadow-sm: 0 2px 8px rgba(8, 9, 11, 0.04);
  --shadow-md: 0 6px 20px rgba(8, 9, 11, 0.07);
  --shadow-lg: 0 12px 32px rgba(8, 9, 11, 0.11);
  --shadow-tonal: 0 8px 24px rgba(37, 99, 235, 0.15);

  --gradient-hero: linear-gradient(135deg, #1D4ED8 0%, #08090B 100%);
  --gradient-cta: linear-gradient(135deg, #2563EB 0%, #08090B 95%);
  --gradient-card: linear-gradient(145deg, rgba(37,99,235,0.06) 0%, rgba(255,255,255,0) 100%);
  --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --font-en: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-ur: 'Noto Sans Arabic', 'Noto Nastaliq Urdu', system-ui, sans-serif;
  --app-font: var(--font-en);
}

[data-theme="dark"] {
  --primary: #60A5FA;
  --primary-hover: #93C5FD;
  --primary-bright: #3B82F6;
  --primary-container: #1E3A8A;
  --on-primary: #08090B;
  --on-primary-container: #DBEAFE;
  
  --secondary: #E2E8F0;
  --secondary-container: #1E293B;
  --on-secondary: #0F172A;
  --on-secondary-container: #F1F5F9;

  --background: #08090B;
  --surface: #111318;
  --surface-variant: #191C24;
  --surface-dim: #151821;
  
  --text-main: #F5F7FA;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  
  --outline: #262B36;
  --outline-variant: #333A48;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-tonal: 0 8px 28px rgba(59, 130, 246, 0.2);

  --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #08090B 100%);
  --gradient-cta: linear-gradient(135deg, #1D4ED8 0%, #0F172A 100%);
  --gradient-card: linear-gradient(145deg, rgba(96,165,250,0.08) 0%, rgba(25,28,36,0) 100%);
}

html[dir="rtl"] {
  --app-font: var(--font-ur);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  background-color: var(--background);
  min-height: 100vh;
}

body {
  font-family: var(--app-font);
  background-color: var(--background);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Shell - Full Height Responsive Container */
.app-shell {
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  height: 100vh;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: none;
  border-radius: 0;
  margin: 0 auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
  .app-shell {
    max-width: 640px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  }
}

@media (min-width: 1024px) {
  .app-shell {
    max-width: 680px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  }
}


/* Icons */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}
.material-symbols-rounded.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   TOP APP BAR
   ========================================================================== */
.top-app-bar {
  min-height: 72px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
  border-bottom: 1px solid var(--outline);
  z-index: 40;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  transition: background-color 0.3s, border-color 0.3s;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}
.brand-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  padding: 0;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.brand-name span:first-child {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.brand-name span:last-child {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.app-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--surface-variant);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--motion-smooth);
  position: relative;
}
.icon-btn:hover {
  background: var(--surface-dim);
  transform: scale(1.05);
}
.icon-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   BOTTOM NAVIGATION (Material 3 Expressive)
   ========================================================================== */
.bottom-nav {
  height: 76px;
  background-color: var(--surface);
  border-top: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 6px;
  z-index: 40;
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 4px;
  position: relative;
  transition: color 0.25s ease;
}
.nav-pill {
  width: 56px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--motion-spring);
  background-color: transparent;
}
.nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-item.active {
  color: var(--primary);
}
.nav-item.active .nav-pill {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  transform: scale(1.05);
}
.nav-item.active .nav-pill .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: var(--primary);
}

/* Floating Action Button (FAB) */
.fab-global {
  position: absolute;
  bottom: 90px;
  right: 20px;
  z-index: 35;
  background: var(--gradient-accent);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-xl);
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-tonal);
  cursor: pointer;
  transition: transform 0.3s var(--motion-spring), box-shadow 0.3s;
}
html[dir="rtl"] .fab-global {
  right: auto;
  left: 20px;
}
.fab-global:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}
.fab-global:active {
  transform: scale(0.96);
}

/* ==========================================================================
   SCREEN CONTAINER & TRANSITIONS
   ========================================================================== */
.main-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.main-viewport::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  padding-bottom: 90px;
  min-height: 100%;
  animation: screenFadeIn 0.35s var(--motion-smooth) forwards;
}
.screen.active {
  display: block;
}
@keyframes screenFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   COMPONENTS: TYPOGRAPHY, BUTTONS, CARDS, CHIPS, BADGES
   ========================================================================== */
.section-pad {
  padding: 20px 16px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}
.section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--motion-smooth);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface-variant);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--surface-dim);
}
.btn-tonal {
  background: var(--primary-container);
  color: var(--primary);
  font-weight: 700;
}
.btn-tonal:hover {
  filter: brightness(0.96);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(37, 99, 235, 0.08);
}
.btn-block {
  width: 100%;
}
.btn:active {
  transform: scale(0.97);
}

/* Expressive Cards */
.m3-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--motion-smooth);
}
.m3-card:hover {
  border-color: var(--outline-variant);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.m3-card-tonal {
  background: var(--surface-variant);
  border: none;
  border-radius: var(--radius-lg);
  padding: 18px;
}

/* Chips */
.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--outline);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-primary { background: rgba(37, 99, 235, 0.12); color: var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }

/* Form Fields */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}
html[dir="rtl"] .form-group {
  text-align: right;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Payment Method Selector & Receipt Box */
.payment-method-btn {
  background: var(--surface-variant);
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--motion-smooth);
}
.payment-method-btn:hover {
  border-color: var(--primary);
  background: var(--surface-dim);
}
.payment-method-btn.active {
  border-color: var(--primary);
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.account-details-box {
  background: var(--surface-dim);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 12px;
  animation: screenFadeIn 0.25s ease-out;
}

.receipt-dropzone {
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  background: var(--surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
}
.receipt-dropzone:hover {
  border-color: var(--primary);
  background: var(--surface-dim);
}
.receipt-dropzone.error {
  border-color: var(--danger) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Official Donation Receipt Certificate Card */
.donation-receipt-card {
  background: var(--surface);
  border: 2px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.2);
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.donation-receipt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #10B981, #2563EB, #F59E0B);
  z-index: 2;
}

.receipt-card-header {
  background: linear-gradient(135deg, #0A1931 0%, #152A4A 100%);
  color: #FFFFFF;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.receipt-card-body {
  padding: 22px 20px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
}

.receipt-amount-banner {
  background: linear-gradient(135deg, var(--surface-variant) 0%, var(--surface-dim) 100%);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.receipt-amount-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.receipt-grid-item {
  background: var(--surface-dim);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline);
  transition: border-color 0.2s ease;
}

.receipt-grid-item:hover {
  border-color: var(--primary);
}

.receipt-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.receipt-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.receipt-stamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
  margin-bottom: 14px;
}

.receipt-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.receipt-badge-status.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.receipt-badge-status.verified {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.official-seal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #D97706;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px dashed #D97706;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.6px;
}

.official-seal.verified {
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #059669 !important;
}

.receipt-footer-quote {

  font-family: var(--font-ur);
  font-size: 0.88rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--surface-variant);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline);
}


/* My Donations History Cards */
.my-donation-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s var(--motion-smooth);
}
.my-donation-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}


/* Hero Card */

.hero-banner {
  margin: 16px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  color: #FFFFFF;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.6px;
}
.hero-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.88;
  margin-bottom: 20px;
  max-width: 90%;
}
.hero-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Grid 2x2 Quick Actions */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 20px;
}
.quick-action-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s var(--motion-smooth);
  text-decoration: none;
  color: var(--text-main);
}
.quick-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.quick-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}
.quick-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Impact Stats Counter Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}
.stat-card {
  background: var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
}
.stat-number {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Horizontal Cards Scroll (Projects / Featured) */
.horizontal-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 16px;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }
.project-card-h {
  flex: 0 0 280px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s;
}
.project-card-h:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--surface-dim);
}
.project-content {
  padding: 16px;
}

/* Donation CTA Banner */
.donation-cta-card {
  margin: 16px;
  border-radius: var(--radius-xl);
  background: var(--gradient-cta);
  color: #FFFFFF;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

/* News Cards */
.news-card-v {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin: 0 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.news-card-v:hover {
  border-color: var(--outline-variant);
  transform: translateX(4px);
}
html[dir="rtl"] .news-card-v:hover {
  transform: translateX(-4px);
}
.news-thumb {
  width: 86px;
  height: 86px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

/* FAQ Accordion */
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  margin: 0 16px 10px;
  overflow: hidden;
  transition: all 0.2s;
}
.accordion-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  user-select: none;
}
.accordion-header .material-symbols-rounded {
  transition: transform 0.3s var(--motion-smooth);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--motion-smooth), padding 0.3s;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.accordion-item.open .accordion-header .material-symbols-rounded {
  transform: rotate(180deg);
  color: var(--primary);
}
.accordion-item.open .accordion-content {
  max-height: 240px;
  padding-bottom: 18px;
}

/* Settings List Items */
.settings-list {
  padding: 0 16px;
}
.settings-group {
  margin-bottom: 20px;
}
.settings-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
}
.settings-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   MODALS, LIGHTBOX, TOAST / SNACKBAR
   ========================================================================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.modal-sheet {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s var(--motion-spring);
  position: relative;
  margin: auto;
}
.modal-backdrop.active .modal-sheet {
  transform: scale(1);
}
.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

/* Snackbar */
.snackbar {
  position: absolute;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--secondary);
  color: var(--on-secondary);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--motion-spring);
  white-space: nowrap;
}
.snackbar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   AUTHENTICATION SCREEN (Material 3 Expressive)
   ========================================================================== */
.auth-screen {
  position: absolute;
  inset: 0;
  background: var(--background);
  z-index: 85;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 20px 40px;
  animation: authSlideUp 0.35s var(--motion-smooth);
}

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

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.auth-brand-card {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-badge {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--gradient-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  margin-bottom: 14px;
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-tabs {
  display: flex;
  background: var(--surface-variant);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--outline);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--motion-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

html[dir="rtl"] .auth-input-icon {
  left: auto;
  right: 14px;
}

.auth-input-wrapper .form-input {
  padding-left: 44px;
  padding-right: 44px;
}

html[dir="rtl"] .auth-input-wrapper .form-input {
  padding-left: 44px;
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}

html[dir="rtl"] .password-toggle-btn {
  right: auto;
  left: 10px;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.auth-forgot-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-error-box {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Google Auth Button & Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--outline);
}

.auth-divider span {
  padding: 0 12px;
}

.btn-google {
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--outline);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--motion-smooth);
}

.btn-google:hover {
  background: var(--surface-variant);
  border-color: var(--outline-focus);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-google:active {
  transform: scale(0.98);
}

/* User Profile Header Avatar */
.profile-header-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  border: 2px solid var(--surface);
  transition: transform 0.2s var(--motion-smooth);
}

.profile-header-btn:hover .user-avatar-circle {
  transform: scale(1.08);
}

/* User Profile Sheet & Cards */
.profile-hero-box {
  background: var(--gradient-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  border: 3px solid var(--surface);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.profile-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-stat-card {
  background: var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
}

.btn-danger {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-outline-danger {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
  border: 1.5px solid rgba(220, 38, 38, 0.3);
}

.btn-outline-danger:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: #DC2626;
}

/* Splash Screen */
.splash-screen {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  transition: opacity 0.5s ease;
}
.splash-logo {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: pulseLogo 2s infinite ease-in-out;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--outline-variant);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s var(--motion-spring);
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Search Bar Input Container */
.search-container {
  padding: 12px 16px;
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  gap: 10px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
  font-family: inherit;
}

/* ==========================================================================
   SHIMMER SKELETON LOADING
   ========================================================================== */
@keyframes shimmerWave {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-variant) 25%, var(--outline-variant) 50%, var(--surface-variant) 75%);
  background-size: 200% 100%;
  animation: shimmerWave 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
  display: block;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  width: 100%;
  height: 160px;
  border-radius: 0;
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-chip {
  width: 80px;
  height: 22px;
  border-radius: var(--radius-full);
}

.skeleton-title {
  width: 75%;
  height: 22px;
  border-radius: 6px;
}

.skeleton-text {
  width: 100%;
  height: 14px;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 55%;
}

.skeleton-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

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

.skeleton-gallery-box {
  height: 130px;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   POPUP ANNOUNCEMENT BANNER MODAL (FULLY RESPONSIVE)
   ========================================================================== */
.popup-banner-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: bannerFadeIn 0.3s ease-out;
}

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

.popup-banner-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 500px);
  max-height: 85vh;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  animation: bannerScaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

@keyframes bannerScaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-banner-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, background 0.2s;
}

.popup-banner-close-btn:hover {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.95);
}

.popup-banner-close-btn:active {
  transform: scale(0.92);
}

.popup-banner-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
}

.popup-banner-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 500px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 24px;
}

/* ==========================================================================
   NOTIFICATIONS INBOX LIST
   ========================================================================== */
.notif-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  transition: all 0.2s var(--motion-smooth);
  position: relative;
  cursor: pointer;
}

.notif-card.unread {
  background: var(--surface-variant);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.notif-unread-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-box.appeal {
  background: var(--danger-container);
  color: var(--danger);
}

.notif-icon-box.announcement {
  background: var(--primary-container);
  color: var(--primary);
}

.notif-icon-box.update {
  background: var(--success-container);
  color: var(--success);
}

.notif-icon-box.general {
  background: var(--surface-variant);
  color: var(--text-main);
}

.notif-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.notif-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.notif-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.notif-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.notif-action-btn {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

@keyframes notifHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    border-color: var(--primary);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    border-color: var(--primary);
    transform: scale(1.02);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

.notif-card.highlight-pulse {
  animation: notifHighlightPulse 1.4s ease-out;
  border-color: var(--primary) !important;
}

/* ==========================================================================
   IN-APP HEADS-UP NOTIFICATION POPUP
   ========================================================================== */
.notif-popup-alert {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(37, 99, 235, 0.15);
  z-index: 999;
  cursor: pointer;
  animation: notifSlideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.notif-popup-alert:hover {
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.notif-popup-alert:active {
  transform: translateX(-50%) scale(0.98);
}

@keyframes notifSlideDown {
  from {
    top: -100px;
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    top: 16px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.notif-popup-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-popup-icon-box.appeal {
  background: #FEE2E2;
  color: #DC2626;
}

.notif-popup-icon-box.update {
  background: #D1FAE5;
  color: #059669;
}

.notif-popup-content {
  flex: 1;
  min-width: 0;
}

.notif-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.notif-popup-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--primary);
}

.notif-popup-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.notif-popup-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.notif-popup-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  margin-top: 1px;
}

.notif-popup-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-dim);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.notif-popup-close-btn:hover {
  background: var(--surface-variant);
  color: var(--text-main);
}

.notif-popup-close-btn .material-symbols-rounded {
  font-size: 18px;
}

/* ==========================================================================
   PWA IN-APP INSTALL PROMPT BANNER
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 80;
  animation: pwaSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pwaSlideUp {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.pwa-install-card {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-install-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 2px;
}

.pwa-install-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Responsive desktop adjustments */
@media (min-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   OFFICIAL DONATION RECEIPT CARD & LIVE VERIFICATION STAMPS
   ========================================================================== */
.donation-receipt-card {
  background: var(--surface);
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  margin-top: 10px;
  position: relative;
  text-align: left;
}

.receipt-card-header {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-card-body {
  padding: 16px 18px;
}

.receipt-amount-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 12px;
  text-align: center;
  margin-bottom: 14px;
}

.receipt-amount-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.receipt-grid-item {
  background: var(--surface-variant);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.receipt-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.receipt-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.receipt-stamp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  margin: 12px 0;
}

.receipt-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: all 0.35s ease;
}

.receipt-badge-status.pending {
  background: #FEF3C7;
  color: #D97706;
  border: 1.5px solid #F59E0B;
}

.receipt-badge-status.verified {
  background: #D1FAE5;
  color: #059669;
  border: 1.5px solid #10B981;
  animation: sealPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.receipt-badge-status.rejected {
  background: #FEE2E2;
  color: #DC2626;
  border: 1.5px solid #EF4444;
}

.official-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1.5px dashed #D97706;
  color: #D97706;
  background: #FFFBEB;
  transition: all 0.35s ease;
}

.official-seal.verified {
  border: 1.5px solid #059669;
  color: #059669;
  background: #ECFDF5;
  animation: sealPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.official-seal.rejected {
  border: 1.5px solid #DC2626;
  color: #DC2626;
  background: #FEF2F2;
}

@keyframes sealPulse {
  0% { transform: scale(0.85); opacity: 0.4; }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
