/* ===================================================================
   IFI-Rank: Enterprise Islamic FinTech Portal
   Theme: Luxury Clean White, Emerald Accents & Refined Warm Gold
   Typography: Plus Jakarta Sans & Outfit (Tabular Numbers)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Clean White & Crisp Slate Base */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-hover: #f8fafc;
  
  /* Primary Brand Logo Deep Teal Palette (#005367) */
  --emerald-950: #00222b;
  --emerald-900: #003644;
  --emerald-800: #004557;
  --emerald-700: #005367; /* Exact Logo Teal */
  --emerald-600: #00667e;
  --emerald-500: #007c99;
  --emerald-400: #0ea5e9;
  --emerald-100: #d0ebf2;
  --emerald-50:  #f0f8fa; /* Soft Logo Teal Tint */

  /* Secondary Refined Warm Gold Palette */
  --gold-900: #78350f;
  --gold-800: #92400e;
  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Neutrals & Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #047857;

  /* Status Colors */
  --status-success-bg: #ecfdf5;
  --status-success-text: #065f46;
  --status-success-border: #a7f3d0;

  --status-warning-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-border: #fde68a;

  --status-danger-bg: #fef2f2;
  --status-danger-text: #991b1b;
  --status-danger-border: #fecaca;

  --white: #ffffff;
  --black: #000000;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.15);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

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

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================================================
   Base & Reset
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a {
  color: var(--emerald-800);
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===================================================================
   Top Navigation Header (Clean Crisp White Theme)
   =================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.site-main-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Nav Menu Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: #334155;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #ffffff !important;
  background-color: #005367 !important;
  border-color: #004557 !important;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.25) !important;
  transform: translateY(-1.5px);
}

.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #005367 0%, #006f89 100%) !important;
  border: 1px solid #004557 !important;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.32) !important;
  font-weight: 750 !important;
}

.nav-link.active:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #00627a 0%, #0a84a0 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 83, 103, 0.4) !important;
  transform: translateY(-2px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-admin-nav {
  background: linear-gradient(135deg, #005367 0%, #00667e 100%);
  color: #ffffff !important;
  border: 1px solid #007c99;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(0, 83, 103, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-admin-nav svg {
  stroke: #ffffff !important;
}

.btn-admin-nav span {
  color: #ffffff !important;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.mobile-menu-toggle:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--emerald-500);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2.2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
  background: var(--emerald-700);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
  background: var(--emerald-700);
}

/* Mobile Slide Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--emerald-100);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 12px 24px -4px rgba(0, 83, 103, 0.15);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  animation: slideDownMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownMobile {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-link svg {
  stroke: var(--text-muted);
  transition: stroke var(--transition-fast);
  flex-shrink: 0;
}

.mobile-nav-link:hover {
  background: #005367 !important;
  color: #ffffff !important;
}

.mobile-nav-link:hover svg {
  stroke: #ffffff !important;
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, #005367 0%, #006f89 100%) !important;
  color: #ffffff !important;
  border: 1px solid #004557 !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 12px rgba(0, 83, 103, 0.25) !important;
}

.mobile-nav-link.active svg {
  stroke: #ffffff !important;
}

.mobile-drawer-footer {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===================================================================
   Hero Header Section (Clean White / Light Slate Gradient)
   =================================================================== */
.hero-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #f1f7f4 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0 3.5rem;
  position: relative;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content-col {
  max-width: 680px;
}

.hero-media-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover {
  transform: translateY(-4px);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 83, 103, 0.12));
}

/* ==========================================================================
   Hero Benchmark Auto-Slider (2-second interval, No arrows)
   ========================================================================== */
.hero-slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 83, 103, 0.15), 0 0 0 1px rgba(0, 83, 103, 0.08);
  background: #ffffff;
  transition: transform var(--transition-normal);
}

.hero-slider-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 83, 103, 0.2);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  min-height: 295px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(20px);
  display: flex;
  flex-direction: column;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
}

.slider-card-box {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #ffffff;
}

.slider-card-badge-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #005367;
  align-self: flex-start;
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}

.badge-icon-verified {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #005367;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-card-banner {
  background: linear-gradient(135deg, #005367 0%, #003643 100%);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.slider-card-arabic {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.slider-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gold-text {
  color: #d4a017;
}

.slider-card-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.15rem;
}

.slider-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.slider-metric-col .sm-label {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.slider-metric-col .sm-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.15rem 0;
}

