/* ==========================================================================
   H3C ENTERPRISE SOLUTION PLATFORM — LUXURY DESIGN SYSTEM (v2026.2)
   Swiss & European B2B Channel Architecture
   ========================================================================== */

:root {
  /* Core Obsidian Palette */
  --bg-darkest: #050811;
  --bg-base: #080d1a;
  --bg-surface: #0d1527;
  --bg-elevated: #121c33;
  --bg-card: rgba(15, 24, 44, 0.75);
  --bg-card-hover: rgba(22, 35, 64, 0.85);
  
  /* H3C Brand Accents */
  --brand-cyan: #00a0e9;
  --brand-cyan-light: #00c2ff;
  --brand-cyan-glow: rgba(0, 160, 233, 0.25);
  --brand-blue: #2563eb;
  --brand-navy: #0e244d;
  
  /* Functional Accents */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --swiss-red: #dc2626;
  --swiss-red-light: #ef4444;
  
  /* Typography Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;
  
  /* Glassmorphism & Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 160, 233, 0.45);
  --border-glow: rgba(0, 194, 255, 0.35);
  --glass-bg: rgba(13, 21, 39, 0.82);
  --glass-blur: blur(20px);
  
  /* Shadow Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-cyan: 0 0 30px -5px rgba(0, 160, 233, 0.3);
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-cyan);
}

/* ==========================================================================
   TOP GLOBAL ENTERPRISE BAR
   ========================================================================== */
.top-bar {
  background: #04060c;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  padding: 6px 0;
  position: relative;
  z-index: 100;
}

.top-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.swiss-badge {
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.25);
}

.eu-badge {
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.25);
}

.top-sla-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.top-sla-item svg {
  color: var(--accent-emerald);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 160, 233, 0.08);
  border: 1px solid rgba(0, 160, 233, 0.25);
  color: var(--brand-cyan-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.b2b-badge svg {
  color: var(--brand-cyan);
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.top-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
}
.top-action-btn.highlight {
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
}
.top-action-btn.highlight:hover {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #ffffff;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-cyan);
  color: #020617;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.main-header {
  background: rgba(8, 13, 26, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-h3c {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 160, 233, 0.25));
  transition: transform var(--transition-smooth);
}
.logo-h3c:hover {
  transform: scale(1.02);
}

.partner-badge {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 2px solid var(--brand-cyan);
}
.partner-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.partner-sub {
  font-size: 0.7rem;
  color: var(--brand-cyan-light);
  font-weight: 500;
}

.header-kpis {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kpi-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.kpi-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-cyan-light);
  line-height: 1.1;
}
.kpi-txt {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 56px 24px 36px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #11203d 0%, var(--bg-darkest) 75%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 160, 233, 0.15) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 160, 233, 0.1);
  border: 1px solid rgba(0, 160, 233, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #0088ff 50%, #9066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   SEARCH & OMNIBAR
   ========================================================================== */
.search-container {
  max-width: 800px;
  margin: 0 auto 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 23, 44, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 6px 16px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 160, 233, 0.05);
  transition: var(--transition-smooth);
}
.search-box:focus-within {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-cyan), 0 0 0 3px rgba(0, 160, 233, 0.2);
  background: rgba(17, 28, 54, 0.95);
}

.search-icon {
  color: var(--brand-cyan);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-main);
}
.search-box input::placeholder {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: var(--transition-fast);
}
.search-clear-btn:hover {
  color: var(--text-main);
}

.search-kbd-hint {
  display: flex;
  align-items: center;
}
.search-kbd-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.view-orientation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.toggle-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  padding-left: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.angle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.angle-btn:hover {
  color: var(--text-main);
}
.angle-btn.active {
  background: rgba(0, 160, 233, 0.2);
  color: var(--brand-cyan-light);
  border: 1px solid rgba(0, 160, 233, 0.4);
}

/* Quick Filter Chips */
.quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 4px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}
.chip.active {
  background: rgba(0, 160, 233, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
  font-weight: 600;
}

/* ==========================================================================
   CATEGORY & SUBCATEGORY NAVIGATION
   ========================================================================== */
.category-nav {
  max-width: 1440px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 24, 44, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cat-tab:hover {
  background: rgba(22, 35, 64, 0.8);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}
.cat-tab.active {
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
  border-color: var(--brand-cyan);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 160, 233, 0.2);
}

.cat-icon {
  display: flex;
  align-items: center;
  color: var(--brand-cyan);
}

.cat-tab .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}
.cat-tab.active .count {
  background: var(--brand-cyan);
  color: #020617;
  font-weight: 700;
}

/* Subcategory Bar */
.sub-nav-container {
  max-width: 1440px;
  margin: 10px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-container::-webkit-scrollbar {
  display: none;
}

.sub-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.sub-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}
.sub-pill.active {
  background: var(--brand-cyan);
  color: #030816;
  border-color: var(--brand-cyan);
  font-weight: 700;
}

/* ==========================================================================
   TOOLBAR & FACETED FILTERS
   ========================================================================== */
