/* ═══════════════════════════════════════════════════
   SOLARSPECS GLOBAL — Design System v1
   Professional dark glass-morphism UI for solar PV data
   ═══════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────
   1. ROOT VARIABLES — design tokens
   ──────────────────────────────────────────────────── */
:root {
  /* Color Palette */
  --color-bg:          #0a0a1a;
  --color-bg-elevated: #0e0e22;
  --color-primary:     #fbbf24;
  --color-primary-dim: #f59e0b;
  --color-purple:      #8b5cf6;
  --color-success:     #34d399;
  --color-info:        #38bdf8;
  --color-warning:     #f59e0b;
  --color-danger:      #f87171;

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary: rgba(255,255,255,0.55);
  --text-muted:     rgba(255,255,255,0.35);
  --text-dim:       rgba(255,255,255,0.2);

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.025);
  --glass-bg-hover:  rgba(255,255,255,0.055);
  --glass-border:    rgba(255,255,255,0.06);
  --glass-border-hi: rgba(251,191,36,0.3);
  --glass-blur:      16px;
  --glass-blur-heavy:24px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.25);
  --shadow-heavy:  0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 20px rgba(251,191,36,0.12);
  --shadow-glow-lg:0 0 40px rgba(251,191,36,0.18);

  /* Motion */
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width: 72rem;     /* 1152px */
  --header-height: 64px;
}


/* ────────────────────────────────────────────────────
   2. RESET + BASE
   ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
a:hover { color: var(--color-primary); }

img { max-width: 100%; height: auto; display: block; }

strong { font-weight: 700; color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(251,191,36,0.25);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

.no-select { user-select: none; }


/* ────────────────────────────────────────────────────
   3. AMBIENT BACKGROUND — floating gradient blobs
   ──────────────────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-bg::before,
.ambient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: ambientFloat 20s ease-in-out infinite alternate;
}
.ambient-bg::before {
  width: 600px; height: 600px;
  background: var(--color-primary);
  top: -200px; right: -100px;
}
.ambient-bg::after {
  width: 500px; height: 500px;
  background: var(--color-purple);
  bottom: -150px; left: -100px;
  animation-delay: -10s;
  animation-duration: 25s;
}
@keyframes ambientFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Grid noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(251,191,36,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(139,92,246,0.05) 0%, transparent 50%);
  pointer-events: none;
}


/* ────────────────────────────────────────────────────
   4. GLASS CARDS
   ──────────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}
.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hi);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}
.glass-static {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
}


/* ────────────────────────────────────────────────────
   5. TYPOGRAPHY
   ──────────────────────────────────────────────────── */
.sun-gradient,
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dim) 50%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-dim       { color: var(--text-dim); }

.heading-section {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 2px solid var(--color-primary);
  padding-left: 1rem;
}
.heading-section.accent {
  color: var(--color-primary);
}
.label-tiny {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.text-stat {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }


/* ────────────────────────────────────────────────────
   6. NAVIGATION
   ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--text-primary); }
.site-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: #000;
  flex-shrink: 0;
}
.site-logo .logo-text-amber { color: var(--color-primary); }

/* Desktop nav */
.nav-desktop {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(251,191,36,0.06);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}
.mobile-toggle:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  display: none;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal) var(--ease-out);
}
/* Root pages toggle 'open', product/brand pages toggle 'hidden' (misleading name — both show the menu) */
.mobile-nav.open,
.mobile-nav.hidden {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 0 1.5rem;
}
.mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-fast) ease;
}
.mobile-nav-links a:hover { color: var(--color-primary); }
.mobile-close {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
}


/* ────────────────────────────────────────────────────
   7. HERO SECTION
   ──────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(251,191,36,0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Hero search bar */