.slider-metric-col .sm-val.gold { color: #d97706; }
.slider-metric-col .sm-val.teal { color: #005367; }
.slider-metric-col .sm-val.red  { color: #dc2626; }
.slider-metric-col .sm-val.dark { color: #1e293b; }

.slider-metric-col .sm-foot {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}
.slider-metric-col .sm-foot.green { color: #059669; }

.slider-card-pill-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slider-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.slider-pill.gold-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.slider-pill.teal-pill {
  background: #f0fdf9;
  color: #005367;
  border: 1px solid #ccfbf1;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #005367;
}

@media (max-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-content-col {
    order: 1;
  }
  .hero-media-col {
    order: 2;
  }
  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-800);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--emerald-700);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title .highlight-emerald {
  color: var(--emerald-700);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #005367 0%, #00667e 100%);
  color: #ffffff !important;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.25);
  border: 1px solid #007c99;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-primary svg {
  stroke: #ffffff !important;
}

.btn-hero-primary span {
  color: #ffffff !important;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #004557 0%, #005367 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 83, 103, 0.35);
  color: #ffffff !important;
}

.btn-hero-secondary {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.btn-hero-secondary svg {
  stroke: var(--emerald-700) !important;
}

.btn-hero-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--emerald-500);
  color: var(--emerald-800) !important;
}

/* Formula & Benchmarking Card in Hero */
.formula-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.formula-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.formula-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.formula-code-card {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--emerald-600);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--emerald-900);
  margin-bottom: 1rem;
}

.formula-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.formula-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.formula-features-list svg {
  width: 16px;
  height: 16px;
  stroke: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===================================================================
   KPI Statistics Grid (White Cards with Refined Borders)
   =================================================================== */
.stats-section {
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card-white {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.stat-card-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-500);
}

.stat-card-white .stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.stat-card-white .stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card-white .stat-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--emerald-700);
  fill: none;
  stroke-width: 2;
}

.stat-card-white.gold .stat-card-icon {
  background: var(--gold-50);
}

.stat-card-white.gold .stat-card-icon svg {
  stroke: var(--gold-700);
}

/* ===================================================================
   Evaluation Filter Controls (Deluxe Luxury Symmetrical 3x2 Matrix)
   =================================================================== */
.filter-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.65rem 1.85rem;
  box-shadow: 0 12px 36px -6px rgba(0, 83, 103, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
  overflow: hidden;
  box-sizing: border-box;
}

/* Islamic FinTech Signature Top Ribbon */
.filter-card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #005367 0%, #0d7b93 25%, #d4a017 50%, #0d7b93 75%, #005367 100%);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.filter-header-title {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.filter-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #005367 0%, #08404e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 83, 103, 0.28);
}

.filter-main-heading {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: #0a252c;
  letter-spacing: -0.015em;
  margin-bottom: 0.15rem;
}

.filter-sub-heading {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 450;
  line-height: 1.4;
}

.filter-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDotLive 2s infinite;
}

@keyframes pulseDotLive {
  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); }
}

.filter-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Symmetrical 3x2 Matrix Rows */
.filter-grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  align-items: flex-end;
}

.filter-grid-row-2 {
  padding-top: 1.15rem;
  border-top: 1px dashed #e2e8f0;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #005367;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.label-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e6f4f8;
  color: #005367;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.label-icon-badge.gold {
  background: #fef3c7;
  color: #b45309;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.filter-card .form-select {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23005367' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
}

.filter-card .form-select:hover {
  background-color: #ffffff;
  border-color: #005367;
  box-shadow: 0 2px 8px rgba(0, 83, 103, 0.06);
}

.filter-card .form-select:focus {
  background-color: #ffffff;
  border-color: #005367;
  box-shadow: 0 0 0 3.5px rgba(0, 83, 103, 0.14);
  outline: none;
}

/* Action Cockpit in Column 3 of Row 2 */
.filter-action-cockpit-group {
  width: 100%;
}

.filter-actions-cockpit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 48px;
}

/* Reset Button */
.btn-filter-reset-deluxe {
  height: 48px;
  padding: 0 0.85rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-filter-reset-deluxe:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
}

/* Primary Apply Filters Button */
.btn-filter-apply-deluxe {
  height: 48px;
  flex: 1.15;
  background: linear-gradient(135deg, #005367 0%, #006f89 100%);
  color: #ffffff !important;
  border: 1px solid #004557;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-filter-apply-deluxe:hover {
  background: linear-gradient(135deg, #00667e 0%, #0a84a0 100%);
  box-shadow: 0 6px 20px rgba(0, 83, 103, 0.38);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.spin-icon {
  animation: spinFilterIcon 1s linear infinite;
}

@keyframes spinFilterIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Executive 4-Book Dossier Button */
.btn-filter-dossier-deluxe {
  height: 48px;
  flex: 1.25;
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #ffffff !important;
  border: 1px solid #996e05;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-filter-dossier-deluxe:hover {
  background: linear-gradient(135deg, #e5b026 0%, #c99310 100%);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.42);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .filter-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-action-cockpit-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .filter-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .filter-grid-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .filter-actions-cockpit {
    flex-wrap: wrap;
    height: auto;
  }
  .btn-filter-reset-deluxe,
  .btn-filter-apply-deluxe,
  .btn-filter-dossier-deluxe {
    width: 100%;
    flex: none;
    height: 46px;
  }
}
}

.scorecard-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-header-outline {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.btn-header-outline svg {
  stroke: var(--emerald-700);
}

.btn-header-outline.btn-excel-action {
  background: var(--bg-surface);
  border-color: #005367;
  color: #005367;
  font-weight: 700;
}

.btn-header-outline.btn-excel-action svg {
  stroke: #005367;
}

.btn-header-outline.btn-excel-action:hover {
  background: #f0fdfa;
  border-color: #005367;
  color: #003e4d;
}

.btn-header-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--emerald-500);
  color: var(--emerald-800);
}

/* ===================================================================
   Scorecard Table (Clean White Luxury Styling)
   =================================================================== */
.scorecard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.scorecard-header {
  padding: 1.35rem 1.6rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.scorecard-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scorecard-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.data-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  text-align: left;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1 !important;
}

#rankingsTable {
  table-layout: fixed;
}

