/**
 * EgenAI Course Platform — Global Stylesheet
 * ================================================
 * Design tokens, typography, components, utilities
 */

/* ================================================================
   1. GOOGLE FONTS IMPORT
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ================================================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
  /* Brand Colors */
  --primary:        #4F46E5;
  --primary-dark:   #3730A3;
  --primary-light:  #EEF2FF;
  --secondary:      #06B6D4;
  --secondary-dark: #0891B2;
  --secondary-light:#ECFEFF;
  --accent:         #F59E0B;
  --accent-dark:    #D97706;
  --success:        #10B981;
  --success-light:  #D1FAE5;
  --danger:         #EF4444;
  --danger-light:   #FEE2E2;
  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --info:           #06B6D4;
  --info-light:     #CFFAFE;

  /* Neutrals */
  --bg:             #F8FAFC;
  --bg-alt:         #F1F5F9;
  --card-white:     #FFFFFF;
  --sidebar-dark:   #0F172A;
  --sidebar-mid:    #1E293B;
  --text-dark:      #1E293B;
  --text-muted:     #475569;   /* slightly darker */
  --text-light:     #64748B;   /* much darker */
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #4F46E5, #06B6D4);
  --gradient-secondary: linear-gradient(135deg, #06B6D4, #10B981);
  --gradient-warm:      linear-gradient(135deg, #F59E0B, #EF4444);
  --gradient-dark:      linear-gradient(135deg, #0F172A, #1E293B);
  --gradient-hero:      linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #4F46E5 100%);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
  --shadow-card:  0 2px 20px rgba(79,70,229,.08);
  --shadow-hover: 0 8px 30px rgba(79,70,229,.16);

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

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10:40px; --space-12:48px;

  /* Typography */
  --font-main:  'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    500;
  --z-toast:    999;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ================================================================
   4. TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
.display-2 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 800; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary  { color: var(--primary) !important; }
.text-secondary{ color: var(--secondary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-light-c  { color: var(--text-light) !important; }

/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,70,229,.45);
  color: #fff;
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6,182,212,.35);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6,182,212,.45);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,.35);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

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

.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 10px; border-radius: var(--radius-md); aspect-ratio: 1; justify-content: center; }
.btn-icon-sm { padding: 7px; border-radius: var(--radius-sm); aspect-ratio: 1; justify-content: center; }

/* ================================================================
   6. CARDS
   ================================================================ */
.card {
  background: var(--card-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(79,70,229,.15);
}

.card-body { padding: var(--space-6); }
.card-header-custom {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
}
.card-footer-custom {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
}

/* Institution / Course Card */
.inst-card { position: relative; }

.inst-card .card-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gradient-primary);
}
.inst-card .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.inst-card:hover .card-thumbnail img { transform: scale(1.05); }

.inst-card .card-logo {
  position: absolute;
  bottom: -24px;
  left: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background: #fff;
}

.inst-card .card-meta {
  padding: calc(var(--space-6) + 16px) var(--space-5) var(--space-5);
}

.card-wishlist-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-dark);
  font-size: 1rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-wishlist-btn:hover { background: white; color: var(--danger); transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.card-wishlist-btn.active { background: var(--danger-light); color: var(--danger); }

/* ================================================================
   7. BADGES & STATUS
   ================================================================ */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-primary   { background: var(--primary-light);  color: var(--primary); }
.badge-success   { background: var(--success-light);  color: var(--success); }
.badge-danger    { background: var(--danger-light);   color: var(--danger);  }
.badge-warning   { background: var(--warning-light);  color: var(--accent);  }
.badge-info      { background: var(--info-light);     color: var(--info);    }
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-approved  { background: var(--success-light);  color: var(--success); }
.badge-rejected  { background: var(--danger-light);   color: var(--danger);  }
.badge-suspended { background: #F3F4F6; color: #374151; }

/* ================================================================
   8. RATING STARS
   ================================================================ */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: 0.85rem;
}
.rating-count { color: var(--text-muted); font-size: 0.78rem; margin-left: 4px; }

/* ================================================================
   9. FORMS
   ================================================================ */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--card-white);
  transition: all var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