.search-hero {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}
.search-hero input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 3.5rem 1.25rem 2rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.search-hero input::placeholder { color: var(--text-dim); }
.search-hero input:focus {
  border-color: rgba(251,191,36,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 3px rgba(251,191,36,0.08);
}
.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.search-clear:hover { background: rgba(255,255,255,0.15); color: var(--text-primary); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stat-card {
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-card .stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2rem 0 2.5rem; }
  .search-hero input { font-size: 1rem; padding: 1rem 3rem 1rem 1.25rem; }
}


/* ────────────────────────────────────────────────────
   8. PRODUCT CARDS
   ──────────────────────────────────────────────────── */
.product-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.product-card:hover { color: inherit; }

.product-card .card-logo {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.product-card .card-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
}
.product-card .card-initials {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  border-radius: var(--radius-sm);
}

.product-card .card-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-card .card-model {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-card .card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-card .spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.product-card .spec-pill .spec-val {
  font-weight: 800;
  color: var(--text-primary);
}

.product-card .card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.product-card .card-actions .btn-sm {
  flex: 1;
  text-align: center;
}

.product-card .card-tier {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* Hover lift & glow */
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hi);
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Logo fallback */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-initials-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}


/* ────────────────────────────────────────────────────
   9. SEARCH DROPDOWN
   ──────────────────────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 30, 0.98);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  animation: dropdownSlide 0.2s var(--ease-out);
}
@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-dropdown-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.search-dropdown-item:hover,
.search-dropdown-item.active {
  background: rgba(255,255,255,0.04);
  border-color: rgba(245,158,11,0.15);
}
.search-dropdown-item:hover .dropdown-item-name { color: var(--color-primary); }

.dropdown-item-logo {
  width: 40px; height: 40px;
  border-radius: 0.75rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.dropdown-item-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
}
.dropdown-item-initial {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.dropdown-item-info { flex: 1; min-width: 0; }
.dropdown-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--duration-fast) ease;
}
.dropdown-item-brand {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.search-dropdown-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.search-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.search-dropdown-footer kbd,
kbd {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9px;
  font-family: inherit;
  background: rgba(255,255,255,0.03);
}

@media (max-width: 640px) {
  .search-dropdown { max-height: 50vh; border-radius: var(--radius-md); }
  .search-dropdown-list { max-height: calc(50vh - 50px); }
  .search-dropdown-footer { display: none; }
}


/* ────────────────────────────────────────────────────
   10. BRAND SPOTLIGHT MODAL (cmd+k style)
   ──────────────────────────────────────────────────── */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) ease;
}
.spotlight-overlay.open {
  opacity: 1;
  visibility: visible;
}
.spotlight-panel {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: spotlightIn 0.2s var(--ease-out);
}
@keyframes spotlightIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.spotlight-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.spotlight-search-icon { flex-shrink: 0; color: rgba(255,255,255,0.25); }
.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}
.spotlight-input::placeholder { color: var(--text-dim); }
.spotlight-close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}
.spotlight-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.spotlight-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 200px;
}
.spotlight-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spotlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.spotlight-item:hover,
.spotlight-item.active {
  background: rgba(255,255,255,0.04);
  border-color: rgba(245,158,11,0.15);
}
.spotlight-item:hover .spotlight-brand-name { color: var(--color-primary); }
.spotlight-item-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.spotlight-item-logo img { max-width:100%; max-height:100%; object-fit:contain; padding:5px; }
.spotlight-brand-info { flex: 1; min-width: 0; }
.spotlight-brand-name { font-size: 14px; font-weight: 700; color: var(--text-primary); transition: color var(--duration-fast) ease; }
.spotlight-brand-count { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.spotlight-empty { padding: 48px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }
.spotlight-empty .icon { font-size: 28px; margin-bottom: 10px; display: block; }
.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .spotlight-panel { max-height: 90vh; border-radius: var(--radius-md); }
  .spotlight-footer { display: none; }
}


