/* Price check screen — same soft glass look as the rest of the dashboard. */

.pc-wrap { display: grid; gap: 16px; }

/* ---- search bar ---- */
.pc-search { padding: 20px; display: grid; gap: 12px; }
.pc-search-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 150px auto; gap: 10px; align-items: end; }
.pc-search input { font-size: 15px; }
.pc-options { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; }
.pc-options label { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 650; }
.pc-options input { width: auto; }

.pc-service { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c6d4; flex: none; }
.pc-dot.up { background: #34b46a; box-shadow: 0 0 0 4px #34b46a24; }
.pc-dot.down { background: #e2564f; box-shadow: 0 0 0 4px #e2564f24; }
.pc-code { display: block; margin-top: 6px; padding: 9px 11px; border-radius: 10px; background: #2b2740; color: #ffe9f2;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; }

/* ---- verdict + gauge ---- */
.pc-verdict { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; }
.pc-gauge { width: 100%; max-width: 300px; margin: 0 auto; padding: 6px 4px 0; }
.pc-gauge svg { width: 100%; height: auto; display: block; overflow: visible; }

.pc-track { fill: none; stroke: #ece7f7; stroke-width: 16; stroke-linecap: round; }
.pc-sweep { fill: none; stroke: url(#pcSweep); stroke-width: 16; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.32, 1.12, .42, 1); }
.pc-tick { stroke: #cdc6e0; stroke-width: 2; stroke-linecap: round; }

.pc-needle { transform-origin: 100px 104px; transition: transform 1.2s cubic-bezier(.34, 1.28, .5, 1); }
.pc-gauge-score { font: 800 32px/1 Inter, system-ui, sans-serif; letter-spacing: -.06em; fill: var(--ink); }
.pc-gauge-cap { font: 800 9px/1 Inter, system-ui, sans-serif; letter-spacing: .18em; fill: #a09eb2; }
.pc-gauge-end { font: 800 9px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; fill: #a09eb2; }

.pc-verdict-label { margin: 0; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.05em; line-height: 1; }
.pc-verdict-blurb { margin: 9px 0 0; color: var(--muted); }
.pc-verdict-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 700; background: #f4ecff; color: #6f4aaf; }

.pc-great .pc-verdict-label { color: #1d8a4e; }
.pc-good  .pc-verdict-label { color: #2f7d55; }
.pc-okay  .pc-verdict-label { color: #9c6b12; }
.pc-thin  .pc-verdict-label { color: #b7590f; }
.pc-bad   .pc-verdict-label { color: #c33a37; }

/* ---- money tiles ---- */
.pc-money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pc-tile { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--panel);
  box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.pc-tile small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pc-tile strong { display: block; margin: 12px 0 4px; font-size: 27px; letter-spacing: -.06em; }
.pc-tile span { display: block; color: var(--muted); font-size: 12px; }
.pc-tile.pc-profit strong { color: #1d8a4e; }
.pc-tile.pc-loss strong { color: #c33a37; }

/* ---- store rows ---- */
.pc-store { border-radius: 18px; padding: 15px; background: #fff9; border: 1px solid #fff; margin-top: 10px; }
.pc-store-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-store-head h4 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.pc-tier { border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pc-tier.exact { background: #e4f5e8; color: #22693a; }
.pc-tier.closest { background: #fff0d9; color: #8c4f00; }
.pc-tier.none { background: #f1eff5; color: #6d6d82; }

.pc-item { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start;
  margin-top: 9px; padding: 10px; border-radius: 13px; background: #fffffff0; }
.pc-item-side { display: grid; gap: 4px; justify-items: start; }
/* Fixed size on purpose: a percentage width collapses to zero before the image
   has loaded, which then stops it ever loading. */
.pc-thumb { width: 104px; height: 104px; object-fit: contain; border-radius: 12px;
  background: #fff; border: 1px solid #efeaf7; padding: 5px; }
.pc-thumb-empty { display: grid; place-items: center; color: #b3b0c0; font-size: 10px; font-weight: 700;
  background: #f7f5fb; }
.pc-item + .pc-item { border-top: 1px solid #f0edf5; }
.pc-price { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.pc-price small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.pc-was { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.pc-item-title { display: block; font-weight: 650; font-size: 13px; line-height: 1.35; }
.pc-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.pc-chip { border-radius: 999px; padding: 3px 8px; font-size: 11px; background: #f2effa; color: #5d479c; }
.pc-chip.warn { background: #fff0d9; color: #8c4f00; }
.pc-link { display: inline-block; margin-top: 6px; color: #5d479c; font-size: 12px; font-weight: 700; word-break: break-all; }
.pc-ship-btn { display: block; margin-top: 8px; border: 1px solid #e3d8fb; border-radius: 999px; padding: 7px 12px;
  background: #fff; color: #5b478f; font: 700 12px inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.pc-ship-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 16px #8055b126; }
.pc-ship-btn:disabled { opacity: .5; cursor: default; }
.pc-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* ---- shipping ---- */
.pc-ship-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pc-ship { border-radius: 15px; padding: 13px; background: #fff9; border: 1px solid #fff; }
.pc-ship b { display: block; font-size: 14px; }
.pc-ship .pc-ship-status { display: inline-block; margin: 7px 0; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.pc-ship.yes .pc-ship-status { background: #e4f5e8; color: #22693a; }
.pc-ship.no .pc-ship-status { background: #ffe6e4; color: #b3322e; }
.pc-ship.unknown .pc-ship-status { background: #f1eff5; color: #6d6d82; }
.pc-ship-cost { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.pc-ship small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

.pc-foot { margin: 4px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pc-busy { display: flex; align-items: center; gap: 9px; padding: 14px; color: #654fa7; font-size: 13px; }

@media (max-width: 1050px) {
  .pc-verdict { grid-template-columns: 1fr; }
  .pc-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pc-search-row { grid-template-columns: 1fr; }
  .pc-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Keep photo-left / details-right on a phone — stacking wastes half the screen. */
  .pc-item { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .pc-thumb { width: 88px; height: 88px; }
  .pc-price { font-size: 19px; }
  .pc-item-title { font-size: 13px; }
  .pc-ship-btn { width: 100%; text-align: center; }
}
