/* ==========================================================================
   SKILL SHIKSHA INSTITUTIONAL DESIGN SYSTEM — 3-TIER TOKEN ARCHITECTURE
   Inspired by Linear, Vercel (Geist), Stripe & Notion
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     TIER 1: SPATIAL BASELINE & 4PX/8PX MICRO-GRID ENGINE
     ------------------------------------------------------------------------ */
  --space-0-5: 2px;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-6:   24px;
  --space-8:   32px;
  --space-12:  48px;
  --space-16:  64px;

  /* ------------------------------------------------------------------------
     TIER 2: SEMANTIC CONTEXT TOKENS — COBALT & ICE-SLATE SYSTEM
     ------------------------------------------------------------------------ */
  --surface-0:      #ffffff;  /* Base Canvas — pure white cards */
  --surface-1:      #F0F3F8;  /* Ice-Slate Canvas — cool tinted backdrop */
  --surface-2:      #E8EDF5;  /* Subtle overlays, input backgrounds */
  --surface-3:      #dde4ef;  /* Hover states, active highlights */
  --surface-border: #e2e8f0;  /* Crisp 1px borders */

  --bg-main:        #F0F3F8;  /* Ice-Slate Viewport Canvas */
  --bg-surface:     #ffffff;  /* Pure White for header/sidebar */
  --bg-card:        #ffffff;  /* Card surfaces */
  --bg-subtle:      #F0F3F8;  /* Subtle input backgrounds */

  --text-primary:   #0F172A;  /* Slate 900 — maximum contrast headings */
  --text-secondary: #1E293B;  /* Slate 800 — ultra-legible body text */
  --text-muted:     #475569;  /* Slate 600 — clear, readable metadata */
  --text-inverse:   #ffffff;

  --border-color:   #e2e8f0;
  --border-subtle:  #f1f5f9;
  --border-focus:   #2A54F5;  /* Cobalt focus ring */

  /* Cobalt Blue — Primary Accent (#2A54F5) */
  --color-primary:        #2A54F5;
  --color-primary-hover:  #1E40AF;
  --color-primary-light:  #E8EFFE;  /* Soft cobalt badge bg */
  --color-primary-border: #bfdbfe;

  /* Secondary Accent (aligned to cobalt) */
  --color-accent:         #2A54F5;
  --color-accent-hover:   #1E40AF;
  --color-accent-light:   rgba(42, 84, 245, 0.10);

  --color-success:        #059669;
  --color-success-hover:  #047857;
  --color-success-light:  #ecfdf5;
  --color-success-border: #a7f3d0;

  --color-warning:        #d97706;
  --color-warning-hover:  #b45309;
  --color-warning-light:  #fffbeb;
  --color-warning-border: #fde68a;

  --color-danger:         #dc2626;
  --color-danger-hover:   #b91c1c;
  --color-danger-light:   #fef2f2;
  --color-danger-border:  #fecaca;

  /* ------------------------------------------------------------------------
     TIER 3: GEOMETRIC RADII — ROUNDED-3XL STANDARD
     ------------------------------------------------------------------------ */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;  /* rounded-3xl — the neo-clean standard */
  --radius-pill: 9999px;

  /* Ambient Diffusion Shadow System — zero harsh drops */
  --shadow-xs: 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-cobalt: 0 8px 24px rgba(42, 84, 245, 0.22);

  --transition-fast:   0.12s ease;
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* --------------------------------------------------------------------------
   DARK MODE — COBALT-AWARE ELEVATION MECHANICS
   -------------------------------------------------------------------------- */
[data-theme="dark"],
.theme-dark {
  --surface-0:      #ffffff;
  --surface-1:      #F0F3F8;
  --surface-2:      #E8EDF5;
  --surface-3:      #dde4ef;
  --surface-border: #e2e8f0;

  --bg-main:        #F0F3F8;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-subtle:      #F0F3F8;

  --text-primary:   #0F172A;
  --text-secondary: #334155;
  --text-muted:     #64748B;
  --text-inverse:   #ffffff;

  --border-color:   #e2e8f0;
  --border-subtle:  #f1f5f9;
  --border-focus:   #2A54F5;

  --color-primary:        #2A54F5;
  --color-primary-hover:  #1E40AF;
  --color-primary-light:  #E8EFFE;
  --color-primary-border: #bfdbfe;

  --color-accent:         #2A54F5;
  --color-accent-hover:   #1E40AF;
  --color-accent-light:   rgba(42, 84, 245, 0.10);

  --color-success:        #10b981;
  --color-success-hover:  #059669;
  --color-success-light:  rgba(16, 185, 129, 0.12);
  --color-success-border: rgba(16, 185, 129, 0.25);

  --color-warning:        #f59e0b;
  --color-warning-hover:  #d97706;
  --color-warning-light:  rgba(245, 158, 11, 0.12);
  --color-warning-border: rgba(245, 158, 11, 0.25);

  --color-danger:         #ef4444;
  --color-danger-hover:   #dc2626;
  --color-danger-light:   rgba(239, 68, 68, 0.12);
  --color-danger-border:  rgba(239, 68, 68, 0.25);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.08);
  --shadow-cobalt: 0 6px 20px rgba(42, 84, 245, 0.32);
}


