/* Coast Airbrush Europe - Precision Performance Engineering Stitch Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --bg-main: #0b0b0d;
  --bg-surface: #131315;
  --bg-surface-lowest: #0e0e10;
  --bg-surface-low: #1c1b1d;
  --bg-surface-container: #201f21;
  --bg-surface-high: #2a2a2c;
  --bg-surface-highest: #353437;
  --bg-card: #141418;
  --bg-card-high: #1c1c22;
  --bg-input: #0b0b0d;
  
  --primary-red: #dc2626;
  --primary-dark: #b91c1c;
  --primary-tint: #ffb4ab;
  --primary-container: #dc2626;
  --on-primary: #690005;
  --on-primary-container: #fff6f5;
  
  --secondary: #c0c7d3;
  --accent-chrome: #d1d5db;
  --accent-chrome-light: #e5e1e4;
  --accent-cyan: #90cdff;
  --scale-green: #22c55e;
  --tertiary: #90cdff;
  --tertiary-container: #0078b2;
  
  --text-primary: #e5e1e4;
  --text-secondary: #c0c7d3;
  --text-muted: #9ca3af;
  
  --border-subtle: #27272a;
  --border-prominent: #3f3f46;
  --border-outline: #ac8884;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Material Symbols icon support */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Typography Classes */
.font-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.font-mono, .code-label, .part-number, .spec-data, .font-code-spec {
  font-family: 'Inter', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Pinstripe Accents */
.pinstripe {
  background-image: linear-gradient(90deg, transparent 0%, #dc2626 50%, transparent 100%);
  height: 2px;
  width: 100%;
}

.pinstripe-divider {
  height: 1px;
  background: #242429;
  position: relative;
}
.pinstripe-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background: #dc2626;
}

.metal-sheen {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.06) 100%);
}

.garage-filter {
  filter: contrast(1.15) saturate(0.85);
}

.glow-hover:hover {
  filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.6));
}

/* Modern High-End Industrial Component Cards & Unified Surfaces */
.industrial-card,
.b2b-card,
.support-card,
.shipping-card,
.policy-card,
.welcome-card {
  border: 1px solid #242429;
  background: #131315;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.7), 0 2px 6px -1px rgba(0, 0, 0, 0.5);
  position: relative;
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.industrial-card:hover,
.b2b-card:hover,
.support-card:hover,
.shipping-card:hover,
.policy-card:hover {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.85), 0 0 16px rgba(220, 38, 38, 0.2);
}

