/* ==========================================================================
   Unix Network PC Builder — Pro 3-Column UI + 3D Center Stage + Build Card
   Loaded after pc_builder.min.css
   ========================================================================== */

/* Keep container crisp and prevent any right-edge clipping */
.pcb-pro.container,
#extension-pc-builder-pc-builder.pcb-pro {
  max-width: 1620px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  overflow-x: clip;
}

.pcb-pro .pcb-page-outer,
.pcb-pro .pcb-main-col {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Pro header polish */
.pcb-pro .pcb-page-head--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pcb-pro .pcb-intro-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0ea5e9;
  margin: 0 0 2px;
}

.pcb-pro .pcb-intro-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
}

/* Top summary bar refresh */
.pcb-pro .pcb-build-summary--top {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}

.pcb-pro .pcb-tool-btn--card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  border-color: #0f172a !important;
  font-weight: 600;
}
.pcb-pro .pcb-tool-btn--card:hover,
.pcb-pro .pcb-tool-btn--card:focus {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   2-COLUMN LAYOUT: Left (Parts) | Center (Live build + Peter Parker)
   ========================================================================== */
.pcb-pro .pcb-build-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: 20px;
  align-items: start;
  margin: 0 0 24px;
}

.pcb-pro .pcb-build-split__parts {
  min-width: 0;
  order: 1;
}

.pcb-pro .pcb-build-split__report {
  min-width: 0;
  order: 2;
  position: sticky;
  top: 12px;
}

/* ==========================================================================
   LEFT COLUMN: CORE COMPONENTS & PERIPHERALS (Flagship Configurator Polish)
   ========================================================================== */
.pcb-pro .pcb-build-split__parts .pcb-workspace {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  padding: 16px 18px;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container + .pc-builder-category-container {
  margin-top: 22px;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #334155;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 100%);
  flex-shrink: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 9px;
  gap: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] {
  border-color: #bbf7d0;
  border-left: 3.5px solid #16a34a;
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 34%);
  box-shadow: 0 3px 12px rgba(22, 163, 74, 0.06);
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"]:hover {
  border-color: #86efac;
  border-left-color: #15803d;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.1);
}

/* Slot icon / Product photo box */
.pcb-pro .pcb-build-split__parts .component-image {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-image {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-color: #dbeafe;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pcb-pro .pcb-build-split__parts .component-image img.pcb-component-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  display: block;
}

/* Text hierarchy */
.pcb-pro .pcb-build-split__parts .component-name-product {
  flex: 1 1 auto;
  min-width: 0;
}

.pcb-pro .pcb-build-split__parts .component-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 2px;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-name {
  font-size: 0.68rem;
  color: #15803d;
  letter-spacing: 0.06em;
}

.pcb-pro .pcb-build-split__parts .pcb-required-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-required-badge {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}

.pcb-pro .pcb-build-split__parts .component-product {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.pcb-pro .pcb-build-split__parts .pcb-no-selection {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
}

.pcb-pro .pcb-build-split__parts .pcb-compat-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Right side actions: Qty + Price + Remove + Choose/Change */
.pcb-pro .pcb-build-split__parts .pcb-component-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pcb-pro .pcb-build-split__parts .component-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pcb-pro .pcb-build-split__parts .pcb-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.pcb-pro .pcb-build-split__parts .pcb-qty__btn {
  width: 26px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.pcb-pro .pcb-build-split__parts .pcb-qty__btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.pcb-pro .pcb-build-split__parts .pcb-qty__value {
  min-width: 22px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.pcb-pro .pcb-build-split__parts .pcb-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pcb-pro .pcb-build-split__parts .pcb-remove-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.pcb-pro .pcb-build-split__parts .pcb-choose-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9px;
  border: 1px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pcb-pro .pcb-build-split__parts .pcb-choose-btn:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155 !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
  .pcb-pro .pcb-build-split__parts .pcb-workspace {
    padding: 12px;
  }
  .pcb-pro .pcb-build-split__parts .pc-builder-component-container {
    flex-wrap: wrap;
    padding: 10px 11px;
    gap: 10px;
  }
  .pcb-pro .pcb-build-split__parts .pcb-component-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }
  .pcb-pro .pcb-build-split__parts .component-price {
    margin-right: auto;
  }
}

/* ==========================================================================
   LIVE BUILD VISUAL SHOWCASE (real Casing photo hero + 8-slot visual rack)
   ========================================================================== */
.pcb-pro .pcb-viz.has-hero .pcb-viz__stack {
  display: none;
}

.pcb-pro .pcb-build-split__report .pcb-viz__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 8px;
}

.pcb-pro .pcb-live-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcb-pro .pcb-live-hero[hidden] {
  display: none !important;
}

.pcb-pro .pcb-live-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcb-pro .pcb-live-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.pcb-pro .pcb-live-hero__mode,
.pcb-pro .pcb-live-diagram-back {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pcb-pro .pcb-live-hero__mode:hover,
.pcb-pro .pcb-live-diagram-back:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.pcb-pro .pcb-live-diagram-back {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 6;
}

.pcb-pro .pcb-live-diagram-back[hidden] {
  display: none !important;
}

.pcb-pro .pcb-live-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f8fafc 70%, #e2e8f0 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.pcb-pro .pcb-live-hero__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.18));
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.pcb-pro .pcb-live-hero__img[hidden] {
  display: none !important;
}

.pcb-pro .pcb-live-hero__frame:hover .pcb-live-hero__img {
  transform: scale(1.03);
}

.pcb-pro .pcb-live-hero__empty {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.pcb-pro .pcb-live-hero__empty[hidden] {
  display: none !important;
}

.pcb-pro .pcb-live-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 2px 0;
}

.pcb-pro .pcb-live-hero__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcb-pro .pcb-live-hero__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcb-pro .pcb-live-hero__price {
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
}

.pcb-pro .pcb-live-hero__swap {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.pcb-pro .pcb-live-hero__swap:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Progress bar */
.pcb-pro .pcb-live-progress {
  position: relative;
  z-index: 1;
  height: 4px;
  margin: 2px 12px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.pcb-pro .pcb-live-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
  transition: width 0.35s ease, background 0.35s ease;
}

.pcb-pro .pcb-live-progress.is-complete .pcb-live-progress__fill {
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
}

/* 8-slot core parts visual rack */
.pcb-pro .pcb-live-rack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 12px;
}

.pcb-pro .pcb-live-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 4px 4px;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pcb-pro .pcb-live-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
}

.pcb-pro .pcb-live-tile.is-selected {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.pcb-pro .pcb-live-tile.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
}

.pcb-pro .pcb-live-tile__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.45);
}

