/* FundedAfrica — Design System & Global Styles
   Mobile-first: base styles at 375px, scale up */

/* ─────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
───────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --green-900:  #0d2b1f;
  --green-800:  #1B4332;   /* Primary — trust, Africa, growth */
  --green-600:  #2D6A4F;   /* Success */
  --green-500:  #40916C;   /* Secondary / CTAs */
  --green-400:  #52B788;
  --green-200:  #B7E4C7;
  --green-100:  #D8F3DC;
  --green-50:   #f0faf3;

  --orange-500: #E87722;   /* Accent / Deadlines / Urgency */
  --orange-400: #F4A043;
  --orange-100: #FEF0DC;

  --red-600:    #C1121F;   /* Error */
  --red-100:    #FFE3E3;

  --blue-600:   #1d4ed8;
  --blue-100:   #dbeafe;

  /* Neutrals */
  --bg:         #F8F9FA;
  --white:      #ffffff;
  --text:       #1A1A2E;   /* Near-black */
  --text-muted: #4A4A6A;   /* Mid-grey */
  --border:     #E2E8F0;
  --border-dark:#CBD5E1;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);

  /* Typography */
  --font-sans:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-size:  16px;
  --line-height:1.6;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill:999px;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 5vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem,  4vw, 2.25rem); font-weight: 700; line-height: 1.2;  }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem);  font-weight: 700; line-height: 1.3;  }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }
p  { color: var(--text-muted); }
.text-primary { color: var(--text); }

small { font-size: 0.8125rem; }

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

main { flex: 1; padding-bottom: var(--space-20); }

.page-header {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-8);
}
.page-header h1, .page-header p { color: var(--white); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex helpers */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

/* Spacing helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.py-4  { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8  { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.px-4  { padding-left: var(--space-4);  padding-right: var(--space-4); }
.text-center { text-align: center; }

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--green-800);
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
@media (min-width: 768px) { .navbar-links { display: flex; } }
.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--green-800); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .navbar-hamburger { display: none; } }
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--t-base);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: flex-end;
  cursor: pointer;
}

/* Bottom nav — mobile only */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--t-fast);
  text-decoration: none;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--green-800); }
.bottom-nav-item svg  { width: 22px; height: 22px; }
/* push main content above bottom nav on mobile */
@media (max-width: 767px) { body { padding-bottom: 64px; } }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); }

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

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-50); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }

