:root {
  --store-header-bg: #111827;
  --store-header-text: #ffffff;
  --store-header-text-rgb: 255, 255, 255;
  --store-header-border: rgba(255, 255, 255, 0.14);
  --store-header-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --store-header-input-bg: rgba(255, 255, 255, 0.94);
  --store-header-input-color: #111827;
  --store-header-outline-bg: rgba(255, 255, 255, 0.08);
  --store-header-outline-hover-bg: rgba(255, 255, 255, 0.16);
  --store-header-outline-hover-color: #ffffff;
  --store-brand-primary-rgb: 91, 141, 239;
  --store-brand-secondary-rgb: 124, 92, 255;
  --store-brand-accent-rgb: 45, 212, 191;
  --store-page-bg:
    radial-gradient(circle at 12% -8%, rgba(var(--store-brand-primary-rgb), 0.14), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(var(--store-brand-secondary-rgb), 0.10), transparent 30rem),
    radial-gradient(circle at 48% 110%, rgba(var(--store-brand-accent-rgb), 0.10), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 48%, #f8fafc 100%);
  --store-surface-bg: rgba(255, 255, 255, 0.88);
  --store-surface-border: rgba(15, 23, 42, 0.10);
  --store-surface-shadow: 0 0.85rem 2.2rem rgba(15, 23, 42, 0.08);
  --store-hover-shadow: 0 0.75rem 1.6rem rgba(15, 23, 42, 0.12);
  --store-footer-bg:
    radial-gradient(circle at 0% 0%, rgba(var(--store-brand-primary-rgb), 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.96));
  --store-footer-border: rgba(15, 23, 42, 0.14);
  --prices-pattern-color: #64748b;
  --prices-card-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='148' height='208' viewBox='0 0 148 208'%3E%3Cg fill='none' stroke='%2364748b' stroke-width='1.1' opacity='0.55'%3E%3Crect x='16' y='22' width='50' height='70' rx='5' transform='rotate(-11 41 57)'/%3E%3Crect x='58' y='36' width='50' height='70' rx='5' transform='rotate(9 83 71)'/%3E%3Crect x='34' y='112' width='50' height='70' rx='5' transform='rotate(-3 59 147)'/%3E%3C/g%3E%3C/svg%3E");
  --prices-head-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent);
  --prices-content-max: 1140px;
  --prices-content-pad: clamp(1.25rem, 4vw, 2.5rem);
  --prices-tip-bg: #ffffff;
  --prices-tip-border: #cbd5e1;
  --prices-tip-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  --prices-tip-badge-bg: #f1f5f9;
  --prices-tip-badge-border: #cbd5e1;
  --prices-tip-badge-text: #334155;
  --prices-deviation-tag: #92680a;
  --bs-body-bg: transparent;
}

[data-bs-theme="dark"] {
  --store-page-bg:
    radial-gradient(circle at 12% -10%, rgba(var(--store-brand-primary-rgb), 0.32), transparent 34rem),
    radial-gradient(circle at 88% 2%, rgba(var(--store-brand-secondary-rgb), 0.24), transparent 31rem),
    radial-gradient(circle at 50% 112%, rgba(var(--store-brand-accent-rgb), 0.18), transparent 36rem),
    linear-gradient(180deg, #303e5a 0%, #283449 46%, #242d3f 100%);
  --store-surface-bg: rgba(45, 57, 78, 0.88);
  --store-surface-border: rgba(226, 232, 240, 0.18);
  --store-surface-shadow: 0 1rem 2.35rem rgba(7, 13, 26, 0.30), 0 0 2.25rem rgba(var(--store-brand-primary-rgb), 0.10);
  --store-hover-shadow: 0 0.95rem 2rem rgba(7, 13, 26, 0.36), 0 0 2.8rem rgba(var(--store-brand-secondary-rgb), 0.18);
  --store-footer-bg:
    radial-gradient(circle at 0% 0%, rgba(var(--store-brand-primary-rgb), 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(25, 34, 50, 0.98), rgba(15, 23, 42, 0.96));
  --store-footer-border: rgba(226, 232, 240, 0.22);
  --prices-pattern-color: #94a3b8;
  --prices-card-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='148' height='208' viewBox='0 0 148 208'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1.1' opacity='0.42'%3E%3Crect x='16' y='22' width='50' height='70' rx='5' transform='rotate(-11 41 57)'/%3E%3Crect x='58' y='36' width='50' height='70' rx='5' transform='rotate(9 83 71)'/%3E%3Crect x='34' y='112' width='50' height='70' rx='5' transform='rotate(-3 59 147)'/%3E%3C/g%3E%3C/svg%3E");
  --bs-body-bg: transparent;
  --bs-body-color: #e2e8f0;
  --bs-border-color: rgba(148, 163, 184, 0.14);
  --bs-tertiary-bg: #131c31;
  --bs-secondary-color: #94a3b8;
  --prices-head-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.92), transparent);
  --prices-tip-bg: #0f172a;
  --prices-tip-border: #475569;
  --prices-tip-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  --prices-tip-badge-bg: #1e293b;
  --prices-tip-badge-border: #475569;
  --prices-tip-badge-text: #e2e8f0;
  --prices-deviation-tag: #fbbf24;
}

html {
  overflow-x: clip;
}

html, body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: var(--bs-body-color);
  overflow-x: clip;
}

.prices-site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--store-page-bg);
  background-attachment: fixed;
}

