/* ================================================================
   PcKonfiguratorius style.css v7.0 — Modernized design system
   Glassmorphism, micro-interactions, 5-theme ready
   ================================================================ */

/* ── GOOGLE FONTS ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg-base:        #07090f;
  --bg-surface:     #0c0f18;
  --bg-card:        #10141f;
  --bg-card-hover:  #141a28;
  --bg-elevated:    #1a2035;
  --bg-input:       #0d1020;
  --bg-glass:       rgba(16,20,31,.72);
  --bg-modal:       rgba(7,9,15,.92);

  /* Borders */
  --border-subtle:  rgba(255,255,255,.04);
  --border-default: rgba(255,255,255,.08);
  --border-strong:  rgba(255,255,255,.14);
  --border-focus:   rgba(99,102,241,.55);

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #8b9ab8;
  --text-muted:     #3d4d6a;
  --text-accent:    #818cf8;

  /* Brand accents */
  --accent-indigo:  #6366f1;
  --accent-blue:    #3b82f6;
  --accent-cyan:    #06b6d4;
  --accent-purple:  #8b5cf6;
  --accent-green:   #10b981;
  --accent-emerald: #059669;
  --accent-red:     #ef4444;
  --accent-amber:   #f59e0b;
  --accent-pink:    #ec4899;

  /* Glow shadows */
  --glow-indigo:  0 0 24px rgba(99,102,241,.28);
  --glow-blue:    0 0 24px rgba(59,130,246,.28);
  --glow-green:   0 0 24px rgba(16,185,129,.28);
  --glow-red:     0 0 20px rgba(239,68,68,.25);
  --glow-amber:   0 0 20px rgba(245,158,11,.22);

  /* Shadows */
  --shadow-card:  0 1px 2px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.045);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(99,102,241,.25);
  --shadow-panel: 0 2px 16px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  --shadow-float: 0 16px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px;
  --r-lg: 14px; --r-xl: 18px; --r-2xl: 24px; --r-3xl: 32px;

  /* Fonts */
  --font-main:  'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Space Grotesk', system-ui, sans-serif;

  /* Transitions */
  --ease-out:   cubic-bezier(.22,1,.36,1);
  --ease-in:    cubic-bezier(.64,0,.78,0);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-main); cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── AMBIENT BACKGROUND ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 1000px 500px at 50% -120px, rgba(99,102,241,.09), transparent),
    radial-gradient(ellipse 700px 350px at 90% 80%, rgba(59,130,246,.05), transparent),
    radial-gradient(ellipse 500px 250px at 5% 60%, rgba(139,92,246,.04), transparent);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ── LOADING OVERLAY ─────────────────────────────────────────── */
#pcpro-loading { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; }
#pcpro-loading.visible { opacity: 1; }
.loading-backdrop { position: absolute; inset: 0; background: rgba(7,9,15,.5); backdrop-filter: blur(2px); }
.loading-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 18px 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-secondary);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px);
}
.loading-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(99,102,241,.3);
  border-top-color: var(--accent-indigo);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px);
  opacity: 0; transform: translateX(24px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.toast-error   { border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.toast-info    { border-color: rgba(99,102,241,.3);  color: #a5b4fc; }

/* ── TOOLTIP ─────────────────────────────────────────────────── */
.pcpro-tooltip {
  position: fixed; z-index: 9997;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 11px; padding: 5px 10px;
  border-radius: var(--r-sm);
  pointer-events: none;
  opacity: 0; transition: opacity .12s ease;
  box-shadow: var(--shadow-panel);
}
.pcpro-tooltip.visible { opacity: 1; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 58px;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 20px; font-weight: 800;
  letter-spacing: -.6px;
  display: flex; align-items: center; gap: 8px;
  user-select: none;
}
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 12px var(--accent-indigo), 0 0 24px rgba(99,102,241,.4);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .5; }
}
.nav-logo-sub {
  font-size: 10px; font-weight: 500;
  color: var(--text-muted); letter-spacing: .1em;
  margin-top: 2px;
}
.nav-badges { display: flex; align-items: center; gap: 6px; }
.nav-right  { display: flex; align-items: center; gap: 10px; }
.nav-parts-count { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }

/* ── MODE TABS ───────────────────────────────────────────────── */
.mode-tabs {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 3px;
}
.mode-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
}
.mode-tab i { font-size: 11px; }
.mode-tab:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.mode-tab.active {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,.4);
}
.mode-tab.active.upgrade-tab {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 16px rgba(245,158,11,.4);
}

/* ── RESET BTN ───────────────────────────────────────────────── */
.reset-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all .2s;
}
.reset-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); }

