/* ==========================================================================
   LeoGuia Design System - Sidebar Layout & SPA Page Router
   ========================================================================== */

:root {
  /* Dark Mode Default Theme */
  --bg-main: #0B0F19;
  --bg-sidebar: #111726;
  --bg-card: #151C2C;
  --bg-card-hover: #1E283D;
  --bg-glass: rgba(21, 28, 44, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.35);

  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --accent-green: #10B981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-gold: #F59E0B;
  --accent-gold-bg: rgba(245, 158, 11, 0.15);
  --accent-cyan: #06B6D4;

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dark: #6B7280;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --sidebar-width: 260px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Variant: Light Mode */
[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --border-color: #E2E8F0;
  --border-highlight: rgba(37, 99, 235, 0.4);

  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent-green: #059669;
  --accent-green-bg: rgba(5, 150, 105, 0.1);
  --accent-gold: #D97706;
  --accent-gold-bg: rgba(217, 119, 6, 0.1);
  --accent-cyan: #0284C7;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dark: #94A3B8;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Estrutura Principal de Layout (Sidebar + Conteúdo Main) */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Barra Lateral de Navegação (Sidebar Esquerda) */
.sidebar-nav {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem 1rem;
  transition: var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.logo-badge {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #FDE047, #EAB308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.4));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-slogan {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

/* Resets Globais para Botões e Links na Navegação Lateral */
.nav-menu button,
.nav-menu a,
.nav-menu a:link,
.nav-menu a:visited {
  text-decoration: none !important;
  box-shadow: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Estilização dos Ícones SVG Coloridos e Realistas (Hardware 3D) */
.svg-icon-color {
  width: 1.45em;
  height: 1.45em;
  display: inline-block;
  vertical-align: -0.22em;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-item:hover .svg-icon-color,
.comp-tab:hover .svg-icon-color,
.step-card:hover .svg-icon-color {
  transform: scale(1.15) translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.nav-icon .svg-icon-color {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-icon .svg-icon-color {
  width: 2.6rem;
  height: 2.6rem;
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-icon .svg-icon-color {
  width: 2.8rem;
  height: 2.8rem;
}

.section-title .svg-icon-color {
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.5rem;
  vertical-align: -0.2em;
}

.comp-tab .svg-icon-color {
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.4rem;
  vertical-align: -0.2em;
}

.btn .svg-icon-color {
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.4rem;
  vertical-align: -0.2em;
}



/* Sidebar Dropdown Accordion para Periféricos */
.nav-dropdown-group {
  display: flex;
  flex-direction: column;
}

button.nav-dropdown-toggle,
.nav-dropdown-toggle {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  text-align: left;
  cursor: pointer;
  justify-content: flex-start;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

button.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-main) !important;
}

.dropdown-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.25s ease, color 0.25s ease;
  color: var(--text-muted);
}

.nav-dropdown-group.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0.8rem;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.nav-dropdown-group.open .nav-dropdown-menu {
  display: flex;
  animation: slideDown 0.25s ease-in-out;
}

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

a.nav-subitem,
a.nav-subitem:link,
a.nav-subitem:visited {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

a.nav-subitem:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
}

a.nav-subitem.active {
  background-color: rgba(59, 130, 246, 0.15) !important;
  color: var(--primary) !important;
  box-shadow: inset 3px 0 0 var(--primary);
  text-decoration: none !important;
}

.nav-subicon {
  font-size: 0.95rem;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-theme-toggle {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  border-color: var(--primary);
}

/* Área Principal de Conteúdo */
.main-content-area {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 2rem 2.5rem;
  max-width: calc(100vw - var(--sidebar-width));
}

.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.mobile-menu-btn {
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.mobile-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Sistema de Páginas SPA (Página Ativa vs Escondida) */
.page-view {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.page-view.active {
  display: block;
}

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

/* Section Header */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Onboarding Guide / Passo a Passo Visual */
.hero-section {
  padding: 1.5rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.onboarding-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.guide-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
  text-align: left;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--primary);
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Filter Box */
.filter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.filter-header {
  margin-bottom: 0.75rem;
}

.filter-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.chip.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Abas do Comparador */
.comparator-tabs-wrapper {
  display: flex;
  margin-bottom: 1.5rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.comparator-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 50px;
  gap: 0.35rem;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.comp-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.comp-tab:hover {
  color: var(--text-main);
}

.comp-tab.active {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Selected Bar */
.selected-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.selected-info {
  display: flex;
  flex-direction: column;
}

#selected-count {
  font-weight: 700;
  color: var(--accent-cyan);
}

.selected-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slot-search-box {
  position: relative;
  flex: 1;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

#slot-search-input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

#slot-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-height: 250px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: none;
}

.search-dropdown.active {
  display: block;
}

.search-item {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--bg-main);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-affiliate {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-affiliate:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Matriz de Comparação Lado a Lado (Tamanho Padrão Fixo - Não Espicha com 2 itens) */
.comparison-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

.column-card {
  flex: 0 0 calc(20% - 1rem);
  min-width: 240px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.column-card:hover {
  border-color: var(--border-highlight);
}

.badge-seal {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10;
}

.badge-cb {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #34D399 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-perf {
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 50%, #D4AF37 100%);
  color: #3D2300;
  border: 1.5px solid #FFE87C;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-remove-card {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition);
}

.btn-remove-card:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: scale(1.1);
}

.card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.card-sku {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Indicadores de Score */
.score-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.score-row {
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.score-title-text {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-main);
}

.score-val-line {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9rem;
}

.score-value {
  color: var(--accent-cyan);
}

.score-value.cb-highlight {
  color: var(--accent-green);
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.fill-cb {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.fill-hw {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

/* Especificações */
.specs-list {
  list-style: none;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.specs-item {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.specs-item span:first-child {
  color: var(--text-muted);
}

.specs-item span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

/* Preço e Botão */
.price-box {
  margin-top: auto;
  padding: 1rem 0.6rem 0.4rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  border-radius: var(--radius-sm);
}

.price-small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 0.85rem;
}

/* Database Controls (GPUs & CPUs) */
.database-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.manufacturer-filters {
  display: flex;
  gap: 0.4rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

.db-search {
  flex-grow: 1;
  max-width: 380px;
}

.db-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.db-search input:focus {
  border-color: var(--primary);
}

/* Tabelas Database Responsivas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.db-table th {
  background: var(--bg-main);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.db-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.db-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

.db-table tbody tr:last-child td {
  border-bottom: none;
}

/* Destaques de Vencedor / Perdedor em Especificações (Sem pontilhado, cores vibrantes sólidas) */
.spec-winner {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  font-weight: 700 !important;
  border: 2px solid #10B981 !important;
}

.spec-loser {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #EF4444 !important;
  font-weight: 700 !important;
  border: 2px solid #EF4444 !important;
}

[data-theme="light"] .spec-winner {
  background-color: #ECFDF5 !important;
  color: #059669 !important;
  border: 2px solid #10B981 !important;
}

[data-theme="light"] .spec-loser {
  background-color: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 2px solid #EF4444 !important;
}

/* Grids do Catálogo e Guias Especiais */
.catalog-grid, .gpus-grid, .monitors-grid, .peripherals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Grid Responsivo com 5 itens em Destaque na Página Inicial */
#home-featured-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
}

#home-featured-grid .catalog-card {
  padding: 0.9rem !important;
}

#home-featured-grid .card-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  margin-top: 0.75rem !important;
}

#home-featured-grid .btn-toggle-compare,
#home-featured-grid .btn-affiliate {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 0.55rem 0.25rem !important;
  font-size: 0.78rem !important;
}

@media (max-width: 1100px) {
  #home-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  #home-featured-grid {
    grid-template-columns: 1fr !important;
  }
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-toggle-compare {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-grow: 1;
  transition: var(--transition);
}

.btn-toggle-compare:hover {
  border-color: var(--primary);
}

.btn-toggle-compare.selected {
  background: var(--accent-green-bg);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Badges de Nível */
.badge-level {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}

.badge-level-iniciante {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-level-intermediario {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-level-avancado {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.about-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Footer */
.main-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  border-radius: var(--radius-md);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-rights {
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* Layout Responsivo (Mobile & Tablets) */
@media (max-width: 992px) {
  .sidebar-nav {
    transform: translateX(-100%);
  }

  .sidebar-nav.mobile-open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
  }

  .main-content-area {
    margin-left: 0;
    max-width: 100vw;
    padding: 1rem 1.25rem;
  }

  .mobile-header {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .selected-bar {
    flex-direction: column;
    text-align: center;
  }

  .slot-search-box {
    max-width: 100%;
  }

  .database-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .db-search {
    max-width: 100%;
  }
}

/* ==========================================================================
   BARRA FLUTUANTE DE SELEÇÃO MULTIPLA NO RODAPÉ
   ========================================================================== */
.floating-selection-bar {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: max-content;
  max-width: 92vw;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.35);
  border-radius: 50px;
  padding: 0.65rem 1.25rem 0.65rem 1.6rem;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-selection-bar.visible {
  bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

.floating-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.floating-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.floating-icon {
  font-size: 1.25rem;
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

/* Estado de Botão Selecionado no Catálogo */
.btn-selected-active {
  background-color: var(--accent-green) !important;
  color: #FFF !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Banner de Comparador Vazio (<2 itens) */
.empty-duel-banner {
  text-align: center;
  grid-column: 1 / -1;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 2px dashed var(--border-highlight);
  border-radius: var(--radius-lg);
  margin: 1rem 0;
}

.empty-duel-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.empty-duel-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   SEÇÃO DE GRÁFICOS E VEREDITO DETALHADO DO DUELO
   ========================================================================== */
.comparison-charts-section {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.charts-header {
  margin-bottom: 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.charts-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.charts-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.chart-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.chart-bars-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chart-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.chart-item-name {
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.chart-item-val {
  color: var(--primary);
}

.chart-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar-fill.fill-hw {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.chart-bar-fill.fill-cb {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.chart-bar-fill.fill-spec {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

/* Caixa de Veredito Resumido */
.veredict-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
}

.veredict-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.veredict-text {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.6;
}

/* Botão Circular de Minimizar a Barra Flutuante */
.btn-close-floating {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
}

.btn-close-floating:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Selo Flutuante Minimizado no Canto Inferior */
.floating-minimized-badge {
  position: fixed;
  bottom: -90px;
  right: 28px;
  z-index: 9999;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.35);
  border-radius: 50px;
  padding: 0.65rem 1.35rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.floating-minimized-badge.visible {
  bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

.floating-minimized-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.5);
  border-color: var(--primary);
}

.badge-mini-count {
  background: var(--primary);
  color: #FFF;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
}


