/* ============================================
   Shopee Affiliate — Design System
   Premium Dark Mode + Glassmorphism
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — Shopee Orange */
  --brand-primary: #ee4d2d;
  --brand-primary-light: #ff6742;
  --brand-primary-dark: #d73211;
  --brand-gradient: linear-gradient(135deg, #ee4d2d 0%, #ff7849 50%, #ffb74d 100%);
  --brand-gradient-hover: linear-gradient(135deg, #ff6742 0%, #ff9a5c 50%, #ffc97d 100%);

  /* Accent */
  --accent-gold: #ffd700;
  --accent-green: #26c281;
  --accent-blue: #4a90d9;
  --accent-red: #e74c3c;
  --accent-purple: #9b59b6;

  /* Background — Dark Mode */
  --bg-body: #0a0e17;
  --bg-surface: rgba(18, 24, 38, 0.85);
  --bg-card: rgba(25, 32, 50, 0.7);
  --bg-card-hover: rgba(35, 44, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f0f2f5;
  --text-secondary: #a0aec0;
  --text-muted: #636e80;
  --text-accent: #ff7849;
  --text-on-brand: #ffffff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(238, 77, 45, 0.5);
  --border-glow: rgba(238, 77, 45, 0.2);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 40px rgba(238, 77, 45, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(238, 77, 45, 0.1);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-primary: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(238, 77, 45, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74, 144, 217, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(155, 89, 182, 0.04) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Header / Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__brand span {
  font-size: var(--text-2xl);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  flex-wrap: wrap;
}

.navbar__link {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

/* Mobile menu toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-sm);
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 77, 45, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #ffffff 0%, #ee4d2d 50%, #ffb74d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand-primary);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Section --- */
.section {
  padding: var(--space-3xl) 0;
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* --- Grid & Cards --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Product Card — Glassmorphism */
.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect */
  background: var(--bg-glass);
  overflow: hidden;
}

.card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 2px var(--space-sm);
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.card__badge--green {
  background: linear-gradient(135deg, #26c281, #2ecc71);
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  min-height: 2.8em;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  color: var(--accent-gold);
}

.card__sold {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand-primary);
}

.card__price-original {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.card__shop {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.card__shop-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-glass-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

/* Category Card */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-glow);
}

.cat-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 8px rgba(238, 77, 45, 0.2));
}

.cat-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.cat-card__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Comparison Table --- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table thead {
  background: rgba(238, 77, 45, 0.1);
}

.compare-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.compare-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.compare-table tbody tr {
  transition: background var(--transition-fast);
}

.compare-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table__product {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 250px;
}

.compare-table__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-glass);
}

.compare-table__name {
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compare-table__price {
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

/* --- Ranking List --- */
.rank-list {
  list-style: none;
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
  counter-increment: rank;
}

.rank-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.rank-item__number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-sm);
  flex-shrink: 0;
  background: var(--bg-glass-hover);
  color: var(--text-secondary);
}

.rank-item:nth-child(1) .rank-item__number {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}
.rank-item:nth-child(2) .rank-item__number {
  background: linear-gradient(135deg, #c0c0c0, #8a8a8a);
  color: white;
}
.rank-item:nth-child(3) .rank-item__number {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: white;
}

.rank-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-glass);
}

.rank-item__info {
  flex: 1;
  min-width: 0;
}

.rank-item__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.rank-item__value {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: var(--text-base);
  flex-shrink: 0;
  text-align: right;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--text-accent);
}

.breadcrumbs__sep {
  color: var(--text-muted);
  opacity: 0.5;
}

/* --- Analysis / Stats Box --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-box__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Tags / Badges --- */
.tag {
  display: inline-block;
  padding: 2px var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-glass-hover);
  color: var(--text-secondary);
}

.tag--discount {
  background: rgba(238, 77, 45, 0.15);
  color: var(--brand-primary);
}

.tag--official {
  background: rgba(38, 194, 129, 0.15);
  color: var(--accent-green);
}

.tag--preferred {
  background: rgba(74, 144, 217, 0.15);
  color: var(--accent-blue);
}

/* Star Rating */
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent-gold);
  font-size: var(--text-xs);
}

.stars--empty {
  color: var(--text-muted);
  opacity: 0.3;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: 0 4px 16px rgba(238, 77, 45, 0.3);
}

.btn--primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 24px rgba(238, 77, 45, 0.4);
  transform: translateY(-2px);
  color: var(--text-on-brand);
}

.btn--outline {
  background: transparent;
  color: var(--text-accent);
  border: 1px solid var(--border-card);
}

.btn--outline:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-focus);
  color: var(--text-accent);
}

.btn--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-3xl);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer a {
  color: var(--text-secondary);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination__item:hover,
.pagination__item--active {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
}

/* --- Prose / Article content --- */
.prose {
  color: var(--text-secondary);
  line-height: 1.8;
}

.prose h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-card);
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}

.prose p {
  margin-bottom: var(--space-md);
}

.prose ul, .prose ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.prose li {
  margin-bottom: var(--space-sm);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-brand { color: var(--brand-primary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.05s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.15s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.25s; }
.animate-fade-in:nth-child(6) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(7) { animation-delay: 0.35s; }
.animate-fade-in:nth-child(8) { animation-delay: 0.4s; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-hover) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
  }

  .hero__title { font-size: var(--text-3xl); }
  .section__title { font-size: var(--text-2xl); }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }

  .navbar__nav { display: none; }
  .navbar__toggle { display: block; }
  .navbar__nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
  }

  .hero__stats {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr; }
  .hero__title { font-size: var(--text-2xl); }

  .compare-table { font-size: var(--text-xs); }
  .compare-table th,
  .compare-table td {
    padding: var(--space-sm);
  }
}
