/* ============================================================
   CARN Design System — modern.css
   Core design tokens, layout, and component styles
   ============================================================ */

/* ─── Design Tokens ─── */
:root {
  /* Gray Scale */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Primary Palette (indigo-blue) */
  --primary-50:  #eef2ff;
  --primary-300: #a5b4fc;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;

  /* Accent Colors */
  --accent-blue:   #2563eb;
  --accent-green:  #16a34a;
  --accent-red:    #dc2626;
  --accent-orange: #ea580c;

  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue:   linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  /* Border Radii */
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(.4,0,.2,1);
  --transition-base: 250ms cubic-bezier(.4,0,.2,1);
}

/* ─── Global Resets ─── */
body {
  background-color: #f7f7fb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── App Layout (Sidebar + Main) ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--transition-base);
}

.content-wrapper {
  flex: 1;
  padding: 1.5rem;
}

/* ─── Sidebar ─── */
.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform var(--transition-base);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary-600);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.sidebar-logo i {
  font-size: 1.5rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item {
  padding: 0 0.75rem;
  margin-bottom: 2px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-nav-link:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.sidebar-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.sidebar-nav-link i {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.sidebar-version {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 0;
}

/* ─── Sidebar Overlay (Mobile) ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1035;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ─── Top Navigation Bar ─── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-icon-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── User Profile Dropdown ─── */
.user-profile-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-button:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.user-profile-button::after {
  display: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gradient-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-caret {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: transform var(--transition-fast);
}

/* ─── Notification Dropdown ─── */
.notification-wrapper { position: relative; }

.notification-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  z-index: 1050;
  margin-top: 0.5rem;
  overflow: hidden;
}

.notification-dropdown.show { display: block; }

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.notification-clear-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.notification-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.notification-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ─── Buttons ─── */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.5;
}

.btn-gradient {
  background: var(--gradient-blue);
  color: white;
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary-modern {
  background: var(--primary-600);
  color: white;
}

.btn-primary-modern:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline-modern {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline-modern:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.btn-danger-modern {
  background: var(--accent-red);
  color: white;
}

.btn-danger-modern:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-sm-modern {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg-modern {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ─── Cards ─── */
.card-surface {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: box-shadow var(--transition-fast);
}

.card-surface:hover {
  box-shadow: var(--shadow-md);
}

.card-surface-lg { padding: 2rem; }

.card-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title-modern {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-modern i {
  color: var(--primary-500);
  font-size: 1.125rem;
}

/* ─── Page Headers ─── */
.page-hero {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 1.5rem;
  margin: -1.5rem -1.5rem 1.5rem;
}

.page-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}

.page-hero-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin: 0;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ─── Stat Cards ─── */
.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.stat-icon-blue   { background: rgba(37,99,235,.1); color: var(--accent-blue); }
.stat-icon-green  { background: rgba(22,163,74,.1);  color: var(--accent-green); }
.stat-icon-orange { background: rgba(234,88,12,.1);  color: var(--accent-orange); }
.stat-icon-red    { background: rgba(220,38,38,.1);  color: var(--accent-red); }
.stat-icon-purple { background: rgba(99,102,241,.1); color: var(--primary-500); }

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 0.125rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ─── Badges ─── */
.badge-modern {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-blue   { background: rgba(37,99,235,.1); color: var(--accent-blue); }
.badge-green  { background: rgba(22,163,74,.1);  color: var(--accent-green); }
.badge-red    { background: rgba(220,38,38,.1);  color: var(--accent-red); }
.badge-orange { background: rgba(234,88,12,.1);  color: var(--accent-orange); }
.badge-gray   { background: var(--gray-100);      color: var(--gray-600); }
.badge-purple { background: rgba(99,102,241,.1); color: var(--primary-500); }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  max-width: 360px;
  margin: 0 auto 1.25rem;
}

/* ─── Tables ─── */
.table-modern { width: 100%; border-collapse: separate; border-spacing: 0; }

.table-modern thead th {
  background: var(--gray-50);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.table-modern tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-700);
  vertical-align: middle;
}

.table-modern tbody tr:hover { background: var(--gray-50); }

/* ─── Forms ─── */
.form-modern { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group-modern label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-control-modern {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-900);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.form-control-modern::placeholder { color: var(--gray-400); }

/* ─── Progress ─── */
.progress-modern {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  overflow: hidden;
}

.progress-bar-modern {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-blue);
  transition: width 0.6s ease;
}

/* ─── Tabs ─── */
.tabs-modern {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

.tab-modern {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tab-modern:hover { color: var(--gray-900); }

.tab-modern.active {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* ─── Search ─── */
.search-bar { position: relative; }

.search-bar input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  background: white;
  transition: all var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.search-bar i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ─── Skeleton Loaders ─── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .main-content { margin-left: 0 !important; }
  .content-wrapper { padding: 1rem; }
  .page-hero { margin: -1rem -1rem 1rem; padding: 1.5rem 1rem; }
  .page-hero-title { font-size: 1.375rem; }
}

@media (min-width: 992px) {
  .main-content { margin-left: 260px; }
  .sidebar-toggle { display: none; }
  .sidebar-overlay { display: none !important; }
}

/* ─── Utilities ─── */
.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-dashed { border-style: dashed !important; }

.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gap-grid { gap: 1.5rem; }

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Color Utilities ─── */
.text-gray-50  { color: var(--gray-50, #f8fafc); }
.text-gray-100 { color: var(--gray-100, #f1f5f9); }
.text-gray-200 { color: var(--gray-200, #e2e8f0); }
.text-gray-300 { color: var(--gray-300, #cbd5e1); }
.text-gray-400 { color: var(--gray-400, #94a3b8); }
.text-gray-500 { color: var(--gray-500, #64748b); }
.text-gray-600 { color: var(--gray-600, #475569); }
.text-gray-700 { color: var(--gray-700, #334155); }
.text-gray-900 { color: var(--gray-900, #0f172a); }
.text-primary-50  { color: var(--primary-50, #eef2ff); }
.text-primary-300 { color: var(--primary-300, #a5b4fc); }
.text-primary-500 { color: var(--primary-500, #6366f1); }
.text-primary-600 { color: var(--primary-600, #4f46e5); }
.text-primary-700 { color: var(--primary-700, #4338ca); }
.text-accent-blue   { color: var(--accent-blue, #2563eb); }
.text-accent-green  { color: var(--accent-green, #16a34a); }
.text-accent-red    { color: var(--accent-red, #dc2626); }
.text-accent-orange { color: var(--accent-orange, #ea580c); }
.text-white { color: #fff; }

.bg-gray-50  { background-color: var(--gray-50, #f8fafc); }
.bg-gray-100 { background-color: var(--gray-100, #f1f5f9); }
.bg-gray-200 { background-color: var(--gray-200, #e2e8f0); }
.bg-gray-900 { background-color: var(--gray-900, #0f172a); }
.bg-primary-50  { background-color: var(--primary-50, #eef2ff); }
.bg-primary-500 { background-color: var(--primary-500, #6366f1); }
.bg-primary-600 { background-color: var(--primary-600, #4f46e5); }
.bg-accent-blue   { background-color: var(--accent-blue, #2563eb); }
.bg-accent-green  { background-color: var(--accent-green, #16a34a); }
.bg-accent-red    { background-color: var(--accent-red, #dc2626); }
.bg-accent-orange { background-color: var(--accent-orange, #ea580c); }
.bg-white { background-color: #fff; }

/* ─── Font Size Utilities ─── */
.fs-2xs  { font-size: 0.6875rem; }  /* 11px */
.fs-xs   { font-size: 0.75rem; }    /* 12px */
.fs-sm   { font-size: 0.8125rem; }  /* 13px */
.fs-base { font-size: 0.875rem; }   /* 14px */
.fs-md   { font-size: 0.9375rem; }  /* 15px */
.fs-lg   { font-size: 1.125rem; }   /* 18px */
.fs-xl   { font-size: 1.25rem; }    /* 20px */
.fs-2xl  { font-size: 1.5rem; }     /* 24px */
.fs-3xl  { font-size: 1.75rem; }    /* 28px */
.fs-4xl  { font-size: 2rem; }       /* 32px */
.fs-icon { font-size: 16px; }
.fs-icon-lg { font-size: 20px; }
.fs-icon-xl { font-size: 24px; }
.fs-icon-2xl { font-size: 28px; }
.fs-icon-3xl { font-size: 32px; }
.fs-icon-4xl { font-size: 3rem; }   /* 48px */

/* ─── Border & Radius Utilities ─── */
.radius-sm { border-radius: var(--radius-sm, 0.375rem); }
.radius-md { border-radius: var(--radius-md, 0.5rem); }
.radius-lg { border-radius: var(--radius-lg, 0.75rem); }
.radius-xl { border-radius: var(--radius-xl, 1rem); }
.radius-full { border-radius: 50%; }
.border-gray-200 { border-color: var(--gray-200, #e2e8f0); }
.border-gray-300 { border-color: var(--gray-300, #cbd5e1); }
.border-primary-200 { border-color: var(--primary-300, #a5b4fc); }
.border-gray-100 { border-color: var(--gray-100, #f3f4f6); }

/* ─── Accent Color Extras ─── */
.text-accent-warning { color: var(--accent-warning, #f59e0b); }
.text-accent-success { color: var(--accent-success, #10b981); }
.text-accent-danger  { color: var(--accent-danger, #ef4444); }
.text-accent-pink { color: #ec4899; }
.text-primary-hero { color: var(--primary-color, #7f13ec); }

/* ─── Box Shadow Helpers ─── */
.shadow-sm-util { box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / .05)); }

/* ─── Display Utilities ─── */
.d-none-util { display: none; }

/* ─── Width Utilities ─── */
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }

.max-w-180 { max-width: 180px; }
.max-w-320 { max-width: 320px; }

/* ─── Shadow Utilities ─── */
.shadow-card { box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / .1)); }
.shadow-card-lg { box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / .1)); }

/* ─── Icon Container Utilities ─── */
.icon-box-40 {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md, 0.5rem);
  flex-shrink: 0;
}
.icon-box-48 {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md, 0.5rem);
  flex-shrink: 0;
}
.icon-box-56 {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg, 0.75rem);
  flex-shrink: 0;
}
.icon-box-64 {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg, 0.75rem);
  flex-shrink: 0;
}
.icon-box-72 {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xl, 1rem);
  flex-shrink: 0;
}
.icon-box-80 {
  width: 80px; height: 80px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xl, 1rem);
  flex-shrink: 0;
}
.icon-box-36 {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box-44 {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-gradient-48 {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--accent-500, #8b5cf6));
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md, 0.5rem);
  color: #fff;
}
.icon-gradient-72 {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg, 0.75rem);
  color: #fff;
}
.gradient-primary { background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--accent-500, #8b5cf6)); }
.gradient-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.gradient-green  { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.gradient-red    { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.gradient-purple { background: var(--gradient-purple, linear-gradient(135deg, #667eea 0%, #764ba2 100%)); }
.gradient-purple-deep { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

/* ─── Decorative & Section Styles ─── */
.section-heading-alt {
  color: #1e3a5f; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px; border-bottom: 1px solid #1e3a5f; padding-bottom: 6px;
}
.section-heading-alt2 {
  color: #1a202c; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.section-subheadline {
  font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb;
}
.section-badge {
  background: rgba(255,255,255,0.15); margin-bottom: 1rem; display: inline-block;
}
.border-accent-left { border-left: 4px solid #c49b63; padding-left: 20px; margin-bottom: 1.5rem; }
.border-primary-left { border-left: 4px solid var(--primary-500, #6366f1); }
.border-primary-left-sm { border-left: 3px solid var(--primary-500, #6366f1); }
.border-warning-left { border-left: 3px solid var(--accent-warning, #f59e0b); }
.border-bottom-subtle { border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.code-block-dark { background: #1e293b; padding: 20px; border-left: 3px solid #10b981; border-radius: 4px; }

/* ─── Sizing Helpers ─── */
.size-2rem { width: 2rem; height: 2rem; }
.size-4rem { width: 4rem; height: 4rem; }
.h-cover { height: 200px; object-fit: cover; }
.h-bar-sm { height: 6px; }
.h-bar-xs { height: 4px; }
.h-bar-md { height: 8px; }
.h-bar-lg { height: 10px; }
.h-sep { height: 1px; }
.max-w-860 { max-width: 860px; }
.max-w-560 { max-width: 560px; }

/* ─── Opacity Helpers ─── */
.opacity-75 { opacity: 0.75; }
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }
.opacity-20 { opacity: 0.2; }

/* ─── Transitions ─── */
.transition-base { transition: var(--transition-base, all .2s ease); }
.transition-transform { transition: transform 0.2s; }

/* ─── Font Variant ─── */
.material-filled { font-variation-settings: 'FILL' 1; }

/* ─── Toggle Switch ─── */
.toggle-track { width: 2.5em; height: 1.25em; }

/* ─── Spacing Helpers ─── */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ─── Search Icon Position ─── */
.search-icon-left { left: 12px; top: 50%; transform: translateY(-50%); }
.search-pl { padding-left: 36px !important; }

/* ─── Resume Thumbnail Skeleton ─── */
.skel-line { height: 3px; border-radius: 99px; }
.skel-bar  { border-radius: 99px; }

/* ─── Hover Reveal Overlay ─── */
.hover-reveal-overlay { background: transparent; opacity: 0; transition: all 0.2s; }
.hover-reveal-overlay:hover { background: rgba(0,0,0,.5); opacity: 1; }

/* ─── Pill Button ─── */
.btn-pill { border-radius: var(--radius-full, 9999px); }

/* ─── Miscellaneous Utilities ─── */
.line-height-1 { line-height: 1; }
.line-height-relaxed { line-height: 1.6; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.cursor-pointer { cursor: pointer; }
.transition-fast { transition: all var(--transition-fast, 0.15s ease); }
.transition-shadow { transition: box-shadow var(--transition-fast, 0.15s ease); }

/* ─── Additional Background Colors ─── */
.bg-green-50  { background: #dcfce7; }
.bg-green-100 { background: #f0fdf4; }
.bg-blue-50   { background: #dbeafe; }
.bg-blue-100  { background: #eff6ff; }
.bg-orange-50 { background: #ffedd5; }
.bg-orange-100{ background: #fff7ed; }
.bg-red-50    { background: #fef2f2; }
.bg-red-100   { background: #fee2e2; }
.bg-pink-50   { background: #fdf2f8; }
.bg-pink-100  { background: #fce7f3; }
.bg-purple-50 { background: #faf5ff; }
.bg-purple-100{ background: #f3e8ff; }
.bg-purple-10 { background: rgba(127,19,236,0.1); }
.bg-white-20  { background: rgba(255,255,255,0.2); }
.bg-success-10{ background: rgba(var(--bs-success-rgb),0.1); }

/* ─── Additional Max-Width ─── */
.max-w-340  { max-width: 340px; }
.max-w-400  { max-width: 400px; }
.max-w-720  { max-width: 720px; }
.max-w-750  { max-width: 750px; }
.max-w-850  { max-width: 850px; }
.max-w-1100 { max-width: 1100px; }

/* ─── Additional Min-Width ─── */
.min-w-120 { min-width: 120px; }

/* ─── Additional Icon Boxes ─── */
.icon-box-50 { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.icon-box-60 { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }

/* ─── Height Utilities ─── */
.h-180 { height: 180px; }
.h-200 { height: 200px; }
.h-31  { height: 31px; }
.h-5   { height: 5px; }

/* ─── Line Height ─── */
.lh-relaxed { line-height: 1.7; }
.lh-loose   { line-height: 1.8; }
.lh-2       { line-height: 2; }

/* ─── Object Fit ─── */
.object-cover { object-fit: cover; }

/* ─── Text Decoration ─── */
.text-line-through { text-decoration: line-through; }

/* ─── Border Utilities ─── */
.border-1-gray-200  { border: 1px solid var(--gray-200, #e5e7eb); }
.border-2-dashed-gray-100 { border: 2px dashed var(--gray-100); }
.border-2-dashed-primary { border: 2px dashed var(--primary-200, #c7d2fe); }
.border-top-gray-200 { border-top: 1px solid var(--gray-200, #e5e7eb); }
.border-top-gray-100 { border-top: 1px solid var(--gray-100); }
.border-bottom-primary { border-bottom: 3px solid #667eea; }

/* ─── Position Helpers ─── */
.z-1 { z-index: 1; }
.top-80 { top: 80px; }
.left-0 { left: 0; }

/* ─── Display / Flex Helpers ─── */
.flex-baseline { align-items: baseline; }
.gap-8 { gap: 8px; }

/* ─── Margin Helpers ─── */
.mb-075 { margin-bottom: 0.75rem; }
.mb-03  { margin-bottom: 0.3rem; }
.mt-20  { margin-top: 20px; }
.mb-16  { margin-bottom: 16px; }
.mx-10-0-5 { margin: 10px 0 5px 0; }

/* ─── Padding Helpers ─── */
.py-section { padding: 4rem 1rem; }
.pl-12 { padding-left: 1.2rem; }
.pl-15 { padding-left: 1.5rem; }

/* ─── Font Size Extras ─── */
.fs-12  { font-size: 1.2rem; }
.fs-13  { font-size: 1.3rem; }
.fs-085 { font-size: 0.85rem; }
.fs-09  { font-size: 0.9rem; }
.fs-05  { font-size: 0.5rem; }
.fs-48  { font-size: 48px; }
.fs-1063 { font-size: 1.0625rem; }

/* ─── Shadow Utilities ─── */
.shadow-sm-var { box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05)); }

/* ─── Tool Card Color Variants ─── */
.tool-icon-purple  { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(124,58,237,0.12)); }
.tool-icon-green   { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.12)); }
.tool-icon-blue    { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(29,78,216,0.12)); }
.tool-icon-indigo  { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(79,70,229,0.12)); }
.tool-icon-pink    { background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(219,39,119,0.12)); }
.tool-icon-amber   { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.12)); }
.tool-icon-cyan    { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(8,145,178,0.12)); }
.tool-icon-rose    { background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(225,29,72,0.12)); }
.tool-icon-teal    { background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(13,148,136,0.12)); }
.tool-blob-purple  { background: rgba(139,92,246,0.3); }
.tool-blob-green   { background: rgba(16,185,129,0.3); }
.tool-blob-blue    { background: rgba(59,130,246,0.3); }
.tool-blob-indigo  { background: rgba(99,102,241,0.3); }
.tool-blob-pink    { background: rgba(236,72,153,0.3); }
.tool-blob-amber   { background: rgba(245,158,11,0.3); }
.tool-blob-cyan    { background: rgba(6,182,212,0.3); }
.tool-blob-rose    { background: rgba(244,63,94,0.3); }
.tool-blob-teal    { background: rgba(20,184,166,0.3); }
.tool-text-purple  { color: rgba(124,58,237,0.5); }
.tool-text-green   { color: rgba(5,150,105,0.5); }
.tool-text-blue    { color: rgba(29,78,216,0.5); }
.tool-text-indigo  { color: rgba(79,70,229,0.5); }
.tool-text-pink    { color: rgba(219,39,119,0.5); }
.tool-text-amber   { color: rgba(217,119,6,0.5); }
.tool-text-cyan    { color: rgba(8,145,178,0.5); }
.tool-text-rose    { color: rgba(225,29,72,0.5); }
.tool-text-teal    { color: rgba(13,148,136,0.5); }

/* ─── Gradient Section Backgrounds ─── */
.gradient-blue-light   { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.gradient-red-light    { background: linear-gradient(135deg, #fee2e2, #fef2f2); }
.gradient-orange-light { background: linear-gradient(135deg, #ffedd5, #fff7ed); }
.gradient-purple-light { background: linear-gradient(135deg, #f3e8ff, #faf5ff); }
.gradient-pink-light   { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }
.gradient-green-light  { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.gradient-teal-solid   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.gradient-green-solid  { background: linear-gradient(135deg, #16a34a, #15803d); }
.gradient-orange-solid { background: linear-gradient(135deg, #ea580c, #c2410c); }
.gradient-purple-brand { background: linear-gradient(135deg, rgba(127,19,236,0.04), rgba(127,19,236,0.08)); border: 1px solid rgba(127,19,236,0.15); }

/* ─── Accent Border Colors ─── */
.border-accent-red { border-color: var(--accent-red, #ef4444); }
.text-accent-red-var { color: var(--accent-red, #ef4444); }

/* ─── Min Height ─── */
.min-h-280 { min-height: 280px; }

/* ─── Width Percentages (for skeleton/progress) ─── */
.w-0   { width: 0%; }
.w-40  { width: 40%; }
.w-60  { width: 60%; }
.w-70  { width: 70%; }
.w-85  { width: 85%; }

/* ─── Tool Page Hero Icons (0.15 opacity) ─── */
.tool-hero-purple  { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(124,58,237,0.15)); }
.tool-hero-green   { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.15)); }
.tool-hero-blue    { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(29,78,216,0.15)); }
.tool-hero-indigo  { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(79,70,229,0.15)); }
.tool-hero-pink    { background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(219,39,119,0.15)); }
.tool-hero-red     { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.15)); }
.tool-hero-cyan    { background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(8,145,178,0.15)); }
.tool-hero-cyan-blue { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(37,99,235,0.12)); }
.tool-hero-amber   { background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(234,88,12,0.12)); }

/* ─── Additional Tool Card Colors ─── */
.tool-icon-red     { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.12)); }
.tool-blob-red     { background: rgba(239,68,68,0.3); }
.tool-text-red     { color: rgba(220,38,38,0.5); }
.tool-blob-amber-orange { background: rgba(249,115,22,0.3); }
.tool-text-amber-orange { color: rgba(234,88,12,0.5); }
.tool-text-blue-alt { color: rgba(37,99,235,0.5); }

/* ─── Resource Page Gradients ─── */
.resource-bg-info    { background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.1), rgba(var(--bs-info-rgb),0.2)); }
.resource-bg-purple  { background: linear-gradient(135deg, rgba(127,19,236,0.08), rgba(127,19,236,0.15)); }
.resource-bg-success { background: linear-gradient(135deg, rgba(var(--bs-success-rgb),0.08), rgba(var(--bs-success-rgb),0.15)); }
.resource-bg-warning { background: linear-gradient(135deg, rgba(var(--bs-warning-rgb),0.08), rgba(var(--bs-warning-rgb),0.15)); }
.resource-bg-rose    { background: linear-gradient(135deg, rgba(214,75,96,0.08), rgba(214,75,96,0.15)); }
.resource-bg-danger  { background: linear-gradient(135deg, rgba(var(--bs-danger-rgb),0.08), rgba(var(--bs-danger-rgb),0.15)); }
.resource-badge-rose { background: rgba(214,75,96,0.1); }
.resource-collection-purple { border: 1px solid rgba(127,19,236,0.15); background: linear-gradient(135deg, rgba(127,19,236,0.03), rgba(127,19,236,0.07)); }
.resource-collection-success { border: 1px solid rgba(var(--bs-success-rgb),0.2); background: linear-gradient(135deg, rgba(var(--bs-success-rgb),0.03), rgba(var(--bs-success-rgb),0.07)); }
.resource-cta-purple { background: linear-gradient(135deg, rgba(127,19,236,0.05), rgba(127,19,236,0.1)); border: 1px solid rgba(127,19,236,0.15); }
.resource-text-purple-muted { color: rgba(127,19,236,0.2); }
.resource-text-success-muted { color: rgba(var(--bs-success-rgb),0.25); }

/* ─── ATS Results Colors ─── */
.text-navy  { color: #1e3a5f; }
.text-maroon { color: #7f1d1d; }
.max-h-24rem { max-height: 24rem; overflow-y: auto; }
.white-space-pre { white-space: pre-wrap; }

/* ─── Misc Additional ─── */
.bg-primary-200 { background: var(--primary-200, #c7d2fe); }
.mt-6  { margin-top: 6px; }
.border-bottom-1-gray-200 { border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.fs-5rem { font-size: 5rem; }
.opacity-15 { opacity: 0.15; }
.fs-6rem { font-size: 6rem; }
.color-gray-100 { color: var(--gray-100); }
.color-purple-muted { color: rgba(127,19,236,0.1); }

/* ─── Additional Max Width ─── */
.max-w-640 { max-width: 640px; }
.max-w-960 { max-width: 960px; }

/* ─── Resource Page Hero Icons ─── */
.resource-hero-info { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.1), rgba(var(--bs-info-rgb),0.2)); }
.resource-hero-purple { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(127,19,236,0.1), rgba(127,19,236,0.2)); }
.resource-hero-warning { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(var(--bs-warning-rgb),0.1), rgba(var(--bs-warning-rgb),0.2)); }

/* ─── Resource Sub CTA Variants ─── */
.resource-cta-purple-info { background: linear-gradient(135deg, rgba(127,19,236,0.04), rgba(var(--bs-info-rgb),0.04)); border: 1px solid rgba(127,19,236,0.12); }
.resource-cta-warning { background: linear-gradient(135deg, rgba(var(--bs-warning-rgb),0.04), rgba(var(--bs-warning-rgb),0.08)); border: 1px solid rgba(var(--bs-warning-rgb),0.15); }

/* ─── Badge Styles ─── */
.badge-rose { background: #d64b60; }
.badge-mini { font-size: 0.7rem; padding: 0.35rem 0.65rem; border-radius: 999px; }
.badge-mini-icon { font-size: 0.65rem; }

/* ─── Font Size Extras ─── */
.fs-225 { font-size: 2.25rem; }

/* ─── Wizard Helpers ─── */
.icon-box-info { width: 48px; height: 48px; background: rgba(var(--bs-info-rgb),0.1); }
.icon-box-40-border { width: 40px; height: 40px; border: 1px solid var(--gray-100); }
.alert-success-subtle { background: rgba(var(--bs-success-rgb),0.05); border: 1px solid rgba(var(--bs-success-rgb),0.2); }
.icon-box-success { width: 40px; height: 40px; background: rgba(var(--bs-success-rgb),0.1); }
.alert-danger-subtle { background: rgba(var(--bs-danger-rgb),0.05); border: 1px solid rgba(var(--bs-danger-rgb),0.2); }
.icon-box-danger { width: 40px; height: 40px; background: rgba(var(--bs-danger-rgb),0.1); }
.ls-wide { letter-spacing: 0.05em; }
.z-toast { z-index: 9999; }
.spinner-3rem { width: 3rem; height: 3rem; }

/* ─── Settings Page ─── */
.bg-danger-10 { background: rgba(var(--bs-danger-rgb),0.1); }
.border-danger-25 { border: 1px solid rgba(var(--bs-danger-rgb),0.25); }
.flex-shrink-0 { flex-shrink: 0; }

/* ─── Viewport & Layout ─── */
.vh-80 { height: 80vh; }
.h-editor-panel { height: calc(100vh - 100px); }
.top-2rem { top: 2rem; }
.w-80px { width: 80px; }

/* ─── Shadow Extended ─── */
.shadow-lg-util { box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / .1)); }

/* ─── Transition Extended ─── */
.transition-bg-fast { transition: background var(--transition-fast, 0.15s ease); }

/* ─── Background Extended ─── */
.bg-white-25 { background: rgba(255,255,255,0.25); }

/* ─── Card Variants ─── */
.card-indigo-subtle { background: rgba(99,102,241,.05); border-color: rgba(99,102,241,.15); }

/* ─── Progress Bar ─── */
.progress-bar-fill { background: var(--gradient-blue, linear-gradient(135deg, #2563eb, #1d4ed8)); border-radius: var(--radius-full, 9999px); height: 100%; }

/* ─── Additional Single-Use ─── */
.shadow-xs-util { box-shadow: var(--shadow-xs, none); }
.radius-right { border-radius: 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0; }
.pb-075 { padding-bottom: 0.75rem; }

/* ─── Coming Soon Sidebar Badge ─── */
.sidebar-coming-soon {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
    position: relative;
}
.sidebar-coming-soon:hover { opacity: 0.65; }
.badge-coming-soon {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-600, #4f46e5);
    background: rgba(99,102,241,0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: auto;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Card Locked State (MVP Gating) ─────────────────────── */
.tool-card-locked,
.resource-card-locked,
.collection-card-locked {
    opacity: 0.55;
    cursor: default;
}
.tool-card-locked:hover,
.resource-card-locked:hover,
.collection-card-locked:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}
.card-locked-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.675rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    line-height: 1.3;
}
.card-locked-badge i {
    font-size: 0.6rem;
}
.btn-locked {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg, 0.5rem);
    background: var(--gray-100, #f3f4f6) !important;
    border: 1px solid var(--gray-200, #e5e7eb) !important;
    color: var(--gray-400, #9ca3af) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background-image: none !important;
}