/* ── THEME SWITCHER ──────────────────────────────────────────── */
.theme-panel-wrap { position: relative; }
.theme-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer; transition: all .2s;
}
.theme-toggle-btn:hover, .theme-toggle-btn.active {
  color: var(--text-primary);
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
}
.theme-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 12px;
  min-width: 220px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(20px);
  z-index: 500;
  animation: dropdown-in .18s var(--ease-out);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.theme-dropdown-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  margin-bottom: 10px; padding: 0 2px;
}
.theme-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.theme-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.03);
  cursor: pointer; transition: all .18s;
  color: var(--text-muted);
}
.theme-tab:hover { background: rgba(255,255,255,.08); color: var(--text-primary); border-color: var(--border-default); }
.theme-tab.active { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.4); color: var(--text-accent); }
.theme-tab-icon { font-size: 18px; line-height: 1; }
.theme-tab-label { font-size: 9.5px; font-weight: 600; letter-spacing: .03em; }

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.progress-wrap { padding: 10px 28px 0; position: relative; z-index: 1; }
.progress-track {
  height: 3px; background: var(--border-subtle);
  border-radius: 99px; overflow: visible; position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-blue), var(--accent-cyan));
  border-radius: 99px;
  transition: width .7s var(--ease-out);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.9), 0 0 24px rgba(99,102,241,.6);
}
.progress-label {
  display: flex; justify-content: space-between;
  margin-top: 7px;
  font-size: 10.5px; color: var(--text-muted);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

/* ── UPGRADE MODE BANNER ─────────────────────────────────────── */
.upgrade-mode-banner {
  margin: 10px 28px 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(239,68,68,.06));
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #fcd34d;
}
.upgrade-mode-banner i { font-size: 14px; color: #f59e0b; flex-shrink: 0; }
.upgrade-mode-banner strong { color: #fbbf24; }

/* ================================================================
   LAYOUT
   ================================================================ */
.layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  padding: 20px 32px 80px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative; z-index: 1;
}
/* Critical: grid children must have min-width:0 to prevent overflow */
.layout > * { min-width: 0; }
@media (min-width: 1800px) { .layout { grid-template-columns: 1fr 460px; padding: 24px 48px 80px; } }
@media (max-width: 1140px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .layout { padding: 14px 16px 100px; gap: 14px; } }
@media (max-width: 480px)  { .layout { padding: 10px 12px 100px; } }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .025em; white-space: nowrap; line-height: 1;
}
.badge-blue   { background: rgba(59,130,246,.14);  color: #93c5fd; border: 1px solid rgba(59,130,246,.22); }
.badge-green  { background: rgba(16,185,129,.14);  color: #6ee7b7; border: 1px solid rgba(16,185,129,.22); }
.badge-red    { background: rgba(239,68,68,.14);   color: #fca5a5; border: 1px solid rgba(239,68,68,.22); }
.badge-amber  { background: rgba(245,158,11,.14);  color: #fcd34d; border: 1px solid rgba(245,158,11,.22); }
.badge-purple { background: rgba(139,92,246,.14);  color: #c4b5fd; border: 1px solid rgba(139,92,246,.22); }
.badge-gray   { background: rgba(100,116,139,.1);  color: #94a3b8; border: 1px solid rgba(100,116,139,.18); }
.badge-cyan   { background: rgba(6,182,212,.14);   color: #67e8f9; border: 1px solid rgba(6,182,212,.22); }
.badge-pulse  { animation: badge-pulse 2s ease-in-out infinite; }
@keyframes badge-pulse {
  0%,100% { box-shadow: none; }
  50% { box-shadow: 0 0 10px rgba(239,68,68,.4); }
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-lg);
  font-size: 12.5px; line-height: 1.5;
  margin-bottom: 4px;
}
.alert-error   { background: rgba(239,68,68,.08);   border: 1px solid rgba(239,68,68,.2);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.08);  border: 1px solid rgba(245,158,11,.2); color: #fcd34d; }
.alert-info    { background: rgba(99,102,241,.08);  border: 1px solid rgba(99,102,241,.2); color: #a5b4fc; }
.alert-icon  { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.alert-fix   { font-size: 11px; opacity: .75; margin-top: 4px; display: flex; align-items: flex-start; gap: 5px; }
.alert-info-soft {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-md);
  font-size: 12px; line-height: 1.5;
  border: 1px solid rgba(99,102,241,.12);
  background: rgba(99,102,241,.05); color: #a5b4fc;
  margin-bottom: 4px;
}

/* ================================================================
   SCORE PANEL
   ================================================================ */
.score-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-panel);
}
.score-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.score-panel-title  { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.score-gauges { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.score-gauge  { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score-gauge-ring { position: relative; width: 72px; height: 72px; }
.score-gauge-ring svg { transform: rotate(-90deg); }
.score-gauge-val {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 16px; font-weight: 800;
  font-family: var(--font-title);
}
.score-gauge-label { font-size: 10.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* FPS Section */
.fps-section { border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.fps-title { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.fps-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.fps-res { font-size: 11px; color: var(--text-muted); font-weight: 700; width: 36px; flex-shrink: 0; }
.fps-track { flex: 1; height: 4px; background: var(--border-subtle); border-radius: 99px; overflow: hidden; }
.fps-fill { height: 100%; border-radius: 99px; transition: width .8s var(--ease-out); }
.fps-val { font-size: 11px; font-weight: 700; width: 52px; text-align: right; flex-shrink: 0; }
.fps-tag { font-size: 10px; width: 14px; flex-shrink: 0; }
.fps-note { font-size: 10px; color: var(--text-muted); margin-top: 8px; }

/* ================================================================
   SORT BAR
   ================================================================ */
.sort-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-label { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; margin-right: 4px; }
.sort-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-md);
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer; transition: all .18s; white-space: nowrap; flex-shrink: 0;
}
.sort-btn:hover { color: var(--text-primary); background: rgba(255,255,255,.06); border-color: var(--border-subtle); }
.sort-btn.active { color: var(--text-accent); background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.3); }

/* ================================================================
   ACCORDION
   ================================================================ */
.accordion-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: visible;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
  max-width: 100%;
}
.accordion-section:hover { border-color: var(--border-default); }
.accordion-section.section-locked { opacity: .55; pointer-events: none; }

.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: none; border: none; width: 100%;
  cursor: pointer; text-align: left;
  transition: background .18s;
  gap: 12px;
}
.accordion-header:hover { background: rgba(255,255,255,.025); }
.accordion-header.has-selection { background: rgba(16,185,129,.04); }
.accordion-header[aria-expanded="true"] { background: rgba(99,102,241,.06); }

.acc-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.acc-icon { font-size: 18px; flex-shrink: 0; }
.acc-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.acc-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.acc-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.acc-price { font-size: 13px; font-weight: 700; color: var(--accent-green); font-family: var(--font-title); }
.acc-chevron { color: var(--text-muted); font-size: 12px; transition: transform .3s var(--ease-out); flex-shrink: 0; }

/* Have own button — inside accordion header */
.have-own-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all .18s; white-space: nowrap;
  cursor: pointer;
}
.have-own-btn:hover { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.have-own-btn.owned { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: #6ee7b7; }

/* Upgrade toggle in accordion header */
.upgrade-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  cursor: pointer; transition: all .18s;
}
.upgrade-toggle[data-status="keep"] { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.upgrade-toggle[data-status="upgrade"] { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.upgrade-toggle:hover { transform: scale(1.04); }

/* Accordion body */
.accordion-body { display: none; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }

.multi-hint {
  font-size: 10.5px; color: var(--text-muted);
  padding: 6px 14px 2px;
  display: flex; align-items: center; gap: 5px;
}
.wifi-note {
  font-size: 10.5px; color: var(--text-muted);
  padding: 5px 14px 6px;
  display: flex; align-items: center; gap: 5px;
}

/* ── SEARCH ──────────────────────────────────────────────────── */
.search-wrap { position: relative; padding: 8px 12px 4px; }
.search-wrap i {
  position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 11px; pointer-events: none;
}
.cat-search-input {
  padding: 7px 12px 7px 32px; width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  font-size: 12.5px; color: var(--text-primary);
  font-family: var(--font-main); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cat-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ================================================================
   PRODUCT GRID & CARDS
   ================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: auto;
  gap: 8px;
  padding: 8px 12px 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 6px; } }
@media (max-width: 380px) { .product-grid { grid-template-columns: 1fr; } }

/* Card entrance animation */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-enter { animation: card-enter .3s var(--ease-out) both; }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
  text-decoration: none; color: inherit;
  min-height: 0;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99,102,241,.3);
  z-index: 10;
  position: relative;
}
.product-card.selected {
  border-color: rgba(16,185,129,.5);
  background: rgba(16,185,129,.05);
  box-shadow: 0 0 0 1px rgba(16,185,129,.3), var(--glow-green);
}
.product-card.selected:hover { border-color: rgba(16,185,129,.7); }
.product-card.dimmed { opacity: .35; pointer-events: none; }
.product-card.at-limit:not(.selected) { opacity: .35; pointer-events: none; }

/* Card stripe — brand color accent */
.card-stripe {
  height: 2px; flex-shrink: 0;
  transition: height .2s;
}
.product-card:hover .card-stripe { height: 3px; }

.card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 10px;
  min-height: 0;
}
.card-info { flex: 1; display: flex; flex-direction: column; }
.card-name {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary); line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  height: 34px; /* 12px * 1.4 * 2 = 33.6px — visada 2 eilutės */
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 5px;
  min-height: 32px; /* vieta 1-2 eilutėms meta items */
  align-content: flex-start;
}
.card-meta-item {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--text-muted); font-weight: 500;
}
.card-meta-item i { font-size: 9px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; min-height: 22px; }

/* Price wrap */
.card-price-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-top: auto;
  padding-top: 8px;
  min-height: 24px;
  gap: 0 4px;
}
.card-price {
  font-size: 15px; font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-title);
  grid-column: 1;
}
.card-price-scraped {
  font-size: 10px; color: #6ee7b7; font-weight: 600;
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
  align-self: baseline;
}
.card-price-diff-up {
  font-size: 10px; color: #fca5a5; font-weight: 600;
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
  align-self: baseline;
}