.prices-site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--prices-card-pattern);
  background-size: 148px 208px;
  opacity: 0.34;
}

.prices-site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 88%, rgba(var(--store-brand-primary-rgb), 0.08), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(var(--store-brand-accent-rgb), 0.07), transparent 22rem);
}

[data-bs-theme="dark"] .prices-site-bg::before {
  opacity: 0.22;
}

.prices-shell {
  width: 100%;
  max-width: var(--prices-content-max);
  margin-inline: auto;
  padding-inline: var(--prices-content-pad);
  box-sizing: border-box;
}

.prices-main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  flex: 1 0 auto;
}

.prices-view {
  min-width: 0;
}

/* Header */
.store-header {
  background: var(--store-header-bg);
  color: var(--store-header-text);
  border-bottom: 1px solid var(--store-header-border);
  box-shadow: var(--store-header-shadow);
  z-index: 1030;
}

.store-header-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 78px;
  padding-inline: clamp(1rem, 2.2vw, 2rem);
}

.store-header-actions {
  margin-left: auto;
}

.store-header-brand {
  min-width: 0;
  max-width: min(34vw, 360px);
  color: var(--store-header-text) !important;
}

.store-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0.28rem;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(148, 163, 184, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0.35rem 0.9rem rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}

.prices-brand-title {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 1.15rem;
}

.prices-brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}

.store-header-search {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46vw, 620px);
  max-width: 620px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.prices-header-search-form {
  flex-wrap: nowrap;
}

.prices-game-select {
  flex: 0 1 auto;
  width: auto;
  min-width: 7.5rem;
  max-width: 15rem;
  color: var(--store-header-input-color) !important;
  background: var(--store-header-input-bg) !important;
  border-color: var(--store-header-border) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

.store-header .input-group-text,
.store-header .form-control {
  color: var(--store-header-input-color);
  background: var(--store-header-input-bg) !important;
  border-color: var(--store-header-border);
}

.store-header .form-control::placeholder {
  color: rgba(17, 24, 39, 0.58);
}

.store-header-outline-control {
  color: var(--store-header-text) !important;
  background: var(--store-header-outline-bg) !important;
  border-color: var(--store-header-border) !important;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-header-outline-control:hover,
.store-header-outline-control:focus {
  color: var(--store-header-outline-hover-color) !important;
  background: var(--store-header-outline-hover-bg) !important;
}

.store-theme-icon-toggle {
  position: relative;
}

.store-theme-icon-toggle .bi {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}

.store-theme-icon-toggle .bi-sun { opacity: 0; transform: scale(0.85); }
.store-theme-icon-toggle .bi-moon-stars { opacity: 1; transform: scale(1); }
[data-bs-theme="dark"] .store-theme-icon-toggle .bi-sun { opacity: 1; transform: scale(1); }
[data-bs-theme="dark"] .store-theme-icon-toggle .bi-moon-stars { opacity: 0; transform: scale(0.85); }

/* Search panel */
.store-live-search-panel {
  position: fixed;
  z-index: 5000;
  display: none;
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid var(--store-surface-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: var(--store-surface-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--store-hover-shadow);
}

.store-live-search-section {
  padding: 0.65rem 0.9rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.store-live-search-row {
  display: grid;
  grid-template-columns: minmax(34px, 44px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.42rem 0.65rem;
  border-top: 1px solid rgba(127, 127, 127, 0.14);
  color: inherit;
  text-decoration: none;
  background: transparent;
  min-width: 0;
}

.store-live-search-row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-live-search-row > span:last-child {
  flex-shrink: 0;
}

.store-live-search-row:hover,
.store-live-search-row.is-active {
  background: var(--bs-tertiary-bg);
}

.store-live-search-thumb {
  width: 34px;
  height: 47px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: rgba(127, 127, 127, 0.09);
}

.store-live-search-meta {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--bs-secondary-color);
}

.store-live-search-empty {
  padding: 0.85rem 0.9rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

.store-mobile-search-results {
  overflow: hidden;
  border: 1px solid var(--store-surface-border);
  border-radius: 18px;
  background: var(--store-surface-bg);
  backdrop-filter: blur(12px);
}

.store-mobile-search-results:empty {
  display: none;
}

#pricesSearchModal .modal-backdrop.show {
  opacity: 0.88;
}

body.prices-search-modal-open {
  overflow: hidden;
}

body.prices-search-modal-open .modal-backdrop {
  opacity: 0.88 !important;
}

.modal-content.prices-search-modal {
  border: 1px solid var(--store-surface-border);
  background: var(--store-surface-bg);
  box-shadow: var(--store-hover-shadow);
  backdrop-filter: blur(12px);
}

.prices-search-modal .modal-header,
.prices-search-modal .modal-footer,
.prices-search-modal .modal-body {
  background: var(--store-surface-bg);
}

/* Page */
.prices-page-head {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--bs-border-color);
  min-width: 0;
}

.prices-page-head .d-flex {
  flex-wrap: wrap;
  min-width: 0;
}

.prices-page-head .prices-section-title {
  overflow-wrap: anywhere;
}

.prices-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prices-other-games {
  padding-top: 0.25rem;
  border-top: 1px solid var(--bs-border-color-translucent);
}

.prices-cross-game-label {
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.prices-breadcrumb {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.prices-breadcrumb a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.prices-breadcrumb a:hover {
  color: rgb(var(--store-brand-primary-rgb));
}

.prices-surface {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.9rem;
  background: var(--store-surface-bg);
  box-shadow: var(--store-surface-shadow);
  backdrop-filter: blur(12px);
}

[data-bs-theme="dark"] .prices-surface {
  box-shadow: var(--store-surface-shadow);
}

.prices-filter-bar .form-control,
.prices-filter-bar .form-select {
  background: var(--store-surface-bg);
  border-color: var(--store-surface-border);
  color: var(--bs-body-color);
}

.prices-filter-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.35rem;
}

/* Home game cards */
.prices-game-card {
  display: block;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}

.prices-game-card:hover,
.prices-game-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--store-hover-shadow);
  color: inherit;
}

.prices-game-card .card-body {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 0.95rem 1.05rem;
}

.prices-game-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 0;
  width: 100%;
}

.prices-game-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.prices-game-card-body .h5 {
  line-height: 1.2;
}

.prices-game-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--bs-secondary-color);
}

