/* ==========================================================================
   RankVex Marketplace
   Backgrounds: hero = radial glow + grid · inventory = light tint ·
   filters/cards = clean white · buyer CTA = deep violet sweep.
   ========================================================================== */

.rv-mkt-page { background: var(--rv-bg); }

/* ---- Hero --------------------------------------------------------------- */
.rv-mhero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 3vw, 4.25rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.rv-mhero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rv-mhero__glow {
  position: absolute; left: 50%; top: -38%; width: min(1100px, 120vw); height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(106, 85, 227, .20), rgba(106, 85, 227, .06) 55%, transparent),
              radial-gradient(closest-side at 70% 60%, rgba(15, 156, 140, .12), transparent 70%);
  animation: rv-breathe-glow 14s ease-in-out infinite alternate;
}
@keyframes rv-breathe-glow { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.06); } }
.rv-mhero__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(72, 58, 114, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(72, 58, 114, .06) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 25%, transparent 75%);
}
.rv-mhero__inner { display: grid; justify-items: center; gap: var(--rv-space-4); }
.rv-mhero__title {
  max-width: 19ch; font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.rv-mhero__lead { max-width: 62ch; font-size: clamp(1rem, .96rem + .22vw, 1.125rem); line-height: 1.65; color: var(--rv-muted); }
.rv-mhero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--rv-space-2); }
.rv-mhero__help { font-size: var(--rv-step--1); color: var(--rv-muted); }
.rv-mhero__link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; }
.rv-mhero__link .rv-icon { width: 14px; height: 14px; color: var(--rv-green-500); }

.rv-mstats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--rv-border); border-radius: var(--rv-radius-lg);
  box-shadow: var(--rv-shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left;
}
.rv-mstats li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--rv-border); }
.rv-mstats li:nth-child(-n+2) { border-top: 0; }
.rv-mstats li:nth-child(2n) { border-left: 1px solid var(--rv-border); }
.rv-mstats b { display: block; font-family: var(--rv-font-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; color: var(--rv-ink); }
.rv-mstats span { font-size: .85rem; color: var(--rv-muted); line-height: 1.35; }
@media (min-width: 900px) {
  .rv-mstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rv-mstats li { border-top: 0; }
  .rv-mstats li + li { border-left: 1px solid var(--rv-border); }
}
@media (max-width: 420px) { .rv-mstats { grid-template-columns: minmax(0, 1fr); } .rv-mstats li { border-left: 0 !important; border-top: 1px solid var(--rv-border) !important; } .rv-mstats li:first-child { border-top: 0 !important; } }

/* ---- Inventory section --------------------------------------------------- */
.rv-mkt { background: var(--rv-surface-2); border-top: 1px solid var(--rv-border); padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); scroll-margin-top: var(--rv-header-h); }
.rv-mkt .rv-container { max-width: calc(var(--rv-container-wide) + var(--rv-gutter) * 2); }
.rv-mkt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--rv-space-5); }

/* Tabs */
.rv-mtabs { position: relative; display: inline-flex; gap: 4px; max-width: 100%; padding: 5px; background: #fff; border: 1px solid var(--rv-border); border-radius: 16px; box-shadow: var(--rv-shadow-sm); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rv-mtabs::-webkit-scrollbar { display: none; }
.rv-mtab {
  position: relative; z-index: 1; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; white-space: nowrap;
  border-radius: 12px; color: var(--rv-text); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: color var(--rv-dur-base) ease, background-color var(--rv-dur-base) ease;
}
.rv-mtab em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--rv-surface-sunk); color: var(--rv-muted); transition: inherit; }
.rv-mtab:hover { color: var(--rv-violet-800); }
.rv-mtab.is-active { color: #fff; background: linear-gradient(120deg, var(--rv-violet-700), var(--rv-violet-500)); }
.rv-mtab.is-active em { background: rgba(255, 255, 255, .2); color: #fff; }
.rv-mtab:focus-visible { box-shadow: var(--rv-shadow-focus); border-radius: 12px; }
.rv-mtabs__ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 12px; background: linear-gradient(120deg, var(--rv-violet-700), var(--rv-violet-500)); box-shadow: 0 8px 18px -10px rgba(84, 64, 201, .7); opacity: 0; transition: transform .45s var(--rv-ease-out), width .45s var(--rv-ease-out), opacity .2s; }
.rv-mtabs.has-ind .rv-mtab.is-active { background: transparent; }
.rv-mtabs.has-ind .rv-mtabs__ind { opacity: 1; }

/* Layout */
.rv-mkt__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1100px) { .rv-mkt__layout { grid-template-columns: 284px minmax(0, 1fr); } }
.rv-mkt__main { min-width: 0; }

