/* ============================================================
   Cole's Choice Foundation — Design System & Styles
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --warm: #f97316;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #60a5fa;
  --primary-light: #1e3a5f;
  --secondary: #34d399;
  --secondary-dark: #6ee7b7;
  --accent: #fbbf24;
  --accent-dark: #fcd34d;
  --warm: #fb923c;
  --slate-900: #f1f5f9;
  --slate-800: #e2e8f0;
  --slate-700: #cbd5e1;
  --slate-600: #94a3b8;
  --slate-500: #94a3b8;
  --slate-400: #64748b;
  --slate-300: #475569;
  --slate-200: #334155;
  --slate-100: #1e293b;
  --slate-50: #0f172a;
  --white: #0c1322;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
  color-scheme: dark;
}

/* Dark mode: Nav */
[data-theme="dark"] .nav {
  background: rgba(12, 19, 34, 0.92);
  border-bottom-color: var(--slate-200);
}

/* Dark mode: Hero */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0c1322 0%, #0f172a 50%, #1a1a2e 100%);
}

[data-theme="dark"] .hero-badge {
  background: var(--slate-100);
  border-color: var(--slate-200);
}

/* Dark mode: SVG backgrounds in hero */
[data-theme="dark"] .hero-svg-wrapper svg rect[fill="url(#sky)"] { opacity: 0.85; }

/* Dark mode: Programs section */
[data-theme="dark"] .programs { background: var(--white); }
[data-theme="dark"] .program-card { background: var(--slate-100); }