.toolbar-section {
  max-width: 1440px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.filter-dropdown label {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.filter-dropdown select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.filter-dropdown select:focus {
  border-color: var(--brand-cyan);
}
.filter-dropdown select option {
  background: #0d1527;
  color: #fff;
}

.reset-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}
.reset-filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   PRODUCT GRID & ENTERPRISE CARDS
   ========================================================================== */
.grid-wrapper {
  max-width: 1440px;
  margin: 20px auto 60px;
  padding: 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 160, 233, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px -6px rgba(0, 160, 233, 0.25);
  background: var(--bg-card-hover);
}

/* Card Header Badges */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 8px;
}

.card-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-compliance-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Card Image Section with Interactive Angle Switcher (Pure White Background) */
.card-media-wrapper {
  position: relative;
  background: #ffffff;
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.card-img-el {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
}
.product-card:hover .card-img-el {
  transform: scale(1.05);
}

/* Card Dual-Angle Switcher Pill (High-contrast glass pill on white) */
.card-angle-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.angle-pill-btn {
  background: transparent;
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.angle-pill-btn:hover {
  color: #ffffff;
}
.angle-pill-btn.active {
  background: var(--brand-cyan);
  color: #030814;
}

.card-view-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0f172a;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* Card Body */
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-model-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.card-model {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.card-submodels-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  background: rgba(0, 160, 233, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

/* Card Specs Chips */
.card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.spec-chip.speed {
  border-color: rgba(0, 160, 233, 0.3);
  color: var(--brand-cyan-light);
}
.spec-chip.ports {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Card Actions */
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.btn-card-details:hover {
  background: rgba(0, 160, 233, 0.15);
  border-color: var(--brand-cyan);
  color: #fff;
}

.btn-card-add-bom {
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  border: 1px solid rgba(0, 160, 233, 0.4);
  color: var(--brand-cyan-light);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.btn-card-add-bom:hover {
  background: var(--brand-cyan);
  color: #030814;
}

.btn-card-compare {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-card-compare:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-card-compare.selected {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL / 360° SHOWCASE
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 50px -10px rgba(0, 160, 233, 0.2);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 21, 39, 0.95);
  backdrop-filter: blur(16px);
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-cyan);
}

.m-model {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.4px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Media Showcase with Angle Selectors */
.modal-media-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-image-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.modal-image-section img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.14));
  transition: transform 0.2s ease;
}

.modal-view-selectors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.view-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.view-btn.active {
  background: rgba(0, 160, 233, 0.2);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
}

/* Submodels in Modal */
.submodel-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}
.submodel-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.submodel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.submodel-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.submodel-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 14px rgba(0, 160, 233, 0.3);
  transform: translateY(-2px);
}
.submodel-card.active {
  border-color: var(--brand-cyan);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px var(--brand-cyan);
}
.submodel-img {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: #ffffff;
}
.submodel-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}
.submodel-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

/* Specs & Overview */
.modal-info-section {
  display: flex;
  flex-direction: column;
}

.modal-pitch {
  margin-bottom: 20px;
}
.modal-pitch h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.modal-pitch p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.specs-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.spec-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.spec-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Compliance Box */
.compliance-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.comp-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.comp-text {
  display: flex;
  flex-direction: column;
}
.comp-text strong {
  font-size: 0.78rem;
  color: var(--text-heading);
}
.comp-text span {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Quotation Box */
.modal-price-box {
  background: linear-gradient(135deg, rgba(0, 160, 233, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(0, 160, 233, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.price-details {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-cyan-light);
}
.price-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.btn-quote-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-quote-add:hover {
  box-shadow: 0 4px 16px rgba(0, 160, 233, 0.4);
  transform: translateY(-1px);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--brand-cyan);
  color: #030814;
  border: none;
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--brand-cyan-light);
  box-shadow: var(--shadow-cyan);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-primary-sm {
  background: var(--brand-cyan);
  color: #030814;
  border: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  cursor: pointer;
}
.btn-outline-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  cursor: pointer;
}

/* ==========================================================================
   SLIDE-OVER PROJECT BOM / RFQ DRAWER
   ========================================================================== */
.bom-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.bom-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bom-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bom-drawer-overlay.open .bom-drawer {
  transform: translateX(0);
}

.bom-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 21, 39, 0.9);
}
.bom-header-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}
.bom-header-info p {
  font-size: 0.75rem;
  color: var(--brand-cyan-light);
}
.bom-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.bom-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bom-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bom-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.bom-item-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bom-item-info {
  flex: 1;
}
.bom-item-model {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}
.bom-item-cat {
  font-size: 0.7rem;
  color: var(--text-dim);
}
.bom-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bom-qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
.bom-qty-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
}
.bom-remove-btn {
  background: transparent;
  border: none;
  color: var(--swiss-red-light);
  cursor: pointer;
  padding: 4px;
}