.prices-game-card-art {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
}

.prices-game-art-slot {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.prices-game-art-slot--empty {
  width: 2.85rem;
  height: 3.95rem;
  border-radius: 0.38rem;
  border: 1px dashed var(--store-surface-border);
  background: rgba(15, 23, 42, 0.04);
  opacity: 0.35;
}

.prices-game-art-img {
  display: block;
  width: 2.85rem;
  height: 3.95rem;
  object-fit: cover;
  border-radius: 0.38rem;
  border: 1px solid var(--store-surface-border);
  background: rgba(15, 23, 42, 0.05);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.prices-game-art-img.is-broken {
  visibility: hidden;
}

[data-bs-theme="dark"] .prices-game-art-img {
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

/* Sets table */
.prices-sets-table {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.prices-sets-table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.prices-sets-table tbody tr {
  cursor: pointer;
}

.prices-sets-table tbody tr:hover {
  background: var(--bs-tertiary-bg);
}

.prices-set-code {
  display: inline-block;
  min-width: 2.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  color: rgb(var(--store-brand-primary-rgb));
  background: rgba(var(--store-brand-primary-rgb), 0.12);
}

.prices-set-name {
  font-weight: 600;
  line-height: 1.25;
}

/* Product rows */
.prices-list-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--bs-border-color);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.prices-list-row:last-child {
  border-bottom: 0;
}

.prices-list-row:hover {
  background: var(--bs-tertiary-bg);
  color: inherit;
}

.store-card-img {
  width: 56px;
  height: 78px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(127, 127, 127, 0.08);
}

.prices-thumb-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.prices-table-thumb,
.prices-product-hero-img {
  object-fit: contain;
  border-radius: 0.35rem;
  background: rgba(127, 127, 127, 0.08);
}

.prices-table-thumb {
  width: 46px;
  height: 64px;
}

.prices-thumb-back {
  opacity: 0.92;
}

.prices-thumb-placeholder {
  display: inline-flex;
  width: 46px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: rgba(127, 127, 127, 0.08);
  color: var(--bs-secondary-color);
}

img.is-broken {
  visibility: hidden;
}

.prices-products-table {
  font-size: 0.84rem;
}

.prices-products-table thead th {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-bottom-width: 1px;
  white-space: nowrap;
  padding: 0.35rem 0.45rem;
}

.prices-products-table tbody td {
  padding: 0.35rem 0.45rem;
  vertical-align: middle;
}

.prices-products-table tbody tr {
  cursor: pointer;
}

.prices-col-img { width: 6.5rem; }
.prices-col-num { width: 3.5rem; }
.prices-col-price { width: 5.5rem; }

.prices-col-buy { width: 8.5rem; }

.prices-buy-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.prices-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.prices-buy-link .bi {
  font-size: 0.72rem;
  line-height: 1;
}

.prices-buy-link-sm {
  min-width: 2rem;
  padding: 0.08rem 0.28rem;
}

.prices-buy-tcg {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.25);
}

.prices-buy-ebay {
  color: #b58100;
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.35);
}

[data-bs-theme="dark"] .prices-buy-tcg {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
}

[data-bs-theme="dark"] .prices-buy-ebay {
  color: #111;
  background: #ffc107;
  border-color: #ffc107;
}

[data-bs-theme="dark"] .prices-buy-tcg:hover,
[data-bs-theme="dark"] .prices-buy-ebay:hover {
  color: inherit;
  filter: brightness(1.08);
}

.prices-buy-mp {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.25);
}

[data-bs-theme="dark"] .prices-buy-mp {
  color: #fff;
  background: #198754;
  border-color: #198754;
}

[data-bs-theme="dark"] .prices-buy-mp:hover {
  color: #fff;
  filter: brightness(1.08);
}

.prices-list-scroll-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 3rem;
}

.prices-buy-link:hover {
  filter: brightness(1.05);
  color: inherit;
}

.prices-card-name {
  font-weight: 600;
  line-height: 1.2;
}

.prices-sets-table tbody tr[data-href] {
  cursor: pointer;
}

.prices-sets-table tbody tr[data-href]:hover {
  background: rgba(var(--store-brand-primary-rgb), 0.06);
}

.prices-col-symbol {
  width: 2rem;
}

.prices-set-symbol.is-broken,
.prices-set-head-symbol.is-broken {
  display: none;
}

.prices-game-grid {
  align-items: stretch;
}

.prices-list-row {
  color: inherit;
}

