/* ============================================
   ANNAJYOTI - Complete Design System
   "Roshni failao, Seva karo"
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #1A3A2A;
  --primary-700: #2D6A4F;
  --primary-500: #52B788;
  --primary-100: #D8F3DC;
  --primary-50: #F0FAF3;
  --saffron: #C45C00;
  --amber: #E8A040;
  --wheat: #C8B870;
  --leaf: #8FAE60;
  --dark: #1A2E1E;
  --gray-700: #3D4F42;
  --gray-500: #6B7A6D;
  --gray-100: #F0F4F1;
  --white: #FFFFFF;
  --danger: #E63946;

  /* Semantic Colors */
  --success: #52B788;
  --warning: #E8A040;
  --info: #4A90E2;
  --error: #E63946;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 46, 30, 0.06);
  --shadow-md: 0 4px 6px rgba(26, 46, 30, 0.08);
  --shadow-lg: 0 10px 25px rgba(26, 46, 30, 0.1);
  --shadow-xl: 0 20px 50px rgba(26, 46, 30, 0.15);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --max-width: 1280px;
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

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

a:hover {
  color: var(--primary-500);
}

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

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }
.grid { display: grid; }

.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  height: var(--navbar-height);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

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

.nav-actions .user-menu {
  position: relative;
  cursor: pointer;
}

.nav-actions .avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.nav-actions .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: var(--space-sm);
  display: none;
  border: 1px solid var(--gray-100);
}

.nav-actions .dropdown.show { display: block; }

.nav-actions .dropdown a,
.nav-actions .dropdown button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  border: none;
  background: none;
  color: var(--gray-700);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-actions .dropdown a:hover,
.nav-actions .dropdown button:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: var(--space-sm);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: var(--space-xl);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: var(--space-md);
  color: var(--gray-700);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-50);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary-500);
  color: var(--white);
  border-color: var(--primary-500);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-700);
  border-color: var(--primary-700);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--primary-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--dark);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #c1121f;
  border-color: #c1121f;
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.btn-amber:hover:not(:disabled) {
  background: var(--saffron);
  border-color: var(--saffron);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.2rem; }
.btn-block { width: 100%; }

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7A6D' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-body { padding: var(--space-xl); }
.card-header { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--gray-100); }
.card-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--gray-100); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge-green { background: var(--primary-100); color: var(--primary); }
.badge-amber { background: #FFF3E0; color: var(--amber); }
.badge-red { background: #FFE5E5; color: var(--danger); }
.badge-blue { background: #E3F0FF; color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }

.badge-verified { background: var(--primary-100); color: var(--primary); }
.badge-verified::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.85rem; }

.badge-available { background: #D8F3DC; color: #1A3A2A; }
.badge-claimed { background: #FFF3E0; color: #C45C00; }
.badge-delivered { background: #E3F0FF; color: #2D6A4F; }
.badge-cancelled { background: #FFE5E5; color: #E63946; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + 20px);
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
  width: 100%;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transform: translateX(120%);
  transition: transform var(--transition-base);
  border-left: 4px solid var(--info);
  animation: slideIn 0.3s forwards;
}

.toast.show { transform: translateX(0); }

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warn { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warn .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-body { flex: 1; }

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.toast-message {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  padding: var(--space-xs);
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

/* Loading States */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, #E8EDE9 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Dashboard Layout */
.dash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--navbar-height));
}

.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  padding: var(--space-xl);
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.dash-sidebar .logo-area {
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--gray-100);
}

.dash-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  font-size: 0.95rem;
}

.dash-sidebar .nav-item:hover,
.dash-sidebar .nav-item.active {
  background: var(--primary-50);
  color: var(--primary);
}

.dash-sidebar .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-main {
  padding: var(--space-xl);
  background: var(--primary-50);
}

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  transition: all var(--transition-fast);
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.green { background: var(--primary-100); color: var(--primary); }
.stat-icon.amber { background: #FFF3E0; color: var(--amber); }
.stat-icon.blue { background: #E3F0FF; color: var(--info); }
.stat-icon.red { background: #FFE5E5; color: var(--danger); }

.stat-info h4 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-info p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th {
  background: var(--primary-50);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-card td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.table-card tr:last-child td {
  border-bottom: none;
}

.table-card tr:hover td {
  background: var(--primary-50);
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-500);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card i {
  font-size: 2.5rem;
  color: var(--primary-500);
  margin-bottom: var(--space-md);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

/* Section Styles */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Impact Strip */
.impact-strip {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2xl) 0;
}

.impact-strip .stats-grid {
  gap: var(--space-2xl);
}

.impact-strip .stat-item {
  text-align: center;
}

.impact-strip .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: var(--space-sm);
}

.impact-strip .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* NGO Cards */
.ngo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.ngo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.ngo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ngo-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.ngo-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ngo-info { flex: 1; }

.ngo-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.ngo-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.focus-tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Story Cards */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

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

.story-image {
  height: 200px;
  background: var(--primary-100);
  position: relative;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content { padding: var(--space-xl); }

.story-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

/* Forms & Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 46, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: var(--space-sm);
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-100);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transition: all var(--transition-base);
}

.step.active .step-number {
  background: var(--primary);
  color: var(--white);
}

.step.completed .step-number {
  background: var(--primary-500);
  color: var(--white);
}

.step-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.progress-fill {
  height: 100%;
  background: var(--primary-500);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

/* Accordion */
.accordion {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-100);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  padding: var(--space-lg);
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--primary-50);
}

.accordion-content {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-content.open {
  padding: var(--space-lg);
  max-height: 500px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: var(--space-xl);
}

.tab {
  padding: var(--space-md) var(--space-xl);
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab:hover:not(.active) {
  color: var(--gray-700);
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.search-box input {
  padding-left: 2.5rem;
}

/* Status Tracker */
.status-tracker {
  display: flex;
  justify-content: space-between;
  margin: var(--space-xl) 0;
  position: relative;
}

.status-tracker::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-100);
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.status-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  border: 3px solid var(--white);
  transition: all var(--transition-base);
}

.status-step.completed .status-dot {
  background: var(--primary-500);
  color: var(--white);
}

.status-step.current .status-dot {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(232, 160, 64, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 999;
    box-shadow: var(--shadow-xl);
  }

  .mobile-sidebar-toggle {
    display: block;
  }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero h1 { font-size: 2.5rem; }
  
  .ngo-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .steps::before { display: none; }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero h1 { font-size: 2rem; }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .status-tracker {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

@media (max-width: 400px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .dash-main {
    padding: var(--space-md);
  }
}