/* ==========================================================================
   IT Bid Auctions - Enterprise B2B Design System & Unified Styles
   Matches Standalone Static Template (Inter / Enterprise Ocean B2B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   UNIVERSAL GLOBAL TYPOGRAPHY ENFORCER
   Ensures 'Inter' is applied unconditionally across typography elements
   while protecting icon fonts (Line Awesome, Font Awesome, etc.)
   ========================================================================== */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
p,
a,
span:not([class*="la-"]):not([class*="fa-"]):not(.la):not(.las):not(.lar):not(.lab):not(.fa):not(.fas):not(.far):not(.fab),
div:not([class*="la-"]):not([class*="fa-"]),
li,
ul,
ol,
input,
button,
select,
textarea,
optgroup,
.btn,
.form-control,
.form-select,
table,
th,
td,
label,
.badge,
.dropdown-menu,
.dropdown-item,
.nav-link,
.modal {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* ==========================================================================
   ICON FONT PROTECTION (Line Awesome, Font Awesome, etc.)
   Ensures icon fonts preserve their font-family and render correctly
   ========================================================================== */
.la,
.las,
.lar,
.lal,
.lad,
.lab,
.la::before,
.las::before,
.lar::before,
.lal::before,
.lad::before,
.lab::before,
[class^="la-"]::before,
[class*=" la-"]::before {
  font-family: "Line Awesome Free" !important;
  font-style: normal !important;
}

.la,
.las,
.la::before,
.las::before {
  font-weight: 900 !important;
}

.lar,
.lar::before {
  font-weight: 400 !important;
}

.lab,
.lab::before {
  font-family: "Line Awesome Brands" !important;
  font-weight: 400 !important;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.fa::before,
.fas::before,
.far::before,
.fab::before,
.fa-solid::before,
.fa-regular::before,
.fa-brands::before,
[class^="fa-"]::before,
[class*=" fa-"]::before {
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-style: normal !important;
}

.fa,
.fas,
.fa-solid,
.fa::before,
.fas::before,
.fa-solid::before {
  font-weight: 900 !important;
}

.far,
.fa-regular,
.far::before,
.fa-regular::before {
  font-weight: 400 !important;
}

.fab,
.fa-brands,
.fab::before,
.fa-brands::before {
  font-family: "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */

:root,
.mode-light {
  /* Brand Tokens (Matching Template Ocean Theme) */
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #0891b2;
  --bs-primary-active: #0e7490;
  --bs-primary-subtle: rgba(6, 182, 212, 0.12);
  --bs-primary-border-subtle: #a5f3fc;

  --color-brand-50: #ecfeff;
  --color-brand-100: #cffafe;
  --color-brand-200: #a5f3fc;
  --color-brand-300: #67e8f9;
  --color-brand-400: #22d3ee;
  --color-brand-500: #06b6d4;
  --color-brand-600: #0891b2;
  --color-brand-700: #0e7490;
  --color-brand-800: #155e75;
  --color-brand-900: #164e63;

  /* Surfaces & Backgrounds */
  --color-surface-50: #ffffff;
  --color-surface-100: #fafbfc;
  --color-surface-200: #f4f6f9;
  --color-surface-300: #eaeff5;
  --color-surface-450: #d9e1ec;
  --color-surface-500: #ffffff;
  /* Card / Container BG */
  --color-surface-600: #f8fafc;
  /* Subtle Card Header / Secondary */
  --color-surface-700: #f4f6f9;
  /* Section Contrast BG */
  --color-surface-800: #eaeff5;
  --color-surface-900: #f4f6f9;
  /* Main Body Background */

  /* Text Colors */
  --color-text-primary: #172935;
  /* Dark Headings & High Emphasis */
  --color-text-secondary: #303e67;
  /* Standard Body Text */
  --color-text-muted: #64748b;
  /* Subtitles, Meta & Helpers */
  --color-text-inverse: #ffffff;

  /* Components & Layout Tokens */
  --card-bg: #ffffff;
  --card-bg-subtle: #f8fafc;
  --input-bg: #ffffff;
  --input-border: #d9e1ec;
  --border-color: #eaeff5;
  --border-subtle: #f0f3f8;
  --border-radius-sm: 6px;
  --border-radius: 8px;
  --border-radius-lg: 14px;
  --border-radius-xl: 18px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: #eaeff5;
  --glass-shadow: rgba(15, 23, 42, 0.04);
}

/* Dark Mode Tokens (Optional toggle via Appearance Studio) */
.mode-dark {
  --bs-primary: #6f6af8;
  --bs-primary-rgb: 111, 106, 248;
  --bs-primary-hover: #817df9;
  --bs-primary-active: #5b56f5;
  --bs-primary-subtle: rgba(111, 106, 248, 0.18);
  --bs-primary-border-subtle: rgba(111, 106, 248, 0.35);

  --color-surface-50: #0f172a;
  --color-surface-100: #131d31;
  --color-surface-200: #1a263f;
  --color-surface-300: #223252;
  --color-surface-450: #2d3f66;
  --color-surface-500: #131c2e;
  /* Card BG */
  --color-surface-600: #0f1728;
  /* Sub-card BG */
  --color-surface-700: #0c1220;
  --color-surface-800: #080c16;
  --color-surface-900: #090e1a;
  /* Body BG */

  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #090e1a;

  --card-bg: #131c2e;
  --card-bg-subtle: #0f1728;
  --input-bg: #0f1728;
  --input-border: #223252;
  --border-color: #1e2c47;
  --border-subtle: #18233a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(19, 28, 46, 0.95);
  --glass-border: #1e2c47;
  --glass-shadow: rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Color Palettes (Appearance Studio Engine)
   -------------------------------------------------------------------------- */

/* 1. Ocean Blue (#06b6d4 - Template Default) */
:root,
.palette-ocean {
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #0891b2;
  --bs-primary-active: #0e7490;
  --bs-primary-subtle: rgba(6, 182, 212, 0.12);
  --bs-primary-border-subtle: #a5f3fc;
  --color-brand-50: #ecfeff;
  --color-brand-100: #cffafe;
  --color-brand-200: #a5f3fc;
  --color-brand-300: #67e8f9;
  --color-brand-400: #22d3ee;
  --color-brand-500: #06b6d4;
  --color-brand-600: #0891b2;
  --color-brand-700: #0e7490;
  --color-brand-800: #155e75;
  --color-brand-900: #164e63;
}

.mode-dark.palette-ocean,
.mode-dark .palette-ocean {
  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-primary-hover: #22d3ee;
  --bs-primary-active: #0891b2;
  --bs-primary-subtle: rgba(6, 182, 212, 0.2);
  --bs-primary-border-subtle: rgba(6, 182, 212, 0.4);
}

/* 2. Eco Green (#10b981 - Template) */
.palette-green {
  --bs-primary: #10b981;
  --bs-primary-rgb: 16, 185, 129;
  --bs-primary-hover: #059669;
  --bs-primary-active: #047857;
  --bs-primary-subtle: rgba(16, 185, 129, 0.12);
  --bs-primary-border-subtle: #a7f3d0;
  --color-brand-50: #ecfdf5;
  --color-brand-100: #d1fae5;
  --color-brand-200: #a7f3d0;
  --color-brand-300: #6ee7b7;
  --color-brand-400: #34d399;
  --color-brand-500: #10b981;
  --color-brand-600: #059669;
  --color-brand-700: #047857;
  --color-brand-800: #065f46;
  --color-brand-900: #064e3b;
}

.mode-dark.palette-green,
.mode-dark .palette-green {
  --bs-primary: #10b981;
  --bs-primary-rgb: 16, 185, 129;
  --bs-primary-hover: #34d399;
  --bs-primary-active: #059669;
  --bs-primary-subtle: rgba(16, 185, 129, 0.2);
  --bs-primary-border-subtle: rgba(16, 185, 129, 0.4);
}

/* 3. Cyber Purple (#a855f7 - Template) */
.palette-purple {
  --bs-primary: #a855f7;
  --bs-primary-rgb: 168, 85, 247;
  --bs-primary-hover: #9333ea;
  --bs-primary-active: #7e22ce;
  --bs-primary-subtle: rgba(168, 85, 247, 0.1);
  --bs-primary-border-subtle: #e9d5ff;
  --color-brand-50: #faf5ff;
  --color-brand-100: #f3e8ff;
  --color-brand-200: #e9d5ff;
  --color-brand-300: #d8b4fe;
  --color-brand-400: #c084fc;
  --color-brand-500: #a855f7;
  --color-brand-600: #9333ea;
  --color-brand-700: #7e22ce;
  --color-brand-800: #6b21a8;
  --color-brand-900: #581c87;
}

.mode-dark.palette-purple,
.mode-dark .palette-purple {
  --bs-primary: #a855f7;
  --bs-primary-rgb: 168, 85, 247;
  --bs-primary-hover: #bd7eff;
  --bs-primary-active: #9333ea;
  --bs-primary-subtle: rgba(168, 85, 247, 0.18);
  --bs-primary-border-subtle: rgba(168, 85, 247, 0.35);
}

/* 4. Refurb Orange (#f97316 - Template) */
.palette-orange {
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-primary-hover: #ea580c;
  --bs-primary-active: #c2410c;
  --bs-primary-subtle: rgba(249, 115, 22, 0.1);
  --bs-primary-border-subtle: #fed7aa;
  --color-brand-50: #fff7ed;
  --color-brand-100: #ffedd5;
  --color-brand-200: #fed7aa;
  --color-brand-300: #fdbb2d;
  --color-brand-400: #fb923c;
  --color-brand-500: #f97316;
  --color-brand-600: #ea580c;
  --color-brand-700: #c2410c;
  --color-brand-800: #9a3412;
  --color-brand-900: #7c2d12;
}

.mode-dark.palette-orange,
.mode-dark .palette-orange {
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-primary-hover: #fb923c;
  --bs-primary-active: #ea580c;
  --bs-primary-subtle: rgba(249, 115, 22, 0.18);
  --bs-primary-border-subtle: rgba(249, 115, 22, 0.35);
}

/* 5. Warm Gold (#ca8a04) */
.palette-golden {
  --bs-primary: #ca8a04;
  --bs-primary-rgb: 202, 138, 4;
  --bs-primary-hover: #b07803;
  --bs-primary-active: #966602;
  --bs-primary-subtle: rgba(202, 138, 4, 0.1);
  --bs-primary-border-subtle: #fae8b4;
  --color-brand-50: #fefce8;
  --color-brand-100: #fef9c3;
  --color-brand-200: #fef08a;
  --color-brand-300: #fde047;
  --color-brand-400: #eab308;
  --color-brand-500: #ca8a04;
  --color-brand-600: #a16207;
  --color-brand-700: #854d0e;
  --color-brand-800: #713f12;
  --color-brand-900: #5a310c;
}

.mode-dark.palette-golden,
.mode-dark .palette-golden {
  --bs-primary: #ca8a04;
  --bs-primary-rgb: 202, 138, 4;
  --bs-primary-hover: #eab308;
  --bs-primary-active: #b07803;
  --bs-primary-subtle: rgba(202, 138, 4, 0.18);
  --bs-primary-border-subtle: rgba(202, 138, 4, 0.35);
}

/* 6. Vibrant Yellow (#eab308 - Template) */
.palette-yellow {
  --bs-primary: #eab308;
  --bs-primary-rgb: 234, 179, 8;
  --bs-primary-hover: #ca8a04;
  --bs-primary-active: #a16207;
  --bs-primary-subtle: rgba(234, 179, 8, 0.12);
  --bs-primary-border-subtle: #fef08a;
  --color-brand-50: #fefdf0;
  --color-brand-100: #fef9c3;
  --color-brand-200: #fef08a;
  --color-brand-300: #fde047;
  --color-brand-400: #facc15;
  --color-brand-500: #eab308;
  --color-brand-600: #ca8a04;
  --color-brand-700: #a16207;
  --color-brand-800: #854d0e;
  --color-brand-900: #713f12;
}

.mode-dark.palette-yellow,
.mode-dark .palette-yellow {
  --bs-primary: #eab308;
  --bs-primary-rgb: 234, 179, 8;
  --bs-primary-hover: #fde047;
  --bs-primary-active: #ca8a04;
  --bs-primary-subtle: rgba(234, 179, 8, 0.2);
  --bs-primary-border-subtle: rgba(234, 179, 8, 0.4);
}

/* 7. Crimson Red (#dc2626 - Template) */
.palette-red {
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-primary-hover: #b91c1c;
  --bs-primary-active: #991b1b;
  --bs-primary-subtle: rgba(220, 38, 38, 0.1);
  --bs-primary-border-subtle: #fca5a5;
  --color-brand-50: #fef2f2;
  --color-brand-100: #fee2e2;
  --color-brand-200: #fca5a5;
  --color-brand-300: #f87171;
  --color-brand-400: #ef4444;
  --color-brand-500: #dc2626;
  --color-brand-600: #b91c1c;
  --color-brand-700: #991b1b;
  --color-brand-800: #7f1d1d;
  --color-brand-900: #450a0a;
}

.mode-dark.palette-red,
.mode-dark .palette-red {
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-primary-hover: #ef4444;
  --bs-primary-active: #b91c1c;
  --bs-primary-subtle: rgba(220, 38, 38, 0.18);
  --bs-primary-border-subtle: rgba(220, 38, 38, 0.35);
}

/* Theme Logo Switching */
.mode-light .logo-img-dark {
  display: inline-block !important;
}

.mode-light .logo-img-light {
  display: none !important;
}

.mode-dark .logo-img-dark {
  display: none !important;
}

.mode-dark .logo-img-light {
  display: inline-block !important;
}

/* --------------------------------------------------------------------------
   Light / Dark Mode Unified Color Resolution Engine
   Ensures WCAG Compliant Text Visibility Across Both Themes
   -------------------------------------------------------------------------- */

/* --- Light Mode Utility Resolutions --- */
.mode-light .text-dark {
  color: var(--color-text-primary) !important;
}

.mode-light .text-light {
  color: var(--color-text-primary) !important;
}

.mode-light .text-secondary {
  color: var(--color-text-secondary) !important;
}

.mode-light .text-muted {
  color: var(--color-text-muted) !important;
}

.mode-light .text-body {
  color: var(--color-text-secondary) !important;
}

.mode-light a.text-dark {
  color: var(--color-text-primary) !important;
}

.mode-light a.text-dark:hover {
  color: var(--bs-primary) !important;
}

.mode-light a.text-secondary {
  color: var(--color-text-secondary) !important;
}

.mode-light a.text-secondary:hover {
  color: var(--bs-primary) !important;
}

.mode-light .bg-light-subtle {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary);
}

.mode-light .border-light-subtle {
  border-color: var(--border-color) !important;
}

.mode-light .border-secondary {
  border-color: var(--border-color) !important;
}

.mode-light .bg-dark:not(.badge-custom) {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--border-color) !important;
}

.mode-light code {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* --- Dark Mode Utility Resolutions --- */
.mode-dark .text-dark {
  color: var(--color-text-primary) !important;
}

.mode-dark .text-light {
  color: var(--color-text-primary) !important;
}

.mode-dark .text-secondary {
  color: var(--color-text-secondary) !important;
}

.mode-dark .text-muted {
  color: var(--color-text-muted) !important;
}

.mode-dark .text-body {
  color: var(--color-text-secondary) !important;
}

.mode-dark a.text-dark {
  color: var(--color-text-primary) !important;
  transition: color 0.15s ease-in-out;
}

.mode-dark a.text-dark:hover {
  color: var(--bs-primary) !important;
}

.mode-dark a.text-secondary {
  color: var(--color-text-secondary) !important;
  transition: color 0.15s ease-in-out;
}

.mode-dark a.text-secondary:hover {
  color: var(--bs-primary) !important;
}

.mode-dark .bg-light-subtle {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary);
}

.mode-dark .border-light-subtle {
  border-color: var(--border-color) !important;
}

.mode-dark .border-secondary {
  border-color: var(--border-color) !important;
}

.mode-dark .bg-dark:not(.badge-custom) {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--border-color) !important;
}

.mode-dark code {
  color: var(--color-brand-400);
  background-color: var(--bs-primary-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Dark Mode Inputs, Search Form, Placeholders */
.mode-dark .form-control,
.mode-dark .form-select,
.mode-dark .form-control-custom,
.mode-dark .form-select-custom,
.mode-dark input,
.mode-dark select,
.mode-dark textarea {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--color-text-primary);
}

.mode-dark .form-control:focus,
.mode-dark .form-select:focus,
.mode-dark .form-control-custom:focus,
.mode-dark .form-select-custom:focus,
.mode-dark input:focus,
.mode-dark select:focus,
.mode-dark textarea:focus {
  background-color: var(--input-bg);
  border-color: var(--bs-primary);
  color: var(--color-text-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}

.mode-dark .form-control::placeholder,
.mode-dark .form-control-custom::placeholder,
.mode-dark input::placeholder {
  color: var(--color-text-muted) !important;
  opacity: 1;
}

.mode-dark .hero-nlp-box input.form-control {
  color: var(--color-text-primary) !important;
}

.mode-dark .hero-nlp-box input.form-control::placeholder {
  color: var(--color-text-muted) !important;
  opacity: 1;
}

/* Dark Mode Badges & Compliance Indicators */
.mode-dark .badge-compliance {
  background-color: rgba(34, 183, 131, 0.15);
  color: #34d399;
  border: 1px solid rgba(34, 183, 131, 0.35);
}

.mode-dark .badge-grade-a-plus,
.mode-dark .badge-grade-a,
.mode-dark .bg-success-subtle {
  background-color: rgba(34, 183, 131, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(34, 183, 131, 0.35);
}

.mode-dark .badge-grade-b,
.mode-dark .bg-warning-subtle {
  background-color: rgba(255, 184, 34, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(255, 184, 34, 0.35);
}

.mode-dark .badge-grade-c,
.mode-dark .badge-grade-scrap,
.mode-dark .bg-danger-subtle {
  background-color: rgba(245, 50, 92, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(245, 50, 92, 0.35);
}

/* --------------------------------------------------------------------------
   2. Global Typography & Core Elements
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-surface-900);
  color: var(--color-text-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  /* 14px - Matches Template Standard */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--bs-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--color-text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h1,
.h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2,
.h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

h3,
.h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4,
.h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

h5,
.h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

h6,
.h6 {
  font-size: 0.85rem;
  font-weight: 600;
}

.fs-11 {
  font-size: 11px !important;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-15 {
  font-size: 15px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.fs-18 {
  font-size: 18px !important;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-800);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-450);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}

/* --------------------------------------------------------------------------
   3. Header Navbar (Refined to Match Backend Topbar & Brand)
   -------------------------------------------------------------------------- */

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* padding: 0.15rem 0; */
}

.header-logo-img {
  height: 35px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Navigation Links */
.nav-link-custom {
  color: #555b7e;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.mode-dark .nav-link-custom {
  color: #94a3b8;
}

.nav-link-custom:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.nav-link-custom.active {
  color: var(--bs-primary);
  font-weight: 600;
  background-color: var(--bs-primary-subtle);
}

/* Header Search */
.nav-search-wrapper {
  position: relative;
  width: 100%;
}

.nav-search-input {
  background-color: var(--color-surface-600);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  height: 36px;
  padding: 0.35rem 0.75rem 0.35rem 2.2rem;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
  background-color: var(--input-bg);
}

.nav-search-input::placeholder {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.nav-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.nav-search-icon i {
  font-size: 15px;
}

/* Role Badge Selector */
.role-badge-select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  height: 34px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.role-badge-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}

/* Nav Icon Buttons & Avatar */
.nav-icon-btn {
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}

.nav-icon-btn:hover {
  background-color: var(--color-surface-300);
  color: var(--bs-primary);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  border: 1px solid var(--bs-primary-border-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
}

/* Dropdown Menus */
.dropdown-menu-custom {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 1050;
}

.dropdown-item-custom {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.dropdown-item-custom:hover {
  background-color: var(--color-surface-600);
  color: var(--bs-primary);
}

.dropdown-item-custom.danger {
  color: #f5325c;
}

.dropdown-item-custom.danger:hover {
  background-color: rgba(245, 50, 92, 0.08);
  color: #f5325c;
}

.notif-item {
  transition: background-color 0.15s ease;
}

.notif-item:hover {
  background-color: var(--color-surface-600);
}

/* --------------------------------------------------------------------------
   4. Buttons System (Strictly Matched to Backend Admin Buttons)
   -------------------------------------------------------------------------- */

.btn {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  border-radius: var(--border-radius);
  padding: 0.48rem 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--border-radius);
}

.btn-lg {
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--border-radius-lg);
}

/* Primary Button (Matches Backend '+ Add User') */
.btn-primary,
.btn-brand {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(var(--bs-primary-rgb), 0.35);
}

.btn-primary:hover,
.btn-brand:hover {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-brand:active {
  background-color: var(--bs-primary-active) !important;
  border-color: var(--bs-primary-active) !important;
  transform: translateY(0);
}

/* Outline Primary */
.btn-outline-primary,
.btn-outline-brand {
  background-color: transparent !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-brand:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

/* Subtle / Light Button (Secondary) */
.btn-subtle,
.btn-light {
  background-color: var(--color-surface-500) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--color-text-secondary) !important;
  box-shadow: var(--shadow-xs);
}

.btn-subtle:hover,
.btn-light:hover {
  background-color: var(--color-surface-600) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-surface-450) !important;
}

/* --------------------------------------------------------------------------
   5. Form Controls (Input, Select, Textarea)
   -------------------------------------------------------------------------- */

.form-control,
.form-select,
.form-control-custom,
.form-select-custom {
  /* background-color: var(--input-bg); */
  background-color: var(--color-surface-900);
  border: 1px solid var(--input-border);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  transition: all 0.15s ease;
  width: 100%;
}

.form-control:focus,
.form-select:focus,
.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-primary-subtle);
  background-color: var(--input-bg);
}

.form-control::placeholder,
.form-control-custom::placeholder {
  color: var(--color-text-muted);
}

.form-label-custom {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
  display: block;
}

/* --------------------------------------------------------------------------
   6. Cards, Layout & B2B Sections
   -------------------------------------------------------------------------- */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  box-shadow: 0 12px 40px 0 var(--glass-shadow), 0 0 15px -3px var(--bs-primary);
}

.card-custom {
  background-color: var(--color-surface-500);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.card-custom:hover {
  border-color: var(--bs-primary-border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Category Quick Action Buttons (Flat Seamless Ocean Hover)
   -------------------------------------------------------------------------- */
.category-action-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer;
  position: relative;
}

.category-action-icon {
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.category-action-label {
  transition: color 0.2s ease !important;
}

.category-action-btn:hover {
  background-color: var(--color-brand-50, #ecfeff) !important;
  border-color: rgba(var(--bs-primary-rgb, 6, 182, 212), 0.5) !important;
  transform: none !important;
  box-shadow: none !important;
}

.category-action-btn:hover .category-action-icon {
  background-color: var(--bs-primary, #06b6d4) !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

.category-action-btn:hover .category-action-label {
  color: var(--bs-primary-hover, #0891b2) !important;
}

.category-action-btn:active {
  background-color: rgba(var(--bs-primary-rgb, 6, 182, 212), 0.15) !important;
  transform: none !important;
}

/* Dark Mode Support */
.mode-dark .category-action-btn:hover {
  background-color: rgba(var(--bs-primary-rgb, 6, 182, 212), 0.12) !important;
  border-color: rgba(var(--bs-primary-rgb, 6, 182, 212), 0.5) !important;
  transform: none !important;
  box-shadow: none !important;
}

.mode-dark .category-action-btn:hover .category-action-label {
  color: var(--color-brand-300, #67e8f9) !important;
}

.mode-dark .category-action-btn:hover .category-action-icon {
  background-color: var(--bs-primary, #06b6d4) !important;
  color: #0f172a !important;
  transform: none !important;
}

.card-custom-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card {
  background-color: var(--color-surface-500);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-top: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   7. Badges & Grade Indicators
   -------------------------------------------------------------------------- */

.badge-custom {
  font-size: 0.6875rem;
  /* 11px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-brand,
.badge-primary {
  background-color: var(--bs-primary);
  color: #ffffff;
}

.badge-brand-subtle,
.bg-primary-subtle {
  background-color: var(--bs-primary-subtle) !important;
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary-border-subtle);
}

.badge-grade-a-plus,
.badge-grade-a,
.bg-success-subtle {
  background-color: rgba(34, 183, 131, 0.1) !important;
  color: #22b783 !important;
  border: 1px solid rgba(34, 183, 131, 0.25);
}

.badge-grade-b,
.bg-warning-subtle {
  background-color: rgba(255, 184, 34, 0.1) !important;
  color: #d97706 !important;
  border: 1px solid rgba(255, 184, 34, 0.25);
}

.badge-grade-c,
.badge-grade-scrap,
.bg-danger-subtle {
  background-color: rgba(245, 50, 92, 0.1) !important;
  color: #f5325c !important;
  border: 1px solid rgba(245, 50, 92, 0.25);
}

.badge-compliance {
  background-color: rgba(34, 183, 131, 0.08);
  color: #167655;
  border: 1px solid rgba(34, 183, 131, 0.2);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--border-radius-sm);
}

/* --------------------------------------------------------------------------
   8. Hero Section & Search Engine
   -------------------------------------------------------------------------- */

.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-900) 100%);
  border-bottom: 1px solid var(--border-color);
}

.mode-dark .hero-section {
  background: linear-gradient(180deg, #131c2e 0%, var(--color-surface-900) 100%);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-nlp-box {
  background-color: #ffffff;
  border: 1px solid var(--input-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border-radius: 50px;
  padding: 0.35rem 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-dark .hero-nlp-box {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

.hero-nlp-box:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 6px 25px rgba(var(--bs-primary-rgb), 0.12);
}

/* --------------------------------------------------------------------------
   9. Tables, Dropzones, Chat & Components
   -------------------------------------------------------------------------- */

.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.table-custom th {
  background-color: var(--color-surface-600);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 0.60rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background-color: var(--color-surface-600);
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dropzone-box {
  border: 2px dashed var(--input-border);
  background-color: var(--color-surface-600);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-box:hover {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.rfq-thread-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rfq-thread-item:hover {
  background-color: var(--color-surface-600);
}

.rfq-thread-item.active {
  background-color: var(--bs-primary-subtle);
  border-color: var(--bs-primary);
}

.chat-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  max-width: 85%;
}

.chat-bubble-me {
  background-color: var(--bs-primary-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  color: var(--color-text-primary);
  margin-left: auto;
}

.chat-bubble-them {
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  color: var(--color-text-secondary);
  margin-right: auto;
}

.scanner-viewport {
  position: relative;
  height: 200px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--color-surface-800);
}

.laser-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #06b6d4, transparent);
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #06b6d4;
  animation: scanLaser 1.5s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes scanLaser {
  0% {
    top: 0%;
  }

  100% {
    top: 96%;
  }
}

.detection-box {
  position: absolute;
  border: 2px dashed #f43f5e;
  background-color: rgba(244, 63, 94, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   10. Appearance Studio & Footer
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   10. Appearance Studio & Footer (Exact Template Match)
   -------------------------------------------------------------------------- */

.appearance-studio {
  background-color: var(--color-surface-700);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
}

.palette-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.palette-btn:hover {
  transform: scale(1.15);
}

.palette-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--color-brand-500);
}

.text-primary {
  color: var(--bs-primary) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

/* --------------------------------------------------------------------------
   11. Universal Footer Component (Exact Template Match)
   -------------------------------------------------------------------------- */

.app-footer {
  background-color: var(--color-surface-800);
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 1rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.app-footer a {
  color: var(--color-text-secondary);
  margin: 0 0.65rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.app-footer a:hover {
  color: var(--color-brand-400);
  text-decoration: underline;
}

/* Footer Social Media Links */
.app-footer .footer-social-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.app-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-surface-500, #ffffff);
  border: 1px solid var(--border-color, #eaeff5);
  color: var(--color-text-secondary, #303e67);
  margin: 0;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-footer .footer-social-link svg {
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-footer .footer-social-link:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.app-footer .footer-social-link:hover svg {
  transform: scale(1.1);
}

.app-footer .footer-social-link.linkedin:hover {
  color: #ffffff !important;
  background-color: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.app-footer .footer-social-link.instagram:hover {
  color: #ffffff !important;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
}

.app-footer .footer-social-link.x-twitter:hover {
  color: #ffffff !important;
  background-color: #000000;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mode-dark .app-footer .footer-social-link {
  background-color: var(--color-surface-500, #131c2e);
  border-color: var(--border-color, #1e2c47);
  color: var(--color-text-secondary, #cbd5e1);
}

.mode-dark .app-footer .footer-social-link.x-twitter:hover {
  color: #000000 !important;
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}

.animate-pulse {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(1.15);
  }
}

/* Modals */
.modal-content-custom {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-lg);
}

.modal-header-custom {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}


@media (min-width: 1200px) {
  .forleft {
    margin-left: -70px !important;
  }

  .forright {
    margin-right: -70px !important;
  }
}

@media (max-width: 1199.98px) {
  .forleft,
  .forright {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   7. Wishlist Heart System & Floating Notifications
   -------------------------------------------------------------------------- */

.btn-wishlist {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-wishlist:hover {
  transform: scale(1.12);
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-wishlist:active {
  transform: scale(0.92);
}

.btn-wishlist.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #f5325c;
  box-shadow: 0 4px 12px rgba(245, 50, 92, 0.35);
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-wishlist.active i {
  color: #f5325c !important;
}

.mode-dark .btn-wishlist.active {
  background: #1e293b;
  border-color: rgba(245, 50, 92, 0.5);
  color: #f5325c;
  box-shadow: 0 4px 14px rgba(245, 50, 92, 0.35);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

/* Toast Notification for Wishlist */
.wishlist-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  padding: 0.75rem 1.15rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.wishlist-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. Customer & Vendor Onboarding Showcase
   -------------------------------------------------------------------------- */

.onboarding-section {
  position: relative;
  background-color: transparent;
}

.onboarding-visual-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.onboarding-img-container {
  border-radius: 28px;
  height: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-600);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 0 1px 1px var(--border-color);
}

.onboarding-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onboarding-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* Floating Badges */
.onboarding-user-badge {
  left: 477px;
  bottom: 95px;
  /* right: 15px; */
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border-color) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onboarding-user-badge:hover {
  transform: translateY(-2px) scale(1.04);
}

.onboarding-chart-badge {
  bottom: -20px;
  right: 35px;
  z-index: 4;
  min-width: 175px;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border-color) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.onboarding-chart-badge:hover {
  transform: translateY(-2px);
}

.mode-dark .onboarding-user-badge,
.mode-dark .onboarding-chart-badge {
  background-color: var(--color-surface-600) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5) !important;
}

/* Mini Bar Chart Bars */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 38px;
  padding-top: 4px;
}

.mini-bar-chart .bar {
  flex: 1;
  width: 5px;
  border-radius: 3px;
  display: inline-block;
}

/* Right Column Content Blocks */
.onboarding-icon-pill {
  width: 52px;
  height: 52px;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary-border-subtle);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-block:hover .onboarding-icon-pill {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

.onboarding-title {
  color: var(--color-text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.onboarding-desc {
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 0.875rem;
}

/* CTA Rounded Outlined Button */
.onboarding-cta-btn {
  border-width: 1.5px !important;
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  background-color: transparent !important;
  transition: all 0.2s ease;
}

.onboarding-cta-btn:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(var(--bs-primary-rgb), 0.35);
  transform: translateY(-1px);
}

.onboarding-cta-btn .cta-arrow {
  transition: transform 0.2s ease;
}

.onboarding-cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .onboarding-img-container {
    height: 380px;
    max-width: 100%;
  }

  .onboarding-visual-wrap {
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .onboarding-user-badge {
    bottom: 75px;
    right: 25px;
  }

  .onboarding-chart-badge {
    bottom: -15px;
    right: 35px;
  }
}

@media (max-width: 575.98px) {
  .onboarding-img-container {
    height: 300px;
    border-radius: 20px;
  }

  .onboarding-user-badge {
    width: 48px;
    height: 48px;
    bottom: 55px;
    right: 15px;
    border-radius: 12px !important;
  }

  .onboarding-chart-badge {
    bottom: -15px;
    right: 15px;
    min-width: 145px;
    padding: 0.75rem !important;
    border-radius: 12px !important;
  }

  .onboarding-icon-pill {
    width: 44px;
    height: 44px;
  }
}

/* additional css  */

.px-10 {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.mt-footer {
  margin-top: 73px;
}

/* additional css */

.forpadding {
  padding-left: 10px !important;
  padding-right: 10px !important;
  background-color: var(--color-surface-600);
  border: 1px solid var(--border-color);
  padding: 0.5rem !important;
}

/* ==========================================================================
   7. Portal Workspace Layout & Hybrid Navigation Architecture
   ========================================================================== */

.portal-workspace-layout {
  display: flex;
  min-height: calc(100vh - 58px);
  width: 100%;
}

.portal-sidebar {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
  z-index: 1020;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-badge-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bs-primary-subtle);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary-border-subtle);
}

.sidebar-heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.65rem 0.75rem 0.25rem;
  list-style: none;
  user-select: none;
}

.sidebar-link {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.sidebar-link:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.sidebar-link.active {
  color: var(--bs-primary) !important;
  font-weight: 600;
  background-color: var(--bs-primary-subtle);
  border-left-color: var(--bs-primary);
}

.sidebar-icon {
  font-size: 1.15rem;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-main-area {
  flex: 1 1 auto;
  min-width: 0;
  background-color: var(--color-surface-900);
  overflow-x: hidden;
}

/* Collapsed Desktop Sidebar Mode */
.portal-sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.portal-sidebar.collapsed .portal-badge-wrap,
.portal-sidebar.collapsed .sidebar-portal-info,
.portal-sidebar.collapsed .sidebar-heading,
.portal-sidebar.collapsed .sidebar-label,
.portal-sidebar.collapsed .sidebar-user-meta {
  display: none !important;
}

.portal-sidebar.collapsed .sidebar-header {
  justify-content: center !important;
  padding: 0.75rem 0.5rem !important;
}

.portal-sidebar.collapsed #sidebarCollapseToggle {
  display: flex !important;
  width: 36px;
  height: 36px;
  background-color: var(--bs-primary-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  color: var(--bs-primary) !important;
  border-radius: var(--border-radius);
  transition: all 0.15s ease;
  cursor: pointer;
}

.portal-sidebar.collapsed #sidebarCollapseToggle:hover {
  background-color: var(--bs-primary);
  color: #ffffff !important;
  transform: scale(1.08);
}

.portal-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.55rem 0;
  border-left: 3px solid transparent;
}

.portal-sidebar.collapsed .sidebar-link.active {
  border-left-color: var(--bs-primary);
}

.portal-sidebar.collapsed .sidebar-footer {
  justify-content: center !important;
  padding: 0.65rem 0.25rem !important;
}

.portal-sidebar.collapsed .sidebar-footer .d-flex {
  justify-content: center !important;
  width: 100%;
}

.portal-sidebar.collapsed .sidebar-footer form {
  display: none !important;
}

/* Profile Horizontal Tabs */
.profile-nav-tabs .profile-tab-btn {
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.profile-nav-tabs .profile-tab-btn:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-subtle);
}

.profile-nav-tabs .profile-tab-btn.active {
  color: #ffffff !important;
  background-color: var(--bs-primary) !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero Carousel & Centered Search System
   ========================================================================== */
.hero-carousel-wrapper {
  background-color: #06151f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

#heroCarousel {
  position: relative;
  width: 100%;
}

/* Crucial: Respect Bootstrap carousel display rules - never force display: flex on inactive items */
#heroCarousel .carousel-item {
  display: none;
  height: 420px;
  min-height: 420px;
  position: relative;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: transform 0.6s ease-in-out;
}

#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
  display: block !important;
}

/* Slide 1 Background Banner */
#heroCarousel .hero-slide-1 {
  background-color: #003a40;
  background-image: linear-gradient(90deg, #003a40 0%, #003a40 260px, rgba(0, 58, 64, 0.85) 440px, rgba(0, 58, 64, 0) 660px), url('../images/hero/1.png');
}

/* Slide 2 Background Banner */
#heroCarousel .hero-slide-2 {
  background-color: #091e31;
  background-image: linear-gradient(90deg, #091e31 0%, #091e31 260px, rgba(9, 30, 49, 0.85) 440px, rgba(9, 30, 49, 0) 660px), url('../images/hero/2.png');
}

/* Slide 3 Background Banner */
#heroCarousel .hero-slide-3 {
  background-color: #003940;
  background-image: linear-gradient(90deg, #003940 0%, #003940 260px, rgba(0, 57, 64, 0.85) 440px, rgba(0, 57, 64, 0) 660px), url('../images/hero/3.png');
}

.hero-slide-container {
  height: 420px;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

.hero-slide-content {
  text-align: left;
  max-width: 580px;
}

.hero-slide-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-slide-desc {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 520px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-brand-dot {
  width: 10px;
  height: 10px;
  background-color: #ea580c;
  border-radius: 2px;
  display: inline-block;
}

/* Buttons */
.hero-btn-gold {
  background-color: #f59e0b !important;
  color: #0b1626 !important;
  border: 1px solid #f59e0b !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 6px;
  padding: 0.65rem 1.65rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-gold:hover, .hero-btn-gold:focus-visible {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.hero-btn-outline {
  background-color: rgba(15, 23, 42, 0.6) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  padding: 0.65rem 1.65rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-outline:hover, .hero-btn-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.hero-btn-white {
  background-color: #ffffff !important;
  color: #0b1626 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50px;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-white:hover, .hero-btn-white:focus-visible {
  background-color: #f1f5f9 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.hero-btn-pill-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50px;
  padding: 0.65rem 1.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-pill-outline:hover, .hero-btn-pill-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
}

/* Category Chips on Slide 2 */
.hero-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip-link {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.hero-chip-link:hover, .hero-chip-link:focus-visible {
  background: rgba(14, 165, 233, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Interactive Hotspot Links for Slide 1 Artwork */
.hero-slide-artwork-col {
  height: 380px;
  position: relative;
}

.hero-circuit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-circuit-card-link {
  position: absolute;
  right: 2%;
  width: 82%;
  height: 20%;
  border-radius: 10px;
  pointer-events: auto;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.hero-circuit-card-link.card-link-1 { top: 6%; }
.hero-circuit-card-link.card-link-2 { top: 29%; }
.hero-circuit-card-link.card-link-3 { top: 52%; }
.hero-circuit-card-link.card-link-4 { top: 75%; }

.hero-circuit-card-link:hover, .hero-circuit-card-link:focus-visible {
  background-color: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  outline: none;
}

/* Centered Search Box Area */
.hero-search-area {
  position: relative;
  z-index: 5;
  padding: 1.25rem 0 1.25rem;
  background: #05141e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-search-bar {
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.45rem;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-bar:focus-within {
  border-color: #0284c7;
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.35);
}

.hero-search-input {
  color: #0f172a !important;
  font-weight: 500;
}

.hero-search-input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.hero-search-scope {
  white-space: nowrap;
}

.hero-search-btn {
  border-radius: 50px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-quick-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-quick-link:hover, .hero-quick-link:focus-visible {
  color: #38bdf8;
  text-decoration: underline;
}

/* Floating Navigation Arrows on Carousel */
.hero-nav-arrow-float {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-nav-arrow-float.hero-nav-prev {
  left: 1.25rem;
}

.hero-nav-arrow-float.hero-nav-next {
  right: 1.25rem;
}

.hero-nav-arrow-float:hover, .hero-nav-arrow-float:focus-visible {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

/* Indicators and Play/Pause Bar */
.hero-carousel-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  background: #05141e;
}

.hero-indicator {
  width: 28px !important;
  height: 5px !important;
  border-radius: 3px !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.hero-indicator.active {
  width: 44px !important;
  background-color: #38bdf8 !important;
}

.hero-play-pause-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-play-pause-btn:hover, .hero-play-pause-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  #heroCarousel .carousel-item {
    transition: none !important;
  }
}

/* =========================================================
   Portal Security CAPTCHA (Shared: Login & Forgot Password)
   ========================================================= */
.portal-captcha-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: stretch;
}

.portal-captcha-image-wrap {
  min-height: 46px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-captcha-image {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 44px;
  object-fit: contain;
}

.portal-captcha-refresh {
  min-width: 46px;
  padding-inline: .7rem;
}

@media (max-width: 575.98px) {
  .portal-captcha-shell {
    grid-template-columns: 1fr auto;
  }
}

/* Custom Iconoir Glyph: Recycle (3-arrow loop for ITAD & Asset Recovery) */
.iconoir-recycle::before {
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5'/%3E%3Cpath d='M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12'/%3E%3Cpath d='m14 16-3 3 3 3'/%3E%3Cpath d='M8.293 13.596 7.196 9.5 3.1 10.598'/%3E%3Cpath d='m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843'/%3E%3Cpath d='m13.378 9.633 4.096 1.098 1.097-4.096'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5'/%3E%3Cpath d='M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12'/%3E%3Cpath d='m14 16-3 3 3 3'/%3E%3Cpath d='M8.293 13.596 7.196 9.5 3.1 10.598'/%3E%3Cpath d='m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843'/%3E%3Cpath d='m13.378 9.633 4.096 1.098 1.097-4.096'/%3E%3C/svg%3E");
}

/* Custom spacing utilities */
.me-1\.5 {
  margin-right: 0.375rem !important;
}

.me-2\.5 {
  margin-right: 0.625rem !important;
}

.gap-1\.5 {
  gap: 0.375rem !important;
}

.gap-2\.5 {
  gap: 0.75rem !important;
}

/* ==========================================================================
   Interested Products Card Instant Selection (CSS Level 4 :has selector)
   ========================================================================== */
.interest-card {
  transition: border-color 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease !important;
  border-color: var(--bs-border-color-translucent, #dee2e6) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Checked state: strictly when the checkbox is checked, OR on initial server render if is-selected AND not explicitly unchecked */
.interest-card:has(.interest-checkbox:checked),
.interest-card.is-selected:not(:has(.interest-checkbox:not(:checked))) {
  border-color: var(--bs-primary, #06b6d4) !important;
  background-color: rgba(var(--bs-primary-rgb, 6, 182, 212), 0.1) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Unchecked state: strictly whenever the checkbox is not checked */
.interest-card:has(.interest-checkbox:not(:checked)) {
  border-color: var(--bs-border-color-translucent, #dee2e6) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Badge visibility: strictly tied to checkbox checked state */
.interest-badge {
  display: none !important;
}

.interest-card:has(.interest-checkbox:checked) .interest-badge,
.interest-card.is-selected:not(:has(.interest-checkbox:not(:checked))) .interest-badge {
  display: inline-block !important;
}

.interest-card:has(.interest-checkbox:not(:checked)) .interest-badge {
  display: none !important;
}

/* Checkbox focus & outline styling (eliminate lingering focus ring/shadow on click & deselect) */
.interest-checkbox,
.interest-checkbox:focus,
.interest-checkbox:active {
  box-shadow: none !important;
  outline: none !important;
}

.interest-checkbox:not(:checked),
.interest-checkbox:not(:checked):focus {
  border-color: var(--bs-border-color, #ced4da) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.interest-checkbox:checked,
.interest-checkbox:checked:focus {
  background-color: var(--bs-primary, #06b6d4) !important;
  border-color: var(--bs-primary, #06b6d4) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Marketplace Floating Filter Toolbar (Laptop & Desktop View >= 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .marketplace-search-box {
    width: 240px !important;
    min-width: 180px !important;
    max-width: 280px !important;
    flex-shrink: 1 !important;
  }

  .marketplace-filter-select {
    width: 180px !important;
    min-width: 150px !important;
    max-width: 220px !important;
    flex: 0 0 auto !important;
  }

  .marketplace-filters-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  .marketplace-reset-btn {
    width: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 992px) {
  .marketplace-toolbar-controls {
    flex-wrap: nowrap !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

/* ==========================================================================
   Portal TomSelect Theme-Aware Controls (Timezone & Picklists)
   ========================================================================== */
.portal-ts-select .ts-wrapper {
  width: 100%;
}

.portal-ts-select .ts-control {
  min-height: 36px;
  background-color: var(--color-surface-900) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--border-radius) !important;
  color: var(--color-text-secondary) !important;
  font-size: 0.8125rem !important;
  padding: 0.375rem 0.75rem !important;
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.portal-ts-select .ts-wrapper.focus .ts-control {
  border-color: var(--bs-primary) !important;
  background-color: var(--input-bg) !important;
  box-shadow: 0 0 0 3px var(--bs-primary-subtle) !important;
}

.portal-ts-select .ts-control input,
.portal-ts-select .ts-control .item {
  color: var(--color-text-secondary) !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
}

.portal-ts-select .ts-control .item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 18px);
}

.portal-ts-select .ts-dropdown {
  background-color: var(--card-bg, #ffffff) !important;
  border: 1px solid var(--input-border, #cbd5e1) !important;
  border-radius: var(--border-radius, 0.5rem) !important;
  color: var(--color-text-secondary, #0f172a) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
  z-index: 1060 !important;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.8125rem;
}

.portal-ts-select .ts-dropdown .optgroup-header {
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-primary, #06b6d4) !important;
  background-color: var(--color-surface-600, rgba(15, 23, 42, 0.04)) !important;
  padding: 5px 10px;
}

.portal-ts-select .ts-dropdown .option {
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--color-text-secondary, #0f172a);
}

.portal-ts-select .ts-dropdown .option:hover,
.portal-ts-select .ts-dropdown .active {
  background-color: rgba(6, 182, 212, 0.1) !important;
  color: var(--bs-primary, #06b6d4) !important;
}

.portal-ts-select .ts-dropdown .selected {
  background-color: rgba(6, 182, 212, 0.16) !important;
  font-weight: 600;
}

/* ==========================================================================
   Smart Livewire Action Preloader (Marketplace + Buyer/Seller Portals)
   ========================================================================== */
.portal-preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.portal-preloader-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mode-dark .portal-preloader-overlay {
  background: rgba(11, 18, 32, 0.68);
}

.portal-preloader-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, rgba(15, 23, 42, 0.1));
  border-radius: 16px;
  padding: 18px 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.portal-preloader-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-preloader-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  animation: portalLogoPulse 1.4s ease-in-out infinite;
}

.portal-preloader-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary, #475569);
  letter-spacing: 0.02em;
}

.portal-preloader-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.25px solid rgba(6, 182, 212, 0.22);
  border-top-color: var(--bs-primary, #06b6d4);
  animation: portalPreloaderSpin 0.7s linear infinite;
}

@keyframes portalPreloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes portalLogoPulse {
  0%, 100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}