/* Select button */
.card-select-btn {
  margin-top: 8px; padding: 0 10px;
  border-radius: var(--r-md);
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  color: #a5b4fc;
  font-size: 11px; font-weight: 600;
  text-align: center;
  transition: all .18s;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card:hover .card-select-btn {
  background: rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.4);
  color: #c7d2fe;
}
.product-card.selected .card-select-btn {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.4);
  color: #6ee7b7;
}
.card-select-btn.selected-btn {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.4);
  color: #6ee7b7;
}

/* Qty stepper */
.qty-stepper {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(99,102,241,.4);
  background: rgba(99,102,241,.08);
  margin-top: 8px;
  width: 100%;
  height: 32px;
  min-height: 32px;
  flex-shrink: 0;
}
.qty-btn {
  width: 36px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: #a5b4fc; font-size: 16px; cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0; line-height: 1;
}
.qty-btn:hover { background: rgba(99,102,241,.2); color: #fff; }
.qty-btn:active { background: rgba(99,102,241,.35); }
.qty-num {
  flex: 1; text-align: center;
  font-size: 13px; font-weight: 700;
  color: #e0e7ff; pointer-events: none; user-select: none;
}

/* Kainų palyginimas — žiūrėti #price-tip */
.compare-price.out  { color: var(--text-muted); text-decoration: line-through; font-weight: 400; }

/* Empty state */
.cat-empty-state {
  grid-column: 1/-1;
  padding: 24px; text-align: center;
  color: var(--text-muted); font-size: 12px;
}

/* ================================================================
   SIDEBAR & PANEL
   ================================================================ */
.sidebar { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 1140px) { .sidebar { position: static; max-height: none; } }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  overflow: visible;
  box-shadow: var(--shadow-panel);
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.panel-title { font-size: 13px; font-weight: 800; font-family: var(--font-title); color: var(--text-primary); letter-spacing: -.2px; }
.panel-body { padding: 10px 14px 14px; }

/* Build items */
.build-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 0px 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.build-item:last-child { border-bottom: none; }

/* Row 1: kategorija etiketė — pilnas plotis */
.build-item-cat {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 3px;
}

/* Row 2: pavadinimas */
.build-item-name {
  grid-column: 1;
  grid-row: 2;
  font-size: 11.5px;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  align-self: center;
}

/* Row 2: kaina */
.build-item-price {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  align-self: center;
}

/* Row 2: "savo" badge */
.build-item-own {
  grid-column: 2;
  grid-row: 2;
  font-size: 9px;
  color: var(--accent-green);
  font-weight: 700;
  align-self: center;
  background: rgba(34,197,94,.1);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Row 2: remove btn */
.build-item-remove {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  color: rgba(239,68,68,.4);
  font-size: 10px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  border: none;
  background: none;
  transition: color .15s, background .15s;
  text-decoration: none;
  line-height: 1;
}
.build-item-remove:hover { color: #ef4444; background: rgba(239,68,68,.12); }

/* PSU recommendation */
.psu-rec {
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: var(--r-md);
}
.psu-rec-label { font-size: 10px; color: #93c5fd; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.psu-rec-val { font-size: 18px; font-weight: 800; color: #93c5fd; font-family: var(--font-title); }

/* Shipping select */
.ship-select {
  width: 100%; padding: 9px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: 12.5px; font-family: var(--font-main);
  cursor: pointer; outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9ab8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.ship-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ship-select option { background: var(--bg-elevated); color: var(--text-primary); }
.ship-select optgroup { color: var(--text-muted); font-size: 10px; }

/* Shipping method cards (alternative to select) */
.ship-methods { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ship-method-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer; transition: all .18s;
  position: relative;
}
.ship-method-card:hover { border-color: var(--border-default); background: var(--bg-elevated); }
.ship-method-card.active {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.08);
}
.ship-method-card.disabled { opacity: .4; pointer-events: none; }
.ship-method-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.ship-method-info { flex: 1; min-width: 0; }
.ship-method-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.ship-method-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.ship-method-price {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); flex-shrink: 0;
  font-family: var(--font-title);
}
.ship-method-price.cheapest { color: #6ee7b7; }
.ship-method-price.disabled-price { color: var(--text-muted); font-size: 10px; }
.ship-method-badge {
  position: absolute; top: -5px; right: 8px;
  font-size: 9px; font-weight: 700; padding: 1px 5px;
  border-radius: 99px; background: #10b981; color: #fff;
}
.ship-group-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  padding: 6px 2px 3px; display: flex; align-items: center; gap: 5px;
}

.ship-meta, .cheapest-hint {
  font-size: 10.5px; color: var(--text-muted);
  margin-top: 5px; display: flex; align-items: center; gap: 5px;
}
.cheapest-hint { color: #6ee7b7; }
.highlight { color: var(--text-primary); font-weight: 600; }

/* Terminal picker */
.city-select {
  width: 100%; padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 11.5px; font-family: var(--font-main);
  margin-bottom: 5px; cursor: pointer; outline: none;
}
.terminal-search-input {
  width: 100%; padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 11.5px; font-family: var(--font-main);
  margin-bottom: 5px; outline: none;
  transition: border-color .15s;
}
.terminal-search-input:focus { border-color: var(--border-focus); }
.terminal-list {
  display: flex; flex-direction: column; gap: 3px;
  max-height: 200px; overflow-y: auto;
  padding: 2px 0;
}
.terminal-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--r-md);
  font-size: 11.5px; color: var(--text-secondary);
  cursor: pointer; transition: all .15s;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  gap: 6px;
}
.terminal-item:hover {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.25);
  color: var(--text-primary);
  transform: translateX(2px);
}
.terminal-item.selected-terminal {
  background: rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.4);
  color: #6ee7b7;
  font-weight: 600;
}
.terminal-item.selected-terminal::before {
  content: '✓';
  font-size: 10px;
  color: #10b981;
  flex-shrink: 0;
}
.terminal-name {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
}
/* Inline map icon — sits right before the terminal name */
.terminal-pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  color: #60a5fa; font-size: 10px;
  flex-shrink: 0; transition: all .15s;
  text-decoration: none;
}
.terminal-pin:hover {
  background: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.45);
  color: #93c5fd;
  transform: scale(1.15);
}
/* Keep old .terminal-map for any leftover references */
.terminal-map {
  font-size: 10px; color: var(--text-muted);
  padding: 3px 7px; border-radius: var(--r-sm);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  flex-shrink: 0; transition: all .15s;
}
.terminal-map:hover { background: rgba(59,130,246,.2); color: #93c5fd; }
.terminal-empty, .terminal-more { padding: 12px; text-align: center; color: var(--text-muted); font-size: 11px; }
.terminal-selected-msg { font-size: 11px; color: #6ee7b7; margin-top: 6px; display: flex; align-items: center; gap: 5px; font-weight: 600; }

/* Price summary */
.price-divider { height: 1px; background: var(--border-subtle); margin: 10px 0; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 12.5px; }
.price-row .label { color: var(--text-muted); }
.price-row .value { color: var(--text-secondary); font-weight: 600; }
.price-total { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.price-total .label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.price-total .value { font-size: 18px; font-weight: 800; color: var(--text-primary); font-family: var(--font-title); }

/* Markup row */
.price-row.markup-row .value { color: #fcd34d; }
.price-row.service-row .value { color: #a5b4fc; }

/* Services section */
.services-section {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.services-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  margin-bottom: 8px;
}
.service-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.02);
  margin-bottom: 5px; cursor: pointer;
  transition: all .18s;
}
.service-item:hover { background: rgba(99,102,241,.06); border-color: rgba(99,102,241,.2); }
.service-item.checked { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.3); }
.service-checkbox { margin-top: 1px; accent-color: var(--accent-indigo); cursor: pointer; flex-shrink: 0; }
.service-info { flex: 1; }
.service-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.service-desc { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.service-price { font-size: 12px; font-weight: 700; color: #a5b4fc; flex-shrink: 0; }

/* Delivery box */
.delivery-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-top: 10px;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.15);
  border-radius: var(--r-md);
}
.delivery-icon { color: #6ee7b7; font-size: 16px; flex-shrink: 0; }
.delivery-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.delivery-date { font-size: 13px; font-weight: 700; color: #6ee7b7; margin-top: 2px; }

/* CTA Button */
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  border-radius: var(--r-lg); margin-top: 12px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-title);
  cursor: pointer; border: none;
  transition: all .2s var(--ease-out);
  text-decoration: none;
}
.cta-btn.active {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.cta-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,.5);
}
.cta-btn.disabled {
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ================================================================
   STICKY BAR
   ================================================================ */
.build-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,13,20,.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
}
.build-sticky-bar.visible { transform: translateY(0); }
.build-sticky-bar-parts { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.build-sticky-bar-price { font-size: 20px; font-weight: 800; font-family: var(--font-title); color: var(--text-primary); }
.build-sticky-bar-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
  color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  transition: transform .18s, box-shadow .18s;
}
.build-sticky-bar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(99,102,241,.45); }

