/* ═══════════════════════════════════════════════════════════════════════════
   LuggageIQ Dashboard — Dark Editorial Design System
   Aesthetic: High-contrast dark, editorial typography, sharp accents
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  --bg-base:       #080810;
  --bg-card:       #0f0f1a;
  --bg-card-2:     #141422;
  --bg-card-3:     #1a1a2e;
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.15);

  --text-primary:  #EDE8DA;
  --text-muted:    rgba(237,232,218,0.5);
  --text-dim:      rgba(237,232,218,0.3);

  --accent:        #FF6B35;
  --accent-green:  #00E676;
  --accent-blue:   #29B6F6;
  --accent-red:    #FF1744;
  --accent-yellow: #FFAB40;
  --accent-purple: #CE93D8;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.8);

  --brand-safari:   #FF6B35;
  --brand-skybags:  #4ECDC4;
  --brand-at:       #64B5F6;
  --brand-vip:      #EF5350;
  --brand-aristo:   #AB47BC;
  --brand-nasher:   #66BB6A;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.4); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  background: rgba(8,8,16,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  font-size: 20px;
  opacity: 0.8;
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--accent);
}

.nav-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,107,53,0.12);
}

.nav-back {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 80px 40px 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(255,107,53,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(41,182,246,0.06) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin-bottom: 48px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.stat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  border-radius: 40px;
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.stat-pill:hover {
  border-color: var(--accent);
  background: rgba(255,107,53,0.08);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 40px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: sticky;
  top: 60px;
  z-index: 90;
}

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

.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.brand-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-pill {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-weight: 500;
}

.brand-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.brand-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-input {
  width: 90px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.range-input:focus { border-color: var(--accent); }

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

.filter-select {
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filter-apply, .filter-reset {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.filter-apply {
  background: var(--accent);
  color: white;
}

.filter-apply:hover { background: #ff5722; transform: translateY(-1px); }

.filter-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.filter-reset:hover { border-color: var(--border-bright); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   KPI GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kpi-card {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}

.kpi-card:hover { background: var(--bg-card-2); }
.kpi-card.highlight { background: rgba(255,107,53,0.06); }
.kpi-card.accent { background: rgba(0,230,118,0.05); }
.kpi-card.warn { background: rgba(255,23,68,0.05); }

.kpi-icon { font-size: 22px; }

.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-value.small { font-size: 20px; }

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 60px 40px;
  border-bottom: 1px solid var(--border);
}

.section.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead th {
  background: var(--bg-card-2);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.comparison-table thead th:hover { color: var(--accent); }

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.comparison-table tbody tr:hover { background: rgba(255,107,53,0.05); }
.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.brand-cell {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.sentiment-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.sentiment-bar {
  height: 6px;
  border-radius: 3px;
  flex: 1;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.sentiment-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid;
}

.tier-badge.budget { color: #4FC3F7; border-color: #4FC3F7; background: rgba(79,195,247,0.08); }
.tier-badge.mid { color: #FFD54F; border-color: #FFD54F; background: rgba(255,213,79,0.08); }
.tier-badge.premium { color: #CE93D8; border-color: #CE93D8; background: rgba(206,147,216,0.08); }

.detail-btn {
  padding: 5px 12px;
  background: rgba(255,107,53,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.detail-btn:hover {
  background: var(--accent);
  color: white;
}

.loading-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHARTS GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
  overflow: hidden;
}

.chart-card:hover { border-color: var(--border-bright); }
.chart-card.span-2 { grid-column: span 2; }

.chart-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.chart-inner { min-height: 320px; }
.chart-card.span-2 .chart-inner { min-height: 360px; }

/* ═══════════════════════════════════════════════════════════════════════════
   INSIGHTS
   ═══════════════════════════════════════════════════════════════════════════ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.insight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.insight-card.severity-positive::before { background: var(--accent-green); }
.insight-card.severity-warning::before  { background: var(--accent-yellow); }
.insight-card.severity-critical::before { background: var(--accent-red); }
.insight-card.severity-info::before     { background: var(--accent-blue); }

.insight-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.insight-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insight-icon { font-size: 20px; }

.insight-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  flex: 1;
}

.insight-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.insight-badge.severity-positive { background: rgba(0,230,118,0.12); color: var(--accent-green); }
.insight-badge.severity-warning  { background: rgba(255,171,64,0.12); color: var(--accent-yellow); }
.insight-badge.severity-critical { background: rgba(255,23,68,0.12);  color: var(--accent-red); }
.insight-badge.severity-info     { background: rgba(41,182,246,0.12); color: var(--accent-blue); }

.insight-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.insight-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.insight-rec {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.rec-label {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.15);
}

.product-card-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.product-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.product-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,213,79,0.12);
  border: 1px solid rgba(255,213,79,0.3);
  border-radius: 12px;
  font-size: 13px;
  color: #FFD54F;
  font-weight: 600;
}

.discount-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 12px;
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRAND HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.brand-hero {
  position: relative;
  padding: 60px 40px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.brand-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 5% 50%, var(--brand-color, #FF6B35) 0%, transparent 70%);
  opacity: 0.07;
}

.brand-hero-content { position: relative; margin-bottom: 32px; }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.brand-hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.brand-tier-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.brand-kpis {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

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

.bkpi-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.bkpi-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROS / CONS
   ═══════════════════════════════════════════════════════════════════════════ */