/* ---- Filters ------------------------------------------------------------ */
.rv-mfilters {
  background: #fff; border: 1px solid var(--rv-border); border-radius: var(--rv-radius-lg); box-shadow: var(--rv-shadow-sm);
}
@media (min-width: 1100px) {
  .rv-mfilters { position: sticky; top: calc(var(--rv-header-h) + 16px); max-height: calc(100vh - var(--rv-header-h) - 32px); overflow: auto; overscroll-behavior: contain; }
}
.rv-mfilters__sheethead { display: none; }
.rv-mfilters__form { display: grid; gap: 18px; padding: 18px; }
.rv-mf { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-mf__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--rv-muted); }
.rv-mf__label output { font-size: 12px; font-weight: 700; color: var(--rv-violet-700); text-transform: none; letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: var(--rv-violet-50); }
.rv-mf__hint { font-size: 11.5px; color: var(--rv-subtle); line-height: 1.4; }
.rv-mf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-mf__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--rv-subtle); }
.rv-mfilters input[type="search"], .rv-mfilters input[type="number"], .rv-mfilters select, .rv-msort select {
  width: 100%; height: 42px; padding: 0 12px; background: #fff; border: 1px solid var(--rv-border-strong); border-radius: 10px;
  font-size: .9rem; color: var(--rv-ink); transition: border-color var(--rv-dur-fast) ease, box-shadow var(--rv-dur-fast) ease;
}
.rv-mfilters select, .rv-msort select {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2367637F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.rv-mfilters input:hover, .rv-mfilters select:hover, .rv-msort select:hover { border-color: var(--rv-violet-300); }
.rv-mfilters input:focus-visible, .rv-mfilters select:focus-visible, .rv-msort select:focus-visible { border-color: var(--rv-violet-500); box-shadow: 0 0 0 3px rgba(106, 85, 227, .2); border-radius: 10px; }
.rv-mfilters .rv-input-wrap .rv-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--rv-subtle); pointer-events: none; }
.rv-mfilters .rv-input-wrap { position: relative; }
.rv-mfilters .rv-input-wrap input { padding-left: 38px; }

/* Dual range */
.rv-mrange__track { --a: 0%; --b: 100%; position: relative; height: 26px; }
.rv-mrange__track::before, .rv-mrange__track::after { content: ""; position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; }
.rv-mrange__track::before { left: 0; right: 0; background: var(--rv-surface-sunk); }
.rv-mrange__track::after { left: var(--a); right: calc(100% - var(--b)); background: linear-gradient(90deg, var(--rv-violet-500), var(--rv-teal-500)); }
.rv-mrange input[type="range"] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.rv-mrange input[type="range"]::-webkit-slider-runnable-track { background: none; height: 26px; }
.rv-mrange input[type="range"]::-moz-range-track { background: none; }
.rv-mrange input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rv-violet-600); box-shadow: 0 2px 6px rgba(36, 28, 92, .25); cursor: grab;
  transition: transform var(--rv-dur-fast) ease;
}
.rv-mrange input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--rv-violet-600);
  box-shadow: 0 2px 6px rgba(36, 28, 92, .25); cursor: grab;
}
.rv-mrange input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.rv-mrange input[type="range"]:focus-visible { box-shadow: none; }
.rv-mrange input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(106, 85, 227, .3); }
.rv-mrange input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(106, 85, 227, .3); }

