/**
 * Rate My PC - Premium Dashboard Styles
 * Rich, feature-packed design with modern aesthetics
 */

/* ============================================
   HERO SECTION
   ============================================ */
.rate-pc-hero {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 1) 0%, 
    rgba(30, 41, 59, 1) 50%,
    rgba(15, 23, 42, 1) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.rate-pc-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #60a5fa 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rate-pc-hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================
   MAIN CONTAINER LAYOUT
   ============================================ */
.rate-pc-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 1200px) {
  .rate-pc-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BUILD CONFIGURATION PANEL
   ============================================ */
.build-config-panel {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(30, 41, 59, 0.8) 0%, 
    rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.panel-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
  font-size: 1.5rem;
}

.panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.build-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.label-icon {
  font-size: 0.9rem;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s;
}

.select-wrapper select:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.select-wrapper select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.7rem;
  pointer-events: none;
}

.analyze-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.analyze-btn:hover .btn-glow {
  transform: translateX(100%);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.btn-icon {
  font-size: 1.2rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

.quick-stat .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #60a5fa;
}

.quick-stat .stat-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   RESULTS DASHBOARD
   ============================================ */
.results-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   RESULT TIER CARD (matches tier-legend cards)
   ============================================ */
.result-tier-card {
  background: linear-gradient(180deg, 
    rgba(30, 41, 59, 0.6) 0%, 
    rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.result-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.result-tier-card.tier-ultimate::before { background: linear-gradient(90deg, #10b981, #34d399); }
.result-tier-card.tier-high::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.result-tier-card.tier-mid::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.result-tier-card.tier-entry::before { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.result-tier-card.tier-legacy::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.result-tier-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 600px) {
  .result-tier-header {
    flex-direction: column;
    text-align: center;
  }
}

.result-tier-score {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.result-score-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-tier-card.tier-ultimate .result-score-number {
  background: linear-gradient(135deg, #fff, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-tier-card.tier-mid .result-score-number {
  background: linear-gradient(135deg, #fff, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-tier-card.tier-entry .result-score-number {
  background: linear-gradient(135deg, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-tier-card.tier-legacy .result-score-number {
  background: linear-gradient(135deg, #fff, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-score-label {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 600;
}

.result-tier-info {
  flex: 1;
}

.result-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.result-tier-badge.tier-ultimate {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.result-tier-badge.tier-high {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.result-tier-badge.tier-mid {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.result-tier-badge.tier-entry {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.2));
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9ca3af;
}

.result-tier-badge.tier-legacy {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.tier-badge-icon {
  width: 14px;
  height: 14px;
}

.result-tier-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.375rem;
  color: #fff;
}

.result-tier-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.result-tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.result-tier-tags span {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.result-tier-card.tier-ultimate .result-tier-tags span {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.result-tier-card.tier-high .result-tier-tags span {
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.result-tier-card.tier-mid .result-tier-tags span {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.result-tier-card.tier-entry .result-tier-tags span {
  border-color: rgba(107, 114, 128, 0.3);
  color: #9ca3af;
}

.result-tier-card.tier-legacy .result-tier-tags span {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}


/* ============================================
   BALANCE CARD & SHARED CARD STYLES
   ============================================ */
.balance-card,
.market-card,
.games-card,
.recommendations-card {
  background: linear-gradient(180deg, 
    rgba(30, 41, 59, 0.6) 0%, 
    rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.balance-card::before,
.market-card::before,
.games-card::before,
.recommendations-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.balance-card::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.market-card::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.games-card::before {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}

.recommendations-card::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 12px;
  font-size: 1.25rem;
}

.header-text {
  flex: 1;
}

.header-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.header-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.header-link {
  font-size: 0.85rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.header-link:hover {
  color: #93c5fd;
}

.balance-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.balance-indicator.balance-balanced {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.balance-indicator.balance-cpu-bottleneck,
.balance-indicator.balance-gpu-bottleneck {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.balance-visualization {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .balance-visualization {
    flex-direction: column;
  }
}

.balance-component {
  flex: 1;
}

.component-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.balance-bar-wrap {
  position: relative;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.balance-bar-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
}

.balance-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  transition: width 1s ease-out;
}

.balance-bar-fill.cpu-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.balance-bar-fill.gpu-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.balance-vs {
  flex-shrink: 0;
}

.vs-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.bottleneck-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin-top: 1rem;
}

.tip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bottleneck-tip p {
  margin: 0;
  font-size: 0.9rem;
  color: #fbbf24;
  line-height: 1.5;
}

/* ============================================
   COMPONENT CARDS
   ============================================ */
.components-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .components-section {
    grid-template-columns: 1fr;
  }
}

.component-card {
  background: linear-gradient(180deg, 
    rgba(30, 41, 59, 0.6) 0%, 
    rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.component-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.cpu-card::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.gpu-card::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.component-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vendor-icon-xl {
  width: 56px;
  height: 56px;
}

.component-info {
  flex: 1;
  min-width: 0;
}

.component-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.component-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.component-score-ring {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 70px;
  height: 70px;
}

.component-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mini-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.mini-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.mini-ring-fill.cpu-ring {
  stroke: #60a5fa;
}

.mini-ring-fill.gpu-ring {
  stroke: #34d399;
}

.mini-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mini-score-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.mini-score-label {
  font-size: 0.6rem;
  color: #64748b;
  text-transform: uppercase;
}

.component-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.stat-icon {
  font-size: 1.25rem;
}

.stat-content {
  flex: 1;
}

.stat-content .stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.stat-content .stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

.component-link {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.component-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ============================================
   MARKET POSITION CARD
   ============================================ */
.market-chart {
  position: relative;
  padding: 1rem 0 2.5rem;
}

.market-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.market-label {
  width: 120px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.market-icon {
  font-size: 1rem;
}

.market-bar-container {
  flex: 1;
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.market-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.5));
  border-radius: 6px;
}

.market-range {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.your-position {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
}

.position-marker {
  width: 4px;
  height: calc(100% - 2.5rem);
  background: linear-gradient(180deg, #10b981, #34d399);
  border-radius: 2px;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.position-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

/* ============================================
   GAMES PERFORMANCE CARD
   ============================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.game-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.game-image {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-image.no-image::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.game-content {
  flex: 1;
  min-width: 0;
}

.game-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-settings {
  font-size: 0.75rem;
  color: #64748b;
}

.game-fps {
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  min-width: 60px;
}

.game-fps.fps-excellent {
  background: rgba(16, 185, 129, 0.15);
}

.game-fps.fps-good {
  background: rgba(59, 130, 246, 0.15);
}

.game-fps.fps-playable {
  background: rgba(245, 158, 11, 0.15);
}

.game-fps.fps-low {
  background: rgba(239, 68, 68, 0.15);
}

.fps-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.fps-excellent .fps-number { color: #34d399; }
.fps-good .fps-number { color: #60a5fa; }
.fps-playable .fps-number { color: #fbbf24; }
.fps-low .fps-number { color: #f87171; }

.fps-unit {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.no-games-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
}

.no-games-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-games-message h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.no-games-message p {
  color: #64748b;
  margin: 0 0 1.5rem;
}

.btn-find-games {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-find-games:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* ============================================
   RECOMMENDATIONS CARD
   ============================================ */
.recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
}

.rec-item.rec-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rec-item.rec-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.rec-item.rec-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rec-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.rec-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.actions-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .actions-section {
    grid-template-columns: 1fr;
  }
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn.action-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.action-btn.action-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.action-btn.action-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.action-btn.action-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.action-icon {
  font-size: 1.75rem;
}

.action-text {
  display: flex;
  flex-direction: column;
}

.action-title {
  font-size: 1rem;
  font-weight: 700;
}

.action-subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.empty-content {
  text-align: center;
  max-width: 500px;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-content h2 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.empty-content > p {
  color: #64748b;
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.empty-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.feature-icon {
  font-size: 1.25rem;
}

/* ============================================
   TIER LEGEND
   ============================================ */
.tier-legend {
  max-width: 1600px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.legend-header {
  text-align: center;
  margin-bottom: 2rem;
}

.legend-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.legend-header p {
  color: #64748b;
  margin: 0;
  text-align: center;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.tier-card {
  background: linear-gradient(180deg, 
    rgba(30, 41, 59, 0.6) 0%, 
    rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.tier-card.tier-ultimate::before { background: linear-gradient(90deg, #10b981, #34d399); }
.tier-card.tier-high::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tier-card.tier-mid::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tier-card.tier-entry::before { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.tier-card.tier-legacy::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.tier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tier-card .tier-icon {
  font-size: 2rem;
}

.tier-range {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #94a3b8;
}

.tier-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.tier-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.tier-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tier-tags span {
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #94a3b8;
}


/* ============================================
   LIGHT MODE SUPPORT
   ============================================ */
[data-theme="light"] .rate-pc-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  border-bottom-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .hero-bg-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

[data-theme="light"] .rate-pc-hero h1 {
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .rate-pc-hero p {
  color: #475569;
}

[data-theme="light"] .hero-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(59, 130, 246, 0.4);
  color: #2563eb;
}

/* Build Config Panel - Light Mode */
[data-theme="light"] .build-config-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .panel-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .panel-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .panel-header h2 {
  color: #1e293b;
}

[data-theme="light"] .panel-subtitle,
[data-theme="light"] .form-label {
  color: #64748b;
}

[data-theme="light"] .panel-icon-wrap {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

[data-theme="light"] .select-wrapper select {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1e293b;
}

[data-theme="light"] .select-wrapper select:hover {
  border-color: #3b82f6;
}

[data-theme="light"] .select-wrapper select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .select-arrow {
  color: #64748b;
}

[data-theme="light"] .quick-stats {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .quick-stat {
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .quick-stat .stat-value {
  color: #2563eb;
}

[data-theme="light"] .quick-stat .stat-label {
  color: #64748b;
}

/* Result Tier Card - Light Mode */
[data-theme="light"] .result-tier-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .result-tier-score {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .result-score-number {
  background: linear-gradient(135deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .result-tier-card.tier-ultimate .result-score-number {
  background: linear-gradient(135deg, #1e293b, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .result-tier-card.tier-mid .result-score-number {
  background: linear-gradient(135deg, #1e293b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .result-tier-card.tier-entry .result-score-number {
  background: linear-gradient(135deg, #1e293b, #6b7280);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .result-tier-card.tier-legacy .result-score-number {
  background: linear-gradient(135deg, #1e293b, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .result-score-label {
  color: #64748b;
}

[data-theme="light"] .result-tier-name {
  color: #1e293b;
}

[data-theme="light"] .result-tier-desc {
  color: #475569;
}

[data-theme="light"] .result-tier-tags {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .result-tier-tags span {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .result-tier-card.tier-ultimate .result-tier-tags span {
  border-color: rgba(16, 185, 129, 0.5);
  color: #059669;
}

[data-theme="light"] .result-tier-card.tier-high .result-tier-tags span {
  border-color: rgba(59, 130, 246, 0.5);
  color: #2563eb;
}

[data-theme="light"] .result-tier-card.tier-mid .result-tier-tags span {
  border-color: rgba(245, 158, 11, 0.5);
  color: #d97706;
}

[data-theme="light"] .result-tier-card.tier-entry .result-tier-tags span {
  border-color: rgba(107, 114, 128, 0.5);
  color: #4b5563;
}

[data-theme="light"] .result-tier-card.tier-legacy .result-tier-tags span {
  border-color: rgba(239, 68, 68, 0.5);
  color: #dc2626;
}

[data-theme="light"] .result-tier-badge.tier-ultimate { color: #059669; }
[data-theme="light"] .result-tier-badge.tier-high { color: #2563eb; }
[data-theme="light"] .result-tier-badge.tier-mid { color: #d97706; }
[data-theme="light"] .result-tier-badge.tier-entry { color: #4b5563; }
[data-theme="light"] .result-tier-badge.tier-legacy { color: #dc2626; }

/* Cards - Light Mode */
[data-theme="light"] .balance-card,
[data-theme="light"] .market-card,
[data-theme="light"] .games-card,
[data-theme="light"] .recommendations-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card-header .header-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

[data-theme="light"] .header-text h3 {
  color: #1e293b;
}

[data-theme="light"] .header-subtitle {
  color: #64748b;
}

[data-theme="light"] .header-link {
  color: #2563eb;
}

[data-theme="light"] .header-link:hover {
  color: #1d4ed8;
}

/* Balance Card - Light Mode */
[data-theme="light"] .balance-indicator.balance-balanced {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

[data-theme="light"] .balance-indicator.balance-cpu-bottleneck,
[data-theme="light"] .balance-indicator.balance-gpu-bottleneck {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

[data-theme="light"] .component-label {
  color: #475569;
}

[data-theme="light"] .balance-bar-bg {
  background: #e2e8f0;
}

[data-theme="light"] .vs-circle {
  background: #f1f5f9;
  color: #64748b;
}

[data-theme="light"] .bottleneck-tip {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .bottleneck-tip p {
  color: #b45309;
}

/* Component Cards - Light Mode */
[data-theme="light"] .component-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .component-type {
  color: #64748b;
}

[data-theme="light"] .component-name {
  color: #1e293b;
}

[data-theme="light"] .mini-ring-bg {
  stroke: #e2e8f0;
}

[data-theme="light"] .mini-score-value {
  color: #1e293b;
}

[data-theme="light"] .mini-score-label {
  color: #64748b;
}

[data-theme="light"] .stat-item {
  background: #f8fafc;
}

[data-theme="light"] .stat-content .stat-value {
  color: #1e293b;
}

[data-theme="light"] .stat-content .stat-label {
  color: #64748b;
}

[data-theme="light"] .component-link {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

[data-theme="light"] .component-link:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Market Card - Light Mode */
[data-theme="light"] .market-label {
  color: #475569;
}

[data-theme="light"] .market-bar-container {
  background: #f1f5f9;
}

[data-theme="light"] .market-bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4));
}

[data-theme="light"] .market-range {
  color: #64748b;
}

[data-theme="light"] .position-label {
  color: #059669;
}

/* Games Card - Light Mode */
[data-theme="light"] .game-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .game-card:hover {
  background: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .game-image {
  background: #e2e8f0;
}

[data-theme="light"] .game-title {
  color: #1e293b;
}

[data-theme="light"] .game-settings {
  color: #64748b;
}

[data-theme="light"] .game-fps.fps-excellent { background: rgba(16, 185, 129, 0.12); }
[data-theme="light"] .game-fps.fps-good { background: rgba(59, 130, 246, 0.12); }
[data-theme="light"] .game-fps.fps-playable { background: rgba(245, 158, 11, 0.12); }
[data-theme="light"] .game-fps.fps-low { background: rgba(239, 68, 68, 0.12); }

[data-theme="light"] .fps-excellent .fps-number { color: #059669; }
[data-theme="light"] .fps-good .fps-number { color: #2563eb; }
[data-theme="light"] .fps-playable .fps-number { color: #d97706; }
[data-theme="light"] .fps-low .fps-number { color: #dc2626; }

[data-theme="light"] .fps-unit {
  color: #64748b;
}

[data-theme="light"] .no-games-message h4 {
  color: #1e293b;
}

[data-theme="light"] .no-games-message p {
  color: #64748b;
}

/* Recommendations - Light Mode */
[data-theme="light"] .rec-item.rec-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .rec-item.rec-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .rec-item.rec-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .rec-content h4 {
  color: #1e293b;
}

[data-theme="light"] .rec-content p {
  color: #475569;
}

/* Action Buttons - Light Mode */
[data-theme="light"] .action-btn.action-secondary {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .action-btn.action-secondary:hover {
  background: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .action-subtitle {
  color: #64748b;
}

/* Empty State - Light Mode */
[data-theme="light"] .empty-content h2 {
  color: #1e293b;
}

[data-theme="light"] .empty-content > p {
  color: #64748b;
}

[data-theme="light"] .feature-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

/* Tier Legend - Light Mode */
[data-theme="light"] .legend-header h2 {
  color: #1e293b;
}

[data-theme="light"] .legend-header p {
  color: #64748b;
}

[data-theme="light"] .tier-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tier-range {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="light"] .tier-card h3 {
  color: #1e293b;
}

[data-theme="light"] .tier-card p {
  color: #64748b;
}

[data-theme="light"] .tier-tags span {
  background: #f1f5f9;
  color: #475569;
}

/* Estimated FPS indicator */
.fps-estimated {
  font-size: 0.6rem;
  color: #94a3b8;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

[data-theme="light"] .fps-estimated {
  color: #64748b;
}


/* Section Descriptions */
.rate-pc-container .section-description {
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--space-lg, 1.5rem) 0;
  max-width: 800px;
}

/* Inline Comparison Selector */
.comparison-selector-inline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card, rgba(255,255,255,0.6));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 12px;
}

.comparison-selector-inline .comparison-selector-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.comparison-fixed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle, rgba(0,0,0,0.03));
  border-radius: 8px;
  min-width: 200px;
}

.comparison-fixed-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comparison-vs-divider {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary, #3b82f6);
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  border-radius: 6px;
}

.comparison-dropdown-container {
  flex: 1;
  min-width: 250px;
}

.comparison-dropdown {
  position: relative;
}

.comparison-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-input, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.15));
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comparison-dropdown-trigger:hover {
  border-color: var(--accent-primary, #3b82f6);
}

.comparison-dropdown-placeholder {
  color: var(--text-muted, #9ca3af);
}

.comparison-dropdown-selected {
  font-weight: 500;
}

.comparison-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.comparison-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.15));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
  max-height: 300px;
  overflow: hidden;
}

.comparison-dropdown-panel.open {
  display: block;
}

.comparison-dropdown-search {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

.comparison-dropdown-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color, rgba(0,0,0,0.15));
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
}

.comparison-dropdown-search input:focus {
  border-color: var(--accent-primary, #3b82f6);
}

.comparison-dropdown-options {
  max-height: 220px;
  overflow-y: auto;
}

.comparison-dropdown-option {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.comparison-dropdown-option:hover {
  background: var(--bg-hover, rgba(59,130,246,0.08));
}

.comparison-dropdown-option.selected {
  background: var(--accent-primary, #3b82f6);
  color: #fff;
}

.comparison-dropdown-option-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-compare-inline {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-compare-inline:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-compare-inline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dark mode */
[data-theme="dark"] .comparison-selector-inline {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .comparison-fixed-item {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .comparison-dropdown-trigger {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

[data-theme="dark"] .comparison-dropdown-panel {
  background: var(--bg-card, #1f2937);
  border-color: rgba(255,255,255,0.15);
}

[data-theme="dark"] .comparison-dropdown-search input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

[data-theme="dark"] .comparison-dropdown-option:hover {
  background: rgba(59,130,246,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-selector-inline .comparison-selector-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .comparison-fixed-item {
    min-width: auto;
  }
  
  .comparison-vs-divider {
    align-self: center;
  }
  
  .comparison-dropdown-container {
    min-width: auto;
  }
  
  .btn-compare-inline {
    align-self: stretch;
    text-align: center;
  }
}