.data-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 0.85rem;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 2.5px solid #005367 !important;
  white-space: nowrap;
}

.data-table th.sortable {
  cursor: pointer;
}

.data-table td {
  padding: 0.85rem 0.85rem;
  border: 1px solid #d8e2ec !important;
  vertical-align: middle;
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fbfcfd;
}

.data-table tbody tr:hover {
  background-color: #f0f7f6;
}

.data-table td.cell-description,
.cell-description {
  white-space: normal !important;
  line-height: 1.45;
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 220px;
  max-width: 380px;
}

.data-table th.cell-actions,
.data-table td.cell-actions,
.cell-actions {
  text-align: right !important;
  white-space: nowrap !important;
  width: 175px;
  min-width: 175px;
  padding-right: 1.5rem !important;
}

.table-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #005367;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 83, 103, 0.08);
}

.btn-table-action:hover {
  background: #005367;
  color: #ffffff !important;
  border-color: #005367;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 83, 103, 0.28);
}

.btn-table-action.delete {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}

.btn-table-action.delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

/* Banner Action Button (Fixes invisible text on white button) */
.btn-banner-action {
  background: #ffffff !important;
  color: #005367 !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  height: 44px !important;
  padding: 0 1.4rem !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.btn-banner-action span {
  color: #005367 !important;
  font-weight: 800 !important;
}

.btn-banner-action svg {
  stroke: #005367 !important;
}

.btn-banner-action:hover {
  background: #f0fdfa !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

#rankingsTable th:nth-child(1),
#rankingsTable td:nth-child(1) {
  width: 5.5%;
  text-align: center;
  padding-left: 0.75rem;
}

#rankingsTable th:nth-child(2),
#rankingsTable td:nth-child(2) {
  width: 30%;
}

#rankingsTable th:nth-child(3),
#rankingsTable td:nth-child(3) {
  width: 10%;
}

#rankingsTable th:nth-child(4),
#rankingsTable td:nth-child(4) {
  width: 12%;
  text-align: center;
}

#rankingsTable th:nth-child(5),
#rankingsTable td:nth-child(5) {
  width: 18%;
}

#rankingsTable th:nth-child(6),
#rankingsTable td:nth-child(6) {
  width: 11.5%;
  text-align: center;
}

#rankingsTable th:nth-child(7),
#rankingsTable td:nth-child(7) {
  width: 13%;
  text-align: right;
  padding-right: 0.75rem;
}

/* Dedicated Methodology Table Layout & Alignment */
.methodology-table {
  table-layout: auto;
  width: 100%;
  min-width: 860px;
}

.methodology-table th,
.methodology-table td {
  white-space: normal;
  padding: 0.9rem 0.85rem;
  vertical-align: middle;
}