.prices-list-row:hover {
  color: inherit;
  background: rgba(var(--store-brand-primary-rgb), 0.05);
}

.prices-card-meta {
  margin-top: 0.1rem;
}

.prices-product-meta-stack {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.18rem;
}

.prices-product-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.prices-product-type-badges-inline {
  display: inline-flex;
  vertical-align: middle;
}

.prices-finish-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28em 0.55em;
  color: rgb(var(--store-brand-primary-rgb));
  background: rgba(var(--store-brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--store-brand-primary-rgb), 0.24);
}

[data-bs-theme="dark"] .prices-finish-badge {
  color: #dbeafe;
  background: rgba(var(--store-brand-primary-rgb), 0.22);
  border-color: rgba(var(--store-brand-primary-rgb), 0.42);
}

.prices-product-sku-stats {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--bs-secondary-color);
}

.prices-type-card {
  background: var(--bs-tertiary-bg);
  box-shadow: none;
}

.prices-type-card .card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 0.28rem 0.42rem;
}

[data-bs-theme="dark"] .prices-type-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.prices-set-symbol,
.prices-set-head-symbol {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  flex-shrink: 0;
}

.prices-set-head-symbol {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 2px;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

[data-bs-theme="dark"] .prices-set-symbol,
[data-bs-theme="dark"] .prices-set-head-symbol {
  filter: invert(1) brightness(2);
  opacity: 0.85;
}

.prices-sort-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-sort-btn.is-active {
  color: rgb(var(--store-brand-primary-rgb));
}

.prices-sort-btn-end {
  width: 100%;
  text-align: right;
}

.prices-thumb-hover {
  display: none;
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--store-surface-border);
  background: var(--bs-body-bg);
  box-shadow: var(--store-hover-shadow);
}

.prices-thumb-hover.is-visible {
  display: block;
}

.prices-thumb-hover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(127, 127, 127, 0.08);
}

.prices-product-image {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.9rem;
  padding: 0.65rem;
  background: var(--bs-tertiary-bg);
  text-align: center;
  min-width: 0;
}

.prices-product-image .prices-thumb-pair {
  justify-content: center;
  flex-wrap: wrap;
}

.prices-product-hero-img {
  width: auto;
  max-width: 100%;
  max-height: min(52vh, 380px);
  height: auto;
}

.prices-product-details {
  min-width: 0;
}

.prices-product-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prices-product-head {
  flex-wrap: wrap;
}

.prices-price-pill {
  font-weight: 800;
  white-space: nowrap;
}

.prices-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.prices-chart-panel-title {
  padding: 0.65rem 0.85rem 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.prices-chart-panel {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.9rem;
  background: var(--store-surface-bg);
  min-width: 0;
  overflow: hidden;
}

[data-bs-theme="dark"] .prices-chart-panel {
  background:
    linear-gradient(180deg, rgba(19, 28, 49, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(226, 232, 240, 0.05),
    0 0.65rem 1.5rem rgba(7, 13, 26, 0.34);
}

.prices-chart-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.55rem 0.75rem 0;
  gap: 0.5rem;
}

.prices-chart-range-toggle .btn {
  min-width: 4.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prices-chart-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.55rem 0.75rem 0.45rem;
  border-bottom: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .prices-chart-header {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.prices-chart-wrap {
  position: relative;
  padding: 0.55rem 0.75rem 0.75rem;
  min-height: clamp(180px, 40vw, 230px);
  height: clamp(180px, 40vw, 230px);
  min-width: 0;
}

.prices-chart-legend {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.55rem 0.85rem;
  width: 100%;
}

.prices-chart-legend-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.prices-chart-legend-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  flex: 0 0 auto;
}

.prices-chart-legend-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prices-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.08);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.prices-chart-legend-item:hover {
  transform: translateY(-1px);
}

.prices-chart-legend-item.is-hidden {
  opacity: 0.42;
}

.prices-chart-legend-item.is-static {
  cursor: default;
  opacity: 0.92;
}

.prices-chart-legend-item.is-static .prices-chart-legend-swatch {
  background: rgba(148, 163, 184, 0.35) !important;
  box-shadow: none !important;
}

.prices-chart-legend-item.is-info {
  cursor: default;
  opacity: 0.88;
}

.prices-chart-legend-item.is-info .prices-chart-legend-swatch.is-dashed {
  background: transparent !important;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  box-shadow: none !important;
}

.prices-chart-legend-item.is-hidden span:last-child {
  text-decoration: line-through;
}

.prices-chart-legend-swatch {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .prices-chart-legend-item {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(226, 232, 240, 0.06),
    0 0.45rem 1rem rgba(7, 13, 26, 0.42);
}

[data-bs-theme="dark"] .prices-chart-legend-item:hover {
  background: rgba(22, 32, 54, 0.96);
  border-color: rgba(203, 213, 225, 0.42);
}

.prices-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.prices-buy-btn {
  border-radius: 999px;
  font-weight: 600;
}

.prices-sku-table {
  width: 100%;
  font-size: 0.86rem;
  border-collapse: separate;
  border-spacing: 0;
}

.prices-sku-table th,
.prices-sku-table td {
  padding: 0.55rem 0.7rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--bs-border-color);
}

.prices-sku-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
}

.prices-sku-table tbody tr:last-child td {
  border-bottom: 0;
}

.prices-sku-table th:first-child,
.prices-sku-table td:first-child {
  min-width: 17rem;
}

.prices-sku-table th:last-child,
.prices-sku-table td:last-child {
  min-width: 9rem;
}

.prices-sku-table td:last-child .prices-buy-links {
  justify-content: flex-end;
}

.prices-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.55rem;
}