/* Segmented radio */
.rv-mseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; background: var(--rv-surface-sunk); border-radius: 10px; }
.rv-mseg label { position: relative; }
.rv-mseg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rv-mseg span { display: grid; place-items: center; min-height: 34px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--rv-muted); transition: all var(--rv-dur-fast) ease; }
.rv-mseg input:checked + span { background: #fff; color: var(--rv-violet-700); box-shadow: var(--rv-shadow-xs); }
.rv-mseg input:focus-visible + span { box-shadow: var(--rv-shadow-focus); }
.rv-mfilters__actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px solid var(--rv-border); padding-top: 14px; }
.js .rv-mfilters__actions [data-rv-apply] { display: none; }

/* Mobile/tablet: bottom-sheet drawer */
@media (max-width: 1099px) {
  .rv-mfilters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--rv-z-overlay); max-height: 88vh; overflow: auto;
    border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px rgba(23, 19, 43, .45);
    transform: translateY(105%); visibility: hidden; transition: transform .4s var(--rv-ease-out), visibility 0s linear .4s;
  }
  .rv-mfilters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .rv-mfilters__sheethead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--rv-border); }
  .rv-mfilters__sheethead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--rv-border-strong); }
  .rv-mfilters__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--rv-surface-sunk); border-radius: 10px; cursor: pointer; }
  .rv-mfilters__actions { position: sticky; bottom: 0; background: #fff; margin: 0 -18px -18px; padding: 14px 18px; }
  .js .rv-mfilters__actions [data-rv-apply] { display: inline-flex; }
  .rv-mfilters__actions .rv-btn { flex: 1; }
}
.rv-mbackdrop { position: fixed; inset: 0; z-index: calc(var(--rv-z-overlay) - 1); background: rgba(23, 19, 43, .45); opacity: 0; transition: opacity .3s ease; }
.rv-mbackdrop.is-on { opacity: 1; }
@media (min-width: 1100px) { .rv-mtoolbar__filters { display: none !important; } }

/* ---- Toolbar ------------------------------------------------------------ */
.rv-mtoolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rv-mtoolbar__count { font-weight: 600; color: var(--rv-ink); font-size: .95rem; }
.rv-mtoolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-mtoolbar__tools .rv-btn em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rv-violet-50); color: var(--rv-violet-700); font-size: 11px; font-weight: 700; }
.rv-msort select { height: 38px; width: auto; min-width: 190px; font-weight: 600; font-size: .85rem; }
.rv-mview { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--rv-border-strong); border-radius: 10px; }
.rv-mview button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 7px; color: var(--rv-muted); cursor: pointer; }
.rv-mview button.is-on { background: var(--rv-violet-50); color: var(--rv-violet-700); }
@media (max-width: 899px) { .rv-mview { display: none; } }
@media (max-width: 520px) {
  .rv-mtoolbar__tools { width: 100%; }
  .rv-msort { flex: 1 1 100%; order: 3; }
  .rv-msort select { width: 100%; }
  .rv-mtoolbar__tools .rv-btn { flex: 1; }
}

/* Recently viewed */
.rv-mrecent { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--rv-border); border-radius: 14px; }
.rv-mrecent[hidden] { display: none; }
.rv-mrecent > p { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 700; color: var(--rv-muted); text-transform: uppercase; letter-spacing: .04em; }
.rv-mrecent__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.rv-mrecent__list::-webkit-scrollbar { display: none; }
.rv-mrecent__list button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rv-border); background: var(--rv-violet-25); font-size: 12.5px; font-weight: 600; color: var(--rv-text); cursor: pointer; }
.rv-mrecent__list button:hover { border-color: var(--rv-violet-300); color: var(--rv-violet-800); }

/* ---- Cards grid ---------------------------------------------------------- */
.rv-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; min-height: 200px; }
.rv-mgrid[aria-busy="true"] { pointer-events: none; }