.form-control-icon { position: relative; }
.form-control-icon .fc-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.form-control-icon .form-control { padding-left: 42px; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* Select */
select.form-control { cursor: pointer; }

/* Search Input */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--card-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 20px;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10), var(--shadow-md);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar .search-btn {
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.search-bar .search-btn:hover { opacity: .9; }

/* ================================================================
   10. NAVIGATION
   ================================================================ */
.main-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-dark);
}
.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.navbar-brand span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.navbar-nav-links { display: flex; align-items: center; gap: 4px; }
.navbar-nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem; /* slightly larger */
  color: var(--text-dark); /* darker for visibility */
  transition: all var(--transition-fast);
}
.navbar-nav-links a:hover, .navbar-nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

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

/* ================================================================
   11. HERO SECTION
   ================================================================ */
.hero {
  background: var(--gradient-hero);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(79,70,229,.3);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  filter: blur(80px);
  animation: pulse 6s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(6,182,212,.2);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
  filter: blur(60px);
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%       { transform: scale(1.2); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; width: 100%; }

.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero p   { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: var(--space-8); }

/* Search Widget */
.hero-search {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  max-width: 700px;
  margin: 0 auto;
}

.hero-search-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.hero-search-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: all var(--transition-fast);
}
.hero-search-input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.18); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .stat-label { font-size: 0.8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ================================================================
   12. CATEGORY CHIPS
   ================================================================ */
.category-chips { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--card-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.category-chip:hover, .category-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-chip .chip-icon { font-size: 1rem; }
.category-chip .chip-count {
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ================================================================
   13. FILTER SIDEBAR
   ================================================================ */
.filter-sidebar { background: var(--card-white); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); border: 1px solid var(--border); position: sticky; top: 90px; }

.filter-section { margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-light); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.filter-title {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.filter-option:hover { color: var(--primary); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Price range slider */
.range-slider { width: 100%; accent-color: var(--primary); }

/* ================================================================
   14. SECTION LAYOUTS
   ================================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: var(--space-8); }

.container-custom {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ================================================================
   15. TABLES
   ================================================================ */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table-custom th {
  background: var(--bg-alt);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.table-custom td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  vertical-align: middle;
}
.table-custom tr:hover td { background: var(--bg-alt); }
.table-custom tr:last-child td { border-bottom: none; }

/* ================================================================
   16. TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-custom {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}
.toast-custom.toast-success { border-color: var(--success); }
.toast-custom.toast-error   { border-color: var(--danger);  }
.toast-custom.toast-warning { border-color: var(--warning); }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);   opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
.toast-custom.hiding { animation: slideOutRight .3s ease forwards; }

/* ================================================================
   17. MODAL ENHANCEMENTS
   ================================================================ */
.modal-modern .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.modal-modern .modal-header {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: none;
  padding: var(--space-5) var(--space-6);
}
.modal-modern .modal-header .btn-close { filter: invert(1); }
.modal-modern .modal-body { padding: var(--space-6); }

/* ================================================================
   18. AUTH PAGES
   ================================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.auth-left {
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(79,70,229,.3);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  filter: blur(60px);
}

.auth-right {
  background: var(--card-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow-y: auto;
}

.auth-box { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.8rem; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: var(--space-8); }

/* ================================================================
   19. PAGINATION
   ================================================================ */
.pagination-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination-custom a, .pagination-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--card-white);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pagination-custom a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination-custom .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ================================================================
   20. RESULTS INFO BAR
   ================================================================ */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--card-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-5);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

/* ================================================================
   21. LOADING SPINNER
   ================================================================ */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.4);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}
.spinner-overlay.show { display: flex; }
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   22. MISC UTILITIES
   ================================================================ */
.divider { height: 1px; background: var(--border); margin: var(--space-6) 0; }
.divider-text { display: flex; align-items: center; gap: var(--space-4); color: var(--text-muted); font-size: 0.85rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm  { width: 32px;  height: 32px; }
.avatar-md  { width: 48px;  height: 48px; }
.avatar-lg  { width: 72px;  height: 72px; }
.avatar-xl  { width: 96px;  height: 96px; }

.avatar-placeholder {
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Glow effect */
.glow-primary { box-shadow: 0 0 20px rgba(79,70,229,.4); }
.glow-success { box-shadow: 0 0 20px rgba(16,185,129,.4); }
