/* ============================================
   GOALKER — Design System 2026
   ============================================
   Mobile-first · BEM · Vanilla CSS
   No Bootstrap dependency
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  /* Green scale (Primary) */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;

  /* Gray scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic colors */
  --color-primary: var(--green-500);
  --color-primary-hover: var(--green-600);
  --color-primary-active: var(--green-700);
  --color-primary-light: var(--green-50);
  --color-primary-rgb: 16, 185, 129;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Surfaces */
  --bg-body: #ffffff;
  --bg-alt: var(--gray-50);
  --bg-card: #ffffff;
  --text-color: var(--gray-900);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --border-color: var(--gray-200);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

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

  /* Easing */
  --ease-base: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Typography */
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Z-index */
  --z-nav: 100;
  --z-sticky: 90;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Hero gradient */
  --gradient-hero: linear-gradient(135deg, #059669 0%, #047857 30%, #0891B2 70%, #6366F1 100%);
}


/* ============================================
   2. RESET (minimal, preserves FA icons)
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
  body { font-size: 16px; }
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 200ms var(--ease-base);
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--green-300);
  outline-offset: 2px;
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.06rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

@media (min-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }
}

.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }


/* ============================================
   4. LAYOUT — Container
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

.container--narrow { max-width: 640px; }
.container--md { max-width: 900px; }


/* ============================================
   5. GRID (mobile-first)
   ============================================ */
.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) { .grid { gap: 20px; } }
@media (min-width: 1024px) { .grid { gap: 24px; } }

.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.grid--stats {
  grid-template-columns: repeat(3, 1fr);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-base);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

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

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--green-700);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn--white:hover {
  background: var(--gray-50);
  color: var(--green-800);
}

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

.btn--secondary {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-50);
}
.btn--secondary:hover { background: var(--green-100); }

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn--xl {
  padding: 18px 40px;
  font-size: 1.125rem;
  border-radius: var(--radius-full);
}

.btn--block { width: 100%; }

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}


/* ============================================
   7. CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow 200ms var(--ease-base), transform 200ms var(--ease-base);
}

@media (min-width: 640px) { .card { padding: 20px; } }

@media (min-width: 1024px) {
  .card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}


/* ============================================
   8. BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge--green  { background: var(--green-100); color: var(--green-700); }
.badge--blue   { background: #dbeafe; color: #1d4ed8; }
.badge--red    { background: #fee2e2; color: #b91c1c; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--gray   { background: var(--gray-100); color: var(--gray-700); }

.badge--cat {
  color: #fff;
  font-size: 0.6875rem;
  padding: 3px 8px;
}


/* ============================================
   9. PROGRESS BAR
   ============================================ */
.progress {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   10. AVATARS
   ============================================ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
}

.avatar--xs { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar--sm { width: 40px; height: 40px; font-size: 0.8125rem; }
.avatar--md { width: 48px; height: 48px; font-size: 0.9375rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.125rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.5rem; }

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


/* ============================================
   11. TOP NAVIGATION (visitor)
   ============================================ */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-nav);
  transition: transform 300ms var(--ease-base);
}

[data-theme="dark"] .topnav {
  background: rgba(15,18,24,0.85);
}

.topnav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  flex-shrink: 0;
}
.topnav__brand:hover { color: var(--text-color); }
.topnav__brand i { color: var(--color-primary); font-size: 1.3rem; }

.topnav__links {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

@media (min-width: 640px) {
  .topnav__links { display: flex; }
}

.topnav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 200ms var(--ease-base);
}
.topnav__link:hover {
  color: var(--text-color);
  background: var(--gray-100);
}
[data-theme="dark"] .topnav__link:hover { background: rgba(255,255,255,0.06); }

.topnav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all 200ms var(--ease-base);
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--gray-100);
  color: var(--text-color);
}
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.06); }

.theme-toggle .fa-moon { display: none; }
.theme-toggle .fa-sun  { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: inline; }
[data-theme="dark"] .theme-toggle .fa-sun  { display: none; }