.prices-stat {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: var(--store-surface-bg);
}

.prices-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-stat-value {
  font-weight: 800;
}

.prices-ebay-market {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--store-surface-bg);
}

.prices-finish-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.prices-finish-toggle-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-finish-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 0.6rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.prices-finish-toggle-btn {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.32rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bs-secondary-color);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.prices-finish-toggle-btn:hover:not(.is-active) {
  color: var(--bs-body-color);
  background: color-mix(in srgb, var(--bs-body-color) 6%, transparent);
}

.prices-finish-toggle-btn.is-active {
  color: #fff;
  background: rgb(var(--store-brand-primary-rgb));
  border-color: color-mix(in srgb, rgb(var(--store-brand-primary-rgb)) 82%, #000);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

[data-bs-theme="dark"] .prices-finish-toggle {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

[data-bs-theme="dark"] .prices-finish-toggle-btn:hover:not(.is-active) {
  background: color-mix(in srgb, var(--bs-body-color) 10%, transparent);
}

[data-bs-theme="dark"] .prices-finish-toggle-btn.is-active {
  color: #fff;
  background: rgb(var(--store-brand-primary-rgb));
  border-color: color-mix(in srgb, rgb(var(--store-brand-primary-rgb)) 70%, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.prices-ebay-grade-chip-pop.is-combined {
  cursor: help;
}

.prices-ebay-grader-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prices-ebay-grader-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem 0.65rem;
}

.prices-ebay-grader-name {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  padding-top: 0.65rem;
  min-width: 3.75rem;
}

.prices-ebay-grader-sep {
  font-weight: 400;
  color: var(--bs-border-color);
}

.prices-ebay-grade-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  flex: 1 1 12rem;
  min-width: 0;
  overflow-x: auto;
  padding-top: 0.45rem;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.prices-ebay-grader-row--psa .prices-ebay-grader-label {
  color: #e85d6c;
}

.prices-ebay-grader-row--cgc .prices-ebay-grader-label {
  color: #4da3ff;
}

.prices-ebay-grader-row--bgs .prices-ebay-grader-label {
  color: #d4a017;
}

.prices-ebay-grader-row--raw .prices-ebay-grader-label {
  color: var(--bs-body-color);
}

.prices-ebay-grade-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 4.5rem;
  flex: 0 0 auto;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.55rem;
  background: var(--bs-body-bg);
  color: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.prices-ebay-grade-chip--psa {
  --grade-chip-accent: #e85d6c;
}

.prices-ebay-grade-chip--cgc {
  --grade-chip-accent: #4da3ff;
}

.prices-ebay-grade-chip--bgs {
  --grade-chip-accent: #d4a017;
}

.prices-ebay-grade-chip--bgs-black {
  --grade-chip-accent: #d4a017;
  --grade-chip-pop-accent: #141414;
  border-color: color-mix(in srgb, #141414 42%, var(--grade-chip-accent) 58%);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, #141414 18%, var(--bs-body-bg)) 0%,
    color-mix(in srgb, var(--grade-chip-accent) 8%, var(--bs-body-bg)) 100%
  );
}

.prices-ebay-grade-chip--psa,
.prices-ebay-grade-chip--cgc,
.prices-ebay-grade-chip--bgs {
  border-color: color-mix(in srgb, var(--grade-chip-accent) 38%, var(--bs-border-color));
  background: color-mix(in srgb, var(--grade-chip-accent) 7%, var(--bs-body-bg));
}

.prices-ebay-grade-chip.has-pop {
  padding-top: 0.55rem;
}

.prices-ebay-grade-chip.is-clickable {
  cursor: pointer;
}

.prices-ebay-grade-chip.is-clickable:hover,
.prices-ebay-grade-chip.is-open,
.prices-ebay-grade-chip.is-active {
  border-color: color-mix(in srgb, var(--grade-chip-accent, var(--bs-primary)) 55%, var(--bs-border-color));
  background: color-mix(in srgb, var(--grade-chip-accent, var(--bs-primary)) 12%, var(--bs-body-bg));
  box-shadow: 0 0.25rem 0.65rem rgba(15, 23, 42, 0.08);
}

.prices-ebay-grade-chip-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.prices-ebay-grade-chip-pop {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 0.08rem 0.42rem;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  background: var(--grade-chip-pop-accent, var(--grade-chip-accent, var(--bs-secondary-color)));
  border: 1px solid var(--grade-chip-pop-accent, var(--grade-chip-accent, var(--bs-border-color)));
  border-radius: 0.3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.prices-ebay-grade-chip.is-clickable:hover .prices-ebay-grade-chip-pop,
.prices-ebay-grade-chip.is-open .prices-ebay-grade-chip-pop,
.prices-ebay-grade-chip.is-active .prices-ebay-grade-chip-pop {
  filter: brightness(1.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.prices-ebay-grade-chip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.25;
}

.prices-ebay-grade-chip-stat-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-ebay-grade-detail-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bs-border-color);
}

.prices-ebay-grade-detail-panel .prices-ebay-grade-detail-inner {
  padding: 0;
}

.prices-ebay-grade-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  border-bottom-width: 1px;
}

.prices-ebay-grade-table td {
  vertical-align: middle;
}

.prices-ebay-grade-row.is-clickable {
  cursor: pointer;
}

.prices-ebay-grade-row.is-clickable:hover,
.prices-ebay-grade-row.is-open {
  background: color-mix(in srgb, var(--store-surface-border) 35%, transparent);
}

.prices-ebay-grade-caret {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0.55;
  transition: transform 0.15s ease;
}

.prices-ebay-grade-row.is-open .prices-ebay-grade-caret {
  transform: rotate(45deg) translateY(-1px);
}

.prices-ebay-grade-detail td {
  background: color-mix(in srgb, var(--store-surface-border) 18%, transparent);
  border-top: none;
  padding-top: 0;
}

.prices-ebay-grade-detail-inner {
  padding: 0.65rem 0.15rem 0.75rem;
}

.prices-ebay-comps-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-ebay-comp-title {
  max-width: 22rem;
}

.prices-ebay-comp-title a {
  color: inherit;
  text-decoration: none;
}

.prices-ebay-comp-title a:hover {
  text-decoration: underline;
}

.prices-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.prices-sku-cards {
  display: grid;
  gap: 0.65rem;
}

.prices-sku-card {
  padding: 0.85rem;
  min-width: 0;
}

.prices-sold-listing-title {
  min-width: 0;
}

.prices-sold-listing-cert {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.08rem 0.35rem;
  border-radius: 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  vertical-align: baseline;
}

.prices-sold-date-cell {
  width: 1%;
  white-space: nowrap;
  font-size: 0.78rem;
}

.prices-sold-price-cell {
  width: 1%;
  white-space: nowrap;
}

.prices-sold-source-cell {
  width: 1%;
  white-space: nowrap;
  font-size: 0.82rem;
}

.prices-sold-cert-cell {
  width: 1%;
  white-space: nowrap;
}

.prices-sold-grade-cell {
  width: 1%;
  white-space: nowrap;
}

.prices-sold-table .prices-sold-listing-title {
  max-width: none;
  width: 100%;
}

.prices-sold-cards {
  display: grid;
  gap: 0.65rem;
}

.prices-sold-card {
  padding: 0.75rem 0.85rem;
  min-width: 0;
}

.prices-sold-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.prices-sold-card-date {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.prices-sold-card-price {
  font-size: 0.95rem;
  white-space: nowrap;
}

.prices-sold-card-title {
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
}

.prices-sold-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.45rem;
}

.prices-sold-card-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.prices-sold-card-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-sold-card-excluded {
  opacity: 0.62;
}

.prices-sold-card-excluded .prices-sold-card-title,
.prices-sold-card-excluded .prices-sold-card-price {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.55);
}

.prices-sold-listing-title a {
  color: inherit;
  text-decoration: none;
}

.prices-sold-listing-title a:hover {
  text-decoration: underline;
}

.prices-sold-grade-badge {
  font-size: 0.72rem;
  font-weight: 600;
}

.prices-sold-deviation-tag {
  position: relative;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--prices-deviation-tag);
  white-space: nowrap;
  cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--prices-deviation-tag) 55%, transparent);
}

