/* ═══════════════════════════════════════════════════════════════
   VIMORA DEALS — deals.css
   ═══════════════════════════════════════════════════════════════ */

/* ── SOLID NAVBAR ────────────────────────────────────────────── */
.deals-page .navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 var(--border) !important;
}
.deals-page .nav-link                              { color: var(--muted) !important; }
.deals-page .navbar .nav-link:hover                { color: var(--text) !important; background: var(--card) !important; }
.deals-page .navbar .navbar__name                  { color: var(--text) !important; }
.deals-page .navbar .sidebar-trigger span          { background: var(--text) !important; }
.deals-page .navbar .sidebar-trigger:hover         { background: rgba(0,0,0,0.06) !important; }
.deals-page .navbar .btn-toggle                    { color: var(--text-soft) !important; border-color: var(--border) !important; background: transparent !important; }
.deals-page .navbar .btn-toggle:hover              { background: var(--card) !important; border-color: var(--accent) !important; color: var(--text) !important; }
[data-theme="light"] .deals-page .navbar           { box-shadow: 0 1px 0 rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06) !important; }

/* ── PAGE BASE ────────────────────────────────────────────────── */
.deals-page {
  padding-top: 64px;
  background: var(--bg);
  min-height: 100vh;
}

/* ── PAGE HEADER ──────────────────────────────────────────────── */
.deals-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 28px calc(44px + 24px);
}
.deals-header__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.deals-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.deals-header__sub {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.deals-header__disclosure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ── CATEGORY BAR ─────────────────────────────────────────────── */
.deals-cat-bar {
  position: sticky;
  top: 64px;
  z-index: 80;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.deals-cat-bar::-webkit-scrollbar { display: none; }
.deals-cat-bar__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px 10px calc(44px + 24px);
  max-width: 1200px;
  margin: 0 auto;
  width: max-content;
  min-width: 100%;
}
.deals-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.845rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.deals-cat-btn:hover {
  background: var(--card);
  color: var(--text);
}
.deals-cat-btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── LAYOUT ────────────────────────────────────────────────────── */

/* Outer wrapper: content + ad strip side by side */
.radar-content-wrapper {
  display: flex;
  align-items: flex-start;
  max-width: 1600px;
  margin: 0 auto;
}

.deals-layout {
  flex: 1;
  min-width: 0;
  padding: 32px 16px 80px calc(44px + 16px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── AD STRIP ──────────────────────────────────────────────────── */
.radar-ad-strip {
  width: 400px;
  flex-shrink: 0;
  padding: 24px 24px 80px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Flows naturally with the page — no sticky, no separate scroll */
}

/* Slots scroll with page individually — only hero is sticky */
.radar-ad-slot {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
  justify-content: center;
}

.radar-ad-slot:hover {
  border-color: var(--accent);
  background: var(--card);
}

.radar-ad-slot__icon {
  color: var(--muted);
  opacity: 0.3;
}

.radar-ad-slot__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.5;
  font-weight: 700;
}

.radar-ad-slot__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
}

.radar-ad-slot__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 18px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.radar-ad-slot__cta:hover {
  opacity: 1;
  background: var(--accent);
  color: #fff;
}

/* ── Desktop slot sizes — Apple-style, ~2× product card height ───── */
.radar-ad-slot--hero {
  min-height: 720px;    /* dominant premium space, near full-viewport feel */
}
.radar-ad-slot--hero .radar-ad-slot__icon { opacity: 0.22; }

.radar-ad-slot--standard { min-height: 560px; }

.radar-ad-slot--compact  {
  min-height: 360px;
  padding: 40px 28px;
  gap: 16px;
}
.radar-ad-slot--compact .radar-ad-slot__icon { display: none; }
.radar-ad-slot--compact .radar-ad-slot__text { font-size: 0.88rem; }

/* Hide ad strip below 1200px — mobile uses in-feed cards instead */
@media (max-width: 1200px) {
  .radar-ad-strip { display: none; }
}

/* ── Mobile in-feed ad card ─────────────────────────────────────── */
.deal-card--ad {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  gap: 10px;
  cursor: default;
  transition: border-color 0.2s;
}
.deal-card--ad:hover { border-color: var(--accent); }

.deal-card__ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.5;
}