.btn-danger {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
}
.btn-danger:hover { background: #a30f18; }

.btn-sm {
  padding: 0.375rem var(--space-4);
  font-size: 0.8125rem;
  min-height: 36px;
}
.btn-lg {
  padding: 0.875rem var(--space-8);
  font-size: 1.0625rem;
  min-height: 52px;
  border-radius: var(--radius-lg);
}
.btn-block { width: 100%; }

/* Loading spinner inside button */
.btn-loading { pointer-events: none; opacity: .7; }
.btn-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: var(--space-2);
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-hover:hover { transform: translateY(-2px); }

/* Scholarship card */
.scholarship-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.scholarship-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.scholarship-card .card-provider {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.scholarship-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-1);
  line-height: 1.35;
}
.scholarship-card .card-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scholarship-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.scholarship-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* Match score bar */
.match-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.match-score .score-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.match-score .score-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--green-800);
  white-space: nowrap;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-800));
  border-radius: var(--radius-pill);
  transition: width .6s ease;
}
.progress-fill.high   { background: linear-gradient(90deg, #52B788, var(--green-800)); }
.progress-fill.medium { background: linear-gradient(90deg, #F4A043, var(--orange-500)); }
.progress-fill.low    { background: linear-gradient(90deg, #f87171, var(--red-600)); }

/* ─────────────────────────────────────────────
   BADGES / PILLS
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-green  { background: var(--green-100); color: var(--green-800); }
.badge-orange { background: var(--orange-100); color: #9a4e00; }
.badge-red    { background: var(--red-100); color: var(--red-600); }
.badge-blue   { background: var(--blue-100); color: var(--blue-600); }
.badge-grey   { background: #F1F5F9; color: var(--text-muted); }
.badge-verified { background: var(--green-100); color: var(--green-800); }

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
label .required { color: var(--red-600); margin-left: 2px; }
label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.625rem var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(64,145,108,.15);
}
.form-control::placeholder { color: #a0aec0; }
.form-control.is-invalid { border-color: var(--red-600); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(193,18,31,.12); }

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A4A6A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-error {
  font-size: 0.8rem;
  color: var(--red-600);
  font-weight: 500;
}

/* Toggle / Checkbox */
.toggle-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.toggle-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-weight: 500;
  font-size: 0.875rem;
  user-select: none;
}
.toggle-option:hover { border-color: var(--green-500); background: var(--green-50); }
.toggle-option.selected {
  border-color: var(--green-800);
  background: var(--green-50);
  color: var(--green-800);
}
.toggle-option input { display: none; }

/* ─────────────────────────────────────────────
   ALERTS / FLASH MESSAGES
───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid;
}
.alert-success { background: var(--green-50);  border-color: var(--green-200); color: var(--green-800); }
.alert-error   { background: var(--red-100);   border-color: #fca5a5;         color: var(--red-600); }
.alert-warning { background: var(--orange-100);border-color: #fbd38d;         color: #7c4a00; }
.alert-info    { background: var(--blue-100);  border-color: #93c5fd;         color: #1e40af; }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 60%, var(--green-500) 100%);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.hero p   { color: rgba(255,255,255,.85); font-size: 1.125rem; margin-bottom: var(--space-8); }
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: var(--space-8);
  color: rgba(255,255,255,.7);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-trust .sep { opacity: .4; }

/* ─────────────────────────────────────────────
   SECTION HEADINGS
───────────────────────────────────────────── */
.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ─────────────────────────────────────────────
   STEP INDICATORS (Onboarding)
───────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 60px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--t-base);
}
.step.active   .step-circle { border-color: var(--green-800); background: var(--green-800); color: var(--white); }
.step.complete .step-circle { border-color: var(--green-600); background: var(--green-600); color: var(--white); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--t-base);
}
.step.complete .step-line { background: var(--green-500); }
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  margin-top: var(--space-1);
}
.step.active   .step-label { color: var(--green-800); }
.step.complete .step-label { color: var(--green-600); }

/* ─────────────────────────────────────────────
   KANBAN BOARD (Tracker)
───────────────────────────────────────────── */
.kanban {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: 500px;
}
.kanban-col {
  flex: 0 0 280px;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.kanban-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.kanban-count {
  background: var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}
.kanban-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: grab;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card:active { cursor: grabbing; }

/* ─────────────────────────────────────────────
   FILTERS BAR
───────────────────────────────────────────── */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-bottom: var(--space-6);
}
.filter-group { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 140px; }
.filter-group label { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   PRICING CARDS
───────────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(27,67,50,.08);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-800);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.pricing-price sup { font-size: 1.25rem; vertical-align: super; }
.pricing-period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: var(--space-3); }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-feature .check { color: var(--green-600); flex-shrink: 0; }
.pricing-feature .cross { color: #aaa; flex-shrink: 0; }
.pricing-feature.dim { color: var(--text-muted); }

/* ─────────────────────────────────────────────
   DASHBOARD / STATS
───────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ─────────────────────────────────────────────
   UPGRADE PROMO BANNER
───────────────────────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--white);
}
.upgrade-banner h3 { color: var(--white); font-size: 1.125rem; }
.upgrade-banner p  { color: rgba(255,255,255,.8); font-size: 0.9rem; margin-top: var(--space-1); }

/* ─────────────────────────────────────────────
   SCHOLARSHIP DETAIL
───────────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.detail-logo {
  width: 72px;
  height: 72px;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .detail-meta-grid { grid-template-columns: repeat(4, 1fr); }
}
.detail-meta-item .meta-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.detail-meta-item .meta-value { font-size: 1rem; font-weight: 700; color: var(--text); margin-top: var(--space-1); }

/* ─────────────────────────────────────────────
   SIDEBAR LAYOUT
───────────────────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .sidebar-layout { grid-template-columns: 1fr 320px; }
}
.sidebar-sticky { position: sticky; top: 80px; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--green-800);
  color: rgba(255,255,255,.8);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer h4 { color: var(--white); margin-bottom: var(--space-4); font-size: 1rem; }
footer a  { display: block; color: rgba(255,255,255,.7); margin-bottom: var(--space-3); font-size: 0.9rem; transition: color var(--t-fast); }
footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────
   AUTH PAGES
───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--bg) 100%);
  padding: var(--space-6) var(--space-4);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green-800);
  margin-bottom: var(--space-8);
  justify-content: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────
   ADMIN PANEL
───────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 767px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
.admin-sidebar {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: var(--space-6) 0;
}
.admin-sidebar-logo {
  padding: 0 var(--space-5) var(--space-6);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--space-4);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
  text-decoration: none;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.admin-main {
  padding: var(--space-8);
  background: var(--bg);
  overflow-y: auto;
}
@media (max-width: 767px) { .admin-main { padding: var(--space-4); } }

/* ─────────────────────────────────────────────
   TABLE
───────────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--bg); }
th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--green-50); }

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
}
.empty-state h3 { font-size: 1.25rem; margin-bottom: var(--space-3); color: var(--text); }
.empty-state p  { max-width: 380px; margin: 0 auto var(--space-6); }

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: var(--space-4); }
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); max-width: 560px; }
}

/* ─────────────────────────────────────────────
   SKELETON LOADER
───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.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; }
.opacity-50 { opacity: .5; }
.cursor-pointer { cursor: pointer; }
.w-full { width: 100%; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease forwards; }

/* ─────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
  .navbar, .bottom-nav, .sidebar, footer { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