/* ────────────────────────────────────────────────────
   11. COMPARE TABLE
   ──────────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--glass-border);
}
.compare-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.compare-table td.spec-name {
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}
.compare-table td.best-value {
  color: var(--color-primary);
  font-weight: 800;
  position: relative;
}
.compare-table td.best-value::after {
  content: '★';
  margin-left: 4px;
  font-size: 10px;
}
.compare-table .compare-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.compare-table .compare-logo img { width:100%; height:100%; object-fit:contain; padding:6px; }


/* ────────────────────────────────────────────────────
   12. FAQ SECTION
   ──────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}
.faq-item {
  padding: 1.5rem;
}
.faq-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

details.faq-expand summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details.faq-expand summary::-webkit-details-marker { display: none; }
details.faq-expand summary::before {
  content: '▸';
  color: var(--color-primary);
  font-size: 0.8rem;
  transition: transform var(--duration-fast) ease;
}
details.faq-expand[open] summary::before { transform: rotate(90deg); }
details.faq-expand .faq-answer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ────────────────────────────────────────────────────
   13. FOOTER
   ──────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--duration-fast) ease;
}
.footer-links a:hover { color: var(--color-primary); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}


/* ────────────────────────────────────────────────────
   14. BUTTONS
   ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--color-primary-dim);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #000;
}
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.btn-compare {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(251,191,36,0.3);
}
.btn-compare:hover {
  background: rgba(251,191,36,0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.65rem;
  border-radius: var(--radius-sm);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}


/* ────────────────────────────────────────────────────
   15. BADGES
   ──────────────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tier-1 {
  background: rgba(251,191,36,0.15);
  color: var(--color-primary);
  border: 1px solid rgba(251,191,36,0.3);
}
.tier-2 {
  background: rgba(139,92,246,0.12);
  color: var(--color-purple);
  border: 1px solid rgba(139,92,246,0.25);
}
.cell-type-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(56,189,248,0.1);
  color: var(--color-info);
  border: 1px solid rgba(56,189,248,0.2);
}
.efficiency-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
}
.efficiency-badge.excellent { background: rgba(52,211,153,0.12); color: var(--color-success); border: 1px solid rgba(52,211,153,0.25); }
.efficiency-badge.good      { background: rgba(56,189,248,0.12);  color: var(--color-info);    border: 1px solid rgba(56,189,248,0.25); }
.efficiency-badge.average   { background: rgba(245,158,11,0.12); color: var(--color-warning); border: 1px solid rgba(245,158,11,0.25); }
.efficiency-badge.below     { background: rgba(248,113,113,0.12);color: var(--color-danger);  border: 1px solid rgba(248,113,113,0.25); }


/* ────────────────────────────────────────────────────
   16. ANIMATIONS
   ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes resultSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  50%      { box-shadow: 0 0 20px 4px rgba(251,191,36,0.15); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in      { animation: fadeIn 0.5s var(--ease-out) both; }
.animate-fade-in-up   { animation: fadeInUp 0.5s var(--ease-out) both; }
.animate-scale-in     { animation: scaleIn 0.3s var(--ease-out) both; }

/* Stagger children (use inline --delay on children) */
.stagger-children > * {
  animation: fadeInUp 0.4s var(--ease-out) both;
}
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8)  { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9)  { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }


/* ────────────────────────────────────────────────────
   17. SCROLL TO TOP BUTTON
   ──────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-primary-dim);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
  transition: all var(--duration-normal) ease;
  z-index: 999;
}
.scroll-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(245,158,11,0.5);
}
.scroll-top.visible { display: flex; }


/* ────────────────────────────────────────────────────
   18. COMPARE BADGE (fixed bottom-left)
   ──────────────────────────────────────────────────── */
.compare-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(245,158,11,0.95);
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
  z-index: 999;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.compare-badge:hover {
  transform: scale(1.05);
  color: #000;
}
.compare-badge.visible { display: flex; }


/* ────────────────────────────────────────────────────
   19. COOKIE CONSENT BANNER
   ──────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(14,14,34,0.98);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeInUp 0.4s var(--ease-out);
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}


/* ────────────────────────────────────────────────────
   20. AD SLOTS
   ──────────────────────────────────────────────────── */
