/* ==========================================================================
   PC Builder — Professional polish pass (loaded after pc_builder_pro.css)
   Goal: a calm, store-grade look. Flat surfaces, one accent colour,
   sentence-case labels, no glow, gradients or hover lifts.
   ========================================================================== */

/* Summary bar: price and cart on one row, actions on the next */
@media (min-width: 992px) {
  .pcb-pro .pcb-build-summary--top .pcb-dock-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pcb-pro .pcb-summary-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .pcb-pro .pcb-summary-lead .pcb-summary-totals {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pcb-pro .pcb-summary-lead .pcb-summary-meta {
    margin-top: 6px;
  }

  .pcb-pro .pcb-summary-lead .pcb-summary-cart-btn {
    flex: 0 0 auto;
    align-self: center;
  }

  .pcb-pro .pcb-summary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }

  .pcb-pro .pcb-summary-actions .pcb-summary-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .pcb-pro .pcb-tool-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid #e5e7eb;
  }

  .pcb-pro .pcb-summary-actions .pcb-hide-wrap {
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 991px) {
  .pcb-pro .pcb-summary-lead,
  .pcb-pro .pcb-summary-actions,
  .pcb-pro .pcb-tool-group {
    display: contents;
  }
}

/* Balance & compatibility: removed from the page (Check button, panel, summary chips).
   Markup and script stay in place so nothing else breaks; delete later if wanted. */
.pcb-pro #pcb-health-toggle,
.pcb-pro #pcb-health,
.pcb-pro .pcb-health,
.pcb-pro .pcb-summary-health,
.pcb-pro #pcb-summary-health {
  display: none !important;
}

/* ---- Page header ---- */
.pcb-pro .pcb-intro-brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7280;
}

.pcb-pro .pcb-intro-title {
  color: #111827;
  font-weight: 700;
}

/* ---- Summary bar ---- */
.pcb-pro .pcb-build-summary--top {
  background: #ffffff;
  box-shadow: none;
  border-color: #e5e7eb;
}

.pcb-pro .pcb-tool-btn--card,
.pcb-pro .pcb-tool-btn--card:hover,
.pcb-pro .pcb-tool-btn--card:focus {
  background: #111827 !important;
  border-color: #111827 !important;
}

.pcb-pro .pcb-tool-btn--card:hover,
.pcb-pro .pcb-tool-btn--card:focus {
  background: #1f2937 !important;
  border-color: #1f2937 !important;
}

/* Power chips: neutral, no coloured bolt */
.pcb-pro .pcb-power-stat__label i,
.pcb-pro .pcb-power-stat__label svg {
  color: #6b7280;
  fill: #6b7280;
}

/* Slot icons: one dark silhouette, large enough to recognise */
.pcb-pro .pcb-slot-icon {
  color: #1f2937 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.pcb-pro .pcb-slot-svg {
  width: 26px;
  height: 26px;
}