.prices-sold-deviation-cell {
  overflow: visible;
}

.prices-sold-table-wrap {
  overflow: visible;
}

.prices-sold-table-wrap.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.prices-sold-row-excluded td:not(.prices-sold-deviation-cell) {
  opacity: 0.62;
}

.prices-sold-row-excluded .prices-sold-listing-title,
.prices-sold-row-excluded td.text-end {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.55);
}

.prices-sold-deviation-tip {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: max-content;
  max-width: min(14rem, 72vw);
  padding: 0.38rem 0.42rem;
  border-radius: 0.55rem;
  background: var(--prices-tip-bg);
  border: 1px solid var(--prices-tip-border);
  box-shadow: var(--prices-tip-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.15rem);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.prices-sold-deviation-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 0.65rem;
  border: 0.35rem solid transparent;
  border-bottom-color: var(--prices-tip-border);
}

.prices-sold-deviation-tip::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 1px);
  right: 0.68rem;
  border: 0.32rem solid transparent;
  border-bottom-color: var(--prices-tip-bg);
}

.prices-sold-deviation-tip-badge {
  display: inline-block;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--prices-tip-badge-text);
  background: var(--prices-tip-badge-bg);
  border: 1px solid var(--prices-tip-badge-border);
}

.prices-sold-deviation-tag:hover .prices-sold-deviation-tip,
.prices-sold-deviation-tag:focus-visible .prices-sold-deviation-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: var(--prices-tip-bg);
}

.prices-sold-deviation-tag:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--prices-deviation-tag) 45%, transparent);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.prices-ebay-market-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bs-border-color);
}

.prices-ebay-market-footer .prices-view-sold-toggle {
  min-width: 8.5rem;
}

.prices-sku-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.prices-sku-price-item {
  border: 1px solid var(--store-surface-border);
  border-radius: 0.65rem;
  padding: 0.45rem 0.55rem;
  background: var(--bs-tertiary-bg);
}

.prices-sku-price-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.prices-sku-price-value {
  display: block;
  margin-top: 0.15rem;
  font-weight: 800;
}

.prices-sku-card-buy {
  margin-top: 0.75rem;
}

.prices-direct-store-table td {
  vertical-align: middle;
}

.prices-direct-store-cards {
  display: grid;
  gap: 0.65rem;
}

.prices-direct-store-card {
  padding: 0.85rem;
  min-width: 0;
}