/* Official Review Modal Box - GPU-safe, no hover transform jitter or backdrop-filter drop */
.review-modal-box {
  position: relative;
  border-radius: 4px;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.review-modal-box:hover {
  transform: none !important;
}

/* Cart Drawer Item - Stable layout without transform jitter or red alert border */
.cart-drawer-item {
  background: #181a1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cart-drawer-item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: #202325;
  transform: none !important;
}

.product-studio-stage {
  background: radial-gradient(ellipse at 50% 40%, #26292c 0%, #101213 85%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
}
.product-studio-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Metal Spec Plates */
.metal-spec-plate {
  background: #c6c6c6;
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.metal-spec-plate::before, .metal-spec-plate::after {
  content: '×';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  line-height: 1;
  color: #484949;
}
.metal-spec-plate::before { left: 2px; }
.metal-spec-plate::after { right: 2px; }

.metal-spec-plate-red {
  background: #d32f2f;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.metal-spec-plate-red::before, .metal-spec-plate-red::after {
  content: '×';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  line-height: 1;
  color: #ffdad6;
}
.metal-spec-plate-red::before { left: 2px; }
.metal-spec-plate-red::after { right: 2px; }

/* Precision Performance Engineering Buttons */
.mech-btn-primary, .mech-button-primary {
  background: #dc2626;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border: 1px solid #ef4444;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.mech-btn-primary:hover, .mech-button-primary:hover {
  background: #b91c1c;
  border-color: #f87171;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}
.mech-btn-primary:active, .mech-button-primary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.mech-btn-secondary, .mech-button-secondary {
  background: #141418;
  color: #e5e1e4;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.mech-btn-secondary:hover, .mech-button-secondary:hover {
  background: #1c1c22;
  border-color: #9ca3af;
  color: #fff;
  transform: translateY(-1px);
}
.mech-btn-secondary:active, .mech-button-secondary:active {
  transform: scale(0.98);
}

/* Nav Links - High Contrast Precision Styling */
/* Nav Links - High Contrast Precision Styling */
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.nav-link.active {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.5);
  box-shadow: inset 0 -2px 0 0 #dc2626, 0 1px 6px rgba(220, 38, 38, 0.2);
  font-weight: 700;
}

/* Navigation Subcategory Dropdown Menus */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
  color: #d4d4d8 !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger,
.nav-dropdown-wrapper.is-open .nav-dropdown-trigger {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: block;
  min-width: 270px;
  z-index: 100 !important;
  transform: translateY(4px);
  transition: opacity 0.16s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.16s cubic-bezier(0.4, 0, 0.2, 1), transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.is-open .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.dropdown-chevron {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  color: #71717a;
}

.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.is-open .dropdown-chevron {
  transform: rotate(180deg) !important;
  color: #ffffff !important;
}

/* Custom Filter Checkbox */
.filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #c6c6c6;
  background: #0A0A0A;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-checkbox:checked {
  background: #d32f2f;
  border-color: #d32f2f;
}
.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Form Controls */
.mech-input {
  width: 100%;
  background-color: #0c0f0f !important;
  border: 2px solid #5a5d5d;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  border-radius: 2px;
  transition: all 0.15s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.mech-input:focus {
  background-color: #141717 !important;
  border-color: #d32f2f !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.4), inset 0 2px 4px rgba(0,0,0,0.6);
}
.mech-input::selection {
  background: #d32f2f;
  color: #ffffff;
}

/* High-Contrast Interactive Dropdown Selects */
.mech-select {
  width: 100%;
  background-color: #1a1d20 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  border: 1.5px solid #f59e0b !important; /* Prominent amber interactive border */
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 8px 38px 8px 12px !important;
  outline: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(245, 158, 11, 0.3) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.mech-select:hover {
  background-color: #262b30 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.55), 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
}

.mech-select:focus {
  background-color: #262b30 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.7), inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
}

.mech-select option {
  background-color: #16181a !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
}

/* Swatch Grid */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.swatch-item {
  border: 2px solid #c6c6c6;
  background: #1a1c1c;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swatch-item:hover {
  border-color: #ffb3ac;
  transform: translateY(-2px);
}
.swatch-item.selected {
  border-color: #d32f2f;
  background: #282a2b;
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.6);
}
.swatch-preview-box {
  height: 60px;
  width: 100%;
  border: 1px solid #484949;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Recipe Table Styling */
.mech-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #0c0f0f;
  border: 2px solid #c6c6c6;
}
.mech-table th {
  background: #1e2020;
  color: #c6c6c6;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 2px solid #c6c6c6;
  border-right: 1px solid #333535;
  text-align: left;
}
.mech-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #282a2b;
  border-right: 1px solid #282a2b;
  color: #e2e2e2;
}
.mech-table tr:hover {
  background: rgba(211, 47, 47, 0.08);
}
.mech-table tr.active-scale-step {
  background: rgba(34, 197, 94, 0.15);
  border-left: 4px solid #22c55e;
}

/* Modal Drawer Overlay - GPU-Isolated & Decoupled Backdrop */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  isolation: isolate;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.drawer-panel {
  background: #121414;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -8px 0px 24px 0px rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@media (max-height: 640px) {
  .drawer-panel {
    overflow-y: auto;
  }
}
.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-panel-left {
  background: #121414;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  border-right: 2px solid #c6c6c6;
  box-shadow: 8px 0px 0px 0px rgba(0,0,0,1);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.drawer-overlay.active .drawer-panel-left {
  transform: translateX(0);
}

.product-studio-stage {
  background: radial-gradient(circle at center, #26292b 0%, #121414 80%);
}

/* Modal Box (Center) - GPU-Isolated & Decoupled Backdrop to Prevent Hover Flickering */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  isolation: isolate;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Backdrop blur is on a separate pseudo-element plane behind .modal-box:
   Mouse movements, child hover transitions, and repaints inside .modal-box
   will NEVER invalidate, drop, or re-render the GPU backdrop filter! */
.modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.modal-box {
  background: #121414;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border: 2px solid #c6c6c6;
  box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.modal-box:hover {
  transform: translate3d(0, 0, 0) !important;
}

/* Quick Mix Modal - Precision Performance Engineering Theme Overrides */
#modal-quick-mix .modal-box {
  background: #121215 !important;
  border: 1px solid #27272a !important;
  border-radius: 8px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

#modal-quick-mix ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
#modal-quick-mix ::-webkit-scrollbar-track {
  background: #121215;
}
#modal-quick-mix ::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
#modal-quick-mix ::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Body lock & floating toast suppression during active modal sessions */
body:has(.modal-overlay.active),
body.modal-open {
  overflow: hidden !important;
}

body:has(.modal-overlay.active) .social-proof-toast,
body.modal-open .social-proof-toast {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body:has(.modal-overlay.active) .daive-floating-container,
body.modal-open .daive-floating-container {
  opacity: 0.2 !important;
  pointer-events: none !important;
}

/* Scale Assistant Real-time Display */
.scale-display {
  background: #0b0b0d;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
  padding: 24px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.scale-digits {
  font-size: 56px;
  font-weight: 800;
  color: #34d399;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  letter-spacing: 0.02em;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0f0f;
}
::-webkit-scrollbar-thumb {
  background: #484949;
  border: 1px solid #c6c6c6;
}
::-webkit-scrollbar-thumb:hover {
  background: #d32f2f;
}

/* Agent Chat & Advisory Card Styles */
.agent-chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: #121414;
  border: 2px solid #c6c6c6;
  box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
  overflow: hidden;
}

.agent-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-msg {
  display: flex;
  gap: 14px;
  max-width: 90%;
  animation: fadeIn 0.3s ease;
}

.agent-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.agent-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid #c6c6c6;
  background: #1e2020;
}

.agent-msg.ai .agent-avatar {
  background: #d32f2f;
  color: #fff;
  border-color: #c6c6c6;
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}

.agent-msg.user .agent-avatar {
  background: #282a2b;
  color: #38bdf8;
  border-color: #38bdf8;
}

.agent-bubble {
  background: #1e2020;
  border: 2px solid #c6c6c6;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e2e2;
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,1);
}

.agent-msg.user .agent-bubble {
  background: #282a2b;
  border-color: #38bdf8;
}

/* VAT Invoice & PO Printable Paper */
.invoice-paper {
  background: #ffffff;
  color: #0f172a;
  padding: 32px;
  font-family: 'Hanken Grotesk', sans-serif;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}
.invoice-paper th {
  background: #f1f5f9;
  color: #334155;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid #cbd5e1;
  text-transform: uppercase;
  font-size: 11px;
}
.invoice-paper td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}

/* Order Milestone Timeline */
.milestone-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 24px 0;
}
.milestone-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #333535;
  z-index: 1;
}
.milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 18%;
}
.milestone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e2020;
  border: 2px solid #c6c6c6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6c6c6;
  font-size: 18px;
  transition: all 0.3s ease;
}
.milestone-step.completed .milestone-icon {
  background: #22c55e;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
.milestone-step.active .milestone-icon {
  background: #d32f2f;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
  animation: pulse 2s infinite;
}
.milestone-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
  color: #c6c6c6;
}
.milestone-step.active .milestone-label {
  color: #ffb3ac;
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Category Filter Button States */
.category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  border: 1px solid rgba(198, 198, 198, 0.25);
  background: rgba(18, 20, 20, 0.7);
  color: #c6c6c6;
  border-radius: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.category-btn:hover {
  background: rgba(211, 47, 47, 0.15);
  border-color: rgba(211, 47, 47, 0.6);
  color: #ffffff;
  transform: translateX(2px);
}
.category-btn.active {
  background: #d32f2f !important;
  border-color: #ffdad6 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1), 0 0 10px rgba(211, 47, 47, 0.4);
}
.category-btn.active .category-count-badge {
  background: #ffffff !important;
  color: #d32f2f !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
}
.category-count-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(198, 198, 198, 0.3);
  color: #c6c6c6;
}