.deal-card__ad-icon {
  color: var(--muted);
  opacity: 0.3;
  margin-bottom: 4px;
}

.deal-card__ad-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.deal-card__ad-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

.deal-card__ad-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.deal-card__ad-cta:hover { opacity: 1; }

/* ── SECTION ───────────────────────────────────────────────────── */
.deals-section { }
.deals-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.deals-section__icon { font-size: 1.25rem; line-height: 1; }
.deals-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.deals-section__sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 4px;
}
.deals-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ── FEATURED GRID (3 cols) ────────────────────────────────────── */
.deals-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── HORIZONTAL SCROLL STRIP ───────────────────────────────────── */
.deals-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.deals-hscroll::-webkit-scrollbar { height: 4px; }
.deals-hscroll::-webkit-scrollbar-track { background: transparent; }
.deals-hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }

/* ── MAIN GRID ─────────────────────────────────────────────────── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── DEAL CARD BASE ────────────────────────────────────────────── */
.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: default;
}
.deal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

/* ── CARD SIZES ────────────────────────────────────────────────── */
.deal-card--featured {
  /* larger card, taller image */
}
.deal-card--compact {
  flex-shrink: 0;
  width: 220px;
}
.deal-card--normal { }

/* ── CARD IMAGE AREA ───────────────────────────────────────────── */
.deal-card__image-wrap {
  position: relative;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.deal-card--featured   .deal-card__image-wrap { height: 180px; }
.deal-card--compact    .deal-card__image-wrap { height: 120px; }
.deal-card--normal     .deal-card__image-wrap { height: 140px; }

.deal-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
}
.deal-card__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── BADGES ────────────────────────────────────────────────────── */
.deal-disc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 100px;
}
.deal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.deal-badge--hot      { background: rgba(239,68,68,0.15);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.3); }
.deal-badge--sale     { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }
.deal-badge--value    { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.deal-badge--new      { background: var(--accent-glow);     color: var(--accent); border: 1px solid rgba(37,99,235,0.3); }

.deal-retailer-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--rc, var(--accent));
}

/* ── CARD BODY ─────────────────────────────────────────────────── */
.deal-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.deal-card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.deal-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.deal-card--compact .deal-card__name { font-size: 0.82rem; }
.deal-card__desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

/* ── TAGS ──────────────────────────────────────────────────────── */
.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.deal-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
}