/* ================================================================
   FADE IN ANIMATION
   ================================================================ */
.fade-in { animation: fade-in .4s var(--ease-out) both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 28px 24px;
  position: relative; z-index: 1;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-size: 18px; font-weight: 800; font-family: var(--font-title); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.footer-tagline { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.footer-col-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-link { font-size: 12px; color: var(--text-muted); transition: color .15s; }
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-copy { font-size: 11px; color: var(--text-muted); }
.footer-tech { display: flex; gap: 10px; }
.footer-tech-item { font-size: 10px; color: var(--text-muted); padding: 2px 7px; background: rgba(255,255,255,.04); border-radius: 99px; }

/* ================================================================
   PANEL — overflow visible fix
   ================================================================ */
.panel { overflow: visible; }
.panel-body { padding-bottom: 18px; }
.sidebar { overflow-y: auto; }

/* ================================================================
   MISC
   ================================================================ */
.alert-info-soft { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); font-size: 12px; line-height: 1.5; border: 1px solid rgba(99,102,241,.15); background: rgba(99,102,241,.06); color: #a5b4fc; margin-bottom: 4px; }
.wifi-note { font-size: 10.5px; color: var(--text-muted); padding: 4px 12px 6px; display: flex; align-items: center; gap: 5px; }
.product-card.at-limit:not(.selected) { opacity: .4; pointer-events: none; }


/* ================================================================
   UPGRADE MODE
   ================================================================ */
.upgrade-mode-banner {
  margin: 10px 28px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(239,68,68,.06));
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #fcd34d;
  position: relative; z-index: 1;
}

/* Upgrade toggle button */
.upgrade-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  cursor: pointer; transition: all .18s;
  white-space: nowrap;
}
.upgrade-toggle[data-status="keep"] {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.35);
  color: #6ee7b7;
}
.upgrade-toggle[data-status="upgrade"] {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.3);
  color: #fcd34d;
}
.upgrade-toggle:hover { transform: scale(1.04); }