.category-group-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb3ac;
  background: rgba(211, 47, 47, 0.12);
  border-left: 3px solid #d32f2f;
  padding: 4px 8px;
  margin-top: 8px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-btn.is-subcat {
  padding-left: 16px;
  font-size: 10.5px;
  border-left: 2px solid rgba(211, 47, 47, 0.3);
  background: rgba(12, 14, 14, 0.6);
}
.category-btn.is-subcat:hover {
  border-left-color: #d32f2f;
}

/* Custom Scrollbar for Modular Panels */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #0c0f0f;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #333535;
  border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d32f2f;
}

/* Category Grid Cards (Shop by Department - Concept A Visual Imagery) */
.category-grid-card {
  background: #121515 !important;
  border: 2px solid #2e3333 !important;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
}
.category-grid-card:hover {
  background: #161a1a !important;
  border-color: #d32f2f !important;
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 1), 0 10px 25px -5px rgba(211, 47, 47, 0.35);
}
.category-grid-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
}
.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  filter: contrast(1.15) brightness(0.9);
}
.category-grid-card:hover .category-card-bg {
  transform: scale(1.08);
  opacity: 0.58;
  filter: contrast(1.25) brightness(1.05);
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 16, 0.45) 0%, rgba(14, 16, 16, 0.75) 50%, rgba(10, 12, 12, 0.98) 100%);
  transition: background 0.3s ease;
}
.category-grid-card:hover .category-card-overlay {
  background: linear-gradient(180deg, rgba(14, 16, 16, 0.3) 0%, rgba(14, 16, 16, 0.65) 45%, rgba(10, 12, 12, 0.95) 100%);
}