/* ── RATING ────────────────────────────────────────────────────── */
.deal-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
}
.deal-stars {
  font-size: 0.75rem;
  color: #f59e0b;
  letter-spacing: -1px;
}
.deal-rating-count {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── PRICE ─────────────────────────────────────────────────────── */
.deal-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.deal-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.deal-price-original {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
}
.deal-price-deal {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.deal-card--featured .deal-price-deal { font-size: 1.25rem; }
.deal-savings {
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── CTA BUTTON ────────────────────────────────────────────────── */
.deal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.deal-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── EMPTY STATE ───────────────────────────────────────────────── */
.deals-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .deals-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .deals-featured-grid { grid-template-columns: 1fr; }
  .deals-layout { padding: 20px 16px 60px calc(44px + 16px); gap: 32px; }
  .deals-header { padding: 28px 16px 20px calc(44px + 16px); }
  .radar-search-bar { padding: 10px 16px 10px calc(44px + 16px); }
  .deals-cat-bar__inner { padding: 10px 16px 10px calc(44px + 16px); }
}

/* ── ACTIVE NAV LINK ───────────────────────────────────────────── */
.deals-page .nav-link--active {
  color: var(--accent) !important;
  background: var(--accent-glow) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RADAR — SEARCH BAR
   ═══════════════════════════════════════════════════════════════ */
.radar-search-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 12px calc(44px + 24px);
}
.radar-search-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.radar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.radar-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.radar-search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 40px 10px 42px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.radar-search-input::placeholder { color: var(--muted); }
.radar-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.radar-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.radar-search-clear:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   RADAR — COMPARE SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.radar-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  height: calc(100vh - 64px);
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transform: translateX(calc(-100% + 44px));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.radar-sidebar--open {
  transform: translateX(0);
}

/* Tab strip (always visible, sits on the RIGHT edge of sidebar) */
.radar-sidebar__tab {
  width: 48px;
  flex-shrink: 0;
  background: var(--accent);
  border: none;
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  cursor: pointer;
  color: #fff;
  box-shadow: 3px 0 16px rgba(37,99,235,0.25);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.radar-sidebar__tab:hover {
  background: var(--accent-hover);
  box-shadow: 4px 0 22px rgba(37,99,235,0.4);
  transform: translateX(2px);
}
.radar-sidebar--open .radar-sidebar__tab {
  background: var(--accent-hover);
  box-shadow: none;
  border-radius: 0;
}

.radar-sidebar__tab-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: rgba(255,255,255,0.85);
}

/* Bar-chart icon inside the tab */
.radar-sidebar__tab > svg {
  color: #fff;
  opacity: 0.9;
}

.radar-sidebar__tab-count {
  font-size: 0.72rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.radar-sidebar__tab-count--active {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  animation: tab-count-pop 0.3s ease;
}

@keyframes tab-count-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Panel */
.radar-sidebar__panel {
  width: 300px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.radar-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.radar-sidebar__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.radar-sidebar__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.radar-sidebar__close:hover { color: var(--text); }

/* Slots */
.radar-sidebar__slots {
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radar-sidebar__slot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 10px 12px;
  min-height: 64px;
  display: flex;
  align-items: center;
}
.radar-sidebar__slot--empty {
  border-style: dashed;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.radar-sidebar__slot--filled {
  background: var(--card);
  gap: 10px;
  justify-content: space-between;
}
.radar-sidebar__slot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.radar-sidebar__slot-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.radar-sidebar__slot-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.radar-sidebar__slot-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}
.radar-sidebar__slot-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.radar-sidebar__slot-remove:hover { color: #ef4444; }

/* Footer */
.radar-sidebar__footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radar-sidebar__cta {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.radar-sidebar__cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.radar-sidebar__cta:not(:disabled):hover { background: #1d4ed8; }
.radar-sidebar__hint {
  text-align: center;
  font-size: 0.73rem;
  color: var(--muted);
  margin: 0;
}

/* ── MODE TOGGLE ──────────────────────────────────────────────── */
.radar-mode-toggle {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.radar-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.radar-mode-btn:hover { color: var(--text); background: var(--surface); }
.radar-mode-btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── MODE CONTENT AREAS ───────────────────────────────────────── */
.radar-mode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.radar-mode-content--hidden { display: none; }

/* ── PRICE MODE ─────────────────────────────────────────────────*/
.radar-price-search {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.radar-price-search svg { color: var(--muted); flex-shrink: 0; }
.radar-price-search input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
}
.radar-price-search input::placeholder { color: var(--muted); }
.radar-price-search input:focus { border-color: var(--accent); }

.radar-price-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.radar-price-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 24px 8px;
  margin: 0;
  line-height: 1.5;
}

/* Suggestions */
.radar-suggestions-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0 2px;
}
.radar-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.radar-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.radar-suggestion:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.radar-suggestion__cat { font-size: 1rem; flex-shrink: 0; }
.radar-suggestion__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.radar-suggestion__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-suggestion__desc {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-suggestion__arrow { color: var(--muted); flex-shrink: 0; }
.radar-suggestion:hover .radar-suggestion__arrow { color: var(--accent); }

/* ── Selected product card ───────────────────────────────────── */
.radar-selected-card {
  margin: 8px 12px 0;
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.radar-selected-card__img-wrap {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.radar-selected-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.radar-selected-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
  color: var(--muted);
}
[data-theme="light"] .radar-selected-card__img-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.radar-selected-card__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
}
.radar-selected-card__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.radar-selected-card__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.radar-selected-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.radar-selected-card__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-selected-card__desc {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-selected-card__change {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.radar-selected-card__change:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Price rows wrapper below selected card */
.radar-price-rows-wrap {
  padding: 12px 12px 0;
}
.radar-price-rows-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Light mode */
[data-theme="light"] .radar-selected-card {
  background: rgba(37, 99, 235, 0.04);
}

/* Back button */
.radar-price-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 2px 10px;
  transition: color 0.15s;
}
.radar-price-back:hover { color: var(--accent); }

/* Price result card */
.radar-price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.radar-price-card__head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
}
.radar-price-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.radar-price-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin: 3px 0 2px;
  line-height: 1.3;
}
.radar-price-card__desc {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}
.radar-price-card__rows {
  display: flex;
  flex-direction: column;
}

/* Retailer price row */
.radar-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  transition: background 0.12s;
}
.radar-price-row:first-child { border-top: none; }
.radar-price-row:hover { background: var(--surface); }
.radar-price-row--best { background: rgba(34,197,94,0.05); }
.radar-price-row__retailer {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rc, var(--accent));
  min-width: 80px;
}
.radar-price-row__price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}
.radar-price-row__best-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 6px;
  border-radius: 100px;
}
.radar-price-row__cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}
.radar-price-row__cta:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   RADAR — COMPARE BUTTON ON CARDS
   ═══════════════════════════════════════════════════════════════ */
.deal-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.deal-card__actions .deal-cta {
  flex: 1;
  margin-top: 0;
}
.deal-compare-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.deal-compare-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.deal-compare-btn--active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.deal-compare-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Products search (inside sidebar Products mode) ───────────── */
.radar-products-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 16px 10px;
  flex-shrink: 0;
  color: var(--muted);
}
.radar-products-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.8rem;
  color: var(--text);
}
.radar-products-search input::placeholder { color: var(--muted); }