/* Kept part placeholder */
.kept-part-placeholder {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.kept-part-placeholder i { font-size: 24px; color: #10b981; opacity: .6; }
.kept-part-placeholder strong { color: #6ee7b7; }


/* ================================================================
   UPGRADE WIZARD — Step 1: Ką turite?
   ================================================================ */

#upgrade-screen { padding: 0 28px 40px; }

.upgrade-wizard {
  max-width: 860px;
  margin: 24px auto 0;
}

.upgrade-wizard-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(245,158,11,.07), rgba(239,68,68,.04));
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--r-xl);
}
.upgrade-wizard-icon { font-size: 32px; flex-shrink: 0; }
.upgrade-wizard-title {
  font-family: var(--font-title);
  font-size: 18px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.upgrade-wizard-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* Parts grid — 3 columns */
.upgrade-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .upgrade-parts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .upgrade-parts-grid { grid-template-columns: 1fr; } }

/* Individual part card */
.upgrade-part-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 14px 16px;
  transition: border-color .18s, background .18s;
  cursor: default;
}
.upgrade-part-card.owned {
  background: rgba(16,185,129,.05);
  border-color: rgba(16,185,129,.3);
}

.upgrade-part-top {
  display: flex; align-items: center; gap: 10px;
}
.upgrade-part-icon { font-size: 20px; flex-shrink: 0; }
.upgrade-part-info { flex: 1; min-width: 0; }
.upgrade-part-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Toggle switch */
.upgrade-toggle-switch {
  position: relative; flex-shrink: 0;
  width: 40px; height: 22px;
  cursor: pointer;
}
.upgrade-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.upgrade-toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-default);
  border-radius: 99px;
  transition: background .2s, border-color .2s;
}
.upgrade-toggle-switch input:checked ~ .upgrade-toggle-track {
  background: rgba(16,185,129,.25);
  border-color: rgba(16,185,129,.5);
}
.upgrade-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.upgrade-toggle-switch input:checked ~ .upgrade-toggle-track .upgrade-toggle-thumb {
  transform: translateX(18px);
  background: #10b981;
}

/* Model text input */
.upgrade-model-wrap {
  margin-top: 10px;
  overflow: visible;
  transition: max-height .2s ease, opacity .2s ease;
  max-height: 48px; opacity: 1;
}
.upgrade-model-wrap.hidden { max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; margin-top: 0; }
.upgrade-model-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 7px 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.upgrade-model-input::placeholder { color: var(--text-muted); }
.upgrade-model-input:focus { border-color: rgba(245,158,11,.4); }

/* Footer */
.upgrade-wizard-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.upgrade-wizard-summary {
  font-size: 13px; color: var(--text-muted);
}
.upgrade-wizard-summary span { color: var(--text-primary); font-weight: 700; }

.upgrade-proceed-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-family: var(--font-title);
  font-size: 13px; font-weight: 700;
  border: none; border-radius: var(--r-xl);
  cursor: pointer;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
  letter-spacing: .03em;
}
.upgrade-proceed-btn:hover { opacity: .9; transform: translateY(-1px); }
.upgrade-proceed-btn:active { transform: translateY(0); }