.ad-slot {
  background: rgba(255,255,255,0.015);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.12);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}


/* ────────────────────────────────────────────────────
   21. RESPONSIVE — mobile-first breakpoints
   ──────────────────────────────────────────────────── */
/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 480px) {
  .container { padding: 0 2rem; }
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

/* Grid helpers */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column product detail */
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .layout-two-col { grid-template-columns: 2fr 1fr; }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 600; }

/* Section spacing */
.section { margin-bottom: 3rem; }
.section-lg { margin-bottom: 5rem; }

/* Utility: visible/hidden at breakpoints */
.hidden { display: none !important; }
@media (max-width: 768px) {
  .md\:hidden { display: none !important; }
}
@media (min-width: 769px) {
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
}

/* Spec table (for product pages) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--duration-fast) ease;
}
.spec-table tr:hover {
  background: rgba(255,255,255,0.02);
}
.spec-table th,
.spec-table td {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  text-align: left;
}
.spec-table th {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  width: 40%;
}
.spec-table td {
  font-weight: 700;
  color: var(--text-primary);
}

/* Product page hero */
.product-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}
.product-hero .hero-logo {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.product-hero .hero-logo img { width:100%; height:100%; object-fit:contain; padding:10px; }
.product-hero .hero-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.25rem;
}
.product-hero .hero-brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-hero .hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Key stats row on product page */
.key-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.key-stat {
  padding: 1.25rem;
  text-align: center;
}
.key-stat .ks-val {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.key-stat .ks-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar .sidebar-card {
  padding: 1.25rem;
}
.sidebar .sidebar-card h3 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Efficiency callout */
.efficiency-callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.efficiency-callout.excellent { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); color: var(--color-success); }
.efficiency-callout.good      { background: rgba(56,189,248,0.08);  border: 1px solid rgba(56,189,248,0.2);  color: var(--color-info); }
.efficiency-callout.average   { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--color-warning); }
.efficiency-callout.below     { background: rgba(248,113,113,0.08);border: 1px solid rgba(248,113,113,0.2); color: var(--color-danger); }

/* Verified data stamp */
.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
}


/* ────────────────────────────────────────────────────
   22. PRINT STYLES
   ──────────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  body::before,
  .ambient-bg { display: none !important; }
  .site-header,
  .site-footer,
  .nav-desktop,
  .mobile-toggle,
  .mobile-nav,
  .ad-slot,
  .scroll-top,
  .compare-badge,
  .cookie-banner,
  .search-hero,
  .spotlight-overlay,
  .ctrl-k-hint,
  #scrollTop,
  #compareBadge { display: none !important; }
  .glass {
    background: none;
    backdrop-filter: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .glass:hover { transform: none; box-shadow: none; }
  a { color: #000; }
  .sun-gradient, .gradient-text {
    -webkit-text-fill-color: #000;
    background: none;
  }
  .spec-table th { color: #333; }
  .spec-table td { color: #000; }
  h1, h2, h3 { page-break-after: avoid; }
  .layout-two-col { grid-template-columns: 1fr; }
}


/* ────────────────────────────────────────────────────
   EXTRA UTILITIES (layout, spacing)
   ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1    { flex: 1; }
.w-full    { width: 100%; }
.min-w-0   { min-width: 0; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.p-2   { padding: 0.5rem; }
.p-3   { padding: 0.75rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-xl   { border-radius: var(--radius-lg); }
.rounded-2xl  { border-radius: var(--radius-xl); }

/* Brand grid (for brands page) */
.grid-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .grid-brands { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-brands { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.brand-card:hover { color: inherit; }
.brand-card .brand-card-logo {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.brand-card .brand-card-logo img { width:100%; height:100%; object-fit:contain; padding:6px; }
.brand-card .brand-card-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Alphabetical group heading */
.alpha-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

/* Filter pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.filter-pill:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}
.filter-pill.active {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.35);
  color: var(--color-primary);
}

/* Form inputs */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--duration-fast) ease;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: rgba(251,191,36,0.4);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.06);
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245,158,11,0.95);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all var(--duration-normal) ease;
  opacity: 0;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* Ctrl+K hint */
