/* =============================================
   INDIGO SCHOLAR - GLOBAL STYLES
   Education Listing & Referral Platform
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
  --primary: #2f3293;
  --primary-dark: #1e1b4b;
  --primary-light: #e0e7ff;
  --secondary: #14b8a6;
  --secondary-dark: #0d9488;
  --secondary-light: #ccfbf1;
  --tertiary: #6366f1;
  --error: #ef4444;
  --bg-light: #f6f6f8;
  --bg-dark: #14141e;
  --surface: #ffffff;
  --surface-variant: #f1f5f9;
  --surface-dim: #f6f6f8;
  --on-surface: #0f172a;
  --on-surface-variant: #475569;
  --outline: #94a3b8;
  --outline-variant: #cbd5e1;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 256px;
  --navbar-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--on-surface-variant); }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* ---- Layout Utilities ---- */
.container { max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.wrap { flex-wrap: wrap; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Responsive Grids */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.content-grid-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .content-grid-equal { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.sticky { position: sticky; top: 0; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ---- Spacing ---- */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-inline: 0.5rem; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }
.px-8 { padding-inline: 2rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-6 { padding-block: 1.5rem; }
.py-8 { padding-block: 2rem; }
.py-12 { padding-block: 3rem; }
.py-16 { padding-block: 4rem; }
.py-20 { padding-block: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.ml-64 { margin-left: var(--sidebar-width); }

/* ---- Colors & Backgrounds ---- */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-surface { background-color: var(--surface); }
.bg-surface-variant { background-color: var(--surface-variant); }
.bg-surface-dim { background-color: var(--surface-dim); }
.bg-bg-light { background-color: var(--bg-light); }
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-error { color: var(--error); }
.bg-primary\/10 { background-color: rgba(47, 50, 147, 0.1); }
.bg-secondary\/10 { background-color: rgba(20, 184, 166, 0.1); }
.bg-error\/10 { background-color: rgba(239, 68, 68, 0.1); }
.text-amber-500 { color: #f59e0b; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.bg-green-100 { background-color: #dcfce7; }
.bg-amber-100 { background-color: #fef3c7; }
.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }

/* ---- Borders ---- */
.border { border: 1px solid var(--outline-variant); }
.border-t { border-top: 1px solid var(--outline-variant); }
.border-b { border-bottom: 1px solid var(--outline-variant); }
.border-l { border-left: 1px solid var(--outline-variant); }
.border-r { border-right: 1px solid var(--outline-variant); }
.border-l-4 { border-left: 4px solid; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: var(--radius-full); }

/* ---- Shadows ---- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ---- Component: Badge / Chip ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-error { background: #fee2e2; color: #dc2626; }
.badge-verified { background: var(--primary-light); color: var(--primary); }
.badge-pending { background: #fef3c7; color: #b45309; }

/* ---- Component: Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(47, 50, 147, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px 0 rgba(47, 50, 147, 0.5); }
.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.4);
}
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--on-surface-variant);
}
.btn-ghost:hover { background: var(--surface-variant); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Component: Input / Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 0.375rem;
}
.form-label .required { color: var(--error); margin-left: 0.25rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--on-surface);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 50, 147, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--outline); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 2.5rem; }
.form-input-icon .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
  pointer-events: none;
}
.form-error { font-size: 0.75rem; color: var(--error); margin-top: 0.375rem; }
.form-hint { font-size: 0.75rem; color: var(--on-surface-variant); margin-top: 0.375rem; }

/* ---- Component: Card ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 1.25rem; }
.card-header { padding: 1.25rem; border-bottom: 1px solid var(--outline-variant); }
.card-footer { padding: 1.25rem; border-top: 1px solid var(--outline-variant); }

/* ---- Component: Stat Card ---- */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(203, 213, 225, 0.3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card__label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-surface-variant); margin-bottom: 0.25rem; }
.stat-card__value { font-size: 1.875rem; font-weight: 900; color: var(--on-surface); line-height: 1; }
.stat-card__trend { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; margin-top: 0.5rem; }
.stat-card__trend.up { color: var(--secondary); }
.stat-card__trend.down { color: var(--error); }
.stat-card__icon {
  position: absolute;
  right: -0.375rem;
  bottom: -0.375rem;
  font-size: 4rem;
  opacity: 0.07;
  pointer-events: none;
}
.stat-card.accent-primary { border-left: 4px solid var(--primary); }
.stat-card.accent-secondary { border-left: 4px solid var(--secondary); }
.stat-card.accent-error { border-left: 4px solid var(--error); }
.stat-card.primary-filled { background: var(--primary); color: #fff; }
.stat-card.primary-filled .stat-card__label { color: rgba(255,255,255,0.7); }
.stat-card.primary-filled .stat-card__value { color: #fff; }
.stat-card.primary-filled .stat-card__trend.up { color: var(--secondary-light); }

/* ---- Component: Table ---- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface-dim);
  color: var(--on-surface-variant);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.875rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--surface-dim); transition: background 0.15s; }
tbody tr:hover { background: var(--surface-dim); }
tbody td { padding: 1rem 1.25rem; font-size: 0.875rem; vertical-align: middle; }
tbody td:last-child { white-space: nowrap; }

/* ---- Component: Top Bar (Admin Dashboards) ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--navbar-height);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
}
.topbar.with-sidebar { left: var(--sidebar-width); }
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.025em;
}

/* ---- Component: Top Navbar (Public) ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.025em;
}
.navbar__nav { display: flex; align-items: center; gap: 2rem; }
.navbar__nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.navbar__nav a:hover { color: var(--primary); }
.navbar__nav a.active { color: var(--primary); }
.navbar__actions { display: flex; align-items: center; gap: 0.75rem; }

/* ---- Component: Sidebar ---- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  z-index: 50;
  overflow-y: auto;
}
.sidebar__logo { padding: 0.5rem; margin-bottom: 1.5rem; }
.sidebar__logo h1 { font-size: 1.125rem; font-weight: 900; color: var(--primary-dark); letter-spacing: -0.025em; }
.sidebar__section { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--outline); padding: 0.5rem 1rem; margin-top: 1rem; }
.sidebar__nav { flex: 1; }
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.sidebar__item:hover { background: var(--surface-variant); color: var(--on-surface); transform: translateX(2px); }
.sidebar__item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(47,50,147,0.3); }
.sidebar__item.active:hover { transform: none; }
.sidebar__item .badge-count {
  margin-left: auto;
  background: var(--error);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--outline-variant); }
.sidebar__user { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-xl); background: var(--surface-variant); margin-bottom: 1rem; }
.sidebar__user img { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); object-fit: cover; }
.sidebar__user-name { font-weight: 700; font-size: 0.8125rem; color: var(--on-surface); }
.sidebar__user-role { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--outline); }

/* ---- Component: Bottom Nav (Mobile) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline-variant);
  padding: 0.5rem 1rem;
  justify-content: space-around;
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--outline);
  transition: var(--transition);
  text-decoration: none;
}
.bottom-nav__item:hover, .bottom-nav__item.active { color: var(--primary); background: rgba(47,50,147,0.08); }
.bottom-nav__item.active { color: var(--primary); }

/* ---- Component: Wallet Card ---- */
.wallet-card {
  background: var(--primary);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(2rem);
}
.wallet-card::after {
  content: '';
  position: absolute;
  left: -2rem;
  top: -2rem;
  width: 8rem;
  height: 8rem;
  background: rgba(20,184,166,0.15);
  border-radius: 50%;
  filter: blur(1.5rem);
}
.wallet-card__label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; margin-bottom: 0.25rem; }
.wallet-card__balance { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.05em; position: relative; z-index: 1; }
.wallet-card__btn {
  width: 100%;
  padding: 0.875rem;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-weight: 900;
  font-size: 0.9375rem;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}
.wallet-card__btn:hover { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ---- Component: Progress Bar ---- */
.progress-bar { height: 0.5rem; background: var(--surface-variant); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width 0.5s ease; }
.progress-bar__fill.secondary { background: var(--secondary); }

/* ---- Component: Avatar ---- */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }
.avatar-xl { width: 4rem; height: 4rem; font-size: 1.25rem; }
.avatar-2xl { width: 5rem; height: 5rem; font-size: 1.5rem; }
.avatar.square { border-radius: var(--radius-lg); }

/* ---- Component: Rating ---- */
.rating { display: flex; align-items: center; gap: 2px; color: #f59e0b; }
.rating .star { font-size: 1rem; }

/* ---- Component: Institute Card ---- */
.institute-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(203,213,225,0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.institute-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.institute-card__image { position: relative; height: 12rem; overflow: hidden; background: var(--surface-variant); }
.institute-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.institute-card:hover .institute-card__image img { transform: scale(1.05); }
.institute-card__badge { position: absolute; bottom: 0.75rem; left: 0.75rem; }
.institute-card__rating { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.25rem 0.5rem; border-radius: var(--radius); display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; }
.institute-card__body { padding: 1.25rem; }
.institute-card__name { font-weight: 800; font-size: 0.9375rem; color: var(--on-surface); margin-bottom: 0.25rem; }
.institute-card__location { font-size: 0.75rem; color: var(--on-surface-variant); display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.institute-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.875rem; border-top: 1px solid var(--surface-dim); }
.institute-card__referral { font-size: 0.75rem; font-weight: 600; color: var(--on-surface-variant); }
.institute-card__referral span { color: var(--secondary); font-weight: 700; }

/* ---- Component: Search Bar ---- */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(203,213,225,0.3);
  padding: 0.5rem;
  gap: 0.5rem;
}
.search-bar__input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-variant);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
}
.search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--on-surface);
}
.search-bar__input::placeholder { color: var(--outline); }

/* ---- Component: Referral Steps ---- */
.step-item { display: flex; gap: 1.5rem; }
.step-item__number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.step-item__content h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.step-item__content p { opacity: 0.75; font-size: 0.9375rem; }

/* ---- Component: Alert / Notification ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  border: 1px solid;
}
.alert-info { background: rgba(47,50,147,0.08); border-color: rgba(47,50,147,0.2); color: var(--primary); }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---- Component: Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(1rem);
  transition: transform 0.2s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--outline-variant);
}
.modal-header h3 { font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--outline-variant); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ---- Component: Skeleton ---- */
.skeleton { background: linear-gradient(90deg, var(--surface-variant) 25%, rgba(203,213,225,0.4) 50%, var(--surface-variant) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Component: Step Form ---- */
.step-indicator { display: flex; align-items: center; margin-bottom: 2.5rem; }
.step-indicator__step { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.step-indicator__circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--outline);
  background: var(--surface);
  transition: var(--transition);
}
.step-indicator__step.active .step-indicator__circle { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-indicator__step.completed .step-indicator__circle { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.step-indicator__label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--outline); }
.step-indicator__step.active .step-indicator__label { color: var(--primary); }
.step-indicator__step.completed .step-indicator__label { color: var(--secondary); }
.step-indicator__line { flex: 1; height: 2px; background: var(--outline-variant); margin: 0 0.5rem; position: relative; top: -1rem; }
.step-indicator__line.completed { background: var(--secondary); }

/* ---- Specific: Bar Chart (CSS-only) ---- */
.bar-chart { display: flex; align-items: flex-end; gap: 0.375rem; height: 16rem; }
.bar-chart__bar {
  flex: 1;
  background: var(--primary-light);
  border-radius: 0.375rem 0.375rem 0 0;
  transition: background 0.2s, height 0.5s;
  cursor: pointer;
}
.bar-chart__bar:hover, .bar-chart__bar.active { background: var(--primary); box-shadow: 0 4px 12px rgba(47,50,147,0.3); }
.bar-chart__bar.secondary { background: rgba(20,184,166,0.3); }
.bar-chart__bar.secondary:hover { background: var(--secondary); }
.bar-chart__labels { display: flex; justify-content: space-between; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--outline); margin-top: 0.5rem; }

/* ---- Page Layout: Main with Sidebar ---- */
.page-layout { display: flex; }
.page-content { flex: 1; margin-left: var(--sidebar-width); padding-top: 0; min-height: 100vh; }
.page-content--padded { padding: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .page-content { margin-left: 0 !important; }
  .navbar__nav { display: none; }
  .bottom-nav { display: flex; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 768px) {
  .topbar.with-sidebar { left: 0; }
  .hide-tablet { display: none !important; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .search-bar { flex-direction: column; }
  .search-bar__btn { width: 100%; }
}

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .text-mobile-sm { font-size: 0.75rem; }
}

@media (min-width: 1024px) {
  .show-mobile { display: none !important; }
}

/* ---- Utility: Animations ---- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-1rem); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }
.animate-slideIn { animation: slideIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ---- Utility: Misc ---- */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.transition-all { transition: var(--transition); }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.2s; }
.group:hover .group-hover-show { display: block; }
.group:hover .group-hover-opacity { opacity: 1; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.blur-3xl { filter: blur(3rem); }
.scale-105 { transform: scale(1.05); }
.divide-y > * + * { border-top: 1px solid var(--outline-variant); }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.border-dashed { border-style: dashed; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--from, transparent), var(--to, transparent)); }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

/* ---- Utility: Colors (extra) ---- */
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-secondary-light { background-color: var(--secondary-light); }
.bg-indigo-900 { background-color: #1e1b4b; }
.bg-indigo-950 { background-color: #0a0821; }
.text-indigo-900 { color: #1e1b4b; }
.text-teal-400 { color: #2dd4bf; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-green-50 { background-color: #f0fdf4; }
.text-green-700 { color: #15803d; }

/* ---- Notification Dot ---- */
.notification-dot {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--error);
  border: 2px solid var(--surface);
}

/* ---- Hero Gradient ---- */
.hero-gradient { background: linear-gradient(135deg, rgba(47,50,147,0.05) 0%, rgba(20,184,166,0.05) 100%); }
.primary-gradient { background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%); }
.teal-gradient { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); }
.dark-gradient { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); }

/* ---- Floating Action Button ---- */
.fab {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20,184,166,0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}
.fab:hover { transform: scale(1.1) rotate(8deg); box-shadow: 0 12px 30px rgba(20,184,166,0.5); }

/* ---- Tooltip ---- */
.tooltip-wrapper { position: relative; display: inline-flex; }
.tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--on-surface);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tooltip-wrapper:hover .tooltip { opacity: 1; }

/* ---- Online Status indicator ---- */
.status-online { display: inline-flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--secondary); display: inline-block; }
.status-dot.animate { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }

/* ---- Chip / Filter Tag ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.chip:hover, .chip.active { background: var(--primary-light); color: var(--primary); border-color: rgba(47,50,147,0.2); }
.chip .remove { font-size: 0.875rem; opacity: 0.6; }
.chip .remove:hover { opacity: 1; color: var(--error); }

/* ---- Message bubble ---- */
.message-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.message-item:hover { background: var(--surface-dim); }
.message-item.unread { border-left-color: var(--error); background: rgba(239,68,68,0.03); }
.message-item__time { font-size: 0.625rem; color: var(--on-surface-variant); font-weight: 600; white-space: nowrap; }
.message-item__preview { font-size: 0.75rem; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.125rem; }
.message-item__sender { font-size: 0.8125rem; font-weight: 700; color: var(--primary); }

/* ---- Activity Timeline ---- */
.timeline-item { display: flex; gap: 1rem; }
.timeline-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.timeline-icon.primary { background: var(--primary-light); color: var(--primary); }
.timeline-icon.secondary { background: var(--secondary-light); color: var(--secondary-dark); }
.timeline-icon.error { background: #fee2e2; color: var(--error); }
.timeline-icon.warning { background: #fef3c7; color: #d97706; }
.timeline-content__title { font-size: 0.875rem; font-weight: 700; color: var(--on-surface); }
.timeline-content__detail { font-size: 0.75rem; color: var(--on-surface-variant); margin-top: 0.125rem; }
.timeline-content__time { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--outline); margin-top: 0.25rem; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 0.5rem; }
.page-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--outline-variant);
  background: var(--surface);
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 0.375rem; height: 0.375rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

/* ---- Print ---- */
@media print { .sidebar, .bottom-nav, .fab, .navbar { display: none !important; } .page-content { margin-left: 0 !important; } }