.prices-direct-store-seller {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.prices-direct-store-logo {
  width: 26px;
  height: 26px;
  border-radius: 0.4rem;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px solid var(--store-surface-border);
  background: #fff;
}

.prices-direct-store-name {
  display: inline-block;
  max-width: min(24rem, 38vw);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.prices-direct-store-name:hover,
.prices-direct-store-name:focus {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

.prices-direct-store-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.prices-store-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.25;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.prices-store-tier-silver {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.prices-store-tier-gold {
  color: #b7791f;
  background: rgba(245, 158, 11, 0.12);
}

.prices-store-tier-platinum {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}

.prices-store-tier-mythical {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.prices-buy-direct {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.25);
}

.prices-direct-store-price {
  font-weight: 800;
}

.prices-direct-store-price-prefix {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.prices-mobile-product-list {
  display: grid;
}

.prices-mobile-product-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
  color: inherit;
  text-decoration: none;
}

.prices-mobile-product-card:last-child {
  border-bottom: 0;
}

.prices-mobile-product-card:hover,
.prices-mobile-product-card:focus-visible {
  background: var(--bs-tertiary-bg);
  color: inherit;
}

.prices-mobile-product-card .min-w-0 {
  min-width: 0;
}

.prices-mobile-product-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.prices-table-scroll {
  -webkit-overflow-scrolling: touch;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.prices-shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.45em 0.85em;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 0 0.85rem rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.prices-shop-badge .bi {
  font-size: 0.85rem;
  line-height: 1;
}

.prices-shop-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.prices-shop-tcg {
  color: #1a5fb4;
  border-color: #1a5fb4;
  background: rgba(26, 95, 180, 0.08);
  box-shadow: 0 0 1.2rem rgba(26, 95, 180, 0.18);
}

.prices-shop-tcg:hover {
  background: #1a5fb4;
  color: #fff;
}

.prices-shop-mp {
  color: #6f42c1;
  border-color: #6f42c1;
  background: rgba(111, 66, 193, 0.08);
  box-shadow: 0 0 1.2rem rgba(111, 66, 193, 0.18);
}

.prices-shop-mp:hover {
  background: #6f42c1;
  color: #fff;
}

.prices-shop-ebay {
  color: #b78100;
  border-color: #e5a100;
  background: rgba(229, 161, 0, 0.08);
  box-shadow: 0 0 1.2rem rgba(229, 161, 0, 0.16);
}

.prices-shop-ebay:hover {
  background: #e5a100;
  color: #111;
}

[data-bs-theme="dark"] .prices-shop-tcg {
  color: #fff;
  border-color: #4d9bff;
  background: #2563eb;
  box-shadow: 0 0 1.2rem rgba(37, 99, 235, 0.28);
}

[data-bs-theme="dark"] .prices-shop-tcg:hover {
  background: #1d4ed8;
  color: #fff;
}

[data-bs-theme="dark"] .prices-shop-mp {
  color: #fff;
  border-color: #9d74f7;
  background: #7c3aed;
  box-shadow: 0 0 1.2rem rgba(124, 58, 237, 0.28);
}

[data-bs-theme="dark"] .prices-shop-mp:hover {
  background: #6d28d9;
  color: #fff;
}

[data-bs-theme="dark"] .prices-shop-ebay {
  color: #111;
  border-color: #fbbf24;
  background: #f59e0b;
  box-shadow: 0 0 1.2rem rgba(245, 158, 11, 0.24);
}

[data-bs-theme="dark"] .prices-shop-ebay:hover {
  background: #d97706;
  color: #111;
}

.prices-sku-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.prices-sku-badge {
  font-size: 0.68rem;
  font-weight: 600;
}

.prices-set-search-thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--store-surface-border);
  background: var(--bs-tertiary-bg);
  flex: 0 0 auto;
}

.prices-set-search-thumb.is-broken {
  opacity: 0.35;
}

.prices-set-badge {
  width: 44px;
  height: 58px;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(var(--store-brand-primary-rgb), 0.12);
  color: rgb(var(--store-brand-primary-rgb));
}

.prices-footer {
  position: relative;
  z-index: 1;
  background: var(--store-footer-bg) !important;
  border-top-color: var(--store-footer-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 -1rem 2rem rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] .prices-footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -1rem 2.4rem rgba(0, 0, 0, 0.18);
}

.prices-footer-section-title {
  color: var(--bs-body-color);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.prices-footer-link-list {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prices-footer-link-button {
  color: var(--bs-secondary-color);
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.prices-footer-link-button:hover,
.prices-footer-link-button:focus {
  color: var(--bs-link-hover-color);
}

.prices-footer-legal {
  border-top-color: var(--store-footer-border) !important;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  line-height: 1.55;
}

.prices-footer-legal p:last-child {
  max-width: 72rem;
}

.prices-legal-page {
  margin-inline: auto;
}

.prices-legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--store-brand-secondary-rgb), 0.12), transparent 8rem),
    linear-gradient(135deg, rgba(var(--store-brand-primary-rgb), 0.14), var(--store-surface-bg) 64%);
}

.prices-legal-hero::before {
  content: "";
  position: absolute;
  inset: -45% -20% auto 42%;
  height: 130%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--store-brand-accent-rgb), 0.18), transparent 64%);
  pointer-events: none;
}

.prices-legal-hero > * {
  position: relative;
  z-index: 1;
}