/* Top Horizontal Category Pills */
.top-category-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid #444848;
  background: #141717;
  color: #d1d5db;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  border-radius: 2px;
}
.top-category-pill:hover {
  background: #252a2a;
  border-color: #ffb3ac;
  color: #ffffff;
  transform: translateY(-1px);
}
.top-category-pill.active {
  background: #d32f2f !important;
  border-color: #ffdad6 !important;
  color: #ffffff !important;
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 1), 0 0 14px rgba(211, 47, 47, 0.5);
}
.top-category-pill .pill-count {
  font-size: 10px;
  padding: 1px 6px;
  background: #0a0c0c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffb3ac;
  border-radius: 2px;
}
.top-category-pill.active .pill-count {
  background: #ffffff !important;
  color: #d32f2f !important;
  border-color: #ffffff !important;
  font-weight: 800;
}

/* Sub-category Filter Pills */
.subcat-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid #383a3a;
  background: #0d0f0f;
  color: #9ca3af;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.subcat-pill:hover {
  border-color: #ffb3ac;
  color: #ffffff;
}
.subcat-pill.active {
  background: #d32f2f;
  border-color: #ffdad6;
  color: #ffffff;
  font-weight: 700;
}

/* KromaEdge Hero Cinematic Background Slideshow */
.hero-crossfade-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  background-color: #080a0a;
}
.hero-crossfade-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 12s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.04);
  will-change: opacity, transform;
  filter: contrast(1.05) brightness(1.02);
}
.hero-crossfade-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* Specular Studio Rim Glow behind floating specimen */
.hero-specimen-glow {
  position: absolute;
  top: 15%;
  right: 12%;
  width: 550px;
  height: 550px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.20) 0%, rgba(255, 183, 77, 0.08) 42%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
  animation: heroPulseGlow 8s ease-in-out infinite alternate;
}
@keyframes heroPulseGlow {
  0% { opacity: 0.65; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.05); }
}
/* Directional Mask guaranteeing 100% text legibility and contrast on left */
.hero-directional-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, 
    #080a0a 0%, 
    #080a0a 48%, 
    rgba(8, 10, 10, 0.92) 56%, 
    rgba(8, 10, 10, 0.40) 65%, 
    rgba(8, 10, 10, 0.05) 76%, 
    transparent 88%
  );
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-directional-overlay {
    background: linear-gradient(180deg, 
      rgba(8, 10, 10, 0.98) 0%, 
      rgba(8, 10, 10, 0.95) 55%, 
      rgba(8, 10, 10, 0.88) 100%
    );
  }
}
.hero-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.hero-indicator-dot.active {
  width: 28px;
  background: #d32f2f;
  border-color: #ffdad6;
  box-shadow: 0 0 12px rgba(211, 47, 47, 0.9);
}

/* Hero Showcase Active Stage */
.hero-stage-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s ease-out;
  pointer-events: none;
}
.hero-stage-img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-thumb-btn {
  opacity: 0.5;
  transition: all 0.2s ease;
}
.hero-thumb-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero-thumb-btn.active {
  opacity: 1;
  border-color: #d32f2f !important;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.8);
  transform: translateY(-1px);
}