.bom-summary-card {
  background: rgba(0, 160, 233, 0.05);
  border: 1px solid rgba(0, 160, 233, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bom-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.sla-pill {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.bom-export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rfq-form-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.rfq-form-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand-cyan);
}
.form-group select option {
  background: #0d1527;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-submit-rfq {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-size: 0.9rem;
}

/* ==========================================================================
   COMPARISON MODAL & FLOATING TRAY
   ========================================================================== */
.compare-tray {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: rgba(13, 21, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--brand-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 160, 233, 0.3);
  padding: 10px 20px;
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.tray-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  display: block;
}
.tray-subtitle {
  font-size: 0.72rem;
  color: var(--brand-cyan-light);
}

.compare-tray-items {
  display: flex;
  gap: 8px;
}
.tray-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  object-fit: contain;
  padding: 2px;
}

.compare-tray-actions {
  display: flex;
  gap: 8px;
}

/* Fullscreen Compare Modal */
.compare-modal {
  max-width: 1200px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
}
.compare-spec-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-header-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.compare-img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 8px;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}
.compare-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.compare-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 0.85rem;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.compare-label-cell {
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ==========================================================================
   RFQ SUCCESS MODAL
   ========================================================================== */
.rfq-success-modal {
  max-width: 480px;
  text-align: center;
  padding: 36px 28px;
}
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.success-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.success-ticket {
  background: rgba(0, 160, 233, 0.08);
  border: 1px dashed var(--brand-cyan);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}
.success-ticket span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.success-ticket strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--brand-cyan-light);
}
.success-sla {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ==========================================================================
   ENTERPRISE FOOTER
   ========================================================================== */
.main-footer {
  background: #040710;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.brand-col .footer-logo {
  height: 30px;
  margin-bottom: 8px;
}
.brand-col .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.brand-col .footer-brand span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
}
.footer-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.foot-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-col ul a:hover {
  color: var(--brand-cyan-light);
}

.footer-contact {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-contact strong {
  color: var(--text-heading);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Toolbar View Mode Switcher */
.view-mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.view-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.view-mode-btn.active {
  background: rgba(0, 160, 233, 0.18);
  color: var(--brand-cyan-light);
  border-color: rgba(0, 160, 233, 0.35);
  box-shadow: 0 2px 8px rgba(0, 160, 233, 0.15);
}

/* ==========================================================================
   EQUIPMENT KIND DIRECTORY & SPECIFICATION HIERARCHY
   ========================================================================== */
.directory-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.directory-container {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

/* Left Sidebar: Equipment Kind Menu */
.dir-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: sticky;
  top: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dir-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dir-sidebar-header h3 {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-heading);
}

.dir-badge-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-cyan);
  background: rgba(0, 160, 233, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 160, 233, 0.25);
}

.dir-kind-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dir-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.dir-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.dir-menu-item.active {
  background: rgba(0, 160, 233, 0.12);
  border-color: rgba(0, 160, 233, 0.35);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 160, 233, 0.15);
}

.dir-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-cyan-light);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dir-menu-item.active .dir-menu-icon {
  background: var(--brand-cyan);
  color: #030814;
}

.dir-menu-text {
  flex: 1;
  min-width: 0;
}

.dir-menu-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.dir-menu-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 1px;
}

.dir-menu-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
}

.dir-menu-item.active .dir-menu-count {
  background: rgba(0, 160, 233, 0.25);
  color: var(--brand-cyan-light);
}

/* Right Main Panel: Models & Features Directory */
.dir-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dir-main-header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dir-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.dir-title-info h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.4px;
}

.dir-title-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dir-count-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  background: rgba(0, 160, 233, 0.12);
  border: 1px solid rgba(0, 160, 233, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Sub-kind quick filter chips inside directory */
.dir-sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dir-sub-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dir-sub-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dir-sub-chip.active {
  background: rgba(0, 160, 233, 0.2);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
}

/* Directory List Rows */
.dir-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dir-row {
  display: grid;
  grid-template-columns: 100px 220px 110px 1fr 185px;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dir-row:hover {
  background: rgba(0, 160, 233, 0.04);
  border-color: rgba(0, 160, 233, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Col 1: Studio Photo on Pure White Background */
.dir-item-thumb {
  width: 100px;
  height: 64px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.dir-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

.dir-row:hover .dir-item-thumb img {
  transform: scale(1.08);
}

/* Col 2: Model Name & Identification */
.dir-item-model-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dir-model-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.2px;
}

.dir-model-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dir-kind-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
}

.dir-variants-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-cyan-light);
  background: rgba(0, 160, 233, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Col 3: Speed, Form & Capacity Badges */
.dir-item-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.dir-badge-speed {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 160, 233, 0.15);
  color: var(--brand-cyan-light);
  border: 1px solid rgba(0, 160, 233, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.dir-badge-form {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Col 4: Key Features & Architecture */
.dir-item-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dir-feature-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.dir-feature-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.dir-spec-chip {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Col 5: Actions & Data Paper */
.dir-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.dir-btn-inspect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-cyan);
  color: #030814;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dir-btn-inspect:hover {
  background: var(--brand-cyan-light);
  box-shadow: 0 4px 12px rgba(0, 160, 233, 0.4);
}

.dir-btn-datasheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-fast);
}

.dir-btn-datasheet:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   TOP BAR MODE BUTTON
   ========================================================================== */
.top-nav-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 160, 233, 0.12);
  border: 1px solid rgba(0, 160, 233, 0.35);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}