.methodology-table th:nth-child(1),
.methodology-table td:nth-child(1) {
  width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.methodology-table th:nth-child(2),
.methodology-table td:nth-child(2) {
  width: 125px;
  text-align: left;
}

.methodology-table th:nth-child(3),
.methodology-table td:nth-child(3) {
  width: 28%;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.methodology-table th:nth-child(4),
.methodology-table td:nth-child(4) {
  width: 130px;
  text-align: left;
}

.methodology-table th:nth-child(5),
.methodology-table td:nth-child(5) {
  width: 110px;
  text-align: left;
}

.methodology-table th:nth-child(6),
.methodology-table td:nth-child(6) {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.methodology-table code {
  display: inline-block;
  background: #f1f5f9;
  color: #065f46;
  border: 1px solid #e2e8f0;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: #f1f8f5;
}

/* Table Empty & Prompt State (100% Centered) */
.table-empty-cell {
  padding: 4.5rem 1.5rem !important;
  text-align: center !important;
  background: var(--bg-surface) !important;
}

.table-empty-cell,
.table-empty-cell * {
  white-space: normal !important;
}

.table-empty-wrapper {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.empty-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* Rank Badges */
.rank-badge-clean {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rank-badge-clean.rank-1 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  border: 1.5px solid #fcd34d;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

.rank-badge-clean.rank-2 {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.rank-badge-clean.rank-3 {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  border: 1.5px solid #fdba74;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
}

/* Institution Cell */
.inst-cell-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
}

.inst-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.inst-logo-badge svg {
  width: 100%;
  height: 100%;
}

.inst-meta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.inst-meta-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inst-meta-details {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
}

.badge-country {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* RED TYPE PILL */
.badge-type-pill {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Score Progress Bar */
.score-progress-wrap {
  width: 100%;
  max-width: 135px;
}

.score-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.score-pct-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.score-pts-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.progress-track-clean {
  width: 100%;
  height: 6px;
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill-clean {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-fill-clean.tier-top { background: linear-gradient(90deg, #10b981, #059669); }
.progress-fill-clean.tier-high { background: linear-gradient(90deg, #14b8a6, #0f766e); }
.progress-fill-clean.tier-moderate { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-fill-clean.tier-low { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Tier Badges */
.tier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.tier-top { background-color: var(--status-success-bg); color: var(--status-success-text); border: 1px solid var(--status-success-border); }
.tier-high { background-color: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.tier-moderate { background-color: var(--status-warning-bg); color: var(--status-warning-text); border: 1px solid var(--status-warning-border); }
.tier-low { background-color: var(--status-danger-bg); color: var(--status-danger-text); border: 1px solid var(--status-danger-border); }

/* Action Button */
.btn-view-audit {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-700);
  color: var(--emerald-800);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-view-audit:hover {
  background: var(--emerald-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.btn-view-audit svg {
  width: 13px;
  height: 13px;
}

/* ===================================================================
   Modal Evaluation Viewer (Clean White Luxury)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* ===================================================================
   Universal Form Inputs (.form-input, .form-select) & All Modal Controls
   =================================================================== */
.form-input,
.form-select,
.modal-card-dialog input:not([type="checkbox"]):not([type="radio"]),
.modal-card-dialog select,
.modal-card-dialog textarea {
  display: block !important;
  width: 100% !important;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: 0 !important;
}

.form-select,
.modal-card-dialog select {
  padding-right: 2.5rem !important;
  cursor: pointer !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23005367' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 15px !important;
}

textarea.form-input,
.modal-card-dialog textarea {
  height: auto !important;
  min-height: 95px !important;
  padding: 0.85rem 1rem !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}

.form-input:hover,
.form-select:hover,
.modal-card-dialog input:not([type="checkbox"]):not([type="radio"]):hover,
.modal-card-dialog select:hover,
.modal-card-dialog textarea:hover {
  background-color: #ffffff !important;
  border-color: #005367 !important;
}

.form-input:focus,
.form-select:focus,
.modal-card-dialog input:not([type="checkbox"]):not([type="radio"]):focus,
.modal-card-dialog select:focus,
.modal-card-dialog textarea:focus {
  background-color: #ffffff !important;
  border-color: #005367 !important;
  box-shadow: 0 0 0 3.5px rgba(0, 83, 103, 0.14) !important;
  outline: none !important;
}

.input-field-group,
.modal-card-dialog .input-field-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.field-label,
.modal-card-dialog .field-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  width: 100% !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: #005367 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.45rem !important;
  line-height: 1.2 !important;
}

.input-with-icon-wrap {
  position: relative;
  width: 100%;
}

.input-with-icon-wrap .form-input {
  padding-left: 2.75rem !important;
  padding-right: 2.75rem !important;
}

.input-inner-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #005367;
  opacity: 0.8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.btn-toggle-pass {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.btn-toggle-pass:hover {
  color: #005367;
  background: #f1f5f9;
}

/* ===================================================================
   Deluxe Sign In to Portal Modal
   =================================================================== */
.login-modal-dialog {
  position: relative;
  width: 100% !important;
  max-width: 440px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 60px -12px rgba(0, 83, 103, 0.28), 0 0 0 1px rgba(0, 83, 103, 0.08) !important;
  overflow: hidden;
  border: none !important;
}

.modal-card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #005367 0%, #0d7b93 25%, #d4a017 50%, #0d7b93 75%, #005367 100%);
  z-index: 10;
}

.login-modal-header {
  padding: 1.75rem 2rem 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.login-modal-icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #005367 0%, #084351 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.28);
}

.login-modal-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a252c;
  letter-spacing: -0.015em;
}

.login-modal-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 450;
}

.login-modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

.login-modal-body {
  padding: 1.5rem 2rem 1.75rem 2rem;
  background: #ffffff;
}

.login-input {
  height: 48px !important;
  font-size: 0.92rem !important;
  border-radius: 10px !important;
}

.btn-login-modal-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #005367 0%, #006f89 100%);
  color: #ffffff !important;
  border: 1px solid #004557;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn-login-modal-submit:hover {
  background: linear-gradient(135deg, #00667e 0%, #0a84a0 100%);
  box-shadow: 0 6px 20px rgba(0, 83, 103, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.login-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 0.95rem 1.5rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}

.login-modal-footer svg {
  color: #005367;
  opacity: 0.85;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card-dialog {
  background: var(--bg-surface);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  position: relative;
}

/* Ensure any form inside a modal card is a proper flex column with scrollable body */
.modal-card-dialog > form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.modal-dialog-header {
  background: #ffffff;
  padding: 1.35rem 1.85rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0 !important;
}

.modal-dialog-body {
  padding: 1.5rem 1.85rem !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-footer {
  background: #f8fafc !important;
  padding: 1rem 1.85rem !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 10;
}

/* Modal Save & Cancel Action Buttons */
.btn-modal-save {
  height: 44px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #005367 0%, #006f89 100%);
  color: #ffffff !important;
  border: 1px solid #004557;
  border-radius: 10px;
  font-weight: 750;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-modal-save:hover {
  background: linear-gradient(135deg, #00667e 0%, #0a84a0 100%);
  box-shadow: 0 6px 20px rgba(0, 83, 103, 0.38);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-modal-cancel {
  height: 44px;
  padding: 0 1.25rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  font-weight: 650;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-modal-cancel:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.modal-backdrop.active .modal-card-dialog {
  transform: translateY(0);
}

.modal-dialog-header {
  background: var(--bg-surface);
  padding: 1.5rem 1.85rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-inst-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-avatar-lg {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--emerald-800);
  color: var(--gold-300);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-400);
}

.modal-inst-heading h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-inst-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.btn-close-modal {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

.modal-dialog-body {
  padding: 1.75rem;
  overflow-y: auto;
  background: var(--bg-app);
}

/* Modal Scorecard Header Block */
.modal-score-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.score-radial-clean {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-950));
  border: 3px solid var(--gold-400);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-radial-clean .val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.score-radial-clean .lbl {
  font-size: 0.68rem;
  color: var(--gold-300);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.dim-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dim-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.dim-card-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dim-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.dim-card-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--emerald-700);
}

/* Line-Item Table */
.line-table-clean {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-collapse: collapse;
  font-size: 0.86rem;
  overflow: hidden;
}

.line-table-clean th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.line-table-clean td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.status-chip-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-disclosed { background: var(--status-success-bg); color: var(--status-success-text); border: 1px solid var(--status-success-border); }
.status-partial { background: var(--status-warning-bg); color: var(--status-warning-text); border: 1px solid var(--status-warning-border); }
.status-nodata { background: var(--status-danger-bg); color: var(--status-danger-text); border: 1px solid var(--status-danger-border); }

.modal-dialog-footer {
  background: var(--bg-surface);
  padding: 1.1rem 1.85rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================================================
   Content Pages: About, Pricing, FAQs, Contact & Admin Styles
   =================================================================== */
.page-hero-banner {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #f1f7f4 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.page-hero-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.content-section {
  padding: 3.5rem 0 4.5rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-500);
}

.pricing-card.featured {
  border: 2px solid var(--emerald-600);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--emerald-700);
  color: var(--white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1.25rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features svg {
  width: 18px;
  height: 18px;
  stroke: var(--emerald-600);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--emerald-500);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-light);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  stroke: var(--emerald-700);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-950));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

/* Admin Dashboard Specific */
.admin-badge-role {
  background: var(--gold-100);
  color: var(--gold-800);
  border: 1px solid var(--gold-200);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tab-btn:hover {
  color: var(--emerald-800);
  background: var(--bg-surface-subtle);
}

.admin-tab-btn.active {
  color: var(--emerald-800);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-clean {
  background: var(--text-primary);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 4px solid var(--emerald-500);
  animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   Admin Authentication & Enhanced Management Portal Styles
   =================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  background: 
    radial-gradient(circle at 10% 15%, rgba(0, 83, 103, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(212, 160, 23, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(13, 123, 147, 0.04) 0%, transparent 60%),
    #f8fafc;
}

.admin-login-card {
  width: 100%;
  max-width: 480px;
  margin: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 83, 103, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 83, 103, 0.2), 0 0 0 1px rgba(0, 83, 103, 0.06);
  padding: 2.75rem 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #005367 0%, #0d7b93 35%, #d4a017 70%, #005367 100%);
  z-index: 10;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(0, 83, 103, 0.07);
  border: 1px solid rgba(0, 83, 103, 0.18);
  color: #005367;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-login-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a252c;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.admin-login-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.btn-admin-login-submit {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #005367 0%, #006f89 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 83, 103, 0.25);
}

.btn-admin-login-submit:hover {
  background: linear-gradient(135deg, #004353 0%, #005a70 100%);
  box-shadow: 0 6px 20px rgba(0, 83, 103, 0.35);
  transform: translateY(-1px);
}

.btn-admin-login-submit:active {
  transform: translateY(0);
}

.admin-credentials-box {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5), rgba(240, 248, 250, 0.7));
  border: 1px dashed var(--gold-400);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}

.admin-credentials-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--gold-900);
}

.admin-credentials-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
  color: var(--text-secondary);
}

.admin-credentials-item code {
  background: var(--white);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  font-weight: 700;
  color: var(--emerald-900);
}

.btn-quick-fill {
  background: var(--gold-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quick-fill:hover {
  background: var(--gold-600);
  transform: translateY(-1px);
}

.stats-counter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.admin-stat-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--emerald-100);
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-action-btn-group {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.btn-admin-action {
  height: 30px;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-admin-action:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.btn-admin-action.btn-edit:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-800);
  background: var(--emerald-50);
}

.btn-admin-action.btn-delete:hover {
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
  background: var(--status-danger-bg);
}

/* ===================================================================
   Site Footer (Clean Modern White & Slate Theme)
   =================================================================== */
.site-footer-clean {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
  color: var(--text-secondary);
}

.footer-mobile-compact {
  display: none;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-col h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.footer-brand-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-link-list a {
  color: var(--text-secondary);
}

.footer-link-list a:hover {
  color: var(--emerald-700);
}

.footer-bottom-bar {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================================================================
   Responsive Breakpoints & Mobile Optimization
   =================================================================== */
@media (max-width: 992px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    height: 68px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .site-main-logo {
    height: 44px;
    max-width: 175px;
  }

  /* Hide desktop links and buttons on mobile */
  .main-nav,
  .header-right {
    display: none !important;
  }

  /* Show mobile hamburger */
  .mobile-menu-toggle {
    display: flex;
  }

  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-content-col {
    order: 1;
  }

  .hero-media-col {
    order: 2;
  }

  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .filter-grid-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 62px;
  }

  .site-main-logo {
    height: 38px;
    max-width: 155px;
  }

  .hero-section {
    padding: 2rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.22;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-section {
    margin-top: -1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .stat-card-white {
    padding: 1.1rem 1.2rem;
  }

  .filter-card {
    padding: 1.15rem 1rem;
  }

  .filter-grid-form {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .filter-grid-form .input-field-group:last-child {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-filter-apply {
    flex: 1;
    width: 100%;
    justify-content: center;
  }

  .btn-filter-reset {
    padding: 0 1.25rem;
  }

  .scorecard-header {
    padding: 1.1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .scorecard-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .scorecard-actions .btn-header-outline {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.85rem 0.9rem;
  }

  .inst-meta-name {
    font-size: 0.88rem;
  }

  .modal-score-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .score-radial-clean {
    margin: 0 auto;
  }

  .dim-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


/* ===================================================================
   Universal Login Header & Modal Styles (Requirement 7)
   =================================================================== */
.btn-login-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-800);
  color: #ffffff !important;
  border: 1px solid var(--emerald-900);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 83, 103, 0.2);
  text-decoration: none !important;
  user-select: none;
}
.btn-login-header:hover {
  background: var(--emerald-900);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 83, 103, 0.25);
  text-decoration: none !important;
}

#universalLoginModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.header-logged-user-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.btn-header-profile:hover {
  border-color: var(--emerald-600);
  background: var(--bg-surface-subtle);
}

.header-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emerald-800);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.session-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.btn-quick-signout {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-quick-signout:hover {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-text);
}

/* ===================================================================
   Mobile Footer Optimization (Requirement 9)
   =================================================================== */
.footer-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.85rem;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
}
.footer-badges-wrap {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-sep {
  color: var(--border-medium);
  user-select: none;
}
.footer-policy-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-policy-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-policy-links a:hover {
  color: var(--emerald-700);
}

@media (max-width: 768px) {
  .site-footer-clean {
    padding: 1.5rem 0 1.25rem !important;
  }
  .footer-desktop-only {
    display: none !important;
  }
  .footer-mobile-compact {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.25rem 0 0.85rem;
  }
  .footer-mobile-brand img {
    height: 38px;
    width: auto;
  }
  .footer-mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin: 0.65rem 0 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .footer-mobile-nav-links a {
    color: #005367;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    display: inline-block;
  }
  .footer-mobile-nav-links .fsep {
    color: #cbd5e1;
    font-size: 0.75rem;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #f1f5f9 !important;
  }
  .footer-copyright {
    text-align: center !important;
    font-size: 0.78rem !important;
    color: #64748b;
    line-height: 1.45;
  }
  .footer-policy-links {
    justify-content: center !important;
    gap: 0.6rem !important;
    font-size: 0.76rem !important;
  }
}

/* ===================================================================
   AI Chatbot Widget Styling (Requirement 8)
   =================================================================== */
.ifi-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.ifi-chat-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #005367 0%, #003643 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.4);
  padding: 0.75rem 1.15rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 83, 103, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ifi-chat-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 83, 103, 0.45);
  border-color: var(--gold-400);
}
.ifi-chat-trigger.active {
  background: #003643;
}
.ifi-chat-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ifi-chat-badge-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ifi-chat-pulse {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.7);
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(212, 160, 23, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

.ifi-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ifi-chat-header {
  background: linear-gradient(135deg, #005367 0%, #003643 100%);
  color: #ffffff;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ifi-chat-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ifi-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
}
.ifi-chat-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}
.ifi-chat-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.ifi-chat-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-chat-header {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-chat-header:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ifi-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgFadeIn 0.2s ease-out;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot-msg {
  align-self: flex-start;
}
.chat-msg.user-msg {
  align-self: flex-end;
}
.chat-msg .msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.bot-msg .msg-bubble {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-top-left-radius: 4px;
}
.user-msg .msg-bubble {
  background: #005367;
  color: #ffffff;
  border-top-right-radius: 4px;
}
.msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.35rem;
}
.user-msg .msg-time {
  text-align: right;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.85rem !important;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dotBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.ifi-chat-chips {
  padding: 0.5rem 0.85rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.ifi-chat-chips::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  white-space: nowrap;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  color: var(--emerald-900);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip-btn:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-700);
  color: var(--emerald-800);
}

.ifi-chat-form {
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ifi-chat-input {
  flex: 1;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}
.ifi-chat-input:focus {
  background: #ffffff;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(0, 83, 103, 0.12);
}
.ifi-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #005367;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.ifi-chat-send-btn:hover {
  background: #003643;
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .ifi-chat-widget {
    bottom: 16px;
    right: 16px;
  }
  .ifi-chat-window {
    bottom: 64px;
    right: 0;
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
  }
}

/* ===================================================================
   Management System Admin Panel Architecture (Requirements 2, 3, 4, 6, 10)
   =================================================================== */
.admin-workspace-layout {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  font-family: var(--font-body);
  position: relative;
  width: 100%;
}

/* Left Sidebar */
.admin-sidebar {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  background: #ffffff !important;
  color: #1e293b !important;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  align-self: flex-start !important;
  z-index: 1050 !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .admin-workspace-layout.sidebar-collapsed .admin-sidebar,
  .admin-sidebar.collapsed {
    margin-left: -270px !important;
  }
}
.admin-sidebar::-webkit-scrollbar {
  width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-header-brand {
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
}
.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #0f172a;
}
.sidebar-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #005367;
}
.sidebar-brand-sub {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* User mini profile in sidebar */
.sidebar-user-card {
  padding: 0.85rem 1rem;
  margin: 0.85rem 1rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #005367 0%, #00667e 100%);
  border: 1px solid #005367;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 83, 103, 0.2);
}
.sidebar-user-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}
.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}
.sidebar-user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 0.7rem;
  color: #005367;
  font-weight: 600;
}

/* Sidebar Nav Tree */
.sidebar-nav-tree {
  padding: 0.85rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.nav-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.85rem 0.25rem;
  margin-top: 0.4rem;
}
.nav-menu-item {
  display: flex;
  flex-direction: column;
}
.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  user-select: none;
}
.nav-menu-link:hover {
  color: #005367 !important;
  background: #f0fdf9;
  border-color: rgba(0, 83, 103, 0.15);
}
.nav-menu-link:hover .nav-menu-icon {
  color: #005367 !important;
}
.nav-menu-link:hover .nav-menu-arrow {
  color: #005367 !important;
  opacity: 1;
}
.nav-menu-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #005367 0%, #00667e 100%);
  border-color: #004557;
  box-shadow: 0 3px 8px rgba(0, 83, 103, 0.25);
}
.nav-menu-link.active .nav-menu-icon {
  color: #ffffff !important;
}
.nav-menu-link.active .nav-menu-arrow {
  color: #ffffff !important;
  opacity: 1;
}
.nav-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #64748b;
  transition: color 0.2s ease;
}
.nav-menu-text {
  flex: 1;
}
.nav-menu-arrow {
  transition: transform 0.2s, color 0.2s;
  font-size: 0.7rem;
  opacity: 0.6;
  color: #64748b;
}
.nav-menu-item.open > .nav-menu-link .nav-menu-arrow {
  transform: rotate(90deg);
}

.nav-submenu-list {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0 0.25rem 0.85rem;
  margin-left: 1.55rem;
  border-left: 2px solid #e2e8f0;
}
.nav-menu-item.open > .nav-submenu-list {
  display: flex;
}
.nav-submenu-link {
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.nav-submenu-link:hover {
  color: #005367 !important;
  background: rgba(0, 83, 103, 0.08);
}
.nav-submenu-link.active {
  color: #005367 !important;
  font-weight: 700;
  background: rgba(0, 83, 103, 0.12);
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1040;
}
.sidebar-backdrop-overlay.show {
  display: block;
}

/* Main Area */
.admin-workspace-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header Bar */
.admin-header-bar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-sidebar-hamburger {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-sidebar-hamburger:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.header-portal-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-portal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-800);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Header Right Actions */
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.header-action-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.header-action-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.notif-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

/* User Profile Trigger in Header */
.header-user-dropdown-wrap {
  position: relative;
}
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.header-user-btn:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-medium);
}
.header-user-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #005367;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.header-user-details {
  text-align: left;
  line-height: 1.15;
}
.header-user-fullname {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.header-user-rolename {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Popups / Dropdowns */
.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 1030;
  display: none;
  animation: menuDrop 0.2s ease-out;
}
.header-dropdown-menu.show {
  display: block;
}
@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Notification Panel */
.notif-menu-panel {
  width: 340px;
  max-width: calc(100vw - 32px);
}
.notif-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-header-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.notif-clear-btn {
  background: none;
  border: none;
  color: var(--emerald-700);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.notif-list-body {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.notif-item-row {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.6rem;
  transition: background 0.15s;
}
.notif-item-row:hover {
  background: #f8fafc;
}
.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.notif-item-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.notif-item-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* User Menu Panel */
.user-menu-panel {
  width: 230px;
  padding: 0.5rem 0;
}
.user-menu-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.user-menu-item:hover {
  background: #f1f5f9;
  color: var(--emerald-800);
}
.user-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}
.user-menu-item.signout:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* Viewport / Content Area */
.admin-main-viewport {
  flex: 1;
  padding: 1.85rem 2rem;
}
.view-container {
  display: none;
}
.view-container.active {
  display: block;
}

/* Admin KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.85rem;
}
.admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.admin-kpi-info .kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-kpi-info .kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 0.2rem;
}
.admin-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-kpi-icon.gold {
  background: var(--gold-100);
  color: var(--gold-800);
}

/* Admin Card Container */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.85rem;
  overflow: hidden;
}
.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.admin-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

/* Admin Filter Toolbar (Requirement 6) */
.admin-filter-bar {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.filter-input-wrap {
  min-width: 180px;
  flex: 1;
}

/* Permissions Selection Grid (Requirement 10) */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  margin-top: 0.45rem;
}

@media (max-width: 600px) {
  .permissions-grid {
    grid-template-columns: 1fr;
  }
}

.permission-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.permission-checkbox-item:hover {
  background: #f0fdf9;
  border-color: #005367;
  transform: translateY(-1px);
}

.permission-checkbox-item input[type="checkbox"] {
  accent-color: #005367;
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.permission-title {
  font-size: 0.84rem;
  font-weight: 750;
  color: #005367;
  font-family: monospace;
  display: block;
}

.permission-desc {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Responsive Rules for Admin Workspace */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin-left: 0 !important;
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1090 !important;
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-header-bar {
    padding: 0 1rem;
  }
  .admin-main-viewport {
    padding: 1.25rem 1rem;
  }
  .header-user-fullname, .header-user-rolename {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-header-left .header-portal-title span:last-child {
    display: none;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-input-wrap {
    width: 100%;
  }
}


/* ==========================================================================
   4-BOOK EVALUATION DOSSIER LUXURY STYLING (Requirements 2, 6, 7, 8, 9)
   ========================================================================== */

.dossier-books-nav-wrapper {
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.dossier-books-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  min-width: 760px;
}

.book-tab {
  position: relative;
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.book-tab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-600);
}

.book-tab.active {
  background: #ffffff;
  border-color: var(--emerald-800);
  box-shadow: 0 8px 24px rgba(0, 83, 103, 0.12), 0 0 0 2px rgba(0, 83, 103, 0.2);
}

.book-tab-spine {
  width: 10px;
  flex-shrink: 0;
  background: var(--border-medium);
  transition: all 0.25s ease;
}

.book-tab-spine.red   { background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%); }
.book-tab-spine.green { background: linear-gradient(180deg, #059669 0%, #065f46 100%); }
.book-tab-spine.blue  { background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%); }
.book-tab-spine.gold  { background: linear-gradient(180deg, #d4a017 0%, #92400e 100%); }

.book-tab.active .book-tab-spine {
  width: 14px;
}

.book-tab-content {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.book-tab-number {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.book-tab.active .book-tab-number {
  color: var(--emerald-800);
}

.book-tab-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.book-tab-badge {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.book-tab-badge strong {
  color: var(--emerald-800);
  font-weight: 800;
}

/* Book Panels */
.book-panel {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-panel.active {
  display: block;
}

.book-panel-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-surface-subtle);
  border-radius: 12px 12px 0 0;
}

.book-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.book-score-pill {
  padding: 0.6rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-align: right;
}

.book-score-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.book-score-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-800);
  line-height: 1.1;
}

.book-score-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Two Details Action Buttons (Requirement 8) */
.btn-little-details {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-little-details:hover {
  background: #065f46;
  color: #ffffff;
  border-color: #065f46;
  transform: translateY(-1px);
}

.btn-full-details {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: #005367;
  color: #ffffff !important;
  border: 1px solid #005367;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-full-details:hover {
  background: #003d4c;
  border-color: #003d4c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 83, 103, 0.25);
}

/* Details Page Responsive Grid */
@media (max-width: 900px) {
  .details-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===================================================================
   Dossier Page: Deluxe Institution Overview Header Card
   =================================================================== */
.institution-overview-card {
  position: relative !important;
  margin-bottom: 2rem !important;
  padding: 1.85rem 2.2rem !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 36px -6px rgba(0, 83, 103, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden !important;
}

.institution-overview-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.institution-bio-wrap {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.institution-avatar-box {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #005367 0%, #003643 100%);
  color: #d4a017;
  border: 2px solid #d4a017;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 83, 103, 0.22);
  flex-shrink: 0;
}

.institution-badge-meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.inst-type-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 650;
  color: #475569;
}

.audit-cycle-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-weight: 750;
}

.verified-audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-weight: 750;
}

.institution-display-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0a252c;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
}

.institution-sub-meta {
  font-size: 0.86rem;
  color: #64748b;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.institution-score-cockpit {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: #f8fafc;
  padding: 1.15rem 1.75rem;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.score-cockpit-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.score-cockpit-percent {
  font-size: 2.2rem;
  font-weight: 850;
  color: #005367;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-cockpit-tier-box {
  border-left: 1px solid #e2e8f0;
  padding-left: 1.5rem;
}

@media (max-width: 768px) {
  .institution-overview-card {
    padding: 1.25rem 1.15rem !important;
  }
  .institution-bio-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .institution-score-cockpit {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .dossier-books-tabs {
    grid-template-columns: repeat(2, 1fr);
    min-width: 100%;
  }
  .book-panel-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem;
  }
  .book-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .dossier-books-tabs {
    grid-template-columns: 1fr;
  }
}