/* ── Step 2: Back bar ── */
.upgrade-back-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 28px 0;
  margin-bottom: -4px;
  flex-wrap: wrap;
}
.upgrade-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}
.upgrade-back-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.upgrade-back-summary { font-size: 11.5px; color: var(--text-muted); }

.hidden { display: none !important; }

/* ── UPGRADE LIVE SEARCH DROPDOWN ── */
.upgrade-search-wrap { position: relative; }
.upgrade-search-dropdown {
  display: none; position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-elevated, #1a2035);
  border: 1px solid var(--border-strong, rgba(255,255,255,.15));
  border-radius: var(--r-lg, 10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 200; overflow: hidden;
  max-height: 220px; overflow-y: auto;
}
.upgrade-search-dropdown.open { display: block; }
.usd-item {
  display: flex; flex-direction: column;
  padding: 9px 12px; cursor: pointer; transition: background .12s; gap: 3px;
}
.usd-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
}
.usd-item:hover { background: rgba(255,255,255,.06); }
.usd-item + .usd-item { border-top: 1px solid rgba(255,255,255,.05); }
.usd-name { font-size: 12px; color: var(--text-primary, #f0f4ff); white-space: normal; word-break: break-word; flex: 1; line-height: 1.35; }
.usd-price { font-size: 11px; font-weight: 700; color: #3b82f6; align-self: flex-end; }
.usd-empty { padding: 10px 12px; font-size: 12px; color: var(--text-muted, #64748b); text-align: center; }

.usd-clear-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted, #64748b);
  font-size: 16px; line-height: 1;
  cursor: pointer; padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  z-index: 2;
}
.usd-clear-btn:hover { color: var(--text-primary, #f0f4ff); background: rgba(255,255,255,.08); }

/* ── UPGRADE COMPAT WARNINGS ─────────────────────────── */
.upgrade-compat-warnings {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 10px;
}
.upgrade-compat-warn {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r-md, 8px);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--danger, #ef4444);
  line-height: 1.4;
}
.upgrade-compat-warn strong { font-weight: 700; }

/* ── USD BADGE (socket/DDR žymos dropdown'e) ─────────── */
.usd-meta { display: flex; gap: 4px; flex-shrink: 0; }
.usd-badge {
  font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,.1);
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}
.usd-badge-ddr5 { background: rgba(139,92,246,.15); color: #a78bfa; }

/* ── X CLEAR BTN ─────────────────────────────────────── */
.usd-clear-btn {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted, #64748b);
  font-size: 16px; line-height: 1;
  cursor: pointer; padding: 2px 4px;
  border-radius: 4px; z-index: 2;
  transition: color .15s, background .15s;
}
.usd-clear-btn:hover { color: var(--text-primary, #f0f4ff); background: rgba(255,255,255,.08); }

/* ── SHAKE ANIMACIJA ─────────────────────────────────── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake .4s ease; }

/* ── UPGRADE SHOP — TAB'AI + GRID'AS ─────────────────────── */
.upg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.upg-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-lg, 10px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  background: var(--bg-card, rgba(255,255,255,.04));
  border: 1px solid var(--border-default, rgba(255,255,255,.08));
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.upg-tab:hover {
  background: var(--bg-elevated, rgba(255,255,255,.07));
  color: var(--text-primary, #f0f4ff);
}
.upg-tab.active {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.35);
  color: #f59e0b;
  font-weight: 600;
}
.upg-tab-check {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
}
.upg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* ── FORCED SERVICE (surinkimas new PC) ──────────────────── */
.service-item.service-forced {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.service-item.service-forced::after {
  content: 'Privaloma';
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 6px;
  font-style: italic;
}

/* ── PRICE COMPARE HOVER TOOLTIP ─────────────────────────── */
/* ── KAINŲ PALYGINIMO POPUP (hover) ──────────────────────── */
#price-tip {
  position: fixed;          /* fixed: scroll neišmeta iš vietos */
  z-index: 9999;
  pointer-events: none;     /* default: hover prasiskverbia pro tooltip */
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .18s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
  will-change: opacity, transform;
}
#price-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;     /* kai visible — mouse gali įeiti į tooltip */
}
.price-tip-inner {
  background: var(--bg-elevated, #1a2035);
  border: 1px solid var(--border-strong, rgba(255,255,255,.13));
  border-radius: 13px;
  padding: 12px 14px;
  min-width: 210px;          /* užtikrina kad trumpi pavadinimai nesitraukia */
  max-width: 280px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.price-tip-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted, #64748b);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.price-tip-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0 8px;
  padding: 5px 0;
  border-radius: 6px;
  transition: background .1s;
}
.price-tip-row + .price-tip-row { border-top: 1px solid rgba(255,255,255,.045); }
.price-tip-shop { font-size:11px; color:var(--text-secondary); min-width:80px; }
.price-tip-price { font-size:12px; font-weight:700; color:var(--text-primary); }
.price-tip-old { font-size:10px; color:var(--text-muted); text-decoration:line-through; margin-left:4px; }
.price-tip-diff { font-size:10px; font-weight:700; margin-left:4px; }
.price-tip-diff.cheaper { color:#10b981; }
.price-tip-diff.pricier  { color:#ef4444; }
.price-tip-stock {
  font-size: 9px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  grid-column: 3;
  text-align: center;
  white-space: nowrap;
}
.price-tip-stock.in  { background:rgba(16,185,129,.15); color:#10b981; }
.price-tip-stock.out { background:rgba(239,68,68,.12);  color:#ef4444; }
.price-tip-row.best {
  background: rgba(16,185,129,.09);
  margin: 2px -6px 0;
  padding: 5px 6px;
  border-radius: 7px;
  border-top: none !important;
}
.price-tip-row.out { opacity: .55; }
.price-tip-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.price-tip-summary strong { color: #10b981; }
.price-tip-row.out .price-tip-price { text-decoration: line-through; color: var(--text-muted, #64748b); }
.price-tip-shop {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1;
}
.price-tip-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #f0f4ff);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.price-tip-row.best .price-tip-shop { color: #10b981; font-weight: 600; }
.price-tip-row.best .price-tip-price { color: #10b981; }
.price-tip-row.best .fa-crown { font-size: 9px; color: #fbbf24; vertical-align: middle; }

/* ══════════════════════════════════════════════════════════════
   GAME BUILD WIZARD
   ══════════════════════════════════════════════════════════════ */

/* ================================================================
   GAME BUILD HERO
   ================================================================ */

/* ── Wrapper ─────────────────────────────────────────────────── */
.gbh {
  margin: 0 0 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--gbh-border, 99,102,241), .2);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.12) 0%, transparent 70%),
    var(--bg-card);
  box-shadow: 0 8px 40px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── Top bar ─────────────────────────────────────────────────── */
.gbh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.gbh-top-left { display: flex; flex-direction: column; gap: 6px; }

.gbh-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  color: var(--accent-indigo);
  letter-spacing: .5px; text-transform: uppercase;
  width: fit-content;
}
.gbh-badge i { font-size: 9px; }

.gbh-title {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.5px; margin: 0; line-height: 1.2;
}
.gbh-sub {
  font-size: 13px; color: var(--text-muted);
  margin: 0; max-width: 480px; line-height: 1.5;
}

.gbh-top-right {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.gbh-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gbh-stat-val {
  font-size: 24px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.5px; line-height: 1;
}
.gbh-stat-lbl {
  font-size: 10px; color: var(--text-muted);
  font-weight: 500; text-transform: uppercase; letter-spacing: .4px;
}
.gbh-stat-div { width: 1px; height: 32px; background: var(--border-subtle); }

/* ── Game cards grid ─────────────────────────────────────────── */
.gbh-games {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 0 32px 24px;
}
@media (max-width: 1200px) { .gbh-games { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 700px)  { .gbh-games { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 16px 16px; } }

.gbh-game {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.gbh-game::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--gc, #6366f1) 0%, transparent 55%);
  opacity: 0; transition: opacity .2s; border-radius: inherit;
}
.gbh-game:hover { border-color: var(--gc, #6366f1); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 0 0 1px var(--gc, #6366f1); }
.gbh-game:hover::after { opacity: .1; }
.gbh-game.active { border-color: var(--gc, #6366f1); background: var(--bg-card-hover); box-shadow: 0 0 0 2px var(--gc, #6366f1), 0 8px 30px rgba(0,0,0,.25); transform: translateY(-3px); }
.gbh-game.active::after { opacity: .15; }
.gbh-game-icon { font-size: 26px; line-height: 1; position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.gbh-game-name { font-size: 10px; font-weight: 600; color: var(--text-secondary); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; position: relative; z-index: 1; transition: color .18s; }
.gbh-game:hover .gbh-game-name, .gbh-game.active .gbh-game-name { color: var(--text-primary); }

/* ── Body ────────────────────────────────────────────────────── */
.gbh-body {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 32px 24px;
  background: rgba(0,0,0,.06);
}
@media (max-width: 700px) { .gbh-body { padding: 16px; } }

/* ── Tier buttons — DUAL class support (old JS + new HTML) ───── */
.gbh-tiers,
.game-tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .gbh-tiers, .game-tier-row { grid-template-columns: repeat(2, 1fr); } }

.gbh-tier,
.game-tier-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  color: var(--text-primary);
  text-align: left;
}
.gbh-tier:hover, .game-tier-btn:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.gbh-tier.active, .game-tier-btn.active {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 0 0 1px rgba(99,102,241,.2);
}

.gbh-tier-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.gbh-tier-info { display: flex; flex-direction: column; gap: 2px; }
.gbh-tier-name, .tier-label {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.gbh-tier-sub, .tier-sublabel {
  font-size: 10px; color: var(--text-muted);
}

/* ── Loading ─────────────────────────────────────────────────── */
.gbh-loading,
.game-build-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 32px;
  color: var(--text-muted); font-size: 13px;
}
.gbh-loading i, .game-build-loading i { color: var(--accent-indigo); font-size: 18px; }

/* ── Result panel — DUAL class support ───────────────────────── */
.gbh-result,
.game-build-result {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  overflow: hidden;
}

/* Result header (static HTML) */
.gbh-result-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  gap: 16px; flex-wrap: wrap;
}
.gbh-result-meta { display: flex; align-items: center; gap: 14px; }
.gbh-result-game-icon { font-size: 28px; line-height: 1; }
.gbh-result-game-name { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gbh-result-note { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.gbh-result-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.gbh-result-price-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.gbh-result-price { font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -.8px; line-height: 1; }

/* Result header (JS-generated) */
.game-result-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  gap: 12px; flex-wrap: wrap;
}
.game-result-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  flex-wrap: wrap;
}
.game-result-note { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* ── Tier badges ─────────────────────────────────────────────── */
.game-result-tier-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: .3px; text-transform: uppercase;
}
.tier-badge-low    { background: rgba(34,197,94,.15);  color: #16a34a; }
.tier-badge-medium { background: rgba(245,158,11,.15); color: #b45309; }
.tier-badge-high   { background: rgba(99,102,241,.18); color: #4338ca; }
.tier-badge-ultra  { background: rgba(236,72,153,.15); color: #be185d; }
html.dark      .tier-badge-low,
html.bloodred  .tier-badge-low,
html.cyberpunk .tier-badge-low   { color: #86efac; }
html.dark      .tier-badge-medium,
html.bloodred  .tier-badge-medium,
html.cyberpunk .tier-badge-medium { color: #fcd34d; }
html.dark      .tier-badge-high,
html.bloodred  .tier-badge-high,
html.cyberpunk .tier-badge-high   { color: #a5b4fc; }
html.dark      .tier-badge-ultra,
html.bloodred  .tier-badge-ultra,
html.cyberpunk .tier-badge-ultra  { color: #f9a8d4; }

/* ── Component rows ──────────────────────────────────────────── */
.gbh-comps, .game-result-components { padding: 4px 0; }
.game-comp-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background .12s;
}
.game-comp-row:last-child { border-bottom: none; }
.game-comp-row:hover { background: var(--bg-card-hover); }
.game-comp-label { font-size: 10.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.game-comp-name  { font-size: 12.5px; color: var(--text-primary); line-height: 1.3; }
.game-comp-price { font-size: 13px; font-weight: 700; color: var(--accent-indigo); white-space: nowrap; }

/* ── Footer ──────────────────────────────────────────────────── */

/* ── FPS row (game build result) ────────────────────────────── */
.gbh-fps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.gbh-fps-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gbh-fps-res {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
}
.gbh-fps-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-indigo);
}
.gbh-fps-sep {
  color: var(--border-strong, rgba(255,255,255,.2));
  font-size: 12px;
}
.gbh-fps-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
  font-style: italic;
}

.gbh-result-foot,
.game-result-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  gap: 12px; flex-wrap: wrap;
}
.game-result-total { display: flex; flex-direction: column; gap: 2px; }
.game-total-label  { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.game-total-price  { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -.5px; }

/* ── Apply button — DUAL class support ───────────────────────── */
.gbh-apply,
.game-apply-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .18s;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
  letter-spacing: .2px;
}
.gbh-apply:hover, .game-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,.5);
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}
.gbh-apply:active,  .game-apply-btn:active  { transform: translateY(0); }
.gbh-apply:disabled,.game-apply-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Tier dots ───────────────────────────────────────────────── */
.tier-dot    { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tier-low    { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.5); }
.tier-medium { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); }
.tier-high   { background: #6366f1; box-shadow: 0 0 6px rgba(99,102,241,.5); }
.tier-ultra  { background: #ec4899; box-shadow: 0 0 6px rgba(236,72,153,.5); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gbh-top { padding: 20px 16px 14px; }
  .gbh-top-right { display: none; }
  .gbh-games { grid-template-columns: repeat(5, 1fr); padding: 0 16px 16px; }
  .gbh-body  { padding: 14px 16px 16px; }
  .game-result-footer { flex-direction: column; align-items: stretch; }
  .game-apply-btn, .gbh-apply { justify-content: center; }
  .game-comp-row { grid-template-columns: 90px 1fr auto; padding: 8px 14px; }
}

/* ── Arctic (light) theme overrides ─────────────────────────── */
html.arctic .gbh {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.08) 0%, transparent 70%),
    var(--bg-card);
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 4px 24px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
}
html.arctic .gbh-body { background: rgba(0,0,0,.03); }
html.arctic .gbh-game { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.1); }
html.arctic .gbh-game:hover { background: rgba(255,255,255,.95); }
html.arctic .gbh-game.active { background: #fff; }
html.arctic .gbh-tier,

html.arctic .gbh-tier:hover,
html.arctic .game-tier-btn:hover { background: #fff; border-color: rgba(0,0,0,.18); }
html.arctic .gbh-tier.active,
html.arctic .game-tier-btn.active { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.4); }
html.arctic .gbh-result,

html.arctic .game-result-header,
html.arctic .gbh-result-head { background: rgba(255,255,255,.8); }
html.arctic .game-result-footer,
html.arctic .gbh-result-foot { background: rgba(255,255,255,.8); }
html.arctic .game-comp-row:hover { background: rgba(99,102,241,.04); }

html.arctic .tier-badge-low    { color: #15803d; }
html.arctic .tier-badge-medium { color: #b45309; }
html.arctic .tier-badge-high   { color: #4338ca; }
html.arctic .tier-badge-ultra  { color: #be185d; }




html.arctic .game-card:hover {
  border-color: rgba(0,0,0,.2);
  background: rgba(255,255,255,.9);
}
html.arctic .game-card.active {
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px var(--game-color, #6366f1), 0 4px 16px rgba(0,0,0,.12);
}



html.arctic .game-tier-btn:hover {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.18);
}
html.arctic .game-tier-btn.active {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.4);
}








html.arctic .game-comp-row:hover {
  background: rgba(0,0,0,.02);
}






html.arctic .tier-badge-low    { background: rgba(34,197,94,.12);  color: #15803d; }
html.arctic .tier-badge-medium { background: rgba(245,158,11,.12); color: #b45309; }
html.arctic .tier-badge-high   { background: rgba(99,102,241,.12); color: #4338ca; }
html.arctic .tier-badge-ultra  { background: rgba(236,72,153,.12); color: #be185d; }

/* ================================================================
   CARD META — papildomi badge'ai
   ================================================================ */
.card-meta-item.meta-green { color: #10b981; }
.card-meta-item.meta-amber { color: #f59e0b; }
.card-meta-item.meta-muted { color: var(--text-muted, #64748b); opacity: .6; }
.card-meta-item.badge-subtle {
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ================================================================
   CHECKOUT ALERTS — price issues
   ================================================================ */
.co-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.co-alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.co-alert-body { flex: 1; }
.co-alert-title { font-weight: 700; margin-bottom: 6px; }
.co-alert-sub   { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.co-alert-item  { margin: 4px 0; font-size: 12px; color: var(--text-secondary); }
.co-alert-link  {
  margin-left: 8px;
  color: var(--blue, #3b82f6);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.co-alert-link:hover { text-decoration: underline; }

.co-alert-removed {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
}
.co-alert-good {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
}
.co-alert-warn {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
}

.co-btn-accept {
  background: linear-gradient(135deg,#f59e0b,#d97706);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.co-btn-accept:hover { opacity: .88; }
.co-btn-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.co-btn-back:hover { background: rgba(255,255,255,.12); }