.pcb-pro .pcb-live-tile.is-selected .pcb-live-tile__media {
  background: #ffffff;
  padding: 3px;
  box-sizing: border-box;
}

.pcb-pro .pcb-live-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pcb-pro .pcb-live-tile__plus {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.55);
  line-height: 1;
}

.pcb-pro .pcb-live-tile__check {
  font-size: 0.85rem;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
}

.pcb-pro .pcb-live-tile__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@keyframes pcbTilePop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pcb-pro .pcb-live-tile.is-fresh {
  animation: pcbTilePop 0.32s ease;
}

/* Live build column: photo only, no blue/red selected-state overlays */
.pcb-pro .pcb-viz__layer {
  display: none !important;
}

.pcb-pro .pcb-viz__signals {
  display: none !important;
}

.pcb-pro .pcb-build-split__report .pcb-viz__stack {
  width: min(100%, 248px);
  height: auto;
  aspect-ratio: 328 / 357;
  max-width: 100%;
}

.pcb-pro .pcb-build-split__report .pcb-viz__overlay,
.pcb-pro .pcb-build-split__report .pcb-viz__hitmap {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
}

/* ==========================================================================
   CENTER 3D PC SHOWCASE
   ========================================================================== */
.pcb-3d-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #1e293b 0%, #0f172a 58%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
  color: #f8fafc;
}

.pcb-3d-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
}

.pcb-3d-card__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #38bdf8;
}

.pcb-3d-card__title {
  margin: 1px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.pcb-3d-card__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pcb-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pcb-3d-badge--price {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
}

/* 3D Canvas Viewport */
.pcb-3d-viewport {
  position: relative;
  width: 100%;
  height: 410px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.pcb-3d-viewport:active {
  cursor: grabbing;
}

.pcb-3d-viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  transition: opacity 0.6s ease;
}

/* Idle loop (before any part is chosen) crossfades with the live 3D rig */
.pcb-3d-idle-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.pcb-3d-viewport.is-idle .pcb-3d-idle-video {
  opacity: 1;
  visibility: visible;
}

.pcb-3d-viewport.is-idle canvas {
  opacity: 0;
  pointer-events: none;
}

.pcb-3d-hint {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 4;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
  pointer-events: none;
}

/* Floating controls inside 3D viewport */
.pcb-3d-controls {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcb-3d-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pcb-3d-ctrl-btn:hover,
.pcb-3d-ctrl-btn.is-active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

/* RGB swatches bar */
.pcb-3d-rgb-bar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.pcb-3d-rgb-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 2px;
}

.pcb-3d-rgb-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pcb-3d-rgb-dot:hover {
  transform: scale(1.15);
}

.pcb-3d-rgb-dot.is-active {
  border-color: #ffffff;
  transform: scale(1.15);
}

/* Active Selected Product Inspector Strip */
.pcb-3d-inspector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  min-height: 70px;
}