.ctrl-k-hint {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 998;
  backdrop-filter: blur(8px);
}

/* Load more button */
.load-more-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.load-more-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* Glossary */
.glossary-term {
  padding: 1.25rem;
}
.glossary-term h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.glossary-term p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.glossary-term .term-category {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(139,92,246,0.1);
  color: var(--color-purple);
  border: 1px solid rgba(139,92,246,0.2);
}

/* 404 page */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}
.page-404 .code-404 {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   23. TAILWIND-COMPATIBLE UTILITIES
   These cover leftover utility classes in root pages
   after Tailwind CDN was removed.
   ═══════════════════════════════════════════════════ */

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.inline-block { display: inline-block; }
.block { display: block; }
.grid { display: grid; }
.aspect-square { aspect-ratio: 1/1; }
.cursor-pointer { cursor: pointer; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-9999 { z-index: 9999; }
.overflow-hidden { overflow: hidden; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-12 { padding-left: 3rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-6 { padding-right: 1.5rem; }
.pr-14 { padding-right: 3.5rem; }
.pt-12 { padding-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }

/* Text colors */
.text-white { color: #fff; }
.text-white\/20 { color: rgba(255,255,255,0.2); }
.text-white\/30 { color: rgba(255,255,255,0.3); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/80 { color: rgba(255,255,255,0.8); }

/* Text sizes */
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: var(--font-mono); }

/* Letter spacing */
.tracking-widest { letter-spacing: 0.1em; }

/* Max-width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Min-height */
.min-h-\[1rem\] { min-height: 1rem; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-amber-500\/30 { border-color: rgba(251,191,36,0.3); }

/* Backgrounds */
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-white\/\[0\.01\] { background: rgba(255,255,255,0.01); }
.bg-white\/\[0\.02\] { background: rgba(255,255,255,0.02); }
.bg-amber-500 { background: #fbbf24; }
.bg-amber-500\/10 { background: rgba(251,191,36,0.1); }
.bg-amber-500\/20 { background: rgba(251,191,36,0.2); }

/* Shadows */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-black\/50 { box-shadow: 0 0 0 1px rgba(0,0,0,0.5); }

/* Hover */
.hover\:text-amber-500:hover { color: var(--color-primary); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-black:hover { color: #000; }
.hover\:text-white\/80:hover { color: rgba(255,255,255,0.8); }
.hover\:text-red-400:hover { color: #f87171; }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,0.1); }
.hover\:bg-white\/20:hover { background: rgba(255,255,255,0.2); }
.hover\:bg-amber-400:hover { background: #fbbf24; }
.hover\:bg-amber-500:hover { background: #f59e0b; }
.hover\:border-white\/30:hover { border-color: rgba(255,255,255,0.3); }
.hover\:border-amber-500\/30:hover { border-color: rgba(251,191,36,0.3); }
.hover\:underline:hover { text-decoration: underline; }
.transition-colors { transition: color 0.15s ease; }
.transition-all { transition: all 0.3s ease; }

/* Focus */
.focus\:border-amber-500\/50:focus { border-color: rgba(251,191,36,0.5); }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-full { grid-column: 1/-1; }

/* H sizing */
.h-3 { height: 0.75rem; }
.h-5 { height: 1.25rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-full { height: 100%; }

/* Responsive — md: (768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-8 { grid-template-columns: repeat(8, 1fr); }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mb-20 { margin-bottom: 5rem; }
  .md\:mb-24 { margin-bottom: 6rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-8xl { font-size: 6rem; }
}

/* Responsive — lg: (1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Responsive — sm: (640px) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Hidden */
.hidden { display: none !important; }

/* Transform (used with translate for clear button) */
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Rounded */
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-md); }