/* --------------------------------------------------------------------------
   TYPOGRAPHY SCALE RAMPS & TABULAR NUMERICAL DATA
   -------------------------------------------------------------------------- */
.type-display-lg {
  font-size: 2.25rem; /* 36px */
  line-height: 2.75rem; /* 44px */
  letter-spacing: -0.025em;
  font-weight: 700;
}

.type-heading-md {
  font-size: 1.5rem; /* 24px */
  line-height: 2.0rem; /* 32px */
  letter-spacing: -0.020em;
  font-weight: 600;
}

.type-subhead-sm {
  font-size: 1.125rem; /* 18px */
  line-height: 1.5rem; /* 24px */
  letter-spacing: -0.015em;
  font-weight: 500;
}

.type-body-base {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  letter-spacing: 0.000em;
  font-weight: 400;
}

.type-caption-sm {
  font-size: 0.75rem; /* 12px */
  line-height: 1.0rem; /* 16px */
  letter-spacing: +0.010em;
  font-weight: 400;
}

.type-micro-xs {
  font-size: 0.625rem; /* 10px */
  line-height: 0.75rem; /* 12px */
  letter-spacing: +0.020em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Tabular figures across all numerical outputs, tables, and KPI metrics */
.tnum,
table,
.stat-card-value,
.data-table,
.badge,
.portal-sidebar-badge {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   PUBLIC NAVBAR & NAVIGATION SYSTEM (WORLD-CLASS SaaS)
   ========================================================================== */
.public-navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.public-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.public-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.public-brand-logo .brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.public-nav-link:hover, .public-nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1001;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-primary-light);
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dropdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.dropdown-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Public Mobile Drawer */
.public-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 290px;
  height: 100%;
  background: #ffffff;
  z-index: 10001;
  box-shadow: var(--shadow-xl);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.public-mobile-drawer.open {
  right: 0;
}

.public-mobile-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-mobile-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.public-mobile-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.public-mobile-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ==========================================================================
   HOMEPAGE DESIGN SYSTEM (CLEAN, WORLD-CLASS & PURPOSE-DRIVEN)
   ========================================================================== */

/* Hero Section */
.public-hero {
  padding: 64px 0 44px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
}

.public-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
  letter-spacing: 0.02em;
}

.public-hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 860px;
  margin: 0 auto 18px;
}

.public-hero-title .gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 32px;
  line-height: 1.6;
  font-weight: 400;
}

.public-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Subtle Hero Stats Ribbon */
.public-stats-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  margin: 0 auto;
}

.public-stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.public-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.public-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trust Indicators Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item span.icon {
  color: var(--color-primary);
  font-weight: 800;
}