.prices-legal-eyebrow {
  color: var(--bs-secondary-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prices-legal-updated {
  margin-top: 1rem;
  color: var(--bs-secondary-color);
  font-size: 0.86rem;
  font-weight: 700;
}

.prices-legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 1rem;
  align-items: start;
}

.prices-legal-content,
.prices-legal-card {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.prices-legal-section + .prices-legal-section {
  margin-top: 1.55rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--store-surface-border);
}

.prices-legal-section h2,
.prices-legal-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.prices-legal-section p,
.prices-legal-section li,
.prices-legal-card p {
  color: var(--bs-secondary-color);
  line-height: 1.68;
}

.prices-legal-section ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.prices-legal-section li + li {
  margin-top: 0.55rem;
}

.prices-legal-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 96px;
}

.prices-personal-info-modal-header,
.prices-personal-info-modal-heading h5 {
  margin-bottom: 0;
}

.prices-personal-info-eyebrow {
  color: var(--bs-secondary-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prices-personal-info-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prices-personal-info-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.prices-personal-info-list i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: rgb(var(--store-brand-primary-rgb));
}

.prices-personal-info-ack-card {
  color: var(--bs-body-color);
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.24);
}

.prices-personal-info-ack-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.13);
}

@media (max-width: 991.98px) {
  .prices-legal-grid {
    grid-template-columns: 1fr;
  }

  .prices-legal-side {
    position: static;
  }

  #pricesSearch,
  #pricesMobileSearch,
  #pricesSearchGame,
  #pricesMobileSearchGame,
  #pricesListFilter,
  .prices-filter-bar .form-control,
  .prices-filter-bar .form-select,
  .prices-search-modal .form-control,
  .prices-search-modal .form-select {
    font-size: 16px !important;
  }

  .prices-shell {
    padding-inline: max(1rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
  }

  .prices-section-title {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  }

  .prices-legal-hero .prices-section-title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .store-header-inner {
    min-height: 64px;
  }

  .store-header-brand {
    max-width: calc(100vw - 9.5rem);
  }

  .store-logo {
    width: 48px;
    height: 48px;
  }

  .store-header-search {
    position: static;
    order: 10;
    width: 100%;
    max-width: none;
    transform: none;
  }

  .prices-game-select {
    max-width: 46%;
    min-width: 6.5rem;
  }

  .prices-product-layout {
    grid-template-columns: 1fr;
  }

  .prices-product-hero-img {
    max-height: min(46vh, 320px);
  }

  .prices-shop-badge {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
    min-width: 0;
  }

  .prices-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prices-game-card-body {
    min-width: 0;
  }

  .prices-game-card-art {
    gap: 0.28rem;
  }

  .prices-game-art-img,
  .prices-game-art-slot--empty {
    width: 2.55rem;
    height: 3.55rem;
  }

  .store-live-search-panel {
    left: 8px !important;
    right: 8px;
    width: auto !important;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .prices-search-modal .modal-dialog {
    margin: 0.65rem;
  }

  .prices-footer .row > [class*="col-"] + [class*="col-"] {
    margin-top: 0.35rem;
  }

  .prices-sets-table {
    font-size: 0.84rem;
  }

  .prices-list-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "thumb main"
      "price price";
    gap: 0.45rem 0.55rem;
  }

  .prices-list-row > .store-card-img,
  .prices-list-row > .prices-thumb-pair {
    grid-area: thumb;
  }

  .prices-list-row > span:nth-child(2) {
    grid-area: main;
    min-width: 0;
  }

  .prices-list-row > span:last-child {
    grid-area: price;
    text-align: left !important;
  }

  .prices-shop-badge {
    flex: 1 1 100%;
  }

  .prices-stat-grid {
    grid-template-columns: 1fr;
  }

  .prices-chart-wrap {
    min-height: 180px;
    height: 180px;
  }

  .prices-brand-sub {
    display: none;
  }

  .prices-game-card {
    overflow: hidden;
  }

  .prices-game-card-content {
    gap: 0.65rem;
  }

  .prices-game-card-art {
    gap: 0.24rem;
  }

  .prices-game-art-img,
  .prices-game-art-slot--empty {
    width: 2.35rem;
    height: 3.28rem;
  }
}

.prices-scan-picker {
  max-width: 28rem;
}

.prices-scan-camera-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: calc(100dvh - 7rem);
}

.prices-scan-camera-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prices-scan-camera-meta {
  min-width: 0;
}

.prices-scan-camera-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.prices-scan-camera-status {
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
}

.prices-scan-camera-status[data-tone="ready"] {
  color: #22c55e;
}

.prices-scan-camera-status[data-tone="error"] {
  color: #ef4444;
}

.prices-scan-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 52dvh;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.prices-scan-viewport video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prices-scan-guide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.prices-scan-guide-frame {
  width: 65%;
  aspect-ratio: 63 / 88;
  max-height: 70%;
  position: relative;
  border: 2px dashed rgba(139, 92, 246, 0.55);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}

.prices-scan-guide-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(139, 92, 246, 0.85);
}

.prices-scan-guide-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.prices-scan-guide-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.prices-scan-guide-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.prices-scan-guide-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.prices-scan-camera-actions {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.prices-scan-capture-btn:disabled {
  opacity: 0.65;
}

@media (max-width: 991.98px) {
  .prices-main:has(.prices-scan-camera-shell) {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .store-header-brand {
    max-width: calc(100vw - 12.5rem);
  }
}
