/* Price Check Modal — Premium Redesign */

/* === Modal Shell === */
.spotlight-modal.price-check-modal,
.price-check-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 16, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.spotlight-modal.price-check-modal.is-open,
.price-check-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.price-check-modal[hidden] {
  display: none !important;
}

.price-check__dialog {
  width: min(100%, 780px);
  max-height: min(90vh, 880px);
  background: linear-gradient(160deg, rgba(10, 14, 34, 0.98), rgba(7, 12, 28, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.price-check__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
  opacity: 0.6;
}

.price-check-modal.is-open .price-check__dialog {
  transform: translateY(0) scale(1);
}

/* === Header === */
.price-check__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
}

.price-check__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.price-check__title i {
  width: 20px;
  height: 20px;
  color: #38bdf8;
}

.price-check__close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  transition: background 0.2s, color 0.2s;
}

.price-check__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

/* === Body === */
.price-check__body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.price-check__search.is-hidden,
.price-check__results.is-hidden {
  display: none;
}

/* === Search View === */
.price-check__input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-check__input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.price-check__input-shell {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-check__input-shell:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.price-check__input-shell i {
  color: #64748b;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.price-check__input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 0.95rem;
  padding: 14px 10px;
  outline: none;
  min-width: 0;
}

.price-check__input::placeholder {
  color: #475569;
}

.price-check__pattern-field {
  display: flex;
  align-items: center;
  width: 0;
  min-height: 52px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.price-check__pattern-field.is-visible {
  width: 100px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.price-check__pattern-field .price-check__pattern-input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.price-check__pattern-field .price-check__pattern-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.85);
}

.price-check__helpers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #475569;
}

.price-check__regex-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.price-check__regex-toggle input {
  accent-color: #38bdf8;
}

.price-check__submit {
  align-self: stretch;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.price-check__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.price-check__submit:disabled,
.price-check__submit.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.price-check__submit i {
  width: 18px;
  height: 18px;
}

.price-check__status {
  margin-top: 10px;
  font-size: 0.82rem;
  min-height: 1.2em;
  color: #94a3b8;
}

.price-check__status[data-variant="error"] {
  color: #f87171;
}

.price-check__status[data-variant="success"] {
  color: #4ade80;
}

/* === Progress / Skeleton === */
.price-check__progress {
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.price-check__progress.is-active {
  opacity: 1;
}

.price-check__progress-label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}

.price-check__progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.price-check__progress-bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% 100%;
  animation: price-check-progress 1.6s ease-in-out infinite;
}

@keyframes price-check-progress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* === Skeleton loading === */
.price-check__skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.price-check__skeleton-card {
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: price-check-shimmer 1.5s ease-in-out infinite;
}

@keyframes price-check-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === History & Suggestions === */
.price-check__history,
.price-check__suggestions {
  margin-top: 16px;
}

.price-check__section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.price-check__history-list,
.price-check__suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-check__history-chip,
.price-check__suggestion-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.price-check__history-chip:hover,
.price-check__suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.price-check__history-pattern {
  color: #38bdf8;
  margin-left: 4px;
  font-weight: 600;
}

.price-check__history-empty {
  font-size: 0.8rem;
  color: #475569;
}

/* === Popular patterns strip === */
.price-check__suggestion-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.price-check__suggestion-list::-webkit-scrollbar {
  height: 4px;
}

.price-check__suggestion-list::-webkit-scrollbar-track {
  background: transparent;
}

.price-check__suggestion-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 999px;
}

.price-check__suggestion-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}

.price-check__suggestion-thumb {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.price-check__suggestion-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* === Results — Hero Card === */
.price-check__results-header {
  margin-bottom: 16px;
}

.price-check__results-skin {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.price-check__results-thumb {
  width: 88px;
  height: 66px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  flex-shrink: 0;
}

.price-check__results-info {
  flex: 1;
  min-width: 0;
}

.price-check__results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px;
  line-height: 1.3;
}

.price-check__results-pattern {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.price-check__results-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.price-check__results-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.price-check__results-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.price-check__results-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 600;
}

/* === Float Section — Compact === */
.price-check__float-section {
  margin-bottom: 14px;
}

.price-check__float-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-check__float-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.price-check__float-pill-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 600;
}