.radar-products-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.radar-products-empty {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 16px 0;
  line-height: 1.5;
}
.radar-products-empty--warn {
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 8px;
  padding: 10px 12px;
}

.radar-products-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-product-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radar-product-pick:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.radar-product-pick--added {
  opacity: 0.55;
  cursor: default;
}
.radar-product-pick__icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.radar-product-pick__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.radar-product-pick__name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-product-pick__price {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.radar-product-pick__tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.radar-product-pick__add {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s;
}
.radar-product-pick:hover .radar-product-pick__add { color: var(--accent); }

/* Mobile */
@media (max-width: 768px) {
  .radar-sidebar { top: 56px; height: calc(100vh - 56px); }
  .radar-sidebar__panel { width: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPARE MODAL
   ═══════════════════════════════════════════════════════════════ */

/* Overlay */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.compare-modal--open {
  opacity: 1;
  pointer-events: all;
}

.compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

/* Dialog */
.compare-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: calc(160px + var(--cm-cols, 2) * 260px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.compare-modal--open .compare-modal__dialog {
  transform: translateY(0);
}

.compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.compare-modal__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.compare-modal__close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.compare-modal__close:hover {
  color: var(--text);
  border-color: var(--text);
}

.compare-modal__body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Grid row base ─────────────────────────────────────────────── */
/* Every row: label col + N product cols */
.cm-header-row,
.cm-row,
.cm-section-head,
.cm-bench-res {
  display: grid;
  grid-template-columns: 150px repeat(var(--cm-cols, 2), 1fr);
  border-bottom: 1px solid var(--border);
}
.cm-row:last-child { border-bottom: none; }
.cm-row:hover { background: var(--accent-glow); }

/* Label column */
.cm-label {
  padding: 10px 14px;
  font-size: 0.73rem;
  color: var(--muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: var(--bg);
  flex-shrink: 0;
}
.cm-label--game {
  font-size: 0.71rem;
  line-height: 1.3;
}

/* ── Product header row (sticky) ────────────────────────────────── */
.cm-header-row {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  align-items: stretch;
  /* Subtle shadow so content scrolling under feels natural */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.cm-product {
  position: relative;
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cm-product:last-child { border-right: none; }
.cm-product--best { background: rgba(37, 99, 235, 0.04); }

/* Column number badge — top-right corner of each product header */
.cm-col-num {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.85;
}

/* "vs 2" reference label in relative rows */
.cm-rel-item__ref {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

.cm-product__img {
  width: 56px;
  height: 42px;
  background: var(--card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.cm-product__cat {
  font-size: 0.68rem;
  color: var(--muted);
}
.cm-product__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cm-product__price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cm-product__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.cm-product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0;
}
.cm-badge {
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cm-badge--price {
  background: #22c55e;
  color: #fff;
}
.cm-badge--perf {
  background: #f59e0b;
  color: #fff;
}
.cm-badge--value {
  background: #8b5cf6;
  color: #fff;
}
.cm-product--cheapest   { background: rgba(34,  197, 94,  0.04); }
.cm-product--best-perf  { background: rgba(245, 158, 11,  0.04); }
.cm-product--best-value { background: rgba(139, 92,  246, 0.04); }
.cm-product__orig {
  font-size: 0.7rem;
  color: var(--muted);
}
.cm-disc-pct {
  color: #22c55e;
  font-weight: 600;
}
.cm-product__retailer {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rc, var(--accent));
}
.cm-product__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 6px;
  padding: 5px 9px;
  margin-top: auto;
  padding-top: 5px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s;
}
.cm-product__cta:hover { background: rgba(37, 99, 235, 0.18); }

/* ── Section containers ─────────────────────────────────────────── */
.cm-section {
  border-bottom: 2px solid var(--border);
}
.cm-section:last-child { border-bottom: none; }

.cm-section-head {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.cm-section-title {
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.cm-section-title--span {
  grid-column: 2 / -1;
}

/* ── Data cells ─────────────────────────────────────────────────── */
.cm-cell {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.cm-cell:last-child { border-right: none; }
.cm-cell--best { background: rgba(34, 197, 94, 0.07); }
.cm-cell--na   { color: var(--muted); }

.cm-cell__val { font-weight: 500; font-size: 0.78rem; }
.cm-cell--best .cm-cell__val { color: #22c55e; font-weight: 700; }

/* ── Progress bars ──────────────────────────────────────────────── */
.cm-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.cm-bar__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cm-bar__fill--best { background: #22c55e; }

/* ── Benchmark section extras ───────────────────────────────────── */
.cm-section--bench .cm-bench-res {
  background: var(--bg);
}
.cm-bench-res-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}

/* Average FPS summary row */
.cm-row--avg {
  background: var(--card);
  border-top: 1px solid var(--border);
}
.cm-row--avg:hover { background: var(--card); }
.cm-label--avg {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}
.cm-cell--avg .cm-cell__val {
  font-weight: 700;
}
.cm-cell--avg:not(.cm-cell--best) .cm-bar__fill {
  opacity: 0.55;
}

/* Mixed / no-data hint */
.cm-mixed-hint {
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Unit text inside cells */
.cm-cell__unit {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
}
.cm-cell--best .cm-cell__unit { color: rgba(34, 197, 94, 0.75); }

/* Value & Efficiency section accent */
.cm-section--value .cm-section-title--value {
  color: #8b5cf6;
}
.cm-section--value .cm-bar__fill {
  background: #8b5cf6;
}
.cm-section--value .cm-bar__fill--best {
  background: #22c55e;
}

/* Section subtitle (e.g. "based on avg 1080p FPS") */
.cm-section-sub {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
  text-transform: none;
  letter-spacing: 0;
}

/* Relative performance section */
.cm-row--rel { align-items: stretch; }

.cm-cell--rel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
}

.cm-rel-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.3;
}
.cm-rel-item__pct {
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cm-rel-item__label {
  font-size: 0.7rem;
  color: var(--muted);
}
.cm-rel-item--faster .cm-rel-item__pct { color: #22c55e; }
.cm-rel-item--slower .cm-rel-item__pct { color: var(--muted); font-weight: 500; }

/* Price delta row */
.cm-row--price-rel {
  border-top: 1px dashed var(--border);
}
.cm-label--rel-sub {
  font-size: 0.8rem;
  justify-content: center;
  opacity: 0.5;
}
.cm-rel-item--price .cm-rel-item__pct  { color: var(--muted); font-weight: 500; }

/* Value verdict: pricier but worth it / cheaper and saves */
.cm-rel-item--good-deal .cm-rel-item__pct { color: #22c55e; font-weight: 700; }
/* Value verdict: pricier but NOT worth it */
.cm-rel-item--bad-deal  .cm-rel-item__pct { color: #f59e0b; font-weight: 700; }

/* Disclaimer footer */
.cm-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 20px;
  font-size: 0.71rem;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cm-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
}

/* Chip badge in sidebar slot */
.radar-sidebar__slot-chip-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 4px;
  padding: 1px 6px;
}

/* Chip tag in product pick list */
.radar-product-pick__chip-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 3px;
  padding: 1px 5px;
}

/* Products group label (Chips / Deals) */
.radar-products-group-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 2px 4px;
}

/* ── Drill-down step UI ────────────────────────────────────────── */
.radar-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
  padding: 0 2px;
}

.radar-step-btns {
  display: flex;
  gap: 8px;
}

.radar-step-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text);
}
.radar-step-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.radar-step-btn__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.radar-step-btn__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Back nav row with breadcrumb */
.radar-step-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.radar-step-back {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.radar-step-back:hover { opacity: 0.7; }
.radar-step-crumb {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Chip column in compare modal */
.cm-product--chip {
  background: rgba(37, 99, 235, 0.03);
}
.cm-product__chip-desc {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}
.cm-product__avg-label {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: -2px;
}
.cm-product__cta--find {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cm-product__cta--find:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--accent);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .compare-modal { padding: 8px; }
  .compare-modal__dialog {
    border-radius: 12px;
    max-height: calc(100vh - 16px);
    max-width: 100%;
  }
  /* Hide label column, cols span full width */
  .cm-label { display: none; }
  .cm-header-row,
  .cm-row,
  .cm-section-head,
  .cm-bench-res {
    grid-template-columns: repeat(var(--cm-cols, 2), 1fr);
  }
  .cm-section-title--span { grid-column: 1 / -1; }
  .cm-product { padding: 12px 10px; }
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES — elements that vanish on white bg
   ══════════════════════════════════════════════════════════════ */
[data-theme="light"] {

  /* ── Navbar: shadow too faint to separate from header */
  .deals-page .navbar {
    box-shadow: 0 1px 0 rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
  }

  /* ── Page header: border barely visible, blends into white page */
  .deals-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  }

  /* ── Category bar: same faint-border issue */
  .deals-cat-bar {
    border-bottom-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  /* ── Search inputs: barely-visible on white → give them a tinted bg + stronger border */
  .radar-search-input,
  .radar-price-search input {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.14);
  }
  .radar-search-input:focus,
  .radar-price-search input:focus {
    background: #fff;
    border-color: var(--accent);
  }

  /* ── Category filter buttons: border too faint */
  .deals-cat-btn {
    border-color: rgba(0,0,0,0.14);
    color: var(--text-soft);
  }

  /* ── Deal card image placeholder: white-on-white gradient */
  .deal-card__image-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  }

  /* ── Sidebar: blend into page — add a subtle shadow instead of relying on border */
  .radar-sidebar__panel {
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  }

  /* ── Sidebar mode buttons + product picks: faint borders */
  .radar-mode-btn {
    border-color: rgba(0,0,0,0.14);
  }
  .radar-product-pick {
    border-color: rgba(0,0,0,0.12);
    background: #f8fafc;
  }
  .radar-product-pick:hover:not(:disabled) {
    background: rgba(37,99,235,0.07);
    border-color: var(--accent);
  }

  /* ── Drill-down step buttons: invisible on white card bg */
  .radar-step-btn {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.14);
  }
  .radar-step-btn:hover {
    background: rgba(37,99,235,0.07);
  }

  /* ── Compare modal: label column, section heads, bars */
  .cm-label {
    background: #f1f5f9;
  }
  .cm-section-head {
    background: #f8fafc;
  }
  .cm-row--avg {
    background: #f1f5f9;
  }
  .cm-bar {
    background: rgba(0,0,0,0.12);
  }
  .compare-modal__dialog {
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  }
  /* Header row sticky shadow needs to be visible */
  .cm-header-row {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  }
}

/* ═══════════════════════════════════════════════════════════════
   SOURCING MODE — body class hides the normal deals UI
   ═══════════════════════════════════════════════════════════════ */
.sourcing-mode #dealsCatBar,
.sourcing-mode #dealsLayout {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   SOURCING MODE PANEL
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel wrapper ────────────────────────────────────────────── */
.sourcing-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ── Top banner ───────────────────────────────────────────────── */
.sourcing-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.sourcing-banner__info { flex: 1; min-width: 0; }

.sourcing-banner__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.3rem;
}

.sourcing-banner__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.sourcing-banner__sub {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.sourcing-banner__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.sourcing-banner__back:hover {
  background: var(--surface);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .sourcing-banner { flex-direction: column; }
  .sourcing-banner__back { align-self: flex-start; }
}

/* ── Parts list ───────────────────────────────────────────────── */
.sourcing-parts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sourcing-part {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.sourcing-part__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sourcing-part__info { flex: 1; min-width: 0; }

.sourcing-part__slot {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

.sourcing-part__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sourcing-part__cond {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sourcing-part__cond--refurbished { background: rgba(245,158,11,0.12); color: #f59e0b; }
.sourcing-part__cond--used        { background: rgba(139,92,246,0.12);  color: #a78bfa; }

.sourcing-part__cfg-price,
.sourcing-part__cheapest {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  padding-top: 0.1rem;
}

/* ── Price-match block (PRICE_DATA result) ────────────────────── */
.sourcing-price-match { }

.sourcing-price-match__matched {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sourcing-price-match__desc {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ── Retailer rows (inline price comparison) ──────────────────── */
.sourcing-retailer-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sourcing-retailer-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.sourcing-retailer-row--best {
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.04);
}

.sourcing-retailer-row__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rc, var(--accent));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sourcing-retailer-row__subname {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sourcing-retailer-row__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
}
.sourcing-retailer-row__price--best { color: #22c55e; }

.sourcing-deal-row__save {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.2rem;
}

.sourcing-retailer-row__lowest {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sourcing-retailer-row__cta {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  border: none;
}
.sourcing-retailer-row__cta:hover { background: #1d4ed8; }

.sourcing-retailer-row__cta--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.35);
}
.sourcing-retailer-row__cta--ghost:hover { background: rgba(37,99,235,0.08); }

.sourcing-no-deals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Responsive: hide product name on small screens ──────────── */
@media (max-width: 600px) {
  .sourcing-retailer-row {
    grid-template-columns: 90px auto auto auto;
  }
  .sourcing-retailer-row__subname { display: none; }
}

/* ── Total row ────────────────────────────────────────────────── */
.sourcing-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.sourcing-total__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15rem;
}

.sourcing-total__note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.sourcing-total__amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

/* ── Affiliate note ───────────────────────────────────────────── */
.sourcing-affiliate {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
  opacity: 0.7;
}

/* ── Light mode overrides ─────────────────────────────────────── */
[data-theme="light"] .sourcing-banner {
  background: rgba(37,99,235,0.05);
  border-color: rgba(37,99,235,0.15);
}

[data-theme="light"] .sourcing-banner__back {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .sourcing-part,
[data-theme="light"] .sourcing-total {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

[data-theme="light"] .sourcing-retailer-row,
[data-theme="light"] .sourcing-no-deals {
  background: #f8fafc;
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .sourcing-retailer-row--best {
  background: rgba(34,197,94,0.04);
  border-color: rgba(34,197,94,0.2);
}
