:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-strong: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-default: #e2e8f0;
  --brand: #2B7FFF;
  --brand-strong: #1a6ef2;

  /* User Custom Color Palette Tokens */
  --color-green: #00C950;
  --color-blue: #2B7FFF;
  --color-gold: #F0B100;
  --color-white: #FFFFFF;
}

/* UNIVERSAL WEBSITE THEME OVERRIDE (#F8FAFC BG & #0F172A TEXT) */
html, body {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
  color-scheme: light !important;
}

body {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

/* Custom User Palette Utility Classes */
.bg-palette-blue { background-color: #2B7FFF !important; }
.text-palette-blue { color: #2B7FFF !important; }
.border-palette-blue { border-color: #2B7FFF !important; }

.bg-palette-green { background-color: #00C950 !important; }
.text-palette-green { color: #00C950 !important; }
.border-palette-green { border-color: #00C950 !important; }

.bg-palette-gold { background-color: #F0B100 !important; }
.text-palette-gold { color: #F0B100 !important; }
.border-palette-gold { border-color: #F0B100 !important; }

.hero-palette-gradient {
  background: linear-gradient(135deg, #2B7FFF 0%, #00C950 50%, #F0B100 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
}

.btn-palette-blue {
  background-color: #2B7FFF !important;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(43, 127, 255, 0.35);
}
.btn-palette-blue:hover {
  background-color: #1a6ef2 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 127, 255, 0.5);
}

.btn-palette-green {
  background-color: #00C950 !important;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 201, 80, 0.35);
}
.btn-palette-green:hover {
  background-color: #00b046 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 201, 80, 0.5);
}

/* Force Clean Light Mode & Neutralize Dark Overrides */
html.dark, html.dark body {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
  color-scheme: light !important;
}

html.dark .bg-white,
html.dark .card,
html.dark .smartprix-list-card,
html.dark .laptop-card-item {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html.dark .bg-slate-50,
html.dark .bg-slate-100 {
  background-color: #f8fafc !important;
}

html.dark .text-slate-900,
html.dark .text-slate-950,
html.dark .text-slate-800 {
  color: #0f172a !important;
}

.container-custom {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

html.dark .shadow-sm,
html.dark .shadow-xl,
html.dark .shadow-[0_30px_60px_rgba\(15\,23\,42\,0\.08\)] {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.site-header {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-announcement {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-strong);
}

.icon-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 44px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.mega-menu-panel {
  min-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.group:hover .mega-menu-panel,
.group:focus-within .mega-menu-panel {
  opacity: 1;
  transform: translateY(0);
}

.hero-card {
  position: relative;
}

.badge-pill,
.chip-pill {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  justify-content: center;
  padding: 0.65rem 1rem;
}

.badge-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.feature-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.chip-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.chart-surface,
.sidebar-surface,
.card,
.hero-card,
.laptop-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.laptop-card:hover {
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.09);
}

.btn-primary,
.btn-outline {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.btn-outline:hover {
  background: #f8fafc;
}

.focus-ring:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

html.dark .icon-btn {
  background: #0f172a;
}

html.dark .badge-pill {
  background: #1e293b;
  color: #93c5fd;
}

html.dark .chip-pill,
html.dark .feature-chip {
  background: #111827;
  border-color: #334155;
  color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.compare-dock { border-radius: 32px; background: #ffffff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08); }
html.dark .compare-dock { background: #0f172a; }

.rounded-[40px] { border-radius: 40px; }
.rounded-[36px] { border-radius: 36px; }
.rounded-[28px] { border-radius: 28px; }
.text-[0.7rem] { font-size: 0.7rem; line-height: 1; }
.min-w-[320px] { min-width: 320px; }
.max-w-[320px] { max-width: 320px; }
.grid-cols-[1.1fr_0.9fr] { grid-template-columns: 1.1fr 0.9fr; }
.grid-cols-[1.7fr_0.9fr] { grid-template-columns: 1.7fr 0.9fr; }
.grid-cols-[280px_1fr] { grid-template-columns: 280px 1fr; }
.shadow-[0_30px_60px_rgba(15,23,42,0.08)] { box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08); }
.shadow-[0_25px_60px_rgba(15,23,42,0.08)] { box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08); }

.tracking-[0.25em] { letter-spacing: 0.25em; }
.tracking-[0.3em] { letter-spacing: 0.3em; }
padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

html.dark .shadow-sm,
html.dark .shadow-xl,
html.dark .shadow-[0_30px_60px_rgba\(15\,23\,42\,0\.08\)] {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.site-header {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-announcement {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-strong);
}

.icon-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 44px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.mega-menu-panel {
  min-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.group:hover .mega-menu-panel,
.group:focus-within .mega-menu-panel {
  opacity: 1;
  transform: translateY(0);
}

.hero-card {
  position: relative;
}

.badge-pill,
.chip-pill {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  justify-content: center;
  padding: 0.65rem 1rem;
}

.badge-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.feature-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.chip-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.chart-surface,
.sidebar-surface,
.card,
.hero-card,
.laptop-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.laptop-card:hover {
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.09);
}

.btn-primary,
.btn-outline {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.btn-outline:hover {
  background: #f8fafc;
}

.focus-ring:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

html.dark .icon-btn {
  background: #0f172a;
}

html.dark .badge-pill {
  background: #1e293b;
  color: #93c5fd;
}

html.dark .chip-pill,
html.dark .feature-chip {
  background: #111827;
  border-color: #334155;
  color: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.compare-dock { border-radius: 32px; background: #ffffff; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08); }
html.dark .compare-dock { background: #0f172a; }

.rounded-[40px] { border-radius: 40px; }
.rounded-[36px] { border-radius: 36px; }
.rounded-[28px] { border-radius: 28px; }
.text-[0.7rem] { font-size: 0.7rem; line-height: 1; }
.min-w-[320px] { min-width: 320px; }
.max-w-[320px] { max-width: 320px; }
.grid-cols-[1.1fr_0.9fr] { grid-template-columns: 1.1fr 0.9fr; }
.grid-cols-[1.7fr_0.9fr] { grid-template-columns: 1.7fr 0.9fr; }
.grid-cols-[280px_1fr] { grid-template-columns: 280px 1fr; }
.shadow-[0_30px_60px_rgba(15,23,42,0.08)] { box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08); }
.shadow-[0_25px_60px_rgba(15,23,42,0.08)] { box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08); }

.tracking-[0.25em] { letter-spacing: 0.25em; }
.tracking-[0.3em] { letter-spacing: 0.3em; }

.bg-white/95 { background-color: rgba(255, 255, 255, 0.95) !important; }

.max-w-[70%] { max-width: 70%; }

/* ===========================================================
   SMARTPRIX DESIGN SYSTEM & COMPONENT STYLES
=========================================================== */

/* Spec Score Badge */
.spec-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
  letter-spacing: -0.01em;
}

.spec-score-badge .score-val {
  font-size: 1rem;
  font-weight: 800;
}

/* Quick Filter Pills Bar */
.quick-filter-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.quick-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.quick-filter-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.quick-filter-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.quick-filter-pill:hover,
.quick-filter-pill.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}

/* Smartprix List Card Styling */
.smartprix-list-card {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 1023px) {
  .smartprix-list-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.smartprix-list-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.spec-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
}

.spec-bullet-item i {
  color: #2563eb;
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Filter Accordion Header */
.filter-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.filter-accordion-toggle i.chevron {
  transition: transform 0.2s ease;
}

.filter-accordion-toggle.collapsed i.chevron {
  transform: rotate(-90deg);
}

.filter-accordion-content {
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.filter-accordion-content.hidden-content {
  display: none;
}

/* Custom checkbox styling */
.custom-checkbox {
  accent-color: #2563eb;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
}

html.dark .smartprix-list-card {
  background: #0f172a;
  border-color: #1e293b;
}

html.dark .spec-bullet-item {
  color: #cbd5e1;
}

html.dark .quick-filter-pill {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .quick-filter-pill:hover,
html.dark .quick-filter-pill.active {
  background: #1e293b;
  border-color: #3b82f6;
  color: #60a5fa;
}