.pros-card, .cons-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pros-card h3, .cons-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.theme-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.theme-item {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
}

.theme-item.positive {
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.15);
  color: rgba(237,232,218,0.85);
}

.theme-item.negative {
  background: rgba(255,23,68,0.06);
  border: 1px solid rgba(255,23,68,0.15);
  color: rgba(237,232,218,0.85);
}

.theme-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin: 4px;
  font-weight: 500;
}

.theme-chip.positive {
  background: rgba(0,230,118,0.10);
  border: 1px solid rgba(0,230,118,0.2);
  color: var(--accent-green);
}

.theme-chip.negative {
  background: rgba(255,23,68,0.10);
  border: 1px solid rgba(255,23,68,0.2);
  color: #FF6B6B;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT HERO & PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.product-hero {
  padding: 60px 40px 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,107,53,0.04) 0%, transparent 100%);
}

.product-crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.product-crumb a { color: var(--accent); text-decoration: none; }

.product-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
}

.product-meta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.price-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.price-big {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-was { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

.price-savings {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
}

.product-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pstat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.pstat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.pstat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.star-row { display: flex; gap: 2px; font-size: 16px; }
.star { color: rgba(255,255,255,0.15); }
.star.filled { color: #FFD54F; }
.star.half { color: #FFD54F; opacity: 0.5; }

.praise-card, .complaint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.praise-card h3, .complaint-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.muted { color: var(--text-dim); font-size: 13px; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE MISC
   ═══════════════════════════════════════════════════════════════════════════ */
.product-name { max-width: 260px; font-weight: 500; }
.price-cell { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.list-price-cell { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.rating-cell { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .hero, .section { padding: 40px 20px; }
  .filter-bar { padding: 16px 20px; position: static; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.span-2 { grid-column: span 1; }
  .section.two-col { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .product-stats-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kpi-card, .chart-card, .insight-card, .product-card {
  animation: fadeInUp 0.4s ease both;
}

.insight-card:nth-child(1) { animation-delay: 0.05s; }
.insight-card:nth-child(2) { animation-delay: 0.10s; }
.insight-card:nth-child(3) { animation-delay: 0.15s; }
.insight-card:nth-child(4) { animation-delay: 0.20s; }
.insight-card:nth-child(5) { animation-delay: 0.25s; }
.insight-card:nth-child(6) { animation-delay: 0.30s; }
.insight-card:nth-child(7) { animation-delay: 0.35s; }