.price-check__float-pill-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.price-check__float-pill-wear {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.price-check__pattern-pill .price-check__float-pill-value {
  color: #38bdf8;
}

.price-check__float-pill-wear.price-check__wear-text--fn { color: #34d399; }
.price-check__float-pill-wear.price-check__wear-text--mw { color: #60a5fa; }
.price-check__float-pill-wear.price-check__wear-text--ft { color: #fb923c; }
.price-check__float-pill-wear.price-check__wear-text--ww { color: #fb7185; }
.price-check__float-pill-wear.price-check__wear-text--bs { color: #9ca3af; }

.price-check__float-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 8px;
}

.price-check__float-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.price-check__float-bar-fill.price-check__wear-text--fn { background: linear-gradient(90deg, #34d399, #4ade80); }
.price-check__float-bar-fill.price-check__wear-text--mw { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
.price-check__float-bar-fill.price-check__wear-text--ft { background: linear-gradient(90deg, #fb923c, #fdba74); }
.price-check__float-bar-fill.price-check__wear-text--ww { background: linear-gradient(90deg, #fb7185, #fca5a5); }
.price-check__float-bar-fill.price-check__wear-text--bs { background: linear-gradient(90deg, #9ca3af, #d1d5db); }

/* === Overpay — Slim Banner === */
.price-check__overpay {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
  animation: price-check-fade-in 0.3s ease;
}

.price-check__overpay i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.price-check__overpay--overpay {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-left: 3px solid #34d399;
}

.price-check__overpay--overpay i {
  color: #34d399;
}

.price-check__overpay--discount {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-left: 3px solid #f87171;
}

.price-check__overpay--discount i {
  color: #f87171;
}

.price-check__overpay-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.price-check__overpay-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.price-check__overpay-detail {
  font-size: 0.74rem;
  color: #94a3b8;
}

.price-check__overpay-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* === Pattern Highlights — Inline Badges === */
.price-check__highlights {
  margin-bottom: 14px;
}

.price-check__highlights-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-check__rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.price-check__rank-badge:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.price-check__rank-badge i {
  width: 14px;
  height: 14px;
  color: #facc15;
}

.price-check__rank-badge-rank {
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.price-check__rank-badge-label {
  white-space: nowrap;
}

.price-check__rank-badge-coverage {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.price-check__rank-badge--top1 {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.25);
  animation: price-check-gold-pulse 2.5s ease-in-out infinite;
}

@keyframes price-check-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
  50% { box-shadow: 0 0 8px 0 rgba(250, 204, 21, 0.15); }
}

.price-check__rank-badge--top1:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.4);
}

.price-check__rank-badge--top1 .price-check__rank-badge-rank {
  color: #facc15;
}

.price-check__rank-badge--top3 {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
}

/* === Variant Tabs — Segmented Control === */
.price-check__variant-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.price-check__variant-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.price-check__variant-tab:hover {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
}

.price-check__variant-tab.is-active {
  color: #f8fafc;
}

.price-check__variant-tab.is-active[data-variant="normal"] {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.price-check__variant-tab.is-active[data-variant="stattrak"] {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.price-check__variant-tab.is-active[data-variant="souvenir"] {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.price-check__variant-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.price-check__variant-dot--cyan { background: #38bdf8; }
.price-check__variant-dot--orange { background: #fb923c; }
.price-check__variant-dot--yellow { background: #facc15; }

.price-check__variant-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* === Variant Panels === */
.price-check__variant-panel {
  display: none;
}

.price-check__variant-panel.is-active {
  display: block;
  animation: price-check-fade-in 0.25s ease;
}

@keyframes price-check-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Wear Cards === */
.price-check__wear-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-check__wear-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.price-check__wear-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.price-check__wear-card.is-active {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.04);
}

.price-check__wear-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.price-check__wear-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 130px;
}

.price-check__wear-name {
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.price-check__wear-name.price-check__wear-text--fn { color: #34d399; }
.price-check__wear-name.price-check__wear-text--mw { color: #60a5fa; }
.price-check__wear-name.price-check__wear-text--ft { color: #fb923c; }
.price-check__wear-name.price-check__wear-text--ww { color: #fb7185; }
.price-check__wear-name.price-check__wear-text--bs { color: #9ca3af; }

.price-check__wear-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Range bar in wear card */
.price-check__wear-range {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.price-check__wear-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.price-check__wear-range-labels .price-check__wear-range-avg {
  color: #f8fafc;
  font-weight: 700;
}

.price-check__wear-range-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.price-check__wear-range-fill {
  position: absolute;
  height: 100%;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.3);
}

.price-check__wear-range-avg-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

/* Range tooltips */
.price-check__wear-range-tip {
  position: relative;
  cursor: help;
}

.price-check__wear-range-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-check__wear-range-tip:hover::after {
  opacity: 1;
}

.price-check__wear-range-avg-dot.price-check__wear-range-tip::after {
  bottom: calc(100% + 8px);
}

.price-check__wear-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.price-check__wear-card-sales {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.price-check__wear-card-chevron {
  width: 16px;
  height: 16px;
  color: #475569;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.price-check__wear-card.is-open .price-check__wear-card-chevron {
  transform: rotate(90deg);
  color: #38bdf8;
}

.price-check__wear-limited {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* === Sales Panel (expandable) === */
.price-check__wear-sales {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.price-check__wear-card.is-open .price-check__wear-sales {
  max-height: 600px;
}

.price-check__wear-sales-inner {
  padding: 4px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.price-check__sales-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-check__sale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: #cbd5e1;
  transition: background 0.15s;
}

.price-check__sale-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.price-check__sale-row:last-child {
  border-bottom: none;
}

.price-check__sale-price {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 60px;
}

.price-check__sale-float {
  color: #64748b;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 55px;
}

.price-check__sale-date {
  color: #64748b;
  font-size: 0.76rem;
  margin-left: auto;
  flex-shrink: 0;
}

.price-check__sale-attachments {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.price-check__sale-attachments-empty {
  color: #334155;
  font-size: 0.78rem;
}

.price-check__sale-price[data-price-tooltip] {
  cursor: help;
  text-decoration: underline dotted rgba(148, 163, 184, 0.3);
  text-underline-offset: 3px;
}

.price-check__price-tooltip {
  position: fixed;
  z-index: 10000;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-transform: capitalize;
}

/* === Attachment chips === */
.price-check__attachment-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.price-check__attachment-chip {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.price-check__attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.price-check__attachment-fallback {
  font-size: 0.65rem;
  font-weight: 700;
  color: #e2e8f0;
}

.price-check__attachment-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

.price-check__attachment-chip:hover .price-check__attachment-tooltip {
  opacity: 1;
}

/* === Empty state === */
.price-check__empty-wears {
  color: #64748b;
  font-size: 0.85rem;
  padding: 16px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* === Footer === */
.price-check__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px 10px;
}

.price-check__action {
  flex: 1 1 120px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.price-check__action:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.price-check__action--primary {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-color: transparent;
  color: #020617;
}

.price-check__action--primary:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.2);
}

.price-check__action i {
  width: 16px;
  height: 16px;
}

.price-check__disclaimer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px 14px;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.4;
}

.price-check__disclaimer i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #334155;
}

/* === Search dropdown === */
.price-check__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  z-index: 10;
  padding: 4px;
}

.price-check__dropdown[hidden] {
  display: none;
}

.price-check__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.price-check__dropdown-item:hover,
.price-check__dropdown-item.is-active {
  background: rgba(56, 189, 248, 0.1);
}

.price-check__dropdown-thumb {
  width: 36px;
  height: 27px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.8);
}

.price-check__dropdown-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-check__dropdown-empty {
  padding: 10px;
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}

/* === Mobile === */
@media (max-width: 640px) {
  .price-check-modal {
    padding: 0;
    align-items: flex-end;
  }

  .price-check__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(30px);
  }

  .price-check-modal.is-open .price-check__dialog {
    transform: translateY(0);
  }

  .price-check__body {
    padding: 16px 18px 18px;
  }

  .price-check__header {
    padding: 16px 18px 10px;
  }

  .price-check__actions {
    padding: 12px 18px 8px;
  }

  .price-check__disclaimer {
    padding: 0 18px 12px;
    font-size: 0.65rem;
  }

  .price-check__results-skin {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .price-check__results-thumb {
    width: 64px;
    height: 48px;
  }

  .price-check__results-title {
    font-size: 1.05rem;
  }

  .price-check__results-stats {
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
  }

  .price-check__wear-card-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .price-check__wear-card-name {
    min-width: 0;
  }

  .price-check__wear-range {
    order: 3;
    width: 100%;
  }

  .price-check__wear-card-meta {
    margin-left: auto;
  }

  .price-check__sale-date {
    display: none;
  }

  .price-check__variant-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .price-check__variant-tabs::-webkit-scrollbar {
    display: none;
  }

  .price-check__suggestion-label {
    max-width: 100px;
  }

  .price-check__float-pill {
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px 10px;
  }

  .price-check__overpay {
    padding: 8px 10px;
    gap: 8px;
  }

  .price-check__overpay-title {
    font-size: 0.8rem;
  }

  .price-check__rank-badge {
    padding: 4px 8px;
    font-size: 0.74rem;
  }
}
