/* ============================================
   🐱 Cat (قط) - Premium Donation Platform
   Design System & Global Styles
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary Palette - Deep Purple to Teal */
  --primary-50: #f3e8ff;
  --primary-100: #e9d5ff;
  --primary-200: #d8b4fe;
  --primary-300: #c084fc;
  --primary-400: #a855f7;
  --primary-500: #9333ea;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;

  /* Accent - Warm Gold */
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  /* Teal */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  /* Surfaces - Vibrant Dark Mode */
  --bg-primary: #0b0f19; /* Deep dark blue */
  --bg-secondary: #0d121f; 
  --bg-card: rgba(30, 41, 59, 0.4); /* Glass slate */
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --bg-glass-strong: rgba(15, 23, 42, 0.9);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Gradients - Vibrant Neon */
  --gradient-hero: linear-gradient(180deg, #0b0f19 0%, #170f2a 100%);
  --gradient-primary: linear-gradient(135deg, #ec4899, #8b5cf6);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #ec4899);
  --gradient-glow: linear-gradient(135deg, #f472b6, #38bdf8);

  /* Shadows - Vibrant Glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.4);
  --shadow-glow-teal: 0 0 20px rgba(56, 189, 248, 0.4);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', 'Inter', sans-serif;

  /* Spacing (-30%) */
  --space-xs: 0.15rem;
  --space-sm: 0.35rem;
  --space-md: 0.7rem;
  --space-lg: 1rem;
  --space-xl: 1.4rem;
  --space-2xl: 2.1rem;
  --space-3xl: 2.8rem;
  --space-4xl: 4.2rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Scaled down base font */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.rtl {
  font-family: var(--font-arabic);
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Floating paws - Re-enabled for beautiful aesthetic */
.floating-paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1001;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-logo-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-ar {
  font-family: var(--font-arabic);
  font-size: 0.9em;
  opacity: 0.7;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.rtl .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.lang-current {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.rtl .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lang-option:hover,
.lang-option.active {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(147, 51, 234, 0.15);
  color: var(--primary-300);
}

.lang-flag {
  font-size: 0.70rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Donate Button in Nav */
.nav-donate-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.nav-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.5);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  justify-content: center;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(147, 51, 234, 0.5), 0 0 100px rgba(20, 184, 166, 0.2);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-kofi {
  position: relative;
}

.kofi-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-500);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rtl .kofi-badge {
  right: auto;
  left: -8px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite 4s;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.floating-paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paw {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.08;
  animation: float-paw 20s linear infinite;
}

.paw-1 { top: 15%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.paw-2 { top: 25%; right: 20%; animation-delay: 3s; }
.paw-3 { top: 60%; left: 25%; animation-delay: 6s; font-size: 1.8rem; }
.paw-4 { top: 40%; right: 10%; animation-delay: 2s; font-size: 2.5rem; opacity: 0.06; }
.paw-5 { bottom: 20%; left: 15%; animation-delay: 8s; }
.paw-6 { top: 70%; right: 30%; animation-delay: 5s; font-size: 2.2rem; opacity: 0.05; }
.paw-7 { bottom: 30%; right: 5%; animation-delay: 10s; font-size: 1.3rem; }

@keyframes float-paw {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.08; }
  90% { opacity: 0.08; }
  100% { transform: translate(100px, -200px) rotate(360deg); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
  animation: hero-fade-in 1s ease-out;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-200);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
  animation: hero-fade-in 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-200) 50%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-fade-in 1s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  animation: hero-fade-in 1s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: hero-fade-in 1s ease-out 0.5s both;
}

/* --- Stats Section --- */
.stats-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-3xl);
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: calc(var(--space-xl) * -1);
  margin-bottom: var(--space-3xl);
}

/* Funding Progress Bar Styles */
.funding-progress-container {
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.funding-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
}

.rtl .funding-header {
  flex-direction: row-reverse;
}

.funding-raised {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.funding-goal {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Donors Section --- */
.donors-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.donors-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.donor-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--transition-base);
  animation: slide-up 0.5s ease-out both;
}

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

.donor-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.rtl .donor-card:hover {
  transform: translateX(-4px);
}

.donor-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.donor-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.donor-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.donor-message {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donor-amount {
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-400);
  white-space: nowrap;
}

.donors-empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  backdrop-filter: blur(20px);
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Page Hero (About / Legal pages) --- */
.page-hero {
  position: relative;
  padding: calc(var(--space-4xl) + 80px) 0 var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-title {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.page-subtitle {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Content Section (About) --- */
.content-section {
  padding: var(--space-4xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.content-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card-wide {
  grid-column: 1 / -1;
}

.content-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.content-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.list-icon {
  color: var(--teal-400);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Legal Section (Privacy / Terms) --- */
.legal-section {
  padding: var(--space-4xl) 0;
}

.legal-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-block {
  margin-bottom: var(--space-2xl);
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-heading {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-block p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-logo span {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-ar {
  font-family: var(--font-arabic);
  opacity: 0.7;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-paws {
  font-size: 1.2rem;
  opacity: 0.3;
  letter-spacing: 4px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-300);
  transform: translateX(4px);
  display: inline-block;
}

.rtl .footer-col a:hover {
  transform: translateX(-4px);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-love {
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .legal-card {
    padding: var(--space-xl);
  }

  .donor-card {
    padding: var(--space-sm) var(--space-md);
  }

  .lang-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
  }

  .lang-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .stat-card {
    padding: var(--space-lg);
  }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Selection --- */
::selection {
  background: rgba(147, 51, 234, 0.3);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* --- AI Demo Section (Live Prototype) --- */
.ai-demo-section {
  padding: 0 0 var(--space-3xl);
  margin-top: calc(var(--space-xl) * -1);
  position: relative;
  z-index: 10;
}

.ai-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--primary-400);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-glow);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(20px);
}

.ai-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.rtl .ai-demo-header { flex-direction: row-reverse; }

.ai-demo-header h3 {
  font-size: 1.5rem;
  color: var(--primary-300);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pulse-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.pulse-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}
.rtl .pulse-badge::before { margin-right: 0; margin-left: 6px; }

.ai-demo-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.demo-form {
  display: flex;
  gap: var(--space-md);
  position: relative;
}

.ai-input {
  flex-grow: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--primary-500);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.rtl .ai-input { text-align: right; }

.ai-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.ai-model-select {
  flex-shrink: 0;
  width: auto;
  min-width: 180px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--primary-500);
  border-radius: var(--radius-full);
  padding: 14px 40px 14px 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 1.2em;
  cursor: pointer;
}

.ai-model-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.ai-model-select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.rtl .ai-model-select {
  padding: 14px 24px 14px 40px;
  background-position: left 14px center;
}

@media (max-width: 600px) {
  .demo-form {
    flex-direction: column;
  }
}