.rv-mcard {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px;
  background: #fff; border: 1px solid var(--rv-border); border-radius: 20px; box-shadow: var(--rv-shadow-sm);
  transition: transform var(--rv-dur-base) var(--rv-ease-out), box-shadow var(--rv-dur-base) var(--rv-ease-out), border-color var(--rv-dur-base) ease;
}
.rv-mcard:hover, .rv-mcard:focus-within { transform: translateY(-4px); box-shadow: var(--rv-shadow-lg); border-color: var(--rv-violet-200); }
.rv-mcard.is-featured {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #B9AEF7, #8FE0D3 50%, #F7C98B) border-box;
  box-shadow: 0 10px 30px -18px rgba(84, 64, 201, .5), var(--rv-shadow-sm);
}
.rv-mcard.is-unavailable .rv-mcard__metrics, .rv-mcard.is-unavailable .rv-mcard__prices { opacity: .6; }
.rv-mcard.is-entering { animation: rv-card-in .55s var(--rv-ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rv-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.rv-mcard__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-mfav { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
.rv-mcard__id { flex: 1; min-width: 0; }
.rv-mcard__title { font-size: 1.02rem; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; }
.rv-mcard__open { display: block; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; color: var(--rv-ink); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-mcard__open:hover { color: var(--rv-violet-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rv-violet-300); }
.rv-mcard__domain { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--rv-muted); }
.rv-mcard__domain span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-mcard__domain .rv-icon { flex: none; color: var(--rv-subtle); }
.rv-mcard__save {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rv-border); background: #fff; color: var(--rv-subtle); cursor: pointer;
  transition: color var(--rv-dur-fast) ease, border-color var(--rv-dur-fast) ease, background-color var(--rv-dur-fast) ease, transform var(--rv-dur-fast) ease;
}
.rv-mcard__save:hover { color: var(--rv-rose-500); border-color: #F5C2D5; }
.rv-mcard__save[aria-pressed="true"] { color: var(--rv-rose-500); background: var(--rv-rose-50); border-color: #F5C2D5; }
.rv-mcard__save[aria-pressed="true"] svg { fill: currentColor; }
.rv-mcard__save.is-pop { animation: rv-heart .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rv-heart { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.rv-mcard__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-mbadge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--rv-surface-sunk); color: var(--rv-muted); }
.rv-mbadge--cat-saas_tech, .rv-mbadge--cat-saas, .rv-mbadge--cat-tech { background: var(--rv-violet-50); color: var(--rv-violet-700); }
.rv-mbadge--cat-general { background: var(--rv-sky-50); color: var(--rv-sky-700); }
.rv-mbadge--featured { background: linear-gradient(120deg, #FFF3D6, #FDE7C0); color: var(--rv-amber-700); }
.rv-mbadge--new { background: var(--rv-green-50); color: var(--rv-green-700); }
.rv-mbadge--traffic { background: var(--rv-coral-50); color: var(--rv-coral-700); }
.rv-mbadge--off { background: #EFEDF4; color: var(--rv-muted); }
.rv-mbadge--demo { background: transparent; color: var(--rv-amber-700); border: 1px dashed rgba(227, 154, 14, .7); }

.rv-mcard__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv-mm { --c: var(--rv-violet-600); --bg: var(--rv-violet-25); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 11px 11px; border-radius: 13px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 14%, transparent); }
.rv-mm--dr { --c: var(--rv-teal-500); --bg: #F2FBF9; }
.rv-mm--tr { --c: var(--rv-sky-500); --bg: #F3F8FF; }
.rv-mm dt { order: 0; display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-muted); }
.rv-mm dt .rv-icon { color: var(--c); transition: transform var(--rv-dur-base) var(--rv-ease-out); }
.rv-mm dd { order: 1; margin-top: 2px; font-family: var(--rv-font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--rv-ink); font-variant-numeric: tabular-nums; }
.rv-mm__bar { order: 2; position: relative; height: 4px; margin-top: 8px; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, #fff); overflow: hidden; }
.rv-mm__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--c); transition: width .8s var(--rv-ease-out); }
.rv-mcard:hover .rv-mm dt .rv-icon { transform: translateY(-2px) scale(1.1); }
.rv-mcard.is-entering .rv-mm__bar::after { animation: rv-bar-in .9s var(--rv-ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + .2s); }
@keyframes rv-bar-in { from { width: 0; } }

.rv-mcard__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 10px 2px; border-block: 1px dashed var(--rv-border); }
.rv-mcard__info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-mcard__info dt { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--rv-subtle); }
.rv-mcard__info dd { font-size: 13px; font-weight: 600; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-mcard__geo { grid-column: 1 / -1; }
.rv-mcard__geo dd { white-space: normal; font-weight: 500; color: var(--rv-text); }

.rv-mcard__prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.rv-mprice { display: grid; gap: 2px; padding: 10px 12px; border-radius: 13px; background: linear-gradient(140deg, var(--rv-violet-25), #fff); border: 1px solid var(--rv-violet-100); }
.rv-mprice--li { background: linear-gradient(140deg, #F2FBF9, #fff); border-color: #D3EFEA; }
.rv-mprice span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rv-muted); }
.rv-mprice b { font-family: var(--rv-font-display); font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; color: var(--rv-ink); }
.rv-mprice.is-na { background: var(--rv-surface-sunk); border-color: var(--rv-border); }
.rv-mprice.is-na b { color: var(--rv-subtle); font-size: 1.1rem; }
.rv-mcard__buyer { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--rv-violet-700); }

.rv-mcard__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rv-mcard__actions .rv-btn { width: 100%; padding-inline: 10px; }
.rv-mcard__actions .rv-mcard__buy { grid-column: 1 / -1; }
.rv-mcard__actions .rv-btn--secondary:first-child .rv-icon { color: var(--rv-green-500); }
.rv-mcard__actions .rv-btn--secondary:nth-child(2) .rv-icon { color: var(--rv-sky-500); }
.rv-mcard__buy.is-disabled { background: var(--rv-surface-sunk); color: var(--rv-subtle); border: 1px dashed var(--rv-border-strong); cursor: not-allowed; box-shadow: none; }
@container (min-width: 380px) {
  .rv-mcard__actions { grid-template-columns: 1fr 1fr 1.25fr; }
  .rv-mcard__actions .rv-mcard__buy { grid-column: auto; }
}

.rv-mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rv-border); }
.rv-mcheck { position: relative; display: inline-flex; cursor: pointer; }
.rv-mcheck input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rv-mcheck span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rv-border); font-size: 12px; font-weight: 600; color: var(--rv-muted); transition: all var(--rv-dur-fast) ease; }
.rv-mcheck:hover span { border-color: var(--rv-violet-300); color: var(--rv-violet-700); }
.rv-mcheck input:checked + span { background: var(--rv-violet-600); border-color: var(--rv-violet-600); color: #fff; }
.rv-mcheck input:focus-visible + span { box-shadow: var(--rv-shadow-focus); }
.rv-mcard__updated { font-size: 11.5px; color: var(--rv-subtle); white-space: nowrap; }

/* List view (desktop) */
@media (min-width: 900px) {
  .rv-mgrid.is-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rv-mgrid.is-list .rv-mcard {
    display: grid; align-items: center; gap: 10px 20px; padding: 16px 18px;
    grid-template-columns: minmax(200px, 1.25fr) minmax(220px, 1.1fr) minmax(190px, .9fr) minmax(170px, auto);
    grid-template-areas: "top metrics prices actions" "badges info info foot";
  }
  .rv-mgrid.is-list .rv-mcard__top { grid-area: top; }
  .rv-mgrid.is-list .rv-mcard__badges { grid-area: badges; }
  .rv-mgrid.is-list .rv-mcard__metrics { grid-area: metrics; }
  .rv-mgrid.is-list .rv-mcard__info { grid-area: info; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; border: 0; }
  .rv-mgrid.is-list .rv-mcard__geo { display: none; }
  .rv-mgrid.is-list .rv-mcard__prices { grid-area: prices; margin: 0; }
  .rv-mgrid.is-list .rv-mcard__buyer { display: none; }
  .rv-mgrid.is-list .rv-mcard__actions { grid-area: actions; grid-template-columns: 1fr 1fr; }
  .rv-mgrid.is-list .rv-mcard__actions .rv-btn span { display: none; }
  .rv-mgrid.is-list .rv-mcard__actions .rv-mcard__buy span { display: inline; }
  .rv-mgrid.is-list .rv-mcard__actions .rv-mcard__buy { grid-column: 1 / -1; }
  .rv-mgrid.is-list .rv-mcard__foot { grid-area: foot; border: 0; padding: 0; }
  .rv-mgrid.is-list .rv-mm { padding: 8px 10px; }
  .rv-mgrid.is-list .rv-mm dd { font-size: 1.2rem; }
}

/* Skeletons / empty / error */
.rv-mskel { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--rv-border); border-radius: 20px; }
.rv-mskel i { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--rv-surface-sunk) 0%, #fbfaff 50%, var(--rv-surface-sunk) 100%); background-size: 200% 100%; animation: rv-skel 1.2s ease-in-out infinite; }
.rv-mskel .h { height: 44px; width: 70%; } .rv-mskel .b { height: 22px; width: 45%; } .rv-mskel .m { height: 70px; } .rv-mskel .t { height: 54px; } .rv-mskel .a { height: 38px; }
@keyframes rv-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.rv-mempty, .rv-merror { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 52px 24px; text-align: center; background: #fff; border: 1.5px dashed var(--rv-border-strong); border-radius: 20px; }
.rv-mempty p, .rv-merror p { max-width: 46ch; color: var(--rv-muted); font-size: var(--rv-step--1); }

/* Pagination */
.rv-pg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.rv-pg__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--rv-border); background: #fff; color: var(--rv-text); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all var(--rv-dur-fast) ease; }
a.rv-pg__link:hover { border-color: var(--rv-violet-300); color: var(--rv-violet-800); background: var(--rv-violet-25); }
.rv-pg__link.is-current { background: var(--rv-violet-600); border-color: var(--rv-violet-600); color: #fff; }
.rv-pg__link.is-off { opacity: .45; }
.rv-pg__gap { color: var(--rv-subtle); padding: 0 4px; }
.rv-flip { transform: scaleX(-1); }

/* Custom placement */
.rv-mcustom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 32px; padding: 20px 22px; background: #fff; border: 1px solid var(--rv-border); border-radius: 20px; box-shadow: var(--rv-shadow-sm); }
.rv-mcustom p { color: var(--rv-muted); font-size: var(--rv-step--1); margin-top: 2px; }
.rv-mcustom__ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .rv-mcustom { grid-template-columns: auto minmax(0, 1fr) auto; } .rv-mcustom__ctas { grid-column: auto; } }

/* ---- Buyer CTA ---------------------------------------------------------- */
.rv-mbuyer { padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.rv-mbuyer__panel {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: var(--rv-radius-xl); color: rgba(255, 255, 255, .86);
  background: linear-gradient(125deg, var(--rv-violet-900), var(--rv-violet-700) 55%, #6A52DD);
  box-shadow: 0 30px 60px -30px rgba(36, 28, 92, .6);
}
@media (min-width: 960px) { .rv-mbuyer__panel { grid-template-columns: minmax(0, 1.3fr) auto; } }
.rv-mbuyer__bg { position: absolute; inset: -40%; z-index: -1; background: linear-gradient(115deg, transparent 40%, rgba(126, 224, 210, .2) 48%, rgba(255, 255, 255, .08) 52%, transparent 60%); animation: rv-sweep 16s var(--rv-ease-in-out) infinite; }
.rv-mbuyer .rv-h2 { color: #fff; margin: 6px 0 10px; max-width: 20ch; }
.rv-mbuyer strong { color: #fff; }
.rv-mbuyer__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .rv-mbuyer__ctas { flex-direction: column; } }

/* ---- Quick view ---------------------------------------------------------- */
.rv-mqv { width: min(640px, calc(100vw - 32px)); }
.rv-mqv__head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.rv-mqv__head h2 { font-size: var(--rv-step-2); line-height: 1.2; }
.rv-mqv__head p { color: var(--rv-muted); font-size: 13px; overflow-wrap: anywhere; }
.rv-mqv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.rv-mqv dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rv-border); border-radius: 14px; overflow: hidden; }
.rv-mqv dl div { padding: 10px 12px; border-top: 1px solid var(--rv-border); }
.rv-mqv dl div:nth-child(-n+2) { border-top: 0; }
.rv-mqv dl div:nth-child(2n) { border-left: 1px solid var(--rv-border); }
.rv-mqv dt { font-size: 11px; font-weight: 700; color: var(--rv-subtle); text-transform: uppercase; letter-spacing: .04em; }
.rv-mqv dd { font-weight: 600; color: var(--rv-ink); font-size: 14px; }
.rv-mqv__desc { color: var(--rv-text); font-size: 14px; }
.rv-mqv .rv-mcard__actions { margin-top: 6px; }
@media (max-width: 480px) { .rv-mqv__grid { grid-template-columns: 1fr 1fr; } }

/* ---- Compare -------------------------------------------------------------- */
.rv-mcmpbar {
  position: fixed; left: 50%; bottom: 16px; z-index: 150; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
  padding: 10px; transform: translateX(-50%); background: #fff; border: 1px solid var(--rv-border); border-radius: 16px; box-shadow: var(--rv-shadow-lg);
  animation: rv-bar-up .35s var(--rv-ease-out);
}
.rv-mcmpbar[hidden] { display: none; }
@keyframes rv-bar-up { from { transform: translate(-50%, 20px); opacity: 0; } }
.rv-mcmpbar__items { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rv-mcmpbar__items span { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--rv-violet-25); border: 1px solid var(--rv-violet-100); font-size: 12px; font-weight: 600; max-width: 180px; }
.rv-mcmpbar__items span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rv-mcmpbar__items button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--rv-muted); display: grid; }
@media (max-width: 560px) { .rv-mcmpbar { left: 12px; right: 12px; transform: none; animation: none; } .rv-mcmpbar__items { display: none; } .rv-mcmpbar [data-rv-cmp-open] { flex: 1; } }
.rv-mcmp { width: min(940px, calc(100vw - 24px)); }
.rv-mcmp__wrap { overflow-x: auto; border: 1px solid var(--rv-border); border-radius: 14px; }
.rv-mcmp table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.rv-mcmp th, .rv-mcmp td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--rv-border); vertical-align: top; }
.rv-mcmp thead th { border-top: 0; background: var(--rv-violet-25); font-family: var(--rv-font-display); font-size: 15px; color: var(--rv-ink); }
.rv-mcmp thead th small { display: block; font-family: var(--rv-font-body); font-weight: 500; font-size: 12px; color: var(--rv-muted); overflow-wrap: anywhere; }
.rv-mcmp tbody th { position: sticky; left: 0; background: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rv-muted); white-space: nowrap; }
.rv-mcmp td.is-best { color: var(--rv-green-700); font-weight: 700; }
.rv-mcmp td.is-best::after { content: " ★"; color: var(--rv-amber-500); }

