/* ==========================================================================
   LAL10 × MYNTRA FASHION INTELLIGENCE PLATFORM - LUXURY CORPORATE DESIGN
   ========================================================================== */

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-hover: #f1f5f9;
  --border-card: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --lal10-gold: #d97706;
  --lal10-gold-light: #fef3c7;
  --myntra-pink: #ff3f6c;
  --accent-green: #10b981;
  --accent-green-light: #ecfdf5;
  --accent-red: #ef4444;
  --accent-red-light: #fef2f2;
  --accent-blue: #3b82f6;
  --accent-blue-light: #eff6ff;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f5f3ff;
  --accent-amber: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-drawer: -4px 0 24px rgba(15, 23, 42, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ==========================================================================
   APP LAYOUT (Sidebar + Main + Right Drawer)
   ========================================================================== */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 40;
}

.sidebar-brand-clean {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
}

.btn-hamburger {
  background: transparent;
  border: none;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-hamburger:hover {
  background: #f1f5f9;
}

/* Navigation Links */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  padding: 12px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.nav-item.active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  box-shadow: none;
}

.nav-item svg {
  flex-shrink: 0;
  color: inherit;
}

.badge-live-black {
  margin-left: auto;
  background: #0f172a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Bottom Sidebar User Profile */
.sidebar-footer-clean {
  padding: 16px 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-profile-row-clean {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-circle-black {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info-text-clean {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-info-text-clean strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.user-info-text-clean span {
  font-size: 11px;
  color: #64748b;
}

.btn-logout-clean {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.btn-logout-clean:hover {
  color: #dc2626;
}

/* ==========================================================================
   MAIN WRAPPER & TOP HEADER
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.top-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 30;
}

.header-search {
  width: 480px;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 8px 14px;
  gap: 10px;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.05);
  background: #ffffff;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: #0f172a;
  font-family: inherit;
}

.kbd-shortcut {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
}

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

.btn-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-date-range:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 50%;
  transition: var(--transition);
}

.icon-btn:hover {
  background: #f1f5f9;
}

.badge-dot-subtle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #0f172a;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.header-avatar-circle-black {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   CONTENT AREA & VIEW PANELS
   ========================================================================== */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* Common Header Styles */
.dashboard-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.breadcrumb-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.page-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 6px;
}

.btn-analyze-market {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.btn-analyze-market:hover {
  background: #1e293b;
}

/* ==========================================================================
   KPI STAT CARDS (5 Cards in a Row - Image 1)
   ========================================================================== */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-menu-dots {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.kpi-menu-dots:hover {
  color: #0f172a;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-value {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.kpi-trend {
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
}

.kpi-trend.positive {
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.kpi-trend.negative {
  color: #dc2626;
  background: #fee2e2;
}

.kpi-trend.neutral {
  color: #64748b;
  background: #f1f5f9;
}

.kpi-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
}

/* ==========================================================================
   CHARTS GRID (3 Columns - Image 1)
   ========================================================================== */
.dash-charts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.chart-desc {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.btn-link-arrow {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-link-arrow:hover {
  color: #0f172a;
}

.chart-body {
  flex: 1;
  position: relative;
  min-height: 180px;
}

/* Donut Chart Layout */
.donut-chart-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.donut-canvas-container {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  line-height: 1.1;
}

.donut-center-label strong {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.donut-center-label span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.custom-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  color: #475569;
  flex: 1;
}

.legend-value {
  font-weight: 700;
  color: #0f172a;
}

/* Geographic Demand */
.geo-demand-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.india-map-vector {
  flex-shrink: 0;
}

.geo-rank-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.geo-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.geo-rank-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.geo-num {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  width: 14px;
}

.geo-city {
  font-weight: 600;
  color: #0f172a;
}

.geo-share {
  font-weight: 700;
  color: #475569;
}

/* Top Trending Brands */
.trending-brands-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.trend-brand-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trend-brand-name {
  width: 110px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-bar-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.trend-bar-fill {
  height: 100%;
  background: #0f172a;
  border-radius: 3px;
}

.trend-percent {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  width: 48px;
  text-align: right;
}

/* Heatmap Matrix Table */
.heatmap-table-wrap {
  overflow-x: auto;
}

.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 11px;
}

.heatmap-table th {
  text-align: center;
  padding: 6px 4px;
  font-weight: 700;
  color: #94a3b8;
  font-size: 10px;
  border: none;
}

.heatmap-table th:first-child {
  text-align: left;
}

.heatmap-table td {
  padding: 4px;
  text-align: center;
  border: none;
}

.heatmap-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heatmap-cell {
  padding: 5px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  display: inline-block;
  min-width: 38px;
  background: #f1f5f9;
  color: #0f172a;
}

.hm-lvl-0 { background: #f8fafc; color: #94a3b8; }
.hm-lvl-1 { background: #f1f5f9; color: #0f172a; }
.hm-lvl-2 { background: #e2e8f0; color: #0f172a; }
.hm-lvl-3 { background: #cbd5e1; color: #0f172a; }
.hm-lvl-4 { background: #94a3b8; color: #0f172a; }

/* ==========================================================================
   AI INSIGHTS SECTION (Row 3 - Image 1)
   ========================================================================== */
.ai-insights-section {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ai-insights-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-chip-clean {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.ai-subtitle-text {
  font-size: 12px;
  color: #64748b;
}

.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ai-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.ai-card-icon-clean {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-card-content {
  flex: 1;
}

.ai-card-content h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.ai-card-content p {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.ai-card-arrow {
  margin-left: auto;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  align-self: center;
}

/* ==========================================================================
   VIEW 2: PRODUCT CATALOG (Image 2)
   ========================================================================== */
.catalog-hero-banner,
.compare-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.65) 60%, rgba(255,255,255,0.3) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-badge-right {
  position: relative;
  z-index: 2;
  text-align: right;
}

.banner-badge-right span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
}

.banner-badge-right strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

/* Catalog Metrics Row */
.catalog-metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.cat-metric-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cat-pill-icon.red { background: #fee2e2; }
.cat-pill-icon.gold { background: #fef3c7; }
.cat-pill-icon.orange { background: #ffedd5; }
.cat-pill-icon.purple { background: #f5f3ff; }
.cat-pill-icon.blue { background: #eff6ff; }

.cat-metric-pill .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.cat-metric-pill .val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cat-metric-pill strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.badge-tag.green { background: #d1fae5; color: #065f46; }
.badge-tag.red { background: #fee2e2; color: #991b1b; }
.badge-tag.neutral { background: #f1f5f9; color: #64748b; }

.cat-metric-pill .sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Category Filter Tabs Bar */
.catalog-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
}

.category-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.cat-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.cat-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.cat-tab-btn.active {
  background: #0f172a;
  color: white;
}

.tab-cnt {
  font-size: 10px;
  opacity: 0.75;
}

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

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.sort-select-wrap select {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: white;
  outline: none;
}

.btn-compare-action {
  background: #f1f5f9;
  border: 1px solid var(--border-card);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-compare-action:hover {
  background: #0f172a;
  color: white;
}

/* Catalog Main Layout */
.catalog-main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  position: relative;
}

.catalog-filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.filter-sidebar-header h3 {
  font-size: 14px;
  font-weight: 800;
}

.btn-clear {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-clear:hover {
  color: var(--myntra-pink);
}

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 6px 10px;
  gap: 6px;
}

.filter-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 11px;
  width: 100%;
}

.brand-filter-search input {
  width: 100%;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  outline: none;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-checkboxes-scroll {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  accent-color: #0f172a;
}

.check-item .cnt {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-muted);
}

.range-display-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

input[type="range"] {
  width: 100%;
  accent-color: #0f172a;
}

.toggle-block {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0f172a;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   PRODUCT DATA TABLE
   ========================================================================== */
.catalog-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.product-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.product-data-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.product-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.product-data-table tr:hover td {
  background: #f8fafc;
}

.prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  cursor: pointer;
}

.prod-thumb {
  width: 44px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.prod-info-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.prod-title {
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-sku {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.brand-badge {
  font-weight: 700;
  color: var(--text-primary);
}

.price-text {
  font-weight: 800;
  color: var(--text-primary);
}

.mrp-text {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-pill {
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.stock-text {
  font-weight: 700;
  color: #0f172a;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #d97706;
}

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-icon-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.table-icon-btn:hover {
  background: #0f172a;
  color: white;
}

.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.page-btn {
  padding: 4px 8px;
  border: 1px solid var(--border-card);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.page-btn.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

/* ==========================================================================
   SLIDE-OVER PRODUCT DETAIL DRAWER (Image 2) - RESPONSIVE & EXPANDABLE
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.product-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 620px;
  max-width: 95vw;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-card);
  box-shadow: -12px 0 50px rgba(15, 23, 42, 0.28);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  pointer-events: none;
}

.product-detail-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.product-detail-drawer.expanded {
  width: 880px;
  max-width: 98vw;
}

@media (max-width: 768px) {
  .product-detail-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
  }
  .product-detail-drawer.expanded {
    width: 100vw;
    max-width: 100vw;
  }
}

.product-table-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.product-table-row:hover {
  background-color: #f8fafc;
}

.product-table-row.selected-row {
  background-color: #f0fdf4 !important;
}

.drawer-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

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

/* Two-column hero split on desktop */
.drawer-hero-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 640px) {
  .drawer-hero-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.drawer-image-carousel {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-image-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.drawer-image-carousel:hover img {
  transform: scale(1.03);
}

.drawer-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--myntra-pink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 63, 108, 0.35);
}

.drawer-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 2px 0;
}

.drawer-thumb-img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.drawer-thumb-img:hover, .drawer-thumb-img.active {
  border-color: #0f172a;
  transform: translateY(-2px);
}

.drawer-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-info-block .brand-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drawer-info-block h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.drawer-product-title {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.drawer-sku {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.drawer-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.drawer-price-row .price {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.drawer-price-row .mrp {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}
.product-detail-drawer.expanded .drawer-spec-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-detail-drawer.expanded .drawer-hero-split {
  grid-template-columns: 280px 1fr;
}

.product-detail-drawer.expanded .drawer-dod-grid {
  grid-template-columns: repeat(4, 1fr);
}

.drawer-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.drawer-spec-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.15s ease;
}

.drawer-spec-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.drawer-spec-pill .lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.drawer-spec-pill .val {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  margin-top: 2px;
  display: block;
}

.drawer-savings-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.drawer-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.drawer-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.drawer-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}

.drawer-policy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.drawer-policy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}

.drawer-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
}

.drawer-meta-grid span {
  color: var(--text-muted);
}

.drawer-meta-grid strong {
  color: var(--text-primary);
  display: block;
}

.size-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.drawer-size-pill {
  border: 1px solid var(--border-card);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.drawer-ai-insight-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 11px;
  color: #78350f;
  line-height: 1.4;
}

.drawer-ai-insight-box strong {
  display: block;
  margin-bottom: 2px;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.btn-primary-full {
  background: #0f172a;
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-secondary-full {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 9px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
}

/* ==========================================================================
   VIEW 3: PRODUCT COMPARE SUITE (Image 3)
   ========================================================================== */
.compare-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.compare-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compare-prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.compare-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-remove-compare {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-remove-compare:hover {
  background: #fee2e2;
  color: #dc2626;
}

.compare-card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.compare-card-brand {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.compare-card-title {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.compare-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.compare-card-price-row .price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.compare-card-price-row .mrp {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.compare-card-price-row .disc {
  font-size: 11px;
  font-weight: 800;
  color: #dc2626;
}

.compare-add-slot {
  background: #fafafa;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 24px;
  min-height: 180px;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.compare-add-slot:hover {
  border-color: #ff3f6c;
  background: #fff5f7;
  color: #ff3f6c;
}

.compare-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.compare-metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-metrics-table tr {
  border-bottom: 1px solid var(--border-light);
}

.compare-metrics-table td {
  padding: 10px 12px;
}

.compare-metrics-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 160px;
}

.trend-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: inline-block;
}

.trend-badge.high { background: #d1fae5; color: #065f46; }
.trend-badge.growing { background: #d1fae5; color: #065f46; }
.trend-badge.stable { background: #ffedd5; color: #9a3412; }
.trend-badge.declining { background: #fee2e2; color: #991b1b; }

.compare-charts-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.comp-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.comp-chart-card h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.comp-chart-wrap {
  height: 120px;
  position: relative;
}

/* Compare Right AI Insights Sidebar (Image 3) */
.compare-insights-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.badge-beta {
  background: #f1f5f9;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.ai-insight-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-insight-item {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-insight-badge {
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-insight-badge.best_value { color: #059669; }
.ai-insight-badge.customer_fav { color: #d97706; }
.ai-insight-badge.inventory_strength { color: #3b82f6; }
.ai-insight-badge.watch_trend { color: #dc2626; }

.ai-insight-item p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-dark-full {
  background: #0f172a;
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-dark-full:hover {
  background: #1e293b;
}

/* ==========================================================================
   RIGHT SIDEBAR: LAL10 AI COPILOT DRAWER (Images 1 & 3)
   ========================================================================== */
.ai-copilot-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 340px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-drawer);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-copilot-drawer.active {
  right: 0;
}

.copilot-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copilot-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.red-lantern-badge {
  background: #fee2e2;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copilot-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-close-copilot {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

.copilot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.copilot-chat-bubble {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #78350f;
}

.copilot-chat-bubble.assistant {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

.copilot-chat-bubble.user {
  background: #0f172a;
  color: white;
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
}

.bubble-greeting {
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.copilot-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-action-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.quick-action-btn:hover {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.chat-stream-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copilot-footer {
  padding: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copilot-input-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
}

.copilot-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
}

.btn-copilot-send {
  background: #0f172a;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.suggested-queries-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggested-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.suggested-query-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 0;
  transition: var(--transition);
}

.suggested-query-item:hover {
  color: #0f172a;
  font-weight: 600;
}

.silk-quote-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.silk-quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.silk-quote-text {
  position: relative;
  z-index: 2;
  font-size: 11px;
}

.silk-quote-text strong {
  display: block;
  color: var(--text-primary);
}

.silk-quote-text span {
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS, BUTTONS & UTILITIES
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  background: #ffffff;
}

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

.modal-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: #0f172a;
  color: white;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fca5a5;
}

/* Live Console Logs */
.console-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.console-header {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.console-dot.green { background: #10b981; }

.btn-clear-logs {
  margin-left: auto;
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

.console-logs {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #38bdf8;
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Exports Grid */
.exports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.export-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-icon {
  font-size: 28px;
}

.export-card h3 {
  font-size: 15px;
  font-weight: 800;
}

.export-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   COLOR INTELLIGENCE & PALETTE STYLES
   ========================================================================== */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.color-swatch-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.color-swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.color-swatch-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.color-swatch-title-wrap {
  overflow: hidden;
}

.color-swatch-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.color-swatch-hex {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  text-transform: uppercase;
}

.color-swatch-metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding-top: 8px;
  border-top: 1px solid var(--border-color, #f1f5f9);
}

.color-swatch-metrics-row strong {
  color: var(--text-main, #0f172a);
}

.color-progress-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.color-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   BRANDS INTELLIGENCE SUITE
   ========================================================================== */
.brand-pricing-power-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.brand-pricing-power-badge.high {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.brand-pricing-power-badge.moderate {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.brand-pricing-power-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.brand-detail-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-detail-drawer.active {
  right: 0;
}

/* ==========================================================================
   SIZE-WISE INVENTORY & DAY-OVER-DAY STYLES
   ========================================================================== */
.tbl-size-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 3px;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tbl-size-pill.in-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tbl-size-pill.low-pill {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tbl-size-pill.oos-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  text-decoration: line-through;
  opacity: 0.8;
}

.tbl-size-more {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  cursor: help;
}

.tbl-dod-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  display: block;
  width: fit-content;
}

.tbl-dod-badge.drop {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tbl-dod-badge.hike {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tbl-dod-sales {
  font-size: 10px;
  font-weight: 700;
  color: #ea580c;
  margin-top: 2px;
}

.tbl-dod-restock {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  margin-top: 2px;
}

/* Movement Filter Chips Toolbar */
.mv-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px 0;
  margin-bottom: 8px;
}

.mv-chip {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mv-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.mv-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.date-select-wrap, .size-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.date-select-wrap select, .size-select-wrap select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

/* Drawer Size Breakdown Table */
.drawer-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 8px;
}

.drawer-size-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-size-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.drawer-size-bar-wrap {
  width: 60px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.drawer-size-bar {
  height: 100%;
  border-radius: 3px;
  background: #10b981;
}

.drawer-size-bar.low {
  background: #f59e0b;
}

.drawer-size-bar.oos {
  background: #ef4444;
}

/* Drawer Day-over-Day Card */
.drawer-dod-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.drawer-dod-card h4 {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-dod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
}

.drawer-dod-item {
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.drawer-dod-item span {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.drawer-dod-item strong {
  font-size: 13px;
  color: #0f172a;
  font-weight: 800;
}

.drawer-dod-item small {
  font-size: 10px;
  font-weight: 700;
}

/* Day over day view layout */
.dod-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dod-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.dod-kpi-card .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.dod-kpi-card .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.dod-kpi-card .value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.dod-kpi-card .subtext {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.dod-kpi-card .subtext.warn {
  color: #ea580c;
}

/* Size intelligence section */
.size-intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.size-intel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.size-intel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.size-intel-card .size-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.size-intel-card .size-units {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  margin: 4px 0;
}

.size-intel-card .size-oos-rate {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.size-intel-card .size-bar-wrap {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.size-intel-card .size-bar-fill {
  height: 100%;
  background: #059669;
}

/* ============================================================ */
/* BRAND COMPARATOR SUITE STYLING (LAL10 FASHION INTELLIGENCE)  */
/* ============================================================ */

/* Sidebar status box & footer refinements */
.sidebar-status-box {
  margin: 0 12px 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

.sidebar-status-box .status-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
  font-weight: 700;
  font-size: 10px;
}

.sidebar-status-box .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sidebar-user-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.sidebar-sub-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-sub-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 1. Header Row */
.comparator-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 2px;
}

.comparator-breadcrumb {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.comparator-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 5px 0;
}

.comparator-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.comparator-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comparator-tagline {
  font-size: 12px;
  font-style: italic;
  color: #64748b;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
}

.btn-export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-export-pdf:hover {
  background: #1e293b;
}

/* 2. Filter Bar */
.comparator-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.filter-col-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.comparator-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.02em;
}

.comparator-select-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  gap: 8px;
  position: relative;
}

.comparator-select-wrap select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  padding-right: 20px;
}

.comparator-select-wrap .dropdown-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.filter-col-brands {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comparator-brands-pill-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 8px;
  min-height: 36px;
}

.brand-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
}

.brand-pill-remove {
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.15s ease;
}

.brand-pill-remove:hover {
  color: #ef4444;
}

.brand-pill-add-btn {
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  font-weight: 600;
}

.brand-pill-add-btn:hover {
  border-color: #0f172a;
  color: #0f172a;
}

.filter-actions-group {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 16px;
}

.btn-comp-apply {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-comp-apply:hover {
  background: #1e293b;
}

.btn-comp-reset {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-comp-reset:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* 3. Six KPI Summary Cards */
.comparator-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.comparator-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.comp-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.comp-kpi-lbl {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}

/* 4. Row 2: 5 Brand Cards + 1 Tracking Coverage Card (6 items) */
.comparator-brand-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.comparator-brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  min-height: 175px;
}

.brand-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.brand-logo-text {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-dots-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.brand-prods-lbl {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.brand-prods-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.brand-metrics-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.brand-metric-col {
  display: flex;
  flex-direction: column;
}

.brand-metric-lbl {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 500;
}

.brand-metric-num {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1px;
}

.sparkline-svg {
  width: 54px;
  height: 18px;
  margin-top: 4px;
}

.brand-growth-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

/* 6th Card: Tracking Coverage */
.comparator-tracking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.tracking-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.tracking-head .info-icon {
  font-size: 11px;
  color: #94a3b8;
}

.tracking-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.track-brand-name {
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  width: 66px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-progress-bar {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.track-progress-fill {
  height: 100%;
  background: #0f172a;
  border-radius: 3px;
}

.track-pct {
  font-size: 9.5px;
  font-weight: 700;
  color: #0f172a;
  width: 26px;
  text-align: right;
}

.tracking-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  margin-top: 4px;
}

.tracking-dates {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tracking-caption {
  font-size: 8.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 5. Row 3: 3 Bar Charts + 1 Editorial Promo Card (4 Columns) */
.comparator-charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.comparator-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chart-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.chart-card-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.btn-card-dots {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.chart-canvas-box {
  height: 175px;
  position: relative;
}

/* Card 4: Editorial Promo Card */
.comparator-promo-card {
  background-image: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.85) 100%), url('assets/editorial_promo.jpg');
  background-size: cover;
  background-position: center top;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.promo-inner-overlay {
  position: relative;
  z-index: 2;
}

.promo-text {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  max-width: 82%;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.promo-circle-btn {
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.promo-circle-btn:hover {
  transform: scale(1.06);
}

/* 6. Row 4: Top Products by Brand (5 Columns) */
.comparator-top-products-wrap {
  margin-bottom: 22px;
}

.top-products-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.top-products-heading {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.top-products-subheading {
  font-size: 11.5px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.top-products-view-all {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.top-products-view-all:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.top-products-columns-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.top-products-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.col-header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.col-brand-name {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
}

.badge-top3 {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-mini-row:last-child {
  border-bottom: none;
}

.product-mini-row:hover {
  background: #f8fafc;
  border-radius: 6px;
}

.product-rank-num {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  width: 12px;
  text-align: center;
}

.product-thumb-img {
  width: 36px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.product-info-col {
  flex: 1;
  min-width: 0;
}

.product-mini-title {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-mini-meta {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* 7. Row 5: Floating Key Insight Action Bar */
.comparator-floating-insight-bar {
  background: #0f172a;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.15);
  margin-top: 8px;
  margin-bottom: 24px;
}

.floating-insight-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.insight-pill-badge {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.insight-text-content {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  font-weight: 400;
}

.btn-comp-generate-report {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-comp-generate-report:hover {
  background: #f1f5f9;
}

/* Brand Picker Modal */
.brand-picker-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}

.brand-picker-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.brand-picker-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.brand-picker-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.brand-picker-close-btn:hover {
  color: #0f172a;
}

.brand-picker-search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.brand-picker-search-input:focus {
  border-color: #0f172a;
}

.brand-picker-list {
  padding: 8px 12px 16px;
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.brand-picker-item:hover {
  background: #f1f5f9;
}

.brand-picker-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.brand-picker-item-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ============================================================ */
/* SUB-LAYOUT & SECONDARY INTELLIGENCE SIDEBARS */
/* ============================================================ */

.sub-layout-container {
  display: flex;
  min-height: calc(100vh - 60px);
  width: 100%;
}

.sub-sidebar {
  width: 250px;
  min-width: 250px;
  border-right: 1px solid #e2e8f0;
  background: #fbfcfd;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease;
  box-sizing: border-box;
}

.sub-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
}

.sub-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sub-sidebar-title-wrap {
  flex: 1;
}

.sub-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
}

.sub-sidebar-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 3px 0 0;
  line-height: 1.35;
}

.sub-sidebar-toggle-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sub-sidebar-toggle-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.sub-sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
}

.sub-sidebar-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: #0f172a;
  width: 100%;
}

.sub-sidebar-search input::placeholder {
  color: #94a3b8;
}

/* Category Tree */
.category-tree-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  cursor: pointer;
}

.group-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
}

.category-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-subgroup-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  border-radius: 6px;
}

.category-leaf-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 14px;
}

.category-leaf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.category-leaf-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.category-leaf-item.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 650;
}

.category-leaf-item.with-icon {
  padding-left: 8px;
}

.leaf-icon {
  font-size: 12px;
  width: 14px;
  text-align: center;
}

/* Sub-Nav Menu (Fabric) */
.sub-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.sub-nav-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sub-nav-menu-item.active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 750;
}

/* Sidebar Filters */
.sub-sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.sub-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.sub-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 6px 10px;
  gap: 8px;
}

.sub-select-wrap select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.sub-select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #94a3b8;
}

.gender-pills-row {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 7px;
}

.gender-pill {
  flex: 1;
  padding: 5px 0;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.gender-pill.active {
  background: #0f172a;
  color: #ffffff;
}

.sub-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  padding: 2px 0;
}

.sub-check-item input[type="checkbox"] {
  accent-color: #0f172a;
  margin-right: 6px;
}

.check-text {
  flex: 1;
}

.check-count {
  font-size: 11px;
  color: #94a3b8;
}

.scope-accordions-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 6px;
}

.scope-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.scope-acc-row svg {
  color: #94a3b8;
}

.sub-filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-sub-reset {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  color: #475569;
  cursor: pointer;
}

.btn-sub-apply {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #0f172a;
  border: none;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
}

/* Main Content Area in Sub-Layout */
.sub-view-main {
  flex: 1;
  padding: 22px 26px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header & Quote */
.intel-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.intel-breadcrumb {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.intel-title {
  font-size: 26px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.6px;
  margin: 0;
}

.intel-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 4px 0 0;
}

.intel-quote {
  font-size: 12px;
  font-style: italic;
  color: #64748b;
  text-align: right;
  line-height: 1.4;
}

.intel-quote-author {
  font-style: normal;
  font-weight: 600;
  color: #0f172a;
}

.btn-intel-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

/* Tabs */
.intel-tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0;
  margin-top: -6px;
}

.intel-tab-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
}

.intel-tab-btn:hover {
  color: #0f172a;
}

.intel-tab-btn.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 750;
}

/* KPI Cards */
.intel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.intel-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.intel-kpi-card .kpi-icon-box {
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intel-kpi-card .kpi-text-icon {
  font-size: 14px;
  font-weight: 850;
  color: #0f172a;
}

.intel-kpi-card .kpi-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.intel-kpi-card .kpi-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.intel-kpi-card .kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0;
}

.intel-kpi-card .kpi-val {
  font-size: 22px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.intel-kpi-card .kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.kpi-badge.kpi-up {
  color: #0f172a;
  background: #f1f5f9;
}

.kpi-badge.kpi-down {
  color: #64748b;
  background: #f1f5f9;
}

.intel-kpi-card .kpi-subtext {
  font-size: 11px;
  color: #64748b;
}

/* 3-Column Grid */
.intel-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.intel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.intel-card.full-width-card {
  grid-column: 1 / -1;
}

.intel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.intel-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.intel-card-subtle {
  font-weight: 500;
  color: #64748b;
  font-size: 11.5px;
}

.intel-card-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0;
}

.intel-card-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
}

.intel-card-link:hover {
  text-decoration: underline;
}

.intel-select-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.intel-select-pill select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.intel-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.intel-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.intel-mini-table th {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 6px;
  text-align: left;
}

.intel-mini-table td {
  padding: 7px 6px;
  border-bottom: 1px solid #f8fafc;
  color: #1e293b;
}

/* Charts & Legends */
.intel-chart-container {
  width: 100%;
  position: relative;
}

.intel-chart-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #475569;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.dot-black {
  background: #0f172a;
}

.legend-dot.dot-grey {
  background: #94a3b8;
}

/* Donut Layout */
.donut-chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.donut-canvas-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.donut-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-badge strong {
  font-size: 15px;
  font-weight: 850;
  color: #0f172a;
  display: block;
}

.donut-center-badge span {
  font-size: 10px;
  color: #64748b;
}

.donut-legend-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
}

.donut-legend-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Progress Lists (Colors, Fabrics) */
.intel-progress-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.intel-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.intel-progress-name {
  width: 70px;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intel-progress-track {
  flex: 1;
  height: 14px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.intel-progress-fill {
  height: 100%;
  background: #0f172a;
  border-radius: 3px;
}

.intel-progress-cnt {
  width: 46px;
  text-align: right;
  color: #475569;
  font-weight: 600;
}

.intel-progress-share {
  width: 42px;
  text-align: right;
  color: #64748b;
}

/* Ranked Swatches (Fabric) */
.ranked-swatch-list, .ranked-growth-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ranked-swatch-item, .ranked-growth-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.swatch-rank {
  font-size: 11px;
  color: #64748b;
  width: 14px;
}

.fabric-swatch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.swatch-name {
  width: 80px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.growth-badge-text {
  font-size: 11.5px;
  font-weight: 750;
  color: #0f172a;
  width: 55px;
  text-align: right;
}

/* Swatch Circles Row (Top Colors by Fabric) */
.swatch-circles-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 4px;
}

.swatch-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.swatch-circle-name {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.swatch-circle-share {
  font-size: 10px;
  color: #64748b;
}

/* Heatmap Grid Row */
.intel-grid-heatmap-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.heatmap-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 11.5px;
}

.heatmap-matrix-table th {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  padding: 6px 4px;
  text-align: center;
}

.heatmap-matrix-table th:first-child {
  text-align: left;
  padding-left: 6px;
}

.heatmap-matrix-table td:first-child {
  font-weight: 700;
  color: #0f172a;
  padding-left: 6px;
}

.heatmap-cell {
  text-align: center;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.1s ease;
}

.heatmap-cell:hover {
  transform: scale(1.04);
}

/* Fabric Insights */
.fabric-insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fabric-insight-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.insight-num-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
}

.insight-item-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

/* Brands by Scale */
.brand-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brand-scale-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.scale-card-count {
  font-size: 18px;
  font-weight: 850;
  color: #0f172a;
  margin: 2px 0;
}

.scale-card-sub {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 6px;
}

.scale-brand-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scale-brand-chip {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.scale-more-link {
  font-size: 10.5px;
  color: #64748b;
  font-style: italic;
  margin-top: 2px;
}

/* Price Stats Grid in Scope */
.scope-price-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.scope-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scope-stat-box strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.scope-stat-box span {
  font-size: 10px;
  color: #64748b;
}

/* Top Products Row */
.intel-top-products-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.intel-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.intel-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.intel-product-rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intel-product-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}

.intel-prod-brand {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.intel-prod-title {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intel-prod-price {
  font-size: 14px;
  font-weight: 850;
  color: #0f172a;
}

.intel-prod-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 4px;
  margin-top: 2px;
}

/* Key Insight Bar */
.intel-key-insight-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.insight-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.insight-bulb-icon {
  font-size: 18px;
}

.insight-bar-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #cbd5e1;
}

.insight-bar-text strong {
  color: #ffffff;
  margin-right: 8px;
}

.btn-insight-action {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 16px;
  transition: background 0.15s ease;
}

.btn-insight-action:hover {
  background: #f1f5f9;
}

/* ============================================================ */
/* PRICE & COLOR INTELLIGENCE SUITE STYLES                       */
/* ============================================================ */
.intel-page-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.intel-filter-sidebar {
  width: 250px;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.intel-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.intel-filter-header h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
}

.intel-btn-reset {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.intel-btn-reset:hover {
  color: #0f172a;
}

.intel-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intel-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.intel-select-wrapper select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.84rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.intel-select-wrapper select:focus {
  border-color: #0f172a;
}

.intel-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  background: #f8fafc;
}

.intel-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.82rem;
  outline: none;
  color: #0f172a;
}

.intel-checkbox-list {
  max-height: 125px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.intel-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.intel-check-label input[type="checkbox"] {
  accent-color: #0f172a;
  cursor: pointer;
}

.intel-pill-group {
  display: flex;
  gap: 6px;
}

.intel-pill {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.intel-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.intel-btn-apply {
  width: 100%;
  padding: 9px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.intel-btn-apply:hover {
  background: #1e293b;
}

/* Main content */
.intel-main-content {
  flex: 1;
  min-width: 0;
}

.intel-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.intel-breadcrumbs {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.intel-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.intel-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.intel-quote-tag {
  font-style: italic;
  font-size: 0.82rem;
  color: #64748b;
  text-align: right;
  max-width: 280px;
}

.intel-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.intel-tab-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.intel-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.intel-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.intel-kpi-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.intel-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.intel-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.intel-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intel-kpi-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.intel-kpi-badge.positive {
  background: #ecfdf5;
  color: #059669;
}

.intel-kpi-badge.neutral {
  background: #f1f5f9;
  color: #64748b;
}

.intel-kpi-badge.negative {
  background: #fef2f2;
  color: #dc2626;
}

.intel-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.intel-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 3px 0;
  letter-spacing: -0.3px;
}

.intel-kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.intel-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.intel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.intel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.intel-card-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.intel-card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.intel-link-view {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.intel-link-view:hover {
  text-decoration: underline;
}

.intel-trend-badge {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.intel-chart-wrap {
  position: relative;
  width: 100%;
}

.intel-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.intel-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 6px 4px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

.intel-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #f8fafc;
  color: #1e293b;
  font-size: 0.8rem;
}

.intel-table.heatmap-table th,
.intel-table.heatmap-table td {
  text-align: center;
  font-size: 0.76rem;
  padding: 6px 2px;
}

.intel-table.heatmap-table th:first-child,
.intel-table.heatmap-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.heatmap-cell {
  border-radius: 4px;
  padding: 4px;
  font-weight: 600;
}

/* Horizontal Ranked Bars */
.intel-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.intel-rank-name {
  width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #334155;
}

.intel-rank-bar-wrap {
  flex: 1;
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.intel-rank-bar-fill {
  height: 100%;
  background: #0f172a;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.intel-rank-val {
  width: 60px;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8rem;
}

/* Opportunities */
.intel-opps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-opp-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.35;
}

.intel-opp-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Key insight banner */
.intel-insight-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.intel-insight-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intel-insight-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 750;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 16px;
  white-space: nowrap;
}

.intel-insight-text {
  font-size: 0.84rem;
  color: #e2e8f0;
}

.intel-btn-report {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-weight: 750;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.intel-btn-report:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   PIXEL-PERFECT PRODUCT CATALOG VIEW (MATCHING IMAGES 1 & 2)
   ========================================================================== */
#view-catalog {
  margin: -24px -28px -40px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

#view-catalog .sub-layout-container {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#view-catalog .analysis-scope-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 18px 16px;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#view-catalog .sub-main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 28px 40px;
  background: #f8fafc;
  box-sizing: border-box;
}

/* Catalog Filter Tabs */
#catalogTabNav .intel-tab-btn {
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
}

#catalogTabNav .intel-tab-btn.active {
  color: #0f172a;
  font-weight: 750;
}

#catalogTabNav .intel-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* Grid & List Toggle Buttons */
#btnCatalogGridView.active, #btnCatalogListView.active {
  background: #0f172a !important;
  color: #ffffff !important;
}

#btnCatalogGridView, #btnCatalogListView {
  transition: all 0.15s ease;
}

/* Grid Card Hover Effects */
#catalogGridViewContainer > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   CTO Executive Filter Bar & Analytics Components
   ========================================================================== */
.cto-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
}

.cto-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.cto-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cto-filter-title {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.cto-filter-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 12px;
}

.cto-filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.cto-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cto-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cto-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cto-price-inputs input {
  width: 80px;
  padding: 6px 8px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  color: #0f172a;
}

.cto-price-inputs input:focus {
  border-color: #0f172a;
}

.cto-dash {
  color: #94a3b8;
  font-weight: 600;
}

.btn-cto-apply {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-cto-apply:hover {
  background: #334155;
}

.cto-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cto-chip {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cto-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cto-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.cto-select {
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.cto-select:focus {
  border-color: #0f172a;
}

/* CTO Pricing Metrics & Brand Table */
.cto-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.cto-metric-row:last-child {
  border-bottom: none;
}

.cto-m-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
}

.cto-m-val {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
}

.cto-m-val.highlight {
  font-size: 16px;
  color: #0284c7;
}

.cto-m-val.sub {
  font-size: 12.5px;
  color: #475569;
}

.scale-tier-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-tier-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.scale-name {
  font-weight: 600;
  color: #334155;
}

.scale-val {
  font-weight: 700;
  color: #0f172a;
}

.brand-valuation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.brand-valuation-table th {
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand-valuation-table td {
  padding: 8px 10px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.brand-valuation-table tr:hover td {
  background: #f8fafc;
}

/* CTO Dual-Thumb Drag Range Slider */
.cto-slider-wrap {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
}

.cto-slider-track-bg {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  top: 11px;
  z-index: 1;
}

.cto-slider-track-fill {
  position: absolute;
  height: 6px;
  background: #0f172a;
  border-radius: 3px;
  top: 11px;
  z-index: 2;
}

.cto-range-input {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
}

.cto-range-input::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: grab;
  transition: transform 0.1s ease;
}

.cto-range-input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.18);
  background: #0284c7;
}