/* ============================================
   12. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 120px 0 60px;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 640px) {
  .hero { padding: 140px 0 80px; }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
  }
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  top: -200px;
  right: -150px;
}
.hero::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero__title span { color: rgba(255,255,255,0.65); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero__cta .btn { border-radius: var(--radius-full); }

@media (max-width: 479px) {
  .hero__cta .btn { width: 100%; }
  .topnav__actions .btn { font-size: 0.75rem; padding: 6px 10px; }
  .topnav__inner { gap: 8px; }
}

.hero__stats { max-width: 700px; margin: 0 auto; }

.hero-stat {
  padding: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .hero-stat__number { font-size: 2.25rem; }
}

.hero-stat__label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}


/* ============================================
   13. SECTIONS
   ============================================ */
.section {
  padding: 64px 0;
}
@media (min-width: 640px) { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 100px 0; } }

.section--alt { background-color: var(--bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 640px) { .section__header { margin-bottom: 48px; } }

.section__header .pill {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.section__header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}


/* ============================================
   14. STEPS (How it works)
   ============================================ */
.steps { position: relative; }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) {
  .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

.step { text-align: center; }

.step__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.steps__line { display: none; }
@media (min-width: 1024px) {
  .steps__line {
    display: block;
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--green-500), #0891B2, #6366F1, #F59E0B);
    border-radius: 1px;
    opacity: 0.25;
    z-index: 0;
  }
  .step { position: relative; z-index: 1; }
}


/* ============================================
   15. CATEGORY CARDS
   ============================================ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .cats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.cat-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 250ms var(--ease-base);
}
.cat-card:hover {
  border-color: var(--cat-color, var(--border-color));
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--cat-color, var(--color-primary));
  background: var(--cat-bg, var(--gray-100));
}

.cat-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
}


/* ============================================
   16. GOAL CARDS
   ============================================ */
.goal-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: all 250ms var(--ease-base);
  height: 100%;
}
.goal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.goal-card__badge { margin-bottom: 10px; }

.goal-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 2.6em;
}

.goal-card__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goal-card__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.goal-card__stats i { margin-right: 4px; font-size: 0.7rem; }


/* ============================================
   17. CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  background: var(--gradient-hero);
  padding: 64px 0;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 640px) { .cta-section { padding: 80px 0; } }
@media (min-width: 1024px) { .cta-section { padding: 100px 0; } }

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 12px;
}

.cta__content > p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cta-stat__label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}


/* ============================================
   18. FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
[data-theme="dark"] .footer { background: #080a0e; }

.footer__separator {
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), #0891B2, #6366F1, #F59E0B);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; }
}

.footer__brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer__brand-text i { color: var(--green-400); }

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer__slogan {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-800);
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: all 200ms var(--ease-base);
}
.footer__social a:hover {
  background: var(--green-600);
  color: #fff;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__links a {
  display: block;
  padding: 4px 0;
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 200ms var(--ease-base);
}
.footer__links a:hover { color: var(--green-400); }

.footer__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__cat-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 200ms var(--ease-base);
}
.footer__cat-pill:hover { opacity: 0.8; color: #fff; }

.footer__divider {
  border-top: 1px solid var(--gray-800);
  margin-bottom: 20px;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer__bottom p { margin: 0; }


/* ============================================
   19. DARK MODE (overrides)
   ============================================ */
[data-theme="dark"] {
  --bg-body: #0f1218;
  --bg-alt: #1a1f2b;
  --bg-card: #1e2432;
  --text-color: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #2d3748;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
}

[data-theme="dark"] .cat-card__icon {
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .goal-card:hover {
  border-color: var(--gray-600);
}


/* ============================================
   20. ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 60ms; }
.stagger-3 { transition-delay: 120ms; }
.stagger-4 { transition-delay: 180ms; }
.stagger-5 { transition-delay: 240ms; }
.stagger-6 { transition-delay: 300ms; }
.stagger-7 { transition-delay: 360ms; }
.stagger-8 { transition-delay: 420ms; }
.stagger-9 { transition-delay: 480ms; }

.counter-animate {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================
   21. UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--color-primary); }

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }
.d-block { display: block; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

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

.hide-mobile { display: none; }
@media (min-width: 1024px) {
  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gradient-separator {
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), #0891B2, #6366F1, #F59E0B);
}