.pcb-3d-inspector__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pcb-3d-inspector__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.pcb-3d-inspector__info {
  flex: 1 1 auto;
  min-width: 0;
}

.pcb-3d-inspector__slot {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
}

.pcb-3d-inspector__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcb-3d-inspector__price {
  font-size: 0.76rem;
  color: #86efac;
  font-weight: 700;
}

.pcb-3d-inspector__cta {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}

.pcb-3d-inspector__cta:hover {
  background: #1d4ed8;
}

/* Interactive Part Focus Chips */
.pcb-3d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 13px;
  background: rgba(2, 6, 23, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.pcb-3d-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pcb-3d-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
}

.pcb-3d-chip.is-selected {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #dcfce7;
}

.pcb-3d-chip.is-selected .pcb-3d-chip__dot {
  background: #22c55e;
}

.pcb-3d-chip.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

/* Quick Build Card CTA strip under 3D stage */
.pcb-3d-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.pcb-3d-card__foot-text {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.pcb-3d-card__foot-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: #2563eb;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pcb-3d-card__foot-btn:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   FACEBOOK / REDDIT BUILD CARD MODAL
   ========================================================================== */
.pcb-card-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pcb-card-modal-backdrop[hidden] {
  display: none !important;
}

.pcb-card-modal {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: 18px 20px 20px;
}

.pcb-card-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pcb-card-modal__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.pcb-card-modal__sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.pcb-card-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  font-size: 1.1rem;
  cursor: pointer;
}

.pcb-card-modal__themes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pcb-card-theme-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.pcb-card-theme-btn.is-active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.pcb-card-modal__preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #020617;
  margin-bottom: 14px;
}

.pcb-card-modal__preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pcb-card-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pcb-card-act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #1e293b;
  color: #ffffff !important;
  cursor: pointer;
  text-decoration: none !important;
}

.pcb-card-act--primary {
  background: #2563eb;
  border-color: #3b82f6;
}

.pcb-card-act--primary:hover {
  background: #1d4ed8;
}

.pcb-card-act--wa {
  background: #16a34a;
  border-color: #22c55e;
}

.pcb-card-act--wa:hover {
  background: #15803d;
}