/* Section Common Headers */
.section-header-clean {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.section-label {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.section-title-clean {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-subtitle-clean {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Explore by Goal (4-Category Grid) */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.goal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.goal-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.goal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.goal-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.goal-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.goal-link-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Curated Featured Opportunities (3 Cards ONLY) */
.curated-section {
  margin-bottom: 64px;
}

.curated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.clean-opp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clean-opp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
}

/* ==========================================================================
   MARKETPLACE & PUBLIC PROGRAMS ARCHITECTURE
   ========================================================================== */
.category-tabs-container {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.category-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.category-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-tab-pill:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-border);
  background: var(--color-primary-light);
}

.category-tab-pill.active {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.category-tab-pill .tab-count {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.category-tab-pill.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.marketplace-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.filter-radio-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.filter-radio-pill:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.filter-radio-pill.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  border-color: var(--color-primary-border);
}

.program-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.program-card-clean {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.program-card-clean:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
}

.program-card-clean.recommended-border {
  border: 1.5px solid #22c55e;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 25%);
}

.empty-state-clean {
  text-align: center;
  padding: 56px 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pagination-btn, .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-btn:hover, .pagination-num:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.pagination-num.active {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.pagination-btn.disabled {
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 960px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .marketplace-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .program-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Network & Partner Universities */
.global-network-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 64px;
  box-shadow: var(--shadow-xs);
}

.partner-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 32px;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* One Platform, Four Experiences */
.four-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.exp-card:hover {
  border-color: var(--color-primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.exp-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.exp-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.exp-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* How It Works (3 Simple Steps) */
.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.how-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.how-step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-border);
  line-height: 1;
  margin-bottom: 12px;
}

.how-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* High-Impact Final CTA Banner */
.high-impact-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 60px;
  box-shadow: var(--shadow-lg);
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-banner-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Public 4-Column Footer */
.public-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 56px 0 36px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

.public-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.86rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links li a:hover {
  color: #ffffff;
}

/* Responsive Overrides for Public Site */
@media (max-width: 900px) {
  .public-nav-links {
    display: none;
  }
  .public-mobile-toggle {
    display: block;
  }
  .public-hero-title {
    font-size: 2.35rem;
  }
  .public-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .public-hero {
    padding: 40px 0 28px;
  }
  .public-hero-title {
    font-size: 1.95rem;
  }
  .public-hero-subtitle {
    font-size: 0.95rem;
  }
  .public-stats-ribbon {
    flex-direction: column;
    gap: 12px;
    border-radius: var(--radius-lg);
    padding: 16px;
    width: 100%;
  }
  .public-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .global-network-card {
    padding: 24px 18px;
  }
  .high-impact-cta-banner {
    padding: 36px 20px;
  }
  .cta-banner-title {
    font-size: 1.65rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-block {
  display: flex !important;
  width: 100% !important;
  text-align: center;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background-color: var(--color-danger);
  color: var(--text-inverse);
}
.btn-danger:hover {
  background-color: var(--color-danger-hover);
}

.btn-success {
  background-color: var(--color-success);
  color: var(--text-inverse);
}
.btn-success:hover {
  background-color: var(--color-success-hover);
}

/* Cards & Grid */
.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: var(--radius-xl);  /* 24px — rounded-3xl */
  padding: 24px;
  box-shadow: var(--shadow-md);  /* 0 8px 30px rgba(0,0,0,0.04) */
  transition: box-shadow var(--transition-normal), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   COBALT & ICE-SLATE NEO-CLEAN UTILITY CLASSES
   ========================================================================== */

/* Solid Cobalt Hero Card — for top 3 primary KPI metrics */
.cobalt-card {
  background: #2A54F5;
  background-image: linear-gradient(135deg, #2A54F5 0%, #1E40AF 100%);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-cobalt);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cobalt-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cobalt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(42, 84, 245, 0.35);
}

.cobalt-card a,
.cobalt-card-link {
  text-decoration: none;
  display: block;
}

/* Ice-soft secondary card */
.ice-card {
  background: #F8FAFC;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

/* Cobalt badge / pill — soft sky blue */
.cobalt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #E8EFFE;
  color: #2A54F5;
  border: 1px solid rgba(42, 84, 245, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* White translucent icon badge — for use inside cobalt cards */
.cobalt-icon-badge {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

/* Cobalt CTA button */
.btn-cobalt {
  background: #2A54F5;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-cobalt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-cobalt:hover {
  background: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(42, 84, 245, 0.35);
}

/* Circular icon pill button — for header actions */
.icon-pill-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  text-decoration: none;
}

.icon-pill-btn:hover {
  background: #F0F3F8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* User avatar pill */
.user-avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.user-avatar-pill:hover {
  box-shadow: var(--shadow-sm);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2A54F5, #1E40AF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Pill search input */
.pill-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  width: 280px;
  transition: all var(--transition-fast);
}

.pill-search-bar input {
  border: none;
  background: transparent;
  font-size: 0.83rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  width: 100%;
}

.pill-search-bar input::placeholder {
  color: #94a3b8;
}

.pill-search-bar:focus-within {
  border-color: rgba(42, 84, 245, 0.35);
  box-shadow: 0 0 0 3px rgba(42, 84, 245, 0.10);
}

.pill-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Stat & KPI Cards */
.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}
.stat-trend.positive { color: var(--color-success); }
.stat-trend.negative { color: var(--color-danger); }
.stat-trend.neutral { color: var(--text-muted); }

/* ==========================================================================
   NEO-CLEAN HERO STRIP & KPI CARD SCAFFOLDING
   ========================================================================== */

.hero-metric-strip {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr 1.6fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

@media (max-width: 1300px) {
  .hero-metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-metric-strip {
    grid-template-columns: 1fr;
  }
}

.dashboard-middle-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 18px;
  margin-bottom: 20px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .dashboard-middle-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-bottom-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .dashboard-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Date / Term Indicator Card */
.kpi-date-term-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.kpi-date-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-date-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.kpi-date-arrow:hover {
  background: #2A54F5;
  color: #ffffff;
  border-color: #2A54F5;
}

.kpi-date-day-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-top: 4px;
}

.kpi-date-month-txt {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Supporting 5-card row */
.kpi-supporting-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .kpi-supporting-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi-supporting-grid {
    grid-template-columns: 1fr;
  }
}

/* Deluxe KPI Card */
.kpi-card-deluxe {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.kpi-card-deluxe:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 84, 245, 0.35);
}

.kpi-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-label-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: -0.01em;
}

.kpi-icon-glyph {
  font-size: 1.15rem;
  opacity: 0.85;
}

.kpi-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 8px;
}

.kpi-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.kpi-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.kpi-delta-pill.positive {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.kpi-delta-pill.negative {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.kpi-sparkline-box {
  width: 100px;
  height: 28px;
  flex-shrink: 0;
}

/* Cobalt Card Children Specifics */
.cobalt-card .kpi-label-title {
  color: rgba(255, 255, 255, 0.85);
}

.cobalt-card .kpi-metric-value {
  color: #ffffff;
}

.cobalt-card .kpi-delta-pill {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.30);
}

/* Attention Required Centre */
.attention-center {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.attention-header {
  padding: 16px 20px;
  background: #fff8eb;
  border-bottom: 1px solid var(--color-warning-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attention-title {
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.attention-row:last-child {
  border-bottom: none;
}

.attention-row:hover {
  background-color: #fafaf9;
}

/* Platform Funnel Visualizer */
.funnel-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.funnel-step {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.funnel-step:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.funnel-count {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.funnel-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Live Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.activity-icon {
  font-size: 1.1rem;
  padding: 4px;
}

.activity-content {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.badge-primary {
  background-color: #E8EFFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  font-weight: 700;
}

.badge-secondary {
  background-color: #F1F5F9;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  font-weight: 700;
}

.badge-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 700;
}

.badge-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  font-weight: 700;
}

.badge-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-weight: 700;
}

.badge-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  font-weight: 700;
}

.badge-neutral {
  background-color: #F1F5F9;
  color: #1E293B;
  border: 1px solid #CBD5E1;
  font-weight: 700;
}

/* Data Tables */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:hover {
  background-color: #fcfdfe;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-link {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--text-primary);
}

.tab-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Coaching & Commitment Card */
.coaching-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.coaching-card .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* Footer */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   ENTERPRISE SAAS UNIFIED PORTAL SIDEBAR SYSTEM (ADMIN, UNIVERSITY, FACULTY, STUDENT)
   ========================================================================== */

.portal-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  width: 100%;
  position: relative;
}

.portal-sidebar {
  width: 250px;
  min-width: 250px;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  border-right: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  z-index: 1000 !important;
  transition: width var(--transition-normal), transform var(--transition-normal);
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Middle Navigation Scroll Area: Independent, Invisible/Subtle Scrollbar */
.portal-sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.portal-sidebar-nav:hover {
  scrollbar-color: rgba(203, 213, 225, 0.7) transparent;
}

.portal-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.portal-sidebar-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.portal-sidebar-nav:hover::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.7);
}

/* Sidebar Header & Brand (Pinned Top) */
.portal-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #FFFFFF;
}

.portal-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  overflow: hidden;
}

.portal-brand-dock-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2A54F5 0%, #1E40AF 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(42, 84, 245, 0.25);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.theme-admin .portal-sidebar-brand .portal-brand-dock-logo {
  background: linear-gradient(135deg, #2A54F5 0%, #1E40AF 100%);
}
.theme-university .portal-sidebar-brand .portal-brand-dock-logo {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.theme-faculty .portal-sidebar-brand .portal-brand-dock-logo {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.theme-student .portal-sidebar-brand .portal-brand-dock-logo {
  background: linear-gradient(135deg, #2A54F5 0%, #4F46E5 100%);
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.portal-sidebar-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2A54F5;
  background: #E8EFFE;
  padding: 1px 6px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portal-sidebar-collapse-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.portal-sidebar-collapse-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Sidebar Groups & Section Headings */
.portal-sidebar-group {
  padding: 6px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.portal-sidebar-group-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
  padding: 8px 10px 4px;
  margin-top: 4px;
}

/* Navigation Items with Icon + Readable Text Label */
.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin: 2px 0;
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  box-sizing: border-box;
}

.portal-nav-item .portal-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-nav-item .portal-nav-text {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.portal-nav-item:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  transform: translateX(2px);
}

/* Active Navigation Item */
.portal-nav-item.active {
  background: #2A54F5 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(42, 84, 245, 0.28) !important;
}

.portal-nav-item.active .portal-nav-text,
.portal-nav-item.active .portal-nav-icon {
  color: #FFFFFF !important;
}

/* Sidebar Footer: User Profile & Sign Out */
.portal-sidebar-footer {
  margin-top: auto;
  padding: 12px 6px 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-footer-user {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  overflow: hidden;
  flex: 1;
}

.portal-dock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2A54F5 0%, #1E40AF 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.portal-footer-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-footer-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.portal-footer-user-role {
  font-size: 0.68rem;
  color: #64748B;
  white-space: nowrap;
}

.portal-dock-logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: #FEF2F2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.portal-dock-logout-btn:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* ==========================================================================
   COLLAPSED SIDEBAR STATE (Desktop 72px Compact Mode)
   ========================================================================== */
.portal-sidebar.collapsed {
  width: 72px !important;
  min-width: 72px !important;
  padding: 0 !important;
  align-items: stretch;
}

.portal-sidebar.collapsed .portal-brand-text,
.portal-sidebar.collapsed .portal-sidebar-badge,
.portal-sidebar.collapsed .portal-sidebar-group-title,
.portal-sidebar.collapsed .portal-nav-text,
.portal-sidebar.collapsed .portal-footer-user-info {
  display: none !important;
}

.portal-sidebar.collapsed .portal-sidebar-header {
  padding: 14px 8px;
  justify-content: center;
}

.portal-sidebar.collapsed .portal-sidebar-collapse-btn {
  display: flex;
  transform: rotate(180deg);
}

.portal-sidebar.collapsed .portal-nav-item {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
  margin: 3px auto;
}

.portal-sidebar.collapsed .portal-nav-item::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background: #0F172A;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  z-index: 1100;
}

.portal-sidebar.collapsed .portal-nav-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.portal-sidebar.collapsed .portal-sidebar-footer {
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
}

.portal-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  min-height: 100dvh;
}

.portal-sidebar.collapsed + .portal-main-area,
.portal-sidebar.collapsed ~ .portal-main-area {
  margin-left: 72px !important;
  width: calc(100% - 72px) !important;
}

.portal-top-bar {
  background: rgba(240, 243, 248, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 64px;
}

.portal-top-greeting {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portal-top-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 3px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-content-area {
  padding: 16px 32px 32px;
  flex: 1;
}

/* Mobile Hamburger & Backdrop */
.portal-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-primary);
}

.portal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
}

/* Backward compatibility aliases — Light Theme Converted */
.admin-layout { display: flex; min-height: 100vh; background-color: var(--bg-main); }
.admin-sidebar { width: 260px; min-width: 260px; background-color: #ffffff; color: #334155; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 100; border-right: 1px solid #e2e8f0; }
.admin-sidebar-header { padding: 22px 20px; border-bottom: 1px solid #e2e8f0; }
.admin-sidebar-brand { font-size: 1.15rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.admin-sidebar-badge { background: #eef2ff; color: #4f46e5; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid #c7d2fe; text-transform: uppercase; }
.admin-sidebar-group { padding: 16px 12px 4px; }
.admin-sidebar-group-title { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.08em; padding: 0 10px; margin-bottom: 6px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); color: #475569; font-weight: 500; font-size: 0.88rem; text-decoration: none; transition: all var(--transition-fast); margin-bottom: 2px; position: relative; }
.admin-nav-item:hover { background-color: rgba(100,116,139,0.08); color: #0f172a; }
.admin-nav-item.active { background-color: #eef2ff; color: #4338ca; font-weight: 700; box-shadow: none; }
.admin-sidebar-footer { margin-top: auto; padding: 16px 14px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.admin-main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top-bar { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow-xs); }
.admin-content-area { padding: 28px; flex: 1; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .portal-content-area, .admin-content-area { padding: 20px; }
  .portal-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    transform: translateX(-100%) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: #FFFFFF !important;
    z-index: 1050 !important;
  }
  .portal-sidebar.open {
    transform: translateX(0) !important;
  }
  .portal-backdrop.open {
    display: block !important;
    z-index: 1040 !important;
  }
  .portal-top-bar { padding: 14px 20px; }
}

@media (max-width: 768px) {
  .portal-top-bar { padding: 12px 16px; }
  .portal-content-area { padding: 16px 12px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .navbar-container { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .funnel-container { flex-direction: column; }
  .funnel-step { width: 100%; }
}

/* ==========================================================================
   AUTH PAGES & CENTERING (LOGIN, REGISTER, VERIFY OTP, RESET PASSWORD)
   ========================================================================== */

.auth-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 30px 16px 60px !important;
  width: 100% !important;
  min-height: calc(75vh - 80px) !important;
}

.auth-card {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-xl) !important;
  padding: 36px 32px !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}

.auth-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

.auth-title {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

.auth-subtitle {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   ENTERPRISE SAAS MESSAGING INTERFACE (2-COLUMN RESPONSIVE)
   ========================================================================== */

.messaging-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 140px);
  min-height: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.conversation-sidebar {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.conversation-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.conversation-item:hover {
  background: #f1f5f9;
}

.conversation-item.active {
  background: #eff6ff;
  border-left: 4px solid var(--color-primary);
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  min-height: 65px;
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafafa;
}

.chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: var(--color-primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.chat-composer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

/* ==========================================================================
   CANDIDATE / ENTITY DETAIL DRAWER
   ========================================================================== */

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 90vw;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

@media (max-width: 768px) {
  .messaging-container { grid-template-columns: 1fr; height: auto; }
  .chat-bubble { max-width: 88%; }
  .detail-drawer { width: 100vw; max-width: 100vw; }
}

/* ==========================================================================
   ENTERPRISE DATA TABLE ENGINE (LINEAR / STRIPE PARADIGM)
   ========================================================================== */

.data-table-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.data-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.data-table-container {
  width: 100%;
  overflow-x: auto;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.875rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  min-width: 850px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
  user-select: none;
}

.data-table tbody td {
  padding: 12px 16px;
  height: 44px; /* Standard row density */
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-primary);
  background: inherit;
  vertical-align: middle;
  transition: background-color var(--transition-fast);
}

.data-table tbody tr {
  background: var(--surface-0);
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--surface-3);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Condensed Row Density Toggle (36px) */
.data-table-condensed tbody td {
  height: 36px;
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.data-table-condensed thead th {
  padding: 8px 12px;
}

/* Frozen Columns (Left identifier, Right actions) */
.col-frozen-left {
  position: sticky;
  left: 0;
  z-index: 5;
  background: inherit;
  box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.08);
}

thead th.col-frozen-left {
  z-index: 15;
  background: var(--surface-2);
}

.col-frozen-right {
  position: sticky;
  right: 0;
  z-index: 5;
  background: inherit;
  box-shadow: -2px 0 6px -2px rgba(0, 0, 0, 0.08);
}

thead th.col-frozen-right {
  z-index: 15;
  background: var(--surface-2);
}

/* Sorting Indicators */
.sortable-th {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.sortable-th:hover {
  color: var(--color-primary);
}

.sort-indicator {
  display: inline-flex;
  margin-left: 4px;
  opacity: 0.4;
  font-size: 0.75rem;
}

.sortable-th.is-sorted .sort-indicator {
  opacity: 1;
  color: var(--color-primary);
}

/* Indeterminate Selection Checkbox */
.table-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
  border-radius: 4px;
  vertical-align: middle;
}

/* Floating Bulk Action Bar (anchored bottom-center) */
.floating-bulk-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-bulk-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bulk-count-badge {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* Structural Pulse Skeleton Rows */
@keyframes skeletonPulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.6s ease-in-out infinite;
  background: var(--surface-3);
  border-radius: 4px;
  height: 14px;
  display: inline-block;
}

/* Accessible Empty State */
.data-empty-state {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.empty-state-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   GLOBAL COMMAND PALETTE (CMD+K / CTRL+K)
   ========================================================================== */

.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 16px;
  padding-right: 16px;
}

.command-palette-backdrop.open {
  display: flex;
}

.command-palette-modal {
  width: 100%;
  max-width: 620px;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: commandSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes commandSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.command-palette-search {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-border);
  gap: 12px;
  background: var(--surface-0);
}

.command-palette-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.command-palette-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  font-family: inherit;
}

.command-palette-input::placeholder {
  color: var(--text-muted);
}

.command-kbd {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.command-palette-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.command-palette-group {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 4px;
}

.command-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  outline: none;
}

.command-palette-item:hover,
.command-palette-item.is-selected {
  background: var(--surface-3);
  color: var(--color-primary);
}

.command-palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.command-palette-item-icon {
  font-size: 1.05rem;
  opacity: 0.85;
}

.command-palette-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--surface-border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.command-palette-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   NON-BLOCKING TOAST STACK (BOTTOM-RIGHT PERIPHERY)
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 48px);
}

.toast {
  pointer-events: auto;
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(115%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-undo {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-top: 4px;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Toast Variants */
.toast-success { border-left: 4px solid var(--color-success); }
.toast-error   { border-left: 4px solid var(--color-danger); }
.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-info    { border-left: 4px solid var(--color-accent); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  width: 100%;
  transform-origin: left;
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================================
   STANDARDIZED DESTRUCTIVE CONFIRMATION DIALOG
   ========================================================================== */

.destructive-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.destructive-modal-backdrop.open {
  display: flex;
}

.destructive-modal-box {
  width: 100%;
  max-width: 480px;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: commandSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.destructive-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.destructive-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-danger-light);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.destructive-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.destructive-modal-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.destructive-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: var(--space-2);
}

/* ==========================================================================
   PROGRESSIVE FORM CONTROLS & ONBLUR FEEDBACK
   ========================================================================== */

.form-group-institutional {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.form-label-top {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-control-institutional {
  width: 100%;
  padding: 9px 13px;
  background: var(--surface-0);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control-institutional:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-control-institutional.has-error {
  border-color: var(--color-danger);
  background-color: var(--color-danger-light);
}

.form-error-feedback {
  font-size: 0.75rem;
  color: var(--color-danger);
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.form-error-feedback.visible {
  display: block;
}

/* Top Bar Enhancements (Breadcrumbs, Command Launcher, Theme Toggle) */
.portal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.portal-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.portal-breadcrumbs a:hover {
  color: var(--color-primary);
}

.portal-breadcrumbs .crumb-separator {
  opacity: 0.5;
}

.command-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.command-launcher-btn:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-toggle-btn {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

/* ==========================================================================
   WORLD-CLASS DATA VISUALIZATION SCAFFOLDING & DELUXE KPI CARDS
   ========================================================================== */

.kpi-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 1200px) {
  .kpi-metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .kpi-metric-grid { grid-template-columns: 1fr; }
}

.kpi-card-deluxe {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card-deluxe:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.kpi-card-deluxe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--color-primary));
  opacity: 0.85;
}

.kpi-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-label-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.kpi-icon-glyph {
  font-size: 1rem;
  opacity: 0.8;
}

.kpi-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 8px;
}

.kpi-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.kpi-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.kpi-delta-pill.positive {
  background: var(--color-success-light);
  color: var(--color-success);
}

.kpi-delta-pill.negative {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.kpi-delta-pill.neutral {
  background: var(--surface-3);
  color: var(--text-muted);
}

.kpi-sparkline-box {
  width: 96px;
  height: 28px;
  flex-shrink: 0;
}

/* 2/3 + 1/3 Chart Scaffolding Grid */
.chart-layout-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
  .chart-layout-grid-2-1 { grid-template-columns: 1fr; }
}

.chart-card-deluxe {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-header-deluxe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.chart-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-title-deluxe {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.chart-subtitle-deluxe {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chart-timeframe-group {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.chart-timeframe-btn {
  background: transparent;
  border: none;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-timeframe-btn.active,
.chart-timeframe-btn:hover {
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   FACETED INLINE FILTER BAR
   Replaces the bulky 6-dropdown form. Compact, single-line, pill-select.
   ========================================================================== */

.faceted-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.faceted-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 6px 12px 6px 34px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 11px center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faceted-search-input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background-color: #ffffff;
}

.filter-pill-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-pill:hover,
.filter-pill:focus {
  border-color: #a5b4fc;
  background-color: #f5f3ff;
  color: #4338ca;
  outline: none;
}

.filter-pill.has-value {
  border-color: #c7d2fe;
  background-color: #eef2ff;
  color: #4338ca;
}

.filter-active-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.filter-active-badge button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  color: #818cf8;
  line-height: 1;
  display: flex;
  align-items: center;
}

.filter-active-badge button:hover {
  color: #4338ca;
}

.filter-clear-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  margin-left: auto;
}

.filter-clear-link:hover {
  color: #ef4444;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
}


/* ==========================================================================
   PROGRESSIVE LOAD MORE — DATA DISCLOSURE CONTROLLER
   ========================================================================== */

.load-more-controller {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0 6px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.load-more-btn .lm-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: lm-spin 0.7s linear infinite;
}

.load-more-btn.loading .lm-spinner {
  display: block;
}

.load-more-btn.loading .lm-text {
  opacity: 0.6;
}

@keyframes lm-spin {
  to { transform: rotate(360deg); }
}

/* Skeleton pulse for loading state */
.skeleton-row {
  height: 48px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ==========================================================================
   KPI CARD DELUXE — UNIFIED (No Rainbow) Version
   Each card: pure white, single consistent border, accent via icon + pill only
   ========================================================================== */

.kpi-card-deluxe {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* Remove the old rainbow ::before top stripe */
.kpi-card-deluxe::before {
  display: none;
}

/* Optional: single bottom-left color dot via --card-accent — subtle, not dominant */
.kpi-card-deluxe::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, #e2e8f0);
  border-radius: 0;
  opacity: 0.5;
}

.kpi-card-deluxe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  border-color: #c7d2fe;
}

.kpi-card-deluxe .kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--card-accent-bg, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.kpi-card-deluxe .kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.kpi-card-deluxe .kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.kpi-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.kpi-delta-pill.positive {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.kpi-delta-pill.negative {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.kpi-delta-pill.neutral {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.kpi-sparkline-box {
  margin-top: auto;
  padding-top: 12px;
}

/* KPI grid layout */
.kpi-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1200px) {
  .kpi-metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpi-metric-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EXECUTIVE 12-COLUMN DASHBOARD GRID SYSTEM
   ========================================================================== */
.admin-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.col-span-12 { grid-column: span 12; }
.col-span-8  { grid-column: span 8; }
.col-span-6  { grid-column: span 6; }
.col-span-4  { grid-column: span 4; }
.col-span-3  { grid-column: span 3; }

@media (max-width: 1200px) {
  .col-span-3 { grid-column: span 6; }
  .col-span-4 { grid-column: span 6; }
}

@media (max-width: 900px) {
  .admin-grid-12 { gap: 16px; }
  .col-span-8, .col-span-6, .col-span-4, .col-span-3 { grid-column: span 12; }
}

/* Compact Executive KPI Row */
.kpi-compact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1300px) {
  .kpi-compact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .kpi-compact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-compact-grid { grid-template-columns: 1fr; }
}

.kpi-card-compact {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.kpi-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42, 84, 245, 0.08);
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-card-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.kpi-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(42, 84, 245, 0.08);
  color: #2A54F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.kpi-card-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  font-feature-settings: 'tnum';
  line-height: 1.1;
  margin: 6px 0 2px;
}

.kpi-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.kpi-sparkline-slot {
  width: 65px;
  height: 20px;
}

/* Executive Panel Container */
.executive-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl, 20px);
  padding: 18px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-subtitle {
  font-size: 0.76rem;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

.panel-action-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2A54F5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.panel-action-link:hover {
  color: #1E40AF;
  text-decoration: underline;
}

/* Leaderboard & Feed Lists */
.ranked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: background 0.15s ease;
}

.ranked-item:hover {
  background: #f1f5f9;
}

.ranked-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ranked-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(42, 84, 245, 0.1);
  color: #2A54F5;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ranked-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-item-sub {
  font-size: 0.71rem;
  color: #64748B;
}

.ranked-item-metric {
  text-align: right;
  flex-shrink: 0;
}

.ranked-item-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
  font-feature-settings: 'tnum';
}

.ranked-item-rate {
  font-size: 0.70rem;
  font-weight: 700;
  color: #10B981;
}

/* Activity stream */
.activity-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-stream-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.79rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.activity-stream-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-stream-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(42, 84, 245, 0.08);
  color: #2A54F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Status indicator pulse */
.pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   SKILL SHIKSHA — CTO DESIGN SYSTEM (M3 & APPLE HIG SYNTHESIS)
   ========================================================================== */

/* 1. Translucent Apple HIG Glassmorphism */
.portal-top-bar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
}

/* 2. Elevated Tonal Cards */
.card,
.portal-card,
.stat-card-deluxe {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 16px -2px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover,
.stat-card-deluxe:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 12px 28px -4px rgba(15, 23, 42, 0.05) !important;
}

/* 3. M3 Segmented Navigation & Active Pills */
.portal-nav-item {
  border-radius: 12px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-weight: 600 !important;
}

.portal-nav-item:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  color: #2563EB !important;
  transform: translateX(2px);
}

.portal-nav-item.active {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18) !important;
}

/* 4. Apple-Style Pill Search */
.pill-search-bar {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  transition: all 0.2s ease !important;
}

.pill-search-bar:hover,
.pill-search-bar:focus-within {
  background: #ffffff !important;
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* 5. M3 Filter Chips & Floating Pill Bars */
.faceted-filter-bar {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.filter-pill {
  border-radius: 9999px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.filter-pill:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

.filter-pill.has-value {
  background: #EFF6FF !important;
  border-color: #93C5FD !important;
  color: #1D4ED8 !important;
}

/* 6. Buttons & Tactile Feedback */
.btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: 1px solid #1D4ED8 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.btn-outline {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

.btn-outline:hover {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* 7. High-Density Data Tables */
.data-table-container,
.table-responsive {
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

thead th {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

tbody tr {
  transition: background 0.12s ease !important;
}

tbody tr:hover {
  background: #F8FAFF !important;
}

tbody td {
  border-bottom: 1px solid #F1F5F9 !important;
}

tbody tr:last-child td {
  border-bottom: none !important;
}

/* 8. Status Badges with Tonal Fills */
.badge {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

.badge-success {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.2) !important;
}

.badge-warning {
  background: #FFFBEB !important;
  color: #D97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
}

.badge-danger {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

.badge-primary,
.badge-info {
  background: #EFF6FF !important;
  color: #2563EB !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

/* 9. Responsive Layout Optimization */
@media (max-width: 1024px) {
  .portal-layout {
    flex-direction: column !important;
  }
}

/* 10. Horizontal Reimbursement Timeline SLA Stepper */
.timeline-sla {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
  margin: 20px 0 8px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

.timeline-sla::before {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  left: 48px !important;
  right: 48px !important;
  height: 2px !important;
  background: #E2E8F0 !important;
  z-index: 1 !important;
}

.timeline-sla-step {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  z-index: 2 !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.timeline-sla-circle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 2px solid #CBD5E1 !important;
  color: #64748B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease !important;
}

.timeline-sla-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
  line-height: 1.3 !important;
  max-width: 125px !important;
  word-break: normal !important;
}

/* Completed Step */
.timeline-sla-step.completed .timeline-sla-circle {
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.timeline-sla-step.completed .timeline-sla-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Active Step */
.timeline-sla-step.active .timeline-sla-circle {
  background: #2A54F5 !important;
  border-color: #2A54F5 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 5px rgba(42, 84, 245, 0.18) !important;
}

.timeline-sla-step.active .timeline-sla-label {
  color: #2A54F5 !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .timeline-sla {
    overflow-x: auto !important;
    padding-bottom: 12px !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  .timeline-sla-step {
    flex: 0 0 110px !important;
  }
}

/* 11. Interactive Chart Floating Tooltip (High Contrast White Typography) */
.uni-chart-tooltip-deluxe {
  position: fixed !important;
  pointer-events: none !important;
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  z-index: 999999 !important;
  line-height: 1.4 !important;
}