.top-nav-mode-btn:hover {
  background: rgba(0, 160, 233, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(0, 160, 233, 0.35);
  transform: translateY(-1px);
}
.top-nav-mode-btn.active {
  background: var(--brand-cyan);
  color: #030814;
  border-color: var(--brand-cyan);
}

/* ==========================================================================
   TECHNICIAN HARDWARE TREE VIEW
   ========================================================================== */
.tech-tree-wrapper {
  width: 100%;
  padding: 24px 0 80px 0;
  animation: fadeIn 0.3s ease;
}

.tree-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Technician Control Bar */
.tree-control-bar {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95), rgba(7, 11, 22, 0.98));
  border: 1px solid rgba(0, 160, 233, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 160, 233, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tree-control-left {
  max-width: 620px;
}

.tree-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 160, 233, 0.12);
  border: 1px solid rgba(0, 160, 233, 0.3);
  color: var(--brand-cyan-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.tree-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulseDot 2s infinite;
}

.tree-main-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tree-main-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.tree-control-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-grow: 1;
  min-width: 320px;
}

/* Tree Search Box */
.tree-search-box {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.tree-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.tree-search-box input {
  width: 100%;
  background: rgba(4, 7, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  padding: 8px 34px 8px 36px;
  outline: none;
  transition: var(--transition-fast);
}

.tree-search-box input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 14px rgba(0, 160, 233, 0.25);
  background: rgba(4, 7, 16, 0.98);
}

.tree-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Tree Actions Toolbar */
.tree-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tree-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tree-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.tree-tool-btn.highlight-cli {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.tree-tool-btn.highlight-cli:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.tree-tool-select {
  background: rgba(4, 7, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tree-tool-select:focus {
  border-color: var(--brand-cyan);
}

/* 2. Tree Summary & Statistics Bar */
.tree-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 24px;
  font-size: 0.78rem;
}

.tree-stats-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tree-stat-tag {
  color: var(--text-muted);
}
.tree-stat-tag strong {
  color: var(--brand-cyan-light);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.tree-stat-sep {
  color: var(--text-dim);
}

.tree-stats-right .tree-tip {
  color: var(--text-dim);
  font-size: 0.74rem;
}
.tree-stats-right strong {
  color: var(--text-muted);
}

/* 3. Tree Nodes Hierarchy */
.tree-nodes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* LEVEL 1: DOMAIN NODE */
.tree-domain-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.tree-domain-node:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.tree-domain-node.open > .domain-header {
  border-bottom-color: var(--border-subtle);
  background: linear-gradient(90deg, rgba(0, 160, 233, 0.08), rgba(255, 255, 255, 0.01));
}

.domain-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.domain-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.domain-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 160, 233, 0.15);
  color: var(--brand-cyan-light);
  border: 1px solid rgba(0, 160, 233, 0.3);
  flex-shrink: 0;
}

.domain-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.domain-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.domain-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.domain-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-counts-badge {
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--brand-cyan-light);
  background: rgba(0, 160, 233, 0.08);
  border: 1px solid rgba(0, 160, 233, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
}

.tree-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.tree-domain-node.open > .domain-header .tree-chevron {
  transform: rotate(90deg);
  color: var(--brand-cyan-light);
}

.domain-body {
  padding: 16px 20px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid rgba(0, 160, 233, 0.25);
  margin-left: 20px;
  margin-bottom: 12px;
}

.tree-domain-node.open > .domain-body {
  display: flex;
}

/* LEVEL 2: DEVICE FAMILY NODE */
.tree-family-node {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.tree-family-node:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.family-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.family-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tree-family-node.open > .family-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 160, 233, 0.04);
}

.family-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.family-branch-prefix {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

.family-folder-icon {
  color: var(--accent-amber);
  display: inline-flex;
}

.family-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.family-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.family-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.family-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-count-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.tree-family-node.open > .family-header .tree-chevron {
  transform: rotate(90deg);
  color: var(--brand-cyan-light);
}

.family-body {
  padding: 12px 16px 16px 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  border-left: 2px dashed rgba(255, 255, 255, 0.1);
  margin-left: 16px;
  margin-bottom: 8px;
}

.tree-family-node.open > .family-body {
  display: flex;
}

/* LEVEL 3: MODEL CARD (TECHNICIAN SPEC MATRIX) */
.tree-model-card {
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 16px;
  align-items: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tree-model-card:hover {
  border-color: rgba(0, 160, 233, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* Col 1: Model Thumbnail (Strictly Pure White #ffffff) */
.tree-model-thumb {
  width: 110px;
  height: 80px;
  background: #ffffff !important;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.tree-model-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.tree-model-thumb:hover img {
  transform: scale(1.06);
}

/* Col 2: Model Technical Details & Features Grid */
.tree-model-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tree-model-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tree-model-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tree-model-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.tree-badge-speed {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #030814;
  background: var(--brand-cyan);
  padding: 2px 7px;
  border-radius: 4px;
}

.tree-badge-form {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.tree-badge-variants {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Technician Specs Grid (High-density 4-cell matrix) */
.tree-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  background: rgba(4, 8, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
}

.tree-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tree-spec-k {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tree-spec-v {
  font-size: 0.76rem;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Col 3: Technician Actions */
.tree-model-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.tree-btn-inspect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-cyan);
  color: #030814;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tree-btn-inspect:hover {
  background: var(--brand-cyan-light);
  box-shadow: 0 4px 12px rgba(0, 160, 233, 0.4);
}

.tree-action-subrow {
  display: flex;
  gap: 6px;
}

.tree-btn-copy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tree-btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tree-btn-copy.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #34d399;
}

.tree-btn-datasheet {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: var(--transition-fast);
}

.tree-btn-datasheet:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tree-action-bottom-row {
  display: flex;
  gap: 6px;
}

.tree-btn-bom, .tree-btn-compare {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 0.68rem;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tree-btn-bom:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-light);
}

.tree-btn-compare:hover {
  border-color: var(--accent-purple);
  color: #c084fc;
}

/* LEVEL 4: SUBMODELS & ORDERING SKUS TREE BRANCH */
.tree-submodels-container {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.tree-submodels-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.tree-submodels-toggle:hover {
  color: var(--brand-cyan-light);
  background: rgba(0, 160, 233, 0.06);
}

.tree-submodels-toggle .sub-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.tree-submodels-container.open .sub-chevron {
  transform: rotate(90deg);
  color: var(--brand-cyan);
}

.tree-submodels-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(4, 7, 16, 0.7);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tree-submodels-container.open .tree-submodels-grid {
  display: grid;
}

.tree-submodel-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: var(--transition-fast);
}

.tree-submodel-chip:hover {
  border-color: rgba(0, 160, 233, 0.4);
  background: rgba(15, 23, 42, 1);
}

.tree-submodel-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.tree-submodel-thumb {
  width: 44px;
  height: 32px;
  background: #ffffff !important;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.tree-submodel-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tree-submodel-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-submodel-copy {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.68rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.tree-submodel-copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.tree-submodel-copy.copied {
  color: #34d399;
  border-color: #34d399;
}

/* ==========================================================================
   COMWARE HARDWARE CLI VERIFICATION MODAL
   ========================================================================== */
.cli-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cli-modal-overlay.open {
  display: flex;
}

.cli-modal {
  background: #090d16;
  border: 1px solid rgba(0, 160, 233, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 160, 233, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cli-modal-body {
  padding: 20px 24px 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cli-intro p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

.cli-command-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cli-cmd-card {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.cli-cmd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cli-cmd-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-cyan-light);
}

.cli-cmd-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cli-cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #020409;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 8px 12px;
}

.cli-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #34d399;
}

.cli-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cli-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cli-copy-btn.copied {
  color: #34d399;
  border-color: #34d399;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1200px) {
  .dir-row {
    grid-template-columns: 90px 190px 100px 1fr 160px;
    gap: 12px;
  }
  .tree-model-card {
    grid-template-columns: 90px 1fr 160px;
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .directory-container {
    grid-template-columns: 1fr;
  }
  .dir-sidebar {
    position: static;
  }
  .tree-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .tree-control-right {
    align-items: stretch;
    min-width: auto;
  }
  .tree-actions-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-kpis {
    display: none;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .dir-row {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  .dir-item-badges, .dir-item-features, .dir-item-actions {
    grid-column: 1 / -1;
  }
  .dir-item-actions {
    flex-direction: row;
  }
  .tree-model-card {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
  .tree-model-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tree-spec-grid {
    grid-template-columns: 1fr;
  }
  .tree-stats-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .domain-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .domain-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .family-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .family-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .specs-grid, .compliance-box {
    grid-template-columns: 1fr;
  }
  .compare-tray {
    width: 95%;
    padding: 8px 12px;
  }
}


/* ==========================================================================
   H3C SWISS ENTERPRISE SOLUTION PLATFORM — CRISP WHITE THEME & PRICING ENGINE
   Version: 2026.3 | Swiss B2B Pricing Architecture (CHF)
   ========================================================================== */

/* --- Swiss White Theme Tokens (Default & [data-theme="light"]) --- */
[data-theme="light"], :root {
  --bg-darkest: #f1f5f9;
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  
  --brand-cyan: #0284c7;
  --brand-cyan-light: #0369a1;
  --brand-cyan-glow: rgba(2, 132, 199, 0.12);
  --brand-blue: #1d4ed8;
  --brand-navy: #0f172a;
  
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706;
  --accent-purple: #7c3aed;
  --swiss-red: #dc2626;
  --swiss-red-light: #ef4444;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-heading: #0f172a;
  
  --border-subtle: #e2e8f0;
  --border-focus: #0284c7;
  --border-glow: rgba(2, 132, 199, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-blur: blur(16px);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  --shadow-cyan: 0 0 20px -3px rgba(2, 132, 199, 0.2);
}

/* Light Mode Direct Overrides */
[data-theme="light"] body {
  background-color: var(--bg-base);
  color: var(--text-main);
}

[data-theme="light"] .top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .hero-section {
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 75%);
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
  color: #475569;
}

[data-theme="light"] .search-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-box input {
  color: #0f172a;
}

[data-theme="light"] .search-box input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .product-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .card-model {
  color: #0f172a;
}

[data-theme="light"] .card-desc {
  color: #64748b;
}

[data-theme="light"] .card-media-wrapper {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .spec-chip {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .spec-chip.speed {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

[data-theme="light"] .category-nav,
[data-theme="light"] .sub-nav-container,
[data-theme="light"] .toolbar-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .category-btn {
  color: #475569;
}

[data-theme="light"] .category-btn:hover {
  color: #0284c7;
  background: #f8fafc;
}

[data-theme="light"] .category-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

[data-theme="light"] .filter-dropdown select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .chip {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .chip:hover,
[data-theme="light"] .chip.active {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .chip.chip-swiss {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 600;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .bom-drawer,
[data-theme="light"] .compare-modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .modal-header h2,
[data-theme="light"] .bom-header h3 {
  color: #0f172a;
}

[data-theme="light"] .spec-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .spec-label {
  color: #64748b;
}

[data-theme="light"] .spec-val {
  color: #0f172a;
}

[data-theme="light"] .dir-container,
[data-theme="light"] .dir-sidebar,
[data-theme="light"] .tree-view-wrapper {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .dir-row {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .dir-row:hover {
  background: #f8fafc;
}

[data-theme="light"] .main-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .footer-col h5 {
  color: #0f172a;
}

[data-theme="light"] .footer-col a {
  color: #475569;
}

[data-theme="light"] .footer-col a:hover {
  color: #0284c7;
}

/* --- Dark Theme Preservations --- */
[data-theme="dark"] {
  --bg-darkest: #050811;
  --bg-base: #080d1a;
  --bg-surface: #0d1527;
  --bg-elevated: #121c33;
  --bg-card: rgba(15, 24, 44, 0.75);
  --bg-card-hover: rgba(22, 35, 64, 0.85);
  
  --brand-cyan: #00a0e9;
  --brand-cyan-light: #00c2ff;
  --brand-cyan-glow: rgba(0, 160, 233, 0.25);
  --brand-blue: #2563eb;
  --brand-navy: #0e244d;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 160, 233, 0.45);
  --border-glow: rgba(0, 194, 255, 0.35);
  --glass-bg: rgba(13, 21, 39, 0.82);
  --glass-blur: blur(20px);
}

/* --- Currency & VAT Top Bar Controls --- */
.top-currency-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-right: 6px;
}

[data-theme="dark"] .top-currency-group {
  background: rgba(255, 255, 255, 0.06);
}

.currency-pill {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.currency-pill:hover {
  color: var(--text-heading);
}

.currency-pill.active {
  background: var(--brand-cyan);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 160, 233, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(0, 160, 233, 0.16);
  border-color: var(--brand-cyan);
}

.theme-icon {
  font-size: 0.9rem;
}

.ai-specialist-btn {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
}

.badge-ai-model {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}

/* --- Product Card Pricing Layout --- */
.card-price-box {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(2, 132, 199, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(2, 132, 199, 0.12);
}

[data-theme="dark"] .card-price-box {
  background: rgba(0, 160, 233, 0.06);
  border-color: rgba(0, 160, 233, 0.18);
}

.card-price-box.enterprise {
  background: rgba(100, 116, 139, 0.05);
  border-color: rgba(100, 116, 139, 0.15);
}

.price-type {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 2px;
}

.price-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.price-amount.enterprise-quote {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-vat-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-weight: 600;
}

.card-partner-price-row {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.partner-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--brand-cyan);
}

.reseller-val {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.card-bom-warranty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
}

.card-bom-tag {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-dim);
  font-weight: 600;
}

[data-theme="dark"] .card-bom-tag {
  background: rgba(255,255,255,0.06);
}

.card-warranty-tag {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* --- Modal Pricing Matrix Card --- */
.modal-pricing-card {
  margin-top: 16px;
  padding: 16px;
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 12px;
}

[data-theme="dark"] .modal-pricing-card {
  background: rgba(13, 21, 39, 0.85);
  border-color: rgba(0, 160, 233, 0.25);
}

.m-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.m-price-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-price-rate {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.m-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.m-price-col {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .m-price-col {
  background: rgba(15, 24, 44, 0.6);
}

.m-price-col.msrp-col {
  border-color: var(--brand-cyan);
  background: rgba(2, 132, 199, 0.06);
}

.m-lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.m-val-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

.m-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.m-sub-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.m-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  margin-bottom: 12px;
}

.m-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
}

.m-meta-k {
  color: var(--text-dim);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.m-meta-v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-heading);
}

.m-remark-row {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.74rem;
  color: var(--accent-amber);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-cart-action-row {
  display: flex;
  gap: 10px;
}

.m-cart-action-row button {
  flex: 1;
}

/* --- Floating AI Advisor Trigger Button --- */
.floating-ai-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px -4px rgba(2, 132, 199, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-ai-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px -2px rgba(2, 132, 199, 0.6);
}

.floating-ai-trigger:active {
  transform: translateY(0);
}

.ai-trigger-icon {
  font-size: 1.4rem;
}

.ai-trigger-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.ai-trigger-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ai-trigger-sub {
  font-size: 0.66rem;
  opacity: 0.88;
  font-family: 'JetBrains Mono', monospace;
}

.ai-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 999px;
  border: 2px solid #00c2ff;
  opacity: 0.5;
  animation: pulse-ring 2.5s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.98); opacity: 0.6; }
  50% { transform: scale(1.04); opacity: 0; }
  100% { transform: scale(0.98); opacity: 0; }
}

/* --- Slide-Over AI Specialist Drawer --- */
.ai-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ai-drawer-overlay.open {
  display: flex;
  opacity: 1;
  justify-content: flex-end;
}

.ai-drawer {
  width: 520px;
  max-width: 95vw;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .ai-drawer {
  background: #0b1120;
  border-left-color: rgba(255, 255, 255, 0.08);
}

.ai-drawer-overlay.open .ai-drawer {
  transform: translateX(0);
}

.ai-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 132, 199, 0.04);
}

.ai-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  font-size: 1.8rem;
  background: rgba(2, 132, 199, 0.12);
  padding: 6px;
  border-radius: 10px;
}

.ai-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-title-row h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}

.ai-badge-sovereign {
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.ai-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 2px 0 0 0;
}

.ai-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-status-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* Quick prompt chips inside drawer */
.ai-quick-prompts {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .ai-quick-prompts {
  background: rgba(255, 255, 255, 0.02);
}

.quick-title {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 6px;
}

.quick-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ai-prompt-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-prompt-chip:hover {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
}

/* Chat Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-bubble {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

.ai-bubble.incoming {
  align-self: flex-start;
}

.ai-bubble.outgoing {
  align-self: flex-end;
}

.bubble-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  padding: 0 4px;
}

.bubble-content {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ai-bubble.incoming .bubble-content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

[data-theme="dark"] .ai-bubble.incoming .bubble-content {
  background: #111a2e;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.ai-bubble.outgoing .bubble-content {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
}

.bubble-content p {
  margin: 0 0 8px 0;
}

.bubble-content p:last-child {
  margin-bottom: 0;
}

.bubble-content pre {
  background: #0f172a;
  color: #38bdf8;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  margin: 8px 0;
}

/* Chat Input Bar */
.ai-chat-input-wrapper {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.ai-chat-form {
  display: flex;
  gap: 8px;
}

.ai-chat-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-form input:focus {
  border-color: var(--brand-cyan);
}

.ai-chat-form button {
  padding: 0 16px;
  background: var(--brand-cyan);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.ai-chat-form button:hover {
  opacity: 0.9;
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 8px;
  }
  .top-bar-left, .top-bar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .floating-ai-trigger {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
  }
  .floating-ai-trigger .ai-trigger-sub {
    display: none;
  }
  .m-price-grid {
    grid-template-columns: 1fr;
  }
  .m-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Retail-only pricing: single MSRP column */
.m-price-grid { grid-template-columns: 1fr !important; }
.m-price-grid .msrp-col { text-align: left; }

/* ==========================================================================
   MOBILE PRO LAYOUT (v2026.4) — phone-first polish
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.hero-glow-bg { max-width: 100%; }

@media (max-width: 768px) {
  /* --- Top bar: one compact, swipeable row --- */
  .top-bar { padding: 6px 0; }
  .top-bar-inner { flex-direction: row !important; padding: 0 10px; gap: 0 !important; }
  .top-bar-left { display: none !important; }
  .top-bar-right {
    width: 100%; flex-wrap: nowrap !important; justify-content: flex-start !important;
    gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .top-bar-right::-webkit-scrollbar { display: none; }
  .top-bar-right > * { flex: 0 0 auto; }
  .top-nav-mode-btn, .top-action-btn { padding: 6px 10px !important; font-size: 0.72rem !important; height: 32px; }
  .theme-label, #top-btn-tree span, .ai-specialist-btn .badge-count { display: none !important; }
  .currency-pill { padding: 4px 8px !important; font-size: 0.7rem !important; }

  /* --- Header: logo left, badge right, single row --- */
  .main-header { padding: 10px 0 !important; }
  .header-inner { flex-direction: row !important; align-items: center !important; padding: 0 14px; }
  .brand-container { gap: 10px !important; }
  .logo-h3c { height: 30px !important; width: auto; }
  .partner-title { font-size: 0.62rem !important; letter-spacing: 0.06em; }
  .partner-sub { font-size: 0.6rem !important; }
  .header-kpis { display: none !important; }

  /* --- Hero: tighter, readable --- */
  .hero-section { padding: 22px 14px 18px !important; }
  .hero-chip { font-size: 0.66rem !important; padding: 5px 10px !important; margin-bottom: 12px !important; }
  .hero-title { font-size: 1.55rem !important; line-height: 1.18 !important; letter-spacing: -0.02em; margin-bottom: 10px !important; }
  .hero-subtitle {
    font-size: 0.88rem !important; line-height: 1.5 !important; margin-bottom: 16px !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .search-meta { flex-direction: column; align-items: stretch !important; gap: 8px; margin-top: 10px; }
  .search-meta > * { justify-content: center; }

  /* --- Quick filters: horizontal swipe row instead of a wall of chips --- */
  .quick-chips {
    flex-wrap: nowrap !important; justify-content: flex-start !important;
    overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: 12px -14px 0 !important;
    padding-left: 14px; padding-right: 14px; scroll-snap-type: x proximity;
  }
  .quick-chips::-webkit-scrollbar { display: none; }
  .quick-chips .chips-title { display: none; }
  .quick-chips .chip { flex: 0 0 auto; white-space: nowrap; font-size: 0.74rem !important; padding: 7px 12px !important; scroll-snap-align: start; }

  /* --- Category tabs --- */
  .category-nav { padding: 10px 12px !important; gap: 8px !important; scrollbar-width: none; }
  .category-nav::-webkit-scrollbar { display: none; }
  .cat-tab { padding: 8px 12px !important; font-size: 0.8rem !important; }

  /* --- Filter toolbar: neat 2-column grid --- */
  .toolbar-section { padding: 10px 12px !important; }
  .toolbar-inner { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; padding: 12px !important; }
  .toolbar-filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; width: 100%; }
  .filter-dropdown { flex-direction: column !important; align-items: stretch !important; gap: 4px !important; min-width: 0; }
  .filter-dropdown label { font-size: 0.64rem !important; text-transform: uppercase; letter-spacing: 0.06em; }
  .filter-dropdown select { width: 100% !important; min-width: 0 !important; font-size: 0.8rem !important; padding: 8px 10px !important; }
  .toolbar-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
  .view-mode-toggle { flex: 1; display: flex !important; }
  .view-mode-btn { flex: 1; justify-content: center; font-size: 0.7rem !important; padding: 8px 4px !important; line-height: 1.15; }
  .view-mode-btn svg { display: none; }

  /* --- Product cards: compact & professional --- */
  .grid-wrapper { padding: 6px 12px 90px !important; }
  .product-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .product-card { border-radius: 14px !important; }
  .card-top-bar { padding: 10px 14px !important; }
  .card-category-tag { font-size: 0.62rem !important; }
  .card-compliance-chip, .card-view-badge { display: none !important; }
  .card-media-wrapper { height: 190px !important; padding: 14px !important; }
  .card-img-el { max-height: 160px !important; object-fit: contain; }
  .card-body { padding: 14px !important; gap: 8px; }
  .card-model { font-size: 1.02rem !important; }
  .card-desc { font-size: 0.8rem !important; line-height: 1.45 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px !important; }
  .card-specs-row { gap: 6px !important; }
  .spec-chip { font-size: 0.66rem !important; padding: 3px 7px !important; }
  .card-price-box { padding: 10px 12px !important; margin-top: 6px !important; }
  .price-amount { font-size: 1.25rem !important; }
  .card-bom-warranty-row { font-size: 0.66rem !important; }
  .card-actions-row { gap: 8px !important; }
  .card-actions-row button { flex: 1; justify-content: center; padding: 10px 8px !important; font-size: 0.78rem !important; }
  .btn-card-compare { display: none !important; }

  /* --- Modals as full-height bottom sheets --- */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal { width: 100% !important; max-width: 100% !important; max-height: 94vh !important;
    border-radius: 18px 18px 0 0 !important; margin: 0 !important; }
  .modal-body { padding: 14px !important; }

  /* --- Floating AI button: icon only --- */
  .floating-ai-trigger { padding: 10px !important; border-radius: 50% !important; bottom: 14px !important; right: 14px !important; }
  .floating-ai-trigger .ai-trigger-info { display: none !important; }
  .floating-ai-trigger .ai-trigger-icon { font-size: 1.35rem; }

  /* Hide off-canvas drawers completely when closed so they never widen the page */
  .bom-drawer-overlay:not(.open), .ai-drawer-overlay:not(.open) { visibility: hidden; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.35rem !important; }
  .toolbar-filters { grid-template-columns: 1fr; }
}
.price-amount.enterprise-quote { font-family: inherit !important; font-size: 1.05rem !important; font-weight: 700; letter-spacing: 0; }