/* Candy Red / Vibrant Pre-Order High-Contrast CTA */
.mech-btn-candy {
  background: linear-gradient(180deg, #ff2a2a 0%, #d81414 50%, #b70000 100%);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #ff7b72;
  box-shadow: 0 0 16px rgba(235, 34, 34, 0.4), 4px 4px 0px 0px rgba(0, 0, 0, 1);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.mech-btn-candy:hover {
  background: linear-gradient(180deg, #ff4444 0%, #eb1a1a 50%, #c40404 100%);
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 45, 45, 0.65), 5px 5px 0px 0px rgba(0, 0, 0, 1);
  transform: translate(-1px, -1px);
}
.mech-btn-candy:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 8px rgba(255, 45, 45, 0.4), 1px 1px 0px 0px rgba(0, 0, 0, 1);
}

/* Copied & Staged Row Glow Animation */
@keyframes rowHighlightPulse {
  0% {
    background-color: rgba(0, 216, 246, 0.35);
    box-shadow: inset 0 0 12px rgba(0, 216, 246, 0.5);
  }
  50% {
    background-color: rgba(0, 216, 246, 0.15);
    box-shadow: inset 0 0 4px rgba(0, 216, 246, 0.2);
  }
  100% {
    background-color: rgba(245, 158, 11, 0.15);
    box-shadow: none;
  }
}
.row-highlight-pulse {
  animation: rowHighlightPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Custom Industrial Toast Notification */
.custom-toast-item {
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.custom-toast-item.show {
  transform: translateX(0);
  opacity: 1;
}

/* Dynamic Free Shipping Progress Bar */
.shipping-progress-bar-fill {
  background: linear-gradient(90deg, #d32f2f 0%, #f59e0b 50%, #10b981 100%);
  transition: width 0.4s ease-out;
}
.shipping-progress-unlocked {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  animation: pulseShipping 2s infinite ease-in-out;
}
@keyframes pulseShipping {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.6)); }
  50% { filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.95)); }
}

/* Live Social Proof Activity Toast (Bottom-Left) */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  max-width: 360px;
  background: rgba(18, 20, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid #10b981;
  box-shadow: 0 16px 36px rgba(0,0,0,0.85), 0 0 1px rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 12px 14px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
}
.social-proof-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Floating AI Master Painter Badge (DAiVE) */
.daive-floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9995;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.daive-floating-container > * {
  pointer-events: auto;
}
.daive-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #d32f2f;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.5), 0 8px 16px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  background: #121415;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
}
.daive-avatar-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(211, 47, 47, 0.8), 0 10px 20px rgba(0, 0, 0, 0.9);
}
.daive-speech-bubble {
  background: rgba(18, 20, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 3px solid #d32f2f;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.daive-speech-bubble:hover {
  border-color: #ffdad6;
  background: rgba(28, 30, 32, 0.98);
}

/* 1-Click Spray Booth Bench Sheet Print Style */
@media print {
  body * {
    visibility: hidden;
  }
  #view-scale, #view-scale * {
    visibility: visible;
  }
  #view-scale {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px !important;
  }
  .industrial-card, .bg-surface-dim {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
  .scale-digits, #scale-current-component, .text-primary {
    color: #000000 !important;
  }
  nav, footer, #ai-chat-widget, button, .mech-btn-secondary, .mech-button-primary {
    display: none !important;
  }
}

/* ========================================================================= */
/* DAiVE CHAT UI & ADVANCED RESPONSE FORMATTING                              */
/* ========================================================================= */

.daive-heading {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #38bdf8;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.daive-paragraph {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
}

.daive-step-card {
  background: rgba(11, 15, 17, 0.85);
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  margin: 8px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.daive-step-card:hover {
  border-left-color: #ffb3ac;
  background: rgba(16, 21, 24, 0.95);
}

.daive-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  margin: 4px 0;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.daive-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 0 6px 6px 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #e2e8f0;
}

.daive-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
}

.daive-sub-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 3px 0 3px 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

#chat-window {
  width: 440px !important;
  max-width: 95vw !important;
}

#floating-dave-messages {
  max-height: 480px !important;
  min-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 #0c0f0f;
}

#floating-dave-messages::-webkit-scrollbar {
  width: 6px;
}
#floating-dave-messages::-webkit-scrollbar-track {
  background: #0c0f0f;
}
#floating-dave-messages::-webkit-scrollbar-thumb {
  background: #2e3333;
  border-radius: 3px;
}
#floating-dave-messages::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Sticky Header Department & Section Anchoring */
#dept-kroma-edge,
#dept-guns,
#dept-flakes,
#dept-basecoats-binders,
#dept-tapes,
#dept-vsionair,
#section-booth-proof,
#quick-guide-flake {
  scroll-margin-top: 5.5rem;
}