/* ---- Core components & Peripherals list ---- */
.pcb-pro .pcb-build-split__parts .pcb-workspace {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container + .pc-builder-category-container {
  margin-top: 16px;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4,
.pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4.pcb-cat-head {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4::before,
.pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4::after {
  display: none !important;
  content: none !important;
}

.pcb-pro .pcb-cat-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pcb-pro .pcb-cat-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.pcb-pro .pcb-cat-toggle {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.pcb-pro .pcb-cat-toggle:hover {
  background: #f3f4f6;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container.is-collapsed > h4 {
  border-bottom: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-category-container.is-collapsed .pcb-component-list {
  display: none;
}

.pcb-pro .pcb-build-split__parts .pcb-component-list {
  padding: 0;
  margin: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  gap: 12px !important;
  box-shadow: none !important;
  transition: background-color 0.12s ease;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container::before {
  display: none !important;
  content: none !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container:last-child {
  border-bottom: 0 !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f8fafc !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] {
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-left: 3px solid #16a34a !important;
  box-shadow: none !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"]:hover {
  box-shadow: none !important;
  border-left-color: #16a34a !important;
  background: #f8fdf9 !important;
}

/* Slot icon / product thumbnail */
.pcb-pro .pcb-build-split__parts .component-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-image {
  width: 48px;
  height: 48px;
  padding: 3px;
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: none;
}

/* Correct hierarchy: bold dark slot title when empty; green eyebrow + bold product when selected */
.pcb-pro .pcb-build-split__parts .component-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 2px;
}

.pcb-pro .pcb-build-split__parts .pcb-no-selection {
  display: block !important;
  font-size: 0.75rem;
  font-weight: 500;
  font-style: normal !important;
  color: #6b7280 !important;
  line-height: 1.3;
}

.pcb-pro .pcb-build-split__parts .component-product {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.pcb-pro .pcb-build-split__parts .pcb-compat-hint {
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
}

/* Required pill: soft rose when missing, hidden once selected */
.pcb-pro .pcb-build-split__parts .pcb-required-badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-required-badge {
  display: none !important;
}

/* Buttons & price on the right */
.pcb-pro .pcb-build-split__parts .component-price {
  font-size: 0.94rem;
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-build-split__parts .pcb-choose-btn {
  min-width: 78px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}

.pcb-pro .pcb-build-split__parts .pcb-choose-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
  box-shadow: none !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151 !important;
}

.pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #ffffff !important;
}

/* Mobile: keep empty rows on ONE clean horizontal line; wrap actions only on selected rows */
@media (max-width: 640px) {
  .pcb-pro .pcb-build-split__parts .pcb-workspace {
    padding: 0 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4,
  .pcb-pro .pcb-build-split__parts .pc-builder-category-container > h4.pcb-cat-head {
    padding: 10px 12px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container .component-name-product {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container .component-product {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container .pcb-compat-hint {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="no"] {
    flex-wrap: nowrap !important;
    padding: 9px 12px !important;
    gap: 10px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="no"] .component-image {
    width: 40px !important;
    height: 40px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="no"] .pcb-component-actions {
    width: auto !important;
    flex: 0 0 auto !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="no"] .pcb-choose-btn {
    min-width: 72px;
    padding: 6px 11px;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] {
    flex-wrap: wrap !important;
    padding: 11px 12px !important;
    gap: 10px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-component-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-remove-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-price {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 auto 0 0 !important;
    color: #111827 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-remove-btn,
  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }
}

/* ---- Build Performance card ---- */
.pcb-pro .pcb-perf-card__mark {
  background: #f3f4f6;
  color: #374151;
  box-shadow: none;
}

.pcb-pro .pcb-perf-card__title {
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-perf-tile:hover {
  transform: none;
  box-shadow: none;
  border-color: #cbd5e1;
}

.pcb-pro .pcb-perf-tile.is-open {
  box-shadow: none;
  border-color: #2563eb;
}

/* Tags on the game art: one neutral style, not traffic-light pills */
.pcb-pro .pcb-perf-tile__tag,
.pcb-pro .pcb-perf-tile__tag.is-good,
.pcb-pro .pcb-perf-tile__tag.is-ok {
  background: rgba(17, 24, 39, 0.78);
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0;
  padding: 2px 8px;
}

.pcb-pro .pcb-perf-tile__tag.is-low {
  background: #b91c1c;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0;
  padding: 2px 8px;
}

.pcb-pro .pcb-perf-tile__name {
  font-weight: 600;
}

.pcb-pro .pcb-perf-tile__fps small {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

/* Free Fire logo: white behind the mark, including the frame around it */
.pcb-pro .pcb-perf-tile__art:has(.pcb-perf-cover--logo),
.pcb-pro .pcb-perf-tile__art .pcb-perf-cover--logo,
.pcb-pro .pcb-perf-tile__art .pcb-perf-cover--logo img {
  background: #ffffff;
}
.pcb-pro .pcb-perf-tile__art .pcb-perf-cover--logo img {
  object-fit: contain;
  padding: 14px 16px;
  box-sizing: border-box;
}

/* Brand fallback art: flat dark panel instead of gradients */
.pcb-pro .pcb-perf-cover--brand {
  background: #1f2937 !important;
}

.pcb-pro .pcb-perf-cover--brand span {
  letter-spacing: 0.02em;
}

/* ---- Compare / Check panels ---- */
.pcb-pro .pcb-compare__web-bg {
  display: none !important;
}

.pcb-pro .pcb-compare__title,
.pcb-pro .pcb-health__title {
  font-weight: 700;
  color: #111827;
}

/* ==========================================================================
   Compare builds: one saved build against the current build
   ========================================================================== */
.pcb-pro .pcb-cmp {
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 12px;
  color: #111827;
}

.pcb-pro .pcb-cmp[hidden] {
  display: none !important;
}

.pcb-pro .pcb-cmp__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pcb-pro .pcb-cmp__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-cmp__sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.pcb-pro .pcb-cmp__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
}

.pcb-pro .pcb-cmp__close:hover {
  background: #f3f4f6;
}

.pcb-pro .pcb-cmp__steps {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #374151;
}

.pcb-pro .pcb-cmp__steps li + li {
  margin-top: 4px;
}

.pcb-pro .pcb-cmp__note,
.pcb-pro .pcb-cmp__verdict,
.pcb-pro .pcb-cmp__warn,
.pcb-pro .pcb-cmp__good {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pcb-pro .pcb-cmp__note {
  background: #f3f4f6;
  color: #374151;
}

.pcb-pro .pcb-cmp__verdict {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #dbeafe;
}

.pcb-pro .pcb-cmp__warn {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pcb-pro .pcb-cmp__good {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.pcb-pro .pcb-cmp__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.pcb-pro .pcb-cmp__table th,
.pcb-pro .pcb-cmp__table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0f1f3;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pcb-pro .pcb-cmp__table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.pcb-pro .pcb-cmp__table tbody th {
  width: 24%;
  font-weight: 600;
  color: #374151;
}

.pcb-pro .pcb-cmp__table td {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-cmp__table small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}

.pcb-pro .pcb-cmp__table td.is-better {
  background: #f0fdf4;
  color: #166534;
}

.pcb-pro .pcb-cmp__tick {
  margin-left: 4px;
  font-size: 0.8em;
  color: #16a34a;
}

.pcb-pro .pcb-cmp__muted {
  font-weight: 400 !important;
  font-size: 0.88rem !important;
  color: #6b7280 !important;
}

.pcb-pro .pcb-cmp__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.pcb-pro .pcb-cmp__badge.is-ok { background: #dcfce7; color: #166534; }
.pcb-pro .pcb-cmp__badge.is-warn { background: #fef3c7; color: #92400e; }
.pcb-pro .pcb-cmp__badge.is-bad { background: #fee2e2; color: #991b1b; }
.pcb-pro .pcb-cmp__badge.is-skip { background: #f3f4f6; color: #6b7280; }

.pcb-pro .pcb-cmp__h {
  margin: 4px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
}

.pcb-pro .pcb-cmp__changes {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pcb-pro .pcb-cmp__chg {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #374151;
}

.pcb-pro .pcb-cmp__chg-slot {
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.pcb-pro .pcb-cmp__chg-slot em {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

.pcb-pro .pcb-cmp__chg-line {
  display: flex;
  gap: 8px;
}

.pcb-pro .pcb-cmp__chg-line span {
  flex: 0 0 44px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-top: 1px;
}

.pcb-pro .pcb-cmp__chg-line.is-now {
  color: #111827;
  font-weight: 600;
}

.pcb-pro .pcb-cmp__chg-line b {
  white-space: nowrap;
  margin-left: 4px;
}

.pcb-pro .pcb-cmp__chg-line i {
  color: #9ca3af;
  font-style: italic;
}

.pcb-pro .pcb-cmp__same {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #6b7280;
}

.pcb-pro .pcb-cmp__games {
  margin: 4px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pcb-pro .pcb-cmp__games summary,
.pcb-pro .pcb-cmp__link summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

.pcb-pro .pcb-cmp__games-scroll {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 12px 8px;
}

.pcb-pro .pcb-cmp__table--games {
  margin: 0;
  table-layout: auto;
}

.pcb-pro .pcb-cmp__table--games th,
.pcb-pro .pcb-cmp__table--games td {
  padding: 7px 8px;
  font-size: 0.85rem;
}

.pcb-pro .pcb-cmp__table--games tbody th {
  width: auto;
  font-weight: 500;
}

.pcb-pro .pcb-cmp__table--games td {
  font-weight: 600;
}

.pcb-pro .pcb-cmp__table--games td.is-up { color: #15803d; }
.pcb-pro .pcb-cmp__table--games td.is-down { color: #b91c1c; }

.pcb-pro .pcb-cmp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pcb-pro .pcb-cmp__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.pcb-pro .pcb-cmp__btn:hover {
  background: #f3f4f6;
}

.pcb-pro .pcb-cmp__btn[hidden] {
  display: none !important;
}

.pcb-pro .pcb-cmp__btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.pcb-pro .pcb-cmp__btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.pcb-pro .pcb-cmp__link {
  margin-top: 10px;
}

.pcb-pro .pcb-cmp__link summary {
  padding-left: 0;
  color: #6b7280;
}

.pcb-pro .pcb-cmp__link-row {
  display: flex;
  gap: 8px;
}

.pcb-pro .pcb-cmp__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.88rem;
}

@media (max-width: 575px) {
  .pcb-pro .pcb-cmp {
    padding: 14px 12px;
  }

  .pcb-pro .pcb-cmp__table th,
  .pcb-pro .pcb-cmp__table td {
    padding: 8px 6px;
  }

  .pcb-pro .pcb-cmp__table tbody th {
    width: 26%;
    font-size: 0.82rem;
  }

  .pcb-pro .pcb-cmp__table td {
    font-size: 0.92rem;
  }

  .pcb-pro .pcb-cmp__actions .pcb-cmp__btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
.pcb-pro .pcb-cmp__close {
  font-size: 22px;
  line-height: 1;
}

.pcb-pro .pcb-cmp__tick {
  font-weight: 700;
  font-style: normal;
}
/* ==========================================================================
   Calm, store-grade surfaces: neutral badges and chips (no AI-style accents)
   ========================================================================== */
.pcb-pro .pcb-ai-report__badge,
.pcb-pro .pcb-ai-report__ai-badge,
.pcb-pro .pcb-ai-report__badge--local {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

.pcb-pro .pcb-ai-report__ai-bubble {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  color: #111827 !important;
}

.pcb-pro .pcb-build-split__parts .pcb-compat-hint {
  display: block;
  margin-top: 1px;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #6b7280 !important;
  box-shadow: none !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.3;
}

/* Product photo fallback when the image file is missing */
.pcb-pro .pcb-thumb-fallback[hidden] {
  display: none !important;
}

.pcb-pro .pcb-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
/* ---- Software app icons (uploaded image, store icon or category monogram) ---- */
.pcb-pro .pcb-perf-sw-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background: #1f2937;
}
.pcb-pro .pcb-perf-sw-icon--img {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.pcb-pro .pcb-perf-sw-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  display: block;
}
.pcb-pro .pcb-perf-sw-icon span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.pcb-pro .pcb-perf-sw-icon.is-contentcreation { background: #7c3aed; }
.pcb-pro .pcb-perf-sw-icon.is-development     { background: #2563eb; }
.pcb-pro .pcb-perf-sw-icon.is-engineering     { background: #059669; }
.pcb-pro .pcb-perf-sw-icon.is-productivity    { background: #475569; }
.pcb-pro .pcb-perf-sw-icon.is-research        { background: #d97706; }
.pcb-pro .pcb-perf-sw-icon.is-streaming       { background: #dc2626; }
/* ==========================================================================
   MOBILE POLISH (phones / small tablets)
   - Build Performance card no longer overflows the screen
   - Compact header title, tighter part rows, room above the bottom dock
   ========================================================================== */
@media (max-width: 991px) {
  /* Column layout inherited align-items:start from the desktop grid, so children
     sized to their content (card was 400px inside a 358px column). */
  .pcb-pro .pcb-build-split {
    align-items: stretch;
  }

  .pcb-pro .pcb-build-split__parts,
  .pcb-pro .pcb-build-split__report,
  .pcb-pro #pcb-ai-report {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pcb-pro .pcb-perf-card__body {
    padding-left: 12px;
    padding-right: 12px;
    min-width: 0;
  }

  /* Keep the page clear of the floating total bar + bottom nav */
  body.pcb-page #extension-pc-builder-pc-builder {
    padding-bottom: 150px;
  }
}

@media (max-width: 640px) {
  /* Shorter store title in the header on this page (no logo image is set) */
  body.pcb-page .u-logo-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  /* Selected parts: slimmer rows (name full width, price + buttons underneath) */
  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] {
    padding: 10px 12px !important;
    gap: 6px 10px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-image {
    width: 44px !important;
    height: 44px !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-name-product,
  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-product {
    border: 0 !important;
    padding-bottom: 0 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-component-actions {
    padding-top: 4px !important;
    border-top: 0 !important;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .component-price {
    font-size: 1rem;
  }

  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-remove-btn,
  .pcb-pro .pcb-build-split__parts .pc-builder-component-container[data-product-selected="yes"] .pcb-choose-btn {
    height: 34px;
  }
  /* Performance card pieces */
  .pcb-pro .pcb-perf-hw {
    gap: 5px;
  }

  .pcb-pro .pcb-perf-bn__head {
    flex-wrap: wrap;
  }

  .pcb-pro .pcb-perf-bn__pill {
    max-width: 100%;
  }
}

/* ==========================================================================
   FPS-FIRST: Live FPS strip + Next step guide  (v2 design)
   ========================================================================== */
.pcb-live {
  display: grid;
  grid-template-columns: auto minmax(170px, auto) minmax(120px, 1fr) minmax(0, 230px);
  grid-template-areas: "fig verdict gauge pick";
  align-items: center;
  gap: 8px 20px;
  width: 100%;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
}
.pcb-live__fig { grid-area: fig; display: flex; flex-direction: column; gap: 0; }
.pcb-live__tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0d7a5f; }
.pcb-live__nums { display: flex; align-items: flex-end; gap: 6px; }
.pcb-live__nums b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; color: #111827; }
.pcb-live__nums em { font-style: normal; font-size: 14px; font-weight: 600; color: #64748b; padding-bottom: 5px; }
.pcb-live__verdict { grid-area: verdict; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.pcb-live__pill { display: inline-flex; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: #dcfce7; color: #166534; white-space: nowrap; }
.pcb-live__hint { font-size: 13px; font-weight: 600; color: #374151; line-height: 1.3; }
.pcb-live__bn { font-size: 12px; color: #64748b; }
.pcb-live__gauge { grid-area: gauge; position: relative; height: 26px; min-width: 0; }
.pcb-live__gauge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #f87171 0 15%, #fbbf24 15% 30%, #10b981 30%);
}
.pcb-live__mk {
  position: absolute; top: -2px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #0f172a; transform: translateX(-50%);
  transition: left .35s cubic-bezier(.3, 1.2, .5, 1); box-sizing: border-box;
}
.pcb-live__gauge span { position: absolute; top: 19px; font-size: 10px; color: #64748b; transform: translateX(-50%); }
.pcb-live__pick { grid-area: pick; position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0; min-width: 0; }
.pcb-live__res { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: .04em; text-transform: uppercase; }
.pcb-live__pick select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 40px; padding: 0 34px 0 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: inherit; font-size: 14px; font-weight: 700; color: #111827; cursor: pointer; text-overflow: ellipsis;
}
.pcb-live.is-good .pcb-live__nums b { color: #166534; }
.pcb-live.is-ok .pcb-live__nums b { color: #92400e; }
.pcb-live.is-ok .pcb-live__pill { background: #fef3c7; color: #92400e; }
.pcb-live.is-low .pcb-live__nums b { color: #991b1b; }
.pcb-live.is-low .pcb-live__pill { background: #fee2e2; color: #991b1b; }
.pcb-live.is-idle { display: flex; padding-bottom: 10px; margin-bottom: 10px; }
.pcb-live.is-idle .pcb-live__fig,
.pcb-live.is-idle .pcb-live__gauge,
.pcb-live.is-idle .pcb-live__pick,
.pcb-live.is-idle .pcb-live__pill,
.pcb-live.is-idle .pcb-live__bn { display: none; }
.pcb-live.is-idle .pcb-live__hint { color: #64748b; font-weight: 600; }
.pcb-live.is-idle .pcb-live__hint::before {
  content: "FPS"; display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px;
  background: #dcfce7; color: #166534; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}

/* Next step card */
.pcb-next {
  margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pcb-next__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0d7a5f; }
.pcb-next__segs { display: flex; gap: 4px; }
.pcb-next__segs i { flex: 1; height: 6px; border-radius: 3px; background: #e5e7eb; }
.pcb-next__segs i.is-done { background: #0d7a5f; }
.pcb-next__segs i.is-cur { background: #3b82f6; }
.pcb-next__title { margin: 0; font-size: 20px; font-weight: 800; color: #111827; }
.pcb-next__hint { margin: 0; font-size: 13px; color: #64748b; line-height: 1.4; }
.pcb-next__btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px; background: #3b82f6; color: #fff !important; font-size: 15px; font-weight: 600;
  text-decoration: none !important; cursor: pointer;
}
.pcb-next__btn:hover { filter: brightness(1.07); }
@media (min-width: 992px) {
  .pcb-next { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 20px; }
  .pcb-next__top { flex: 0 0 100%; }
  .pcb-next__segs { flex: 0 0 100%; }
  .pcb-next__title { flex: 1 1 auto; }
  .pcb-next__hint { flex: 1 1 100%; order: 3; }
  .pcb-next__btn { flex: 0 0 auto; }
}
.pc-builder-component-container.is-next { background: #eff6ff; }
.pc-builder-component-container.is-next .pcb-choose-btn { background: #3b82f6 !important; border-color: #3b82f6 !important; color: #fff !important; }

/* Live FPS in the phone dock: strip sits on its own row above total + cart */
@media (max-width: 991px) {
  .pcb-pro .pcb-build-summary.pcb-build-summary--top { flex-wrap: wrap !important; }
  .pcb-live {
    flex: 0 0 100%; order: -1;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 150px);
    grid-template-areas: "fig verdict pick" "gauge gauge gauge";
    gap: 4px 10px; padding: 0 0 8px; margin: 0 0 6px;
  }
  .pcb-live.is-idle { display: flex; padding-bottom: 6px; margin-bottom: 4px; }
  .pcb-live__nums b { font-size: 34px; letter-spacing: -1px; }
  .pcb-live__nums em { font-size: 12px; padding-bottom: 4px; }
  .pcb-live__hint, .pcb-live__bn { display: none; }
  .pcb-live.is-idle .pcb-live__hint { display: block; font-size: 12px; }
  .pcb-live__verdict { align-items: flex-start; justify-self: start; }
  .pcb-live__gauge { height: 14px; }
  .pcb-live__gauge::before { top: 2px; height: 8px; border-radius: 4px; }
  .pcb-live__mk { top: -2px; width: 16px; height: 16px; border-width: 3px; }
  .pcb-live__gauge span { display: none; }
  .pcb-live__res { display: none; }
  .pcb-live__pick select { height: 36px; font-size: 13px; }
  body.pcb-page.pcb-has-live #extension-pc-builder-pc-builder { padding-bottom: 240px; }
  .pcb-next { margin: 0 0 12px; }
}

/* Dock open on phones: Add to Cart becomes one full-width button under the total */
@media (max-width: 991px) {
  .pcb-pro .pcb-build-summary.is-dock-open .pcb-summary-cart-btn {
    flex: 1 1 100%; order: 3; width: 100%; min-height: 46px; height: 46px; align-self: auto; margin-top: 4px;
  }
  .pcb-pro .pcb-build-summary.is-dock-open .pcb-summary-tools { order: 4; flex: 0 0 100%; }
  .pcb-pro .pcb-build-summary.is-dock-open .pcb-hide-wrap { order: 5; flex: 0 0 100%; }
}

/* Start card: game + budget */
.pcb-start { margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.pcb-start__title { margin: 0; font-size: 18px; font-weight: 800; color: #111827; }
.pcb-start__title--2 { margin-top: 14px; font-size: 15px; }
.pcb-start__hint { margin: 2px 0 10px; font-size: 13px; color: #64748b; }
.pcb-start__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pcb-chip {
  min-height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc;
  font-size: 14px; font-weight: 600; color: #334155; cursor: pointer;
}
.pcb-chip:hover { border-color: #0d7a5f; }
.pcb-chip.is-on { background: #0d7a5f; border-color: #0d7a5f; color: #fff; }
.pcb-start__done {
  margin-top: 14px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: #3b82f6; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.pcb-start--min { padding: 12px 16px; }
.pcb-start__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcb-start__sum { display: flex; flex-direction: column; min-width: 0; }
.pcb-start__sum b { font-size: 16px; font-weight: 800; color: #111827; }
.pcb-start__sum span { font-size: 13px; color: #64748b; }
.pcb-start__edit {
  flex: none; min-height: 36px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
  font-size: 13px; font-weight: 600; color: #0d7a5f; cursor: pointer;
}
.pcb-start__meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #166534; }
.pcb-start__bar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.pcb-start__bar i { display: block; height: 100%; background: #0d7a5f; border-radius: 4px; transition: width .25s; }
.pcb-start__meter span { flex: none; }
.pcb-start__meter.is-over { color: #b91c1c; }
.pcb-start__meter.is-over .pcb-start__bar i { background: #dc2626; }
/* Desktop: Live FPS moves into the sidebar above Build Performance */
@media (min-width: 992px) {
  .pcb-live.pcb-live--side {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "fig verdict" "gauge gauge" "pick pick";
    gap: 10px 18px; padding: 18px; margin: 0 0 14px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  }
  .pcb-live.pcb-live--side.is-idle { display: flex; padding: 16px 18px; margin: 0 0 14px; }
  .pcb-live--side .pcb-live__nums b { font-size: 56px; }
  .pcb-live--side .pcb-live__pick select { height: 42px; }
}
/* Full-screen FPS report */
.pcb-live__full {
  margin-top: 4px; padding: 0; border: 0; background: none; color: #0d7a5f; font-size: 12px; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.pcb-live.is-idle .pcb-live__full { display: none; }
.pcb-next__btn--ghost { background: #fff; color: #0d7a5f !important; border: 1px solid #0d7a5f; }
.pcb-result-lock { overflow: hidden; }
.pcb-result {
  position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: #f3f5f8;
}
.pcb-result.is-open { display: flex; }
.pcb-result__bar {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e5e7eb;
  font-size: 16px; font-weight: 800; color: #111827;
}
.pcb-result__close {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f5f9; font-size: 26px; line-height: 1; cursor: pointer; color: #334155;
}
.pcb-result__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 14px 24px; width: 100%; max-width: 720px; margin: 0 auto; box-sizing: border-box; }
.pcb-result__empty { padding: 40px 16px; text-align: center; color: #64748b; }
.pcb-result__hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border-radius: 20px; background: #fff;
  border: 1px solid #e5e7eb; text-align: center;
}
.pcb-result__gname { font-size: 14px; font-weight: 700; color: #64748b; }
.pcb-result__num { display: flex; align-items: flex-end; gap: 8px; }
.pcb-result__num b { font-size: 88px; line-height: 1; font-weight: 800; letter-spacing: -3px; color: #111827; }
.pcb-result__num em { font-style: normal; font-size: 20px; font-weight: 700; color: #64748b; padding-bottom: 10px; }
.pcb-result__pill { padding: 6px 16px; border-radius: 100px; font-size: 14px; font-weight: 800; background: #dcfce7; color: #166534; }
.pcb-result__bn { margin: 0; font-size: 14px; color: #64748b; }
.pcb-result__gauge {
  position: relative; width: 100%; max-width: 420px; height: 10px; margin-top: 10px; border-radius: 5px;
  background: linear-gradient(90deg, #f87171 0 15%, #fbbf24 15% 30%, #10b981 30% 100%);
}
.pcb-result__gauge i {
  position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: #fff; border: 4px solid #111827; box-sizing: border-box;
}
.pcb-result__hero.is-good .pcb-result__num b { color: #166534; }
.pcb-result__hero.is-ok .pcb-result__num b { color: #92400e; }
.pcb-result__hero.is-ok .pcb-result__pill { background: #fef3c7; color: #92400e; }
.pcb-result__hero.is-low .pcb-result__num b { color: #991b1b; }
.pcb-result__hero.is-low .pcb-result__pill { background: #fee2e2; color: #991b1b; }
.pcb-result__tabs { display: flex; gap: 8px; margin: 14px 0; }
.pcb-result__tab {
  flex: 1; min-height: 44px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 700; color: #334155; cursor: pointer;
}
.pcb-result__tab.is-on { background: #0d7a5f; border-color: #0d7a5f; color: #fff; }
.pcb-result__parts { list-style: none; margin: 0 0 14px; padding: 6px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; }
.pcb-result__parts li { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; font-weight: 600; color: #111827; border-bottom: 1px solid #f1f5f9; }
.pcb-result__parts li:last-child { border-bottom: 0; }
.pcb-result__parts li span { flex: none; width: 44px; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #0d7a5f; padding-top: 2px; }
.pcb-result__h { margin: 18px 0 10px; font-size: 16px; font-weight: 800; color: #111827; }
.pcb-result__games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
li.pcb-result__game { padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; }
.pcb-result__gtop { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pcb-result__gtop b { font-weight: 700; color: #111827; min-width: 0; }
.pcb-result__gtop span { flex: none; font-weight: 800; color: #166534; }
.pcb-result__gbar { height: 6px; margin: 8px 0 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.pcb-result__gbar i { display: block; height: 100%; border-radius: 3px; background: #10b981; }
li.pcb-result__game em { font-style: normal; font-size: 12px; font-weight: 600; color: #64748b; }
li.is-ok .pcb-result__gtop span { color: #92400e; }
li.is-ok .pcb-result__gbar i { background: #fbbf24; }
li.is-low .pcb-result__gtop span { color: #991b1b; }
li.is-low .pcb-result__gbar i { background: #f87171; }
.pcb-result__note { margin: 14px 0 0; font-size: 12px; color: #64748b; text-align: center; }
.pcb-result__foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #e5e7eb;
}
.pcb-result__foot small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.pcb-result__foot b { font-size: 20px; font-weight: 800; color: #111827; }
.pcb-result__cart { flex: 0 1 260px; min-height: 48px; border: 0; border-radius: 12px; background: #3b82f6; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) {
  .pcb-result__num b { font-size: 72px; }
  .pcb-result__cart { flex: 1 1 auto; }
}
/* Start card v2: multi-game tiles with images, custom budget, per-game FPS chips */
.pcb-gtiles {
  display: flex; flex-wrap: nowrap; direction: rtl; gap: 8px; margin-top: 4px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 2px 8px;
}
.pcb-gtile {
  position: relative; flex: 0 0 112px; direction: ltr; display: flex; flex-direction: column; padding: 0; scroll-snap-align: start;
  border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.pcb-gtile img, .pcb-gtile__ph { display: block; width: 100%; height: 52px; object-fit: cover; background: #1e293b; }
.pcb-gtile__ph { display: flex; align-items: center; justify-content: center; color: #e2e8f0; font-size: 14px; font-weight: 800; }
.pcb-gtile__name { padding: 8px 10px; font-size: 13px; font-weight: 700; line-height: 1.25; color: #111827; }
.pcb-gtile__tick {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85);
  border: 2px solid #cbd5e1; color: transparent; font-size: 15px; font-weight: 800; line-height: 22px; text-align: center;
}
.pcb-gtile.is-on { border-color: #0d7a5f; box-shadow: 0 0 0 3px rgba(13,122,95,.15); }
.pcb-gtile.is-on .pcb-gtile__tick { background: #0d7a5f; border-color: #0d7a5f; color: #fff; }
.pcb-start__cur { margin: 10px 0 0; font-size: 14px; color: #475569; }
.pcb-start__custom { display: flex; gap: 8px; margin-top: 10px; }
.pcb-start__custom input {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; background: #fff;
}
.pcb-start__custom button {
  flex: none; height: 42px; padding: 0 18px; border: 1px solid #0d7a5f; border-radius: 10px; background: #fff; color: #0d7a5f; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pcb-start__gchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pcb-gchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0; font-size: 13px;
}
.pcb-gchip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.pcb-gchip .pcb-gtile__ph { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; flex: none; }
.pcb-gchip b { font-weight: 700; color: #111827; }
.pcb-gchip i { font-style: normal; font-weight: 800; color: #166534; }
.pcb-gchip.is-ok i { color: #92400e; }
.pcb-gchip.is-low i { color: #991b1b; }
.pcb-next__budget { margin: 0; font-size: 13px; color: #166534; font-weight: 600; line-height: 1.4; }
.pcb-next__budget.is-over { color: #b91c1c; }
@media (min-width: 992px) { .pcb-gtile { flex-basis: 128px; } .pcb-gtile img, .pcb-gtile__ph { height: 60px; } }
@media (min-width: 992px) { .pcb-next__budget { flex: 1 1 100%; order: 4; } }

/* Build Card preview popup */
body.pcb-card-modal-open { overflow: hidden; }
.pcb-card-modal {
  position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 16px;
}
.pcb-card-modal.is-open { display: flex; }
.pcb-card-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(3px);
}
.pcb-card-modal__box {
  position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 720px; max-height: 92vh;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}
.pcb-card-modal__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb; background: #fff;
}
.pcb-card-modal__head strong { font-size: 16px; font-weight: 700; color: #0f172a; }
.pcb-card-modal__x {
  width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
  color: #334155; font-size: 22px; line-height: 1; cursor: pointer;
}
.pcb-card-modal__x:hover { background: #e2e8f0; }
.pcb-card-modal__body {
  flex: 1 1 auto; overflow: auto; padding: 16px; background: #f1f5f9; text-align: center;
}
.pcb-card-modal__img {
  display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
.pcb-card-modal__foot {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px;
  border-top: 1px solid #e5e7eb; background: #fff;
}
.pcb-card-modal__btn {
  min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pcb-card-modal__btn--ghost { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.pcb-card-modal__btn--ghost:hover { background: #f8fafc; }
.pcb-card-modal__btn--primary { border: 0; background: #0d7a5f; color: #fff; }
.pcb-card-modal__btn--primary:hover { filter: brightness(1.06); }
@media (max-width: 640px) {
  .pcb-card-modal { padding: 10px; }
  .pcb-card-modal__body { padding: 10px; }
  .pcb-card-modal__foot { justify-content: stretch; }
  .pcb-card-modal__btn { flex: 1 1 auto; }
}