/* ---- Saved --------------------------------------------------------------- */
.rv-msaved { width: min(560px, calc(100vw - 32px)); }
.rv-msaved__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rv-border); }
.rv-msaved__row:first-child { border-top: 0; }
.rv-msaved__row > span { flex: 1; min-width: 0; }
.rv-msaved__row b { display: block; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-msaved__row small { color: var(--rv-muted); font-size: 12px; }
.rv-msaved__row .rv-fav { width: 34px; height: 34px; font-size: .85rem; border-radius: 9px; }
.rv-msaved__row button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--rv-border); background: #fff; color: var(--rv-muted); cursor: pointer; display: grid; place-items: center; }
.rv-msaved__empty { padding: 18px 0 6px; color: var(--rv-muted); font-size: 14px; }

/* ---- Discount promo ---------------------------------------------------------- */
.rv-mpromo {
  position: fixed; right: 20px; bottom: 20px; z-index: 160; width: min(360px, calc(100vw - 32px)); padding: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--rv-border); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(36, 28, 92, .45);
  transform: translateY(20px); opacity: 0; transition: transform .45s var(--rv-ease-out), opacity .3s ease;
}
.rv-mpromo::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--rv-violet-500), var(--rv-teal-500), var(--rv-amber-500)); }
.rv-mpromo.is-in { transform: none; opacity: 1; }
.rv-mpromo[hidden] { display: none; }
.rv-mpromo__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--rv-muted); cursor: pointer; }
.rv-mpromo__x:hover { background: var(--rv-surface-sunk); }
.rv-mpromo__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(140deg, var(--rv-violet-500), var(--rv-violet-700)); color: #fff; box-shadow: 0 10px 20px -10px rgba(84, 64, 201, .8); animation: rv-wiggle 2.8s ease-in-out 1s 2; }
@keyframes rv-wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(8deg); } 30% { transform: rotate(0); } }
.rv-mpromo__t { margin-top: 12px; font-family: var(--rv-font-display); font-weight: 700; font-size: 1.25rem; color: var(--rv-ink); letter-spacing: -.015em; }
.rv-mpromo__p { margin-top: 4px; font-size: 14px; color: var(--rv-muted); }
.rv-mpromo__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rv-mpromo__fine { margin-top: 10px; font-size: 11.5px; color: var(--rv-subtle); }
@media (max-width: 560px) { .rv-mpromo { right: 16px; left: 16px; bottom: 16px; width: auto; } }