.pcb-card-act__status {
  font-size: 0.78rem;
  color: #86efac;
  margin-left: auto;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (11" Tablet & Phone)
   ========================================================================== */
@media (max-width: 1240px) {
  .pcb-pro .pcb-build-split {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
  }
  .pcb-pro .pcb-build-split__parts {
    order: 1;
  }
  .pcb-pro .pcb-build-split__report {
    order: 2;
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 991px) {
  .pcb-pro .pcb-build-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .pcb-pro .pcb-build-split__parts {
    order: 1;
  }
  .pcb-pro .pcb-build-split__report {
    order: 2;
    position: static;
  }
}

/* ==========================================================================
   BUILD PERFORMANCE CARD (Clean Modern UI — No Spidey Theme)
   ========================================================================== */
.pcb-pro .pcb-perf-card,
.pcb-pro #pcb-ai-report.pcb-perf-card {
  position: relative;
  border-radius: 16px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

.pcb-pro .pcb-perf-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.pcb-pro .pcb-perf-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pcb-pro .pcb-perf-card__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pcb-pro .pcb-perf-card__title {
  margin: 0;
  font-family: inherit !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
  color: #0f172a !important;
}

.pcb-pro .pcb-perf-card__desc {
  margin: 1px 0 0;
  font-size: 0.74rem;
  color: #64748b !important;
}

.pcb-pro .pcb-perf-card__refresh {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pcb-pro .pcb-perf-card__refresh:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.pcb-pro .pcb-perf-card__body {
  padding: 12px 14px 14px;
}

.pcb-pro .pcb-perf-card__placeholder,
.pcb-pro .pcb-perf-card .pcb-ai-report__empty {
  margin: 0;
  padding: 24px 14px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

.pcb-pro .pcb-perf-card .pcb-ai-report__empty i {
  font-size: 1.35rem;
  color: #2563eb;
  margin-bottom: 8px;
  display: block;
}

.pcb-pro .pcb-perf-card .pcb-ai-report__empty p {
  margin: 0;
  color: #475569;
}

/* Hardware strip */
.pcb-pro .pcb-perf-hw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.pcb-pro .pcb-perf-hw__item {
  padding: 7px 8px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}

.pcb-pro .pcb-perf-hw__item span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pcb-pro .pcb-perf-hw__item strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Bottleneck (CPU vs GPU balance) */
.pcb-pro .pcb-perf-bn {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pcb-pro .pcb-perf-bn--warn { border-color: #fde68a; background: #fffbeb; }
.pcb-pro .pcb-perf-bn--bad { border-color: #fecaca; background: #fff7f7; }
.pcb-pro .pcb-perf-bn--idle { border-style: dashed; }

.pcb-pro .pcb-perf-bn__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pcb-pro .pcb-perf-bn__pill {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.pcb-pro .pcb-perf-bn--warn .pcb-perf-bn__pill { background: #fef3c7; color: #92400e; }
.pcb-pro .pcb-perf-bn--bad .pcb-perf-bn__pill { background: #fee2e2; color: #991b1b; }

.pcb-pro .pcb-perf-bn__split {
  display: flex;
  height: 8px;
  margin: 9px 0 5px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.pcb-pro .pcb-perf-bn__cpu { display: block; background: #3b82f6; }
.pcb-pro .pcb-perf-bn__gpu { display: block; background: #10b981; }

.pcb-pro .pcb-perf-bn__legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
}

.pcb-pro .pcb-perf-bn__msg {
  margin: 7px 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #334155;
}

.pcb-pro .pcb-perf-bn__sub {
  margin: 4px 0 0;
  font-size: 0.7rem;
  color: #64748b;
}

/* Main Tabs (Games / Software) */
.pcb-pro .pcb-perf-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #f1f5f9;
  margin-bottom: 10px;
}

.pcb-pro .pcb-perf-tab {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.pcb-pro .pcb-perf-tab em {
  font-style: normal;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.pcb-pro .pcb-perf-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pcb-pro .pcb-perf-tab.is-active em {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 3-Mode Resolution Switcher (1080p / 1440p / 4K) */
.pcb-pro .pcb-perf-res {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.pcb-pro .pcb-perf-res__btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 6px;
  background: #ffffff;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pcb-pro .pcb-perf-res__btn b {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.pcb-pro .pcb-perf-res__btn span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.pcb-pro .pcb-perf-res__btn:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.pcb-pro .pcb-perf-res__btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.pcb-pro .pcb-perf-res__btn.is-active span {
  color: #bfdbfe;
}

/* Search box */
.pcb-pro .pcb-perf-search {
  position: relative;
  margin-bottom: 8px;
}

.pcb-pro .pcb-perf-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.78rem;
  pointer-events: none;
}

.pcb-pro .pcb-perf-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px 8px 32px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pcb-pro .pcb-perf-search__input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Category filter pills */
.pcb-pro .pcb-perf-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}

.pcb-pro .pcb-perf-cat {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pcb-pro .pcb-perf-cat:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.pcb-pro .pcb-perf-cat.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.pcb-pro .pcb-perf-submeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 8px;
}

.pcb-pro .pcb-perf-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
}

.pcb-pro .pcb-perf-ai-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.76rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.pcb-pro .pcb-perf-ai-box[hidden] {
  display: none !important;
}

.pcb-pro .pcb-perf-nomatch {
  text-align: center;
  padding: 18px 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: #475569;
}

.pcb-pro .pcb-perf-nomatch p {
  margin: 0 0 8px;
}

.pcb-pro .pcb-perf-ask-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.pcb-pro .pcb-perf-ask-btn:hover {
  background: #1d4ed8;
}

/* Scrollable list showing ALL 59 games / 76 apps */
.pcb-pro .pcb-perf-list {
  list-style: none;
  margin: 0;
  padding: 0 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pcb-pro .pcb-perf-row {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.pcb-pro .pcb-perf-row:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.pcb-pro .pcb-perf-row.is-open {
  border-color: #2563eb;
  background: #f8fafc;
}

.pcb-pro .pcb-perf-row__top {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Game Cover Art Thumbnail — widescreen Steam header ratio */
.pcb-pro .pcb-perf-cover {
  width: 132px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

@media (max-width: 480px) {
  .pcb-pro .pcb-perf-cover {
    width: 96px;
    height: 52px;
  }
}

.pcb-pro .pcb-perf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcb-pro .pcb-perf-cover--brand span {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Game tiles (Newegg-style): big game image, big FPS number under it */
.pcb-pro .pcb-perf-grid {
  list-style: none;
  margin: 0;
  padding: 0 2px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pcb-pro .pcb-perf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pcb-pro .pcb-perf-tile:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

.pcb-pro .pcb-perf-tile.is-open {
  grid-column: 1 / -1;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.pcb-pro .pcb-perf-tile__art {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #111827;
}

.pcb-pro .pcb-perf-tile__art .pcb-perf-cover,
.pcb-pro .pcb-perf-tile__art .pcb-perf-cover img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  background: #111827;
}

.pcb-pro .pcb-perf-tile__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #64748b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pcb-pro .pcb-perf-tile__tag.is-good { background: #16a34a; }
.pcb-pro .pcb-perf-tile__tag.is-ok { background: #d97706; }
.pcb-pro .pcb-perf-tile__tag.is-low { background: #dc2626; }

.pcb-pro .pcb-perf-tile__body {
  padding: 9px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pcb-pro .pcb-perf-tile__name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.pcb-pro .pcb-perf-tile__fps {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pcb-pro .pcb-perf-tile__fps b {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.pcb-pro .pcb-perf-tile.is-good .pcb-perf-tile__fps b { color: #15803d; }
.pcb-pro .pcb-perf-tile.is-ok .pcb-perf-tile__fps b { color: #b45309; }
.pcb-pro .pcb-perf-tile.is-low .pcb-perf-tile__fps b { color: #b91c1c; }

.pcb-pro .pcb-perf-tile__fps small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pcb-pro .pcb-perf-tile .pcb-perf-presets {
  margin: 0 10px 10px;
}

.pcb-pro .pcb-perf-tile.is-open .pcb-perf-presets {
  margin: 0;
  padding: 10px 12px 12px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pcb-pro .pcb-perf-tile.is-open .pcb-perf-presets span.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
}

@media (max-width: 480px) {
  .pcb-pro .pcb-perf-grid {
    gap: 8px;
  }
  .pcb-pro .pcb-perf-tile__name {
    font-size: 0.8rem;
  }
  .pcb-pro .pcb-perf-tile__fps b {
    font-size: 1.15rem;
  }
}

.pcb-pro .pcb-perf-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.pcb-pro .pcb-perf-row__name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcb-pro .pcb-perf-row__tags {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.pcb-pro .pcb-perf-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.pcb-pro .pcb-perf-pill.is-good {
  background: #dcfce7;
  color: #15803d;
}

.pcb-pro .pcb-perf-pill.is-ok {
  background: #dbeafe;
  color: #1d4ed8;
}

.pcb-pro .pcb-perf-pill.is-low {
  background: #fee2e2;
  color: #b91c1c;
}

.pcb-pro .pcb-perf-cattag {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 600;
}

.pcb-pro .pcb-perf-row__val {
  text-align: right;
  flex-shrink: 0;
}

.pcb-pro .pcb-perf-row__val b {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.pcb-pro .pcb-perf-row.is-good .pcb-perf-row__val b { color: #16a34a; }
.pcb-pro .pcb-perf-row.is-ok .pcb-perf-row__val b   { color: #2563eb; }
.pcb-pro .pcb-perf-row.is-warn .pcb-perf-row__val b { color: #d97706; }
.pcb-pro .pcb-perf-row.is-low .pcb-perf-row__val b  { color: #dc2626; }

.pcb-pro .pcb-perf-row__val small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 1px;
}

/* Software score bar */
.pcb-pro .pcb-perf-bar {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 5px;
}

.pcb-pro .pcb-perf-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
}

.pcb-pro .pcb-perf-row.is-good .pcb-perf-bar span { background: #16a34a; }
.pcb-pro .pcb-perf-row.is-warn .pcb-perf-bar span { background: #f59e0b; }
.pcb-pro .pcb-perf-row.is-low .pcb-perf-bar span  { background: #ef4444; }

/* Expanded 4-preset bar (Low / Med / High / Ultra) */
.pcb-pro .pcb-perf-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.pcb-pro .pcb-perf-presets span {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 4px 5px;
  text-align: center;
}

.pcb-pro .pcb-perf-presets em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.pcb-pro .pcb-perf-presets b {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}