/* Dark mode: Impact section - already dark, just adjust */
[data-theme="dark"] .impact { background: #060a14; }

/* Dark mode: About section */
[data-theme="dark"] .about { background: var(--slate-50); }
[data-theme="dark"] .about-image { background: linear-gradient(135deg, #1e3a5f, #134e3a); }

/* Dark mode: Board */
[data-theme="dark"] .board { background: var(--white); }
[data-theme="dark"] .board-card:hover { background: var(--slate-100); }

/* Dark mode: Testimonials */
[data-theme="dark"] .testimonials { background: var(--slate-50); }
[data-theme="dark"] .testimonial { background: var(--slate-100); }

/* Dark mode: Newsletter */
[data-theme="dark"] .newsletter-box {
  background: linear-gradient(135deg, #060a14 0%, #0f172a 50%, #060a14 100%);
}

/* Dark mode: Event cards */
[data-theme="dark"] .event-preview-card { background: var(--slate-100); }
[data-theme="dark"] .event-preview-card:hover { background: var(--white); }

/* Dark mode: CTA — gradient is fine, keep it */

/* Dark mode: Footer — already dark */
[data-theme="dark"] .footer { background: #060a14; }

/* Dark mode: Mobile menu */
[data-theme="dark"] .mobile-menu-panel { background: var(--slate-100); }
[data-theme="dark"] .mobile-menu-panel a { color: var(--slate-800); border-bottom-color: var(--slate-200); }
[data-theme="dark"] .mobile-close { background: var(--slate-200); color: var(--slate-600); }

/* Dark mode: Page hero (interior pages) */
[data-theme="dark"] .page-hero,
[data-theme="dark"] .donate-hero {
  background: linear-gradient(135deg, #0c1322 0%, #0f172a 50%, #1a1a2e 100%);
}

/* Dark mode: Cards, panels, forms */
[data-theme="dark"] .donate-form,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dash-panel,
[data-theme="dark"] .value-card,
[data-theme="dark"] .legal-item,
[data-theme="dark"] .volunteer-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .board-detail-card,
[data-theme="dark"] .amount-btn,
[data-theme="dark"] .news-article,
[data-theme="dark"] .sidebar-panel,
[data-theme="dark"] .t-card,
[data-theme="dark"] .doc-item,
[data-theme="dark"] .story-card,
[data-theme="dark"] .story-hero-card,
[data-theme="dark"] .counter-card {
  background: var(--slate-100);
  border-color: var(--slate-200);
}

[data-theme="dark"] .contact-card:hover,
[data-theme="dark"] .board-detail-card:hover {
  background: var(--white);
}

/* Dark mode: Impact sidebar */
[data-theme="dark"] .impact-preview { background: var(--slate-100); }

/* Dark mode: Form inputs */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .custom-amount input,
[data-theme="dark"] .dash-search {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-800);
}

/* Dark mode: Amount buttons */
[data-theme="dark"] .amount-btn.active { background: var(--primary-light); }

/* Dark mode: Btn secondary */
[data-theme="dark"] .btn-secondary {
  background: var(--slate-100);
  border-color: var(--primary);
}

/* Dark mode: Quick actions */
[data-theme="dark"] .quick-action-btn { background: var(--slate-50); }
[data-theme="dark"] .contact-quick-links { background: var(--primary-light); }

/* Dark mode: Dashboard */
[data-theme="dark"] .dash-main { background: #060a14; }
[data-theme="dark"] .dash-header { background: var(--slate-100); }
[data-theme="dark"] .trend-btn { background: var(--slate-100); }

/* Dark mode: Progress bars */
[data-theme="dark"] .progress-bar,
[data-theme="dark"] .goal-bar { background: var(--slate-200); }

/* Dark mode: Tables */
[data-theme="dark"] .dash-table th { border-bottom-color: var(--slate-200); }
[data-theme="dark"] .dash-table td { border-bottom-color: var(--slate-200); }

/* Dark mode: Theme toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--slate-600);
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Show/hide sun/moon icons */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --- Skip Nav (accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  color: var(--white);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--slate-900); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--slate-500); }

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0.75rem auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--slate-900);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--slate-900);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  margin: 5px 0;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fefce8 100%);
  padding-top: 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg-wrapper {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3;
}

/* --- Programs Section --- */
.programs {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

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

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

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

.program-card:nth-child(2)::before { background: var(--secondary); }
.program-card:nth-child(3)::before { background: var(--accent); }

.program-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.program-card:nth-child(2) .program-icon { background: #d1fae5; }
.program-card:nth-child(3) .program-icon { background: #fef3c7; }

.program-card h3 { margin-bottom: 0.75rem; }

.program-card p {
  color: var(--slate-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Impact Section --- */
.impact {
  background: var(--slate-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  border-radius: 50%;
}

.impact h2 { color: var(--white); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.impact-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.impact-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.impact-label {
  font-size: 0.95rem;
  color: var(--slate-400);
}

/* --- About / Mission Section --- */
.about {
  background: var(--slate-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-content p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.value-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}

.value-item h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.value-item p { font-size: 0.8rem; color: var(--slate-500); margin: 0; }

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #d1fae5);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Board Section --- */
.board {
  background: var(--white);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.board-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.board-card:hover {
  background: var(--slate-50);
}

.board-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}

.board-card:nth-child(1) .board-avatar { background: linear-gradient(135deg, var(--primary), #6366f1); }
.board-card:nth-child(2) .board-avatar { background: linear-gradient(135deg, var(--secondary), #14b8a6); }
.board-card:nth-child(3) .board-avatar { background: linear-gradient(135deg, var(--accent), var(--warm)); }
.board-card:nth-child(4) .board-avatar { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.board-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.board-card .role { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.board-card .bio { font-size: 0.85rem; color: var(--slate-500); margin-top: 0.5rem; }

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta .btn-accent { position: relative; z-index: 1; }
.cta .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  position: relative;
  z-index: 1;
}
.cta .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: var(--slate-400); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }

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

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--slate-500); }
.footer-legal a:hover { color: var(--white); }

/* --- Events Preview Section --- */
.events-preview {
  background: var(--white);
}

.events-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.events-preview-header h2 { margin-top: 0.25rem; }

.events-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.event-preview-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.event-preview-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-2px);
}

.epc-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.epc-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.epc-day {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.epc-content h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.epc-content > p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.epc-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.epc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.epc-spots {
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* --- Social Links (footer) --- */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--slate-400);
  transition: all var(--transition);
}

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

/* --- Mobile Nav Overlay --- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.open { display: block; opacity: 1; }

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-panel.open {
  display: block;
  transform: translateX(0);
}

.mobile-menu-panel a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
}

.mobile-menu-panel a:hover { color: var(--primary); }

.mobile-menu-panel .mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.mobile-menu-panel .mobile-cta .btn { justify-content: center; }

.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--slate-600);
  transition: all var(--transition);
}

.mobile-close:hover { background: var(--slate-200); }

/* --- Testimonials Section --- */
.testimonials {
  background: var(--slate-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: 0;
}

.newsletter-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.newsletter-content p {
  color: var(--slate-400);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
  max-width: 380px;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-sans);
  width: 300px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.newsletter-form input::placeholder { color: var(--slate-500); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(37,99,235,0.2);
}

.newsletter-form .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  white-space: nowrap;
}

/* --- Animations --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .programs-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .events-preview-grid { grid-template-columns: 1fr; }
  .events-preview-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .newsletter-box { flex-direction: column; text-align: center; padding: 2rem; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .impact-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .board-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cta-actions { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { flex-direction: column; gap: 0.5rem; }
}


/* ============================================================
   Conversion / Donate Page
   ============================================================ */

.donate-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  text-align: center;
}

.donate-hero h1 {
  margin-bottom: 1rem;
}

.donate-hero p {
  font-size: 1.2rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

.donate-section {
  padding: 4rem 0;
}

.donate-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

/* Amount selector */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  padding: 1.25rem;
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.amount-btn:hover {
  border-color: var(--primary);
}

.amount-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.amount-btn .amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  display: block;
}

.amount-btn .impact-text {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  display: block;
}

.custom-amount {
  position: relative;
  margin-bottom: 2rem;
}

.custom-amount label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-700);
}

.custom-amount input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.custom-amount input:focus {
  outline: none;
  border-color: var(--primary);
}

.custom-amount .dollar-sign {
  position: absolute;
  bottom: 0.9rem;
  left: 0.875rem;
  font-size: 1.125rem;
  color: var(--slate-400);
  font-weight: 600;
}

/* Donate form */
.donate-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.donate-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Trust signals */
.trust-signals {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.trust-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Impact sidebar */
.donate-sidebar {
  position: sticky;
  top: 96px;
}

.impact-preview {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.impact-preview h3 { margin-bottom: 1rem; }

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-200);
}

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

.impact-item .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.impact-item p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.impact-item strong { color: var(--slate-900); }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-author .detail { font-size: 0.8rem; color: var(--slate-500); }

@media (max-width: 1024px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-sidebar { position: static; }
}


/* ============================================================
   Dashboard Prototype
   ============================================================ */

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: var(--slate-900);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.dash-nav { list-style: none; flex: 1; }

.dash-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 0.25rem;
}

.dash-nav li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.dash-nav li a.active {
  background: var(--primary);
  color: var(--white);
}

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

/* Main content */
.dash-main {
  background: var(--slate-50);
  overflow-y: auto;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.dash-header h1 {
  font-size: 1.5rem;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-search {
  padding: 0.5rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  width: 240px;
}

.dash-content {
  padding: 2rem;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
}

.stat-card:nth-child(1) .stat-card-icon { background: #dbeafe; }
.stat-card:nth-child(2) .stat-card-icon { background: #d1fae5; }
.stat-card:nth-child(3) .stat-card-icon { background: #fef3c7; }
.stat-card:nth-child(4) .stat-card-icon { background: #fce7f3; }

.stat-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.trend-up { background: #d1fae5; color: #059669; }
.trend-neutral { background: var(--slate-100); color: var(--slate-500); }

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}

.dash-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.panel-header h3 { font-size: 1rem; }

.panel-body { padding: 1.25rem 1.5rem; }

/* Table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.dash-table td {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9rem;
}

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

.donor-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.donor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-completed { background: #d1fae5; color: #059669; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-recurring { background: #dbeafe; color: #2563eb; }

/* Events list */
.event-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--slate-100);
}

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

.event-date-box {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 0.5rem 0.25rem;
}

.event-date-box .month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.event-date-box .day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.event-details h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.event-details p { font-size: 0.8rem; color: var(--slate-500); }

/* Progress bars */
.progress-item {
  margin-bottom: 1.25rem;
}

.progress-item:last-child { margin-bottom: 0; }

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-label span { font-size: 0.85rem; font-weight: 500; }
.progress-label .pct { color: var(--primary); font-weight: 700; }

.progress-bar {
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.progress-fill.blue { background: linear-gradient(90deg, var(--primary), #6366f1); }
.progress-fill.green { background: linear-gradient(90deg, var(--secondary), #14b8a6); }
.progress-fill.amber { background: linear-gradient(90deg, var(--accent), var(--warm)); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
}

.quick-action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.quick-action-btn .qa-icon { font-size: 1.25rem; }

/* Dashboard Analytics Row */
.dash-analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Goal Thermometer */
.goal-thermometer {
  margin-bottom: 1.5rem;
}

.goal-amounts {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.goal-raised {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
}

.goal-target {
  font-size: 0.9rem;
  color: var(--slate-500);
}

.goal-bar {
  height: 24px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  min-width: 3rem;
}

.goal-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.goal-milestones {
  position: relative;
  height: 24px;
  margin-top: 0.25rem;
}

.goal-milestone {
  position: absolute;
  transform: translateX(-50%);
}

.milestone-line {
  width: 1px;
  height: 8px;
  background: var(--slate-300);
  margin: 0 auto 2px;
}

.goal-milestone span {
  font-size: 0.7rem;
  color: var(--slate-400);
  font-weight: 500;
}

.goal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.goal-stat { text-align: center; }

.goal-stat-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
}

.goal-stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.1rem;
}

/* Trend Chart */
.trend-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: white;
  color: var(--slate-500);
  cursor: pointer;
  transition: all var(--transition);
}

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

.trend-summary {
  margin-bottom: 0.75rem;
}

.trend-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
}

.trend-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.trend-up-text { color: #059669; }

.trend-chart {
  width: 100%;
  height: auto;
}

.chart-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 2s ease forwards;
}

.chart-area {
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

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

@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-analytics-row { grid-template-columns: 1fr; }
  .goal-stats { grid-template-columns: repeat(2, 1fr); }
}