@media (prefers-reduced-motion: reduce) {
  .rv-mcard.is-entering, .rv-mcard.is-entering .rv-mm__bar::after { animation: none; }
}

/* Shared bits also used on the homepage (home.css isn't loaded here) */
.rv-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: var(--rv-radius-pill); background: rgba(255, 255, 255, .85); border: 1px solid var(--rv-border); box-shadow: var(--rv-shadow-xs); font-size: var(--rv-step--1); font-weight: 600; color: var(--rv-violet-800); }
.rv-eyebrow__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rv-teal-500); }
.rv-eyebrow__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rv-teal-500); opacity: 0; animation: rv-ping 2.8s ease-out infinite; }
@keyframes rv-ping { 0% { transform: scale(.6); opacity: .6; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.rv-mark { background: linear-gradient(100deg, var(--rv-violet-700) 0%, var(--rv-violet-500) 40%, var(--rv-teal-500) 70%, var(--rv-violet-600) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rv-sheen 9s ease-in-out infinite alternate; }
@keyframes rv-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes rv-sweep { 0% { transform: translateX(-30%); } 50% { transform: translateX(30%); } 100% { transform: translateX(-30%); } }
.rv-kicker--light { color: #C9C0FA; }
.rv-kicker--light::before { background: linear-gradient(90deg, #8F7BF5, #5FD3C2); }
.t-green { color: var(--rv-green-700) !important; }
@container (max-width: 330px) { .rv-mm dd { font-size: 1.2rem; } .rv-mm { padding: 9px 9px 10px; } }

/* Mobile fixes */
.rv-mtoolbar__tools .rv-btn em[hidden] { display: none; }
@media (max-width: 560px) {
  .rv-mkt__head { gap: 12px; }
  .rv-mtabs { display: flex; width: 100%; }
  .rv-mtab { flex: 1 0 auto; justify-content: center; padding: 0 12px; font-size: .9rem; }
}