:root {
  --bg: #0b0f19;
  --bg-elev: #121826;
  --surface: #161d2d;
  --border: rgba(226, 232, 240, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --ok: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body.is-page-dragging,
body.is-page-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.drag-scroll {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.drag-scroll.is-dragging,
.feature-carousel.is-dragging {
  cursor: grabbing;
}
.drag-scroll a,
.drag-scroll button {
  -webkit-user-drag: none;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(900px 420px at 50% -10%, #1e293b 0%, transparent 55%), var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid var(--border);
}
.top__inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  font-weight: 800; letter-spacing: -0.03em; font-size: 1.15rem;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.search {
  flex: 1; display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.65rem 1rem;
}
.search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.top__cta {
  display: none; padding: 0.55rem 0.95rem; border-radius: 999px;
  background: var(--accent); color: #0b0f19; font-weight: 700; font-size: 0.9rem;
}
@media (min-width: 800px) { .top__cta { display: inline-flex; } }

/* Hero */
.hero { padding: 2.5rem 0 2.25rem; text-align: center; }
.hero h1 {
  margin: 0; font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.04em; font-weight: 800;
}
.hero p { color: var(--muted); margin: 0.75rem auto 2.6rem; max-width: 36rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.pill {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
}
.pill:hover, .pill.is-on { border-color: var(--accent); color: var(--accent); }

.section { padding: 1.5rem 0 0.5rem; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.9rem;
}
.section__label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.section__title { margin: 0; font-size: 1.35rem; font-weight: 750; }
.section__title a:hover { color: var(--accent); }

/* PromptBase rails: no scrollbar; semi-transparent edge page controls */
.rail {
  position: relative;
  margin-bottom: 0.25rem;
}
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 0.85rem;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Extra top pad so hover rise isn't clipped; negative margin keeps layout unchanged */
  padding: 0.55rem 0 0.45rem;
  margin-top: -0.4rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
/* Category rails: exactly 3 cards in the visible row */
.rail--thirds > .rail__track,
.h-scroll--thirds.rail__track {
  width: 100%;
  grid-auto-columns: calc((100% - 1.7rem) / 3);
}
.rail--thirds > .rail__track > .card-a,
.h-scroll--thirds.rail__track > .card-a {
  min-width: 0;
  width: 100%;
}
.rail__track--loop {
  scroll-snap-type: none;
}
.rail__track.is-dragging,
.rail__track.is-coasting {
  scroll-snap-type: none;
  scroll-behavior: auto;
  will-change: scroll-position;
}
/* Keep hover polish, but don't fight the finger mid-drag */
.rail__track.is-dragging .card-a,
.rail__track.is-coasting .card-a {
  pointer-events: none;
}
.rail__track.is-dragging .card-a:hover,
.rail__track.is-coasting .card-a:hover {
  transform: none;
}
.rail__track.is-dragging .card-a:hover .card-a__img,
.rail__track.is-coasting .card-a:hover .card-a__img {
  border-color: var(--border);
  box-shadow: none;
}
.rail__track::-webkit-scrollbar {
  width: 0; height: 0; background: transparent; display: none;
}
.rail__btn {
  position: absolute;
  top: 0.15rem;
  bottom: 0.35rem;
  width: 72px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 0;
}
.rail:hover > .rail__btn { opacity: 0.85; }
.rail__btn:hover { opacity: 0.95 !important; }
.rail__btn--prev { left: 0; }
.rail__btn--next { right: 0; }
@media (max-width: 1000px) {
  .rail__btn { display: none !important; }
}

/* Featured hero carousel — big center, smaller sides, slow seamless swipe */
.feature-carousel {
  position: relative;
  margin-bottom: 0.5rem;
}
.feature-carousel__stage {
  --feat-w: clamp(320px, 52vw, 620px);
  --feat-meta: 7.5rem;
  overflow: hidden;
  /* Reserve full center-slide height so neighbors scaling never reflows the page */
  height: calc(var(--feat-w) * 9 / 16 + var(--feat-meta) + 2.6rem);
  padding: 1.35rem 0 1.1rem;
  box-sizing: border-box;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.feature-carousel__track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 0.85, 0.3, 1);
}
/* During drag: follow the pointer with no lag */
.feature-carousel.is-instant .feature-carousel__track {
  transition: none !important;
}
.feature-carousel.is-instant .feature-slide,
.feature-carousel.is-instant .feature-slide__img,
.feature-carousel.is-instant .feature-slide__img img,
.feature-carousel.is-instant .feature-slide__body {
  transition: none !important;
}
/* Settle: smooth size handoff + soft track ease */
.feature-carousel.is-settling .feature-carousel__track {
  transition: transform 0.42s cubic-bezier(0.25, 0.85, 0.3, 1) !important;
}
.feature-slide {
  /* Same layout box for every slide — focus is scale/opacity only */
  position: relative;
  flex: 0 0 var(--feat-w, clamp(320px, 52vw, 620px));
  width: var(--feat-w, clamp(320px, 52vw, 620px));
  --feat-scale: 0.58;
  --feat-pull: -0.085;
  opacity: 0.4;
  transform: scale(var(--feat-scale));
  transform-origin: center center;
  /* Pull scaled neighbors closer; leave a small never-touching gap to center */
  margin: 0 calc(var(--feat-w, 300px) * var(--feat-pull));
  transition:
    transform 0.4s cubic-bezier(0.25, 0.85, 0.3, 1),
    margin 0.4s cubic-bezier(0.25, 0.85, 0.3, 1),
    opacity 0.32s ease;
  color: inherit;
  z-index: 1;
}
.feature-slide__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: calc(var(--radius) + 4px);
}
.feature-slide__media,
.feature-slide__body,
.feature-slide__title,
.feature-slide__price {
  position: relative;
  z-index: 2;
}
.feature-slide__pub {
  position: relative;
  z-index: 3;
}
.feature-slide.is-far {
  --feat-scale: 0.58;
  --feat-pull: -0.085;
  opacity: 0.4;
  z-index: 1;
}
.feature-slide.is-side {
  --feat-scale: 0.66;
  --feat-pull: -0.07;
  opacity: 0.75;
  z-index: 2;
}
.feature-slide.is-center {
  --feat-scale: 1;
  --feat-pull: -0.04;
  opacity: 1;
  z-index: 3;
}
/* No hover grow on featured — size changes fight swipe. Outline only. */
.feature-slide__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  /* Only border animates — same as .card-a outline feel */
  transition: border-color 0.18s ease;
}
.feature-slide.is-center .feature-slide__img {
  box-shadow: 0 28px 64px rgba(0,0,0,0.5);
}
/* Identical outline to .card-a:hover .card-a__img — keep depth shadow underneath */
.feature-carousel:not(.is-scrubbing) .feature-slide:hover .feature-slide__img {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.3),
    0 14px 36px rgba(0,0,0,0.32);
}
.feature-carousel:not(.is-scrubbing) .feature-slide.is-center:hover .feature-slide__img {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.3),
    0 28px 64px rgba(0,0,0,0.5);
}
.feature-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-slide__media { color: inherit; text-decoration: none; display: block; }
.feature-slide__body {
  margin-top: 0.45rem;
  min-height: 5.5rem;
  opacity: 0.7;
  transition: opacity 0.32s ease;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.feature-slide.is-center .feature-slide__body { opacity: 1; }
.feature-slide__cat {
  color: var(--muted); font-size: 0.78rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feature-slide__title {
  color: var(--text);
  font-weight: 750; font-size: 1.05rem;
  line-height: 1.25;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.feature-slide__title:hover { color: var(--accent, #38bdf8); }
.feature-slide__price {
  display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0.3rem 0.4rem;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}
.feature-slide__pub {
  color: var(--muted); font-size: 0.85rem;
  display: inline-block; text-decoration: none;
  width: fit-content; max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.feature-slide__pub:hover { color: var(--accent, #38bdf8); text-decoration: underline; }
.feature-carousel__btn {
  opacity: 0;
  top: 8%;
  bottom: auto;
  height: 72%;
  width: 3.25rem;
  font-size: 2.6rem;
  border-radius: 18px;
}
.feature-carousel:hover > .feature-carousel__btn { opacity: 0.9; }
@media (max-width: 800px) {
  .feature-carousel__stage {
    --feat-w: min(82vw, 380px);
    --feat-meta: 8.5rem;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .feature-carousel__track { gap: 0.65rem; }
  .feature-carousel__btn { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-carousel__track,
  .feature-slide,
  .feature-slide__img,
  .feature-slide__img img,
  .feature-slide__body {
    transition: none !important;
  }
}
.asset-desc p { margin: 0 0 1rem; white-space: normal; }
.asset-desc a {
  color: var(--accent, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.asset-desc a:hover { color: #7dd3fc; }
.asset-desc ul {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
  list-style: disc;
}
.asset-desc li { margin: 0.2rem 0; }
.pub-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pub-link:hover { color: var(--accent, #38bdf8); }
.related-section { margin-top: 2rem; }
.card-a {
  position: relative;
  scroll-snap-align: start; background: transparent;
  display: flex; flex-direction: column;
  flex: 0 0 clamp(210px, 22vw, 260px);
  min-width: 210px;
  align-self: start;
  transition: transform 0.18s ease;
}
.wish-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wish-btn:hover { transform: scale(1.06); background: rgba(15, 23, 42, 0.82); }
.wish-btn.is-on { color: #fb7185; background: rgba(15, 23, 42, 0.78); }
.rail__track.is-dragging .wish-btn,
.rail__track.is-coasting .wish-btn { pointer-events: none; }
.card-a:hover {
  transform: translateY(-4px);
  z-index: 3;
}
.card-a__media { color: inherit; text-decoration: none; display: block; }
.card-a__img {
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-a:hover .card-a__img {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}
.card-a__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-a__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0.45rem;
  min-height: 0;
}
.card-a__cat {
  color: var(--muted); font-size: 0.78rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-a__title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.card-a__title:hover { color: var(--accent, #38bdf8); }
.card-a__pub {
  color: var(--muted); font-size: 0.82rem; line-height: 1.2;
  text-decoration: none; width: fit-content; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.card-a__pub:hover { color: var(--accent, #38bdf8); text-decoration: underline; }
.card-a__price {
  display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0.3rem 0.4rem;
  color: inherit; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  margin-top: 0.2rem;
  white-space: nowrap;
}
.card-a__now { font-weight: 750; }
.price-was { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 0.85rem; }
.badge-off {
  color: var(--ok); font-size: 0.8rem; font-weight: 700;
}

/* Star ratings */
.stars {
  display: inline-flex; align-items: center; gap: 0.3rem;
  line-height: 1; color: var(--text); font-variant-numeric: tabular-nums;
}
.stars__glyphs {
  display: inline-flex; gap: 0.05rem; color: #f5b942;
  letter-spacing: -0.04em;
}
.stars__star {
  font-style: normal; font-size: 0.95em;
  text-shadow: 0 0 0 transparent;
}
.stars__star.is-empty { color: rgba(148, 163, 184, 0.45); }
.stars__star.is-half {
  background: linear-gradient(90deg, #f5b942 50%, rgba(148,163,184,0.45) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stars__score { font-weight: 700; font-size: 0.86em; }
.stars__count { color: var(--muted); font-size: 0.82em; font-weight: 500; }
.stars--md .stars__glyphs { font-size: 1.15rem; }
.stars--md .stars__score { font-size: 1rem; }
.stars--md .stars__count { font-size: 0.92rem; }
.asset-meta--rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem;
}
.asset-by {
  display: inline; white-space: nowrap;
  color: var(--muted);
  letter-spacing: normal;
  word-spacing: normal;
}
.asset-by .pub-link,
.asset-by > span {
  margin: 0;
  padding: 0;
}

/* Activity strip — scroll + drag momentum (auto-scroll via JS) */
.activity {
  display: block;
  width: 100%;
  min-height: 3.25rem;
}
.activity.ticker,
.ticker {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  cursor: grab;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker__track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
}
.ticker.is-dragging { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .ticker { mask-image: none; -webkit-mask-image: none; }
}
.act {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.65rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  min-width: 220px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.act:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
  z-index: 2;
}
.act img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.act__meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
}
.act__prices { color: var(--muted); }
.act__delta {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
/* Drop = discount = inviting; rise = caution */
.act__delta.is-down { color: #34d399; }
.act__delta.is-up { color: #f87171; }
.act__title { font-size: 0.86rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* Price-change hover preview — product thumbnail card, above + overlapping 60% */
.act-preview {
  position: fixed;
  z-index: 70;
  width: 240px;
  pointer-events: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
}
.act-preview[hidden] { display: none !important; }
.act-preview__card.card-a {
  flex: none;
  min-width: 0;
  width: 100%;
  transform: none;
  background: var(--bg-elev);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.45rem 0.45rem 0.55rem;
  text-decoration: none;
  color: inherit;
}
.act-preview__card.card-a:hover {
  transform: none;
}
.act-preview__card .card-a__media,
.act-preview__card .card-a__img {
  display: block;
  width: 100%;
}
.act-preview__card .card-a__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  max-width: none;
  font-size: 0.92rem;
  pointer-events: none;
}
.act-preview__card .card-a__pub,
.act-preview__card .card-a__cat,
.act-preview__card .card-a__price {
  pointer-events: none;
}
.act-preview__card .card-a__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.act-preview__delta {
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}
.act-preview__delta.is-down {
  color: #052e1c;
  background: #34d399;
}
.act-preview__delta.is-up {
  color: #450a0a;
  background: #f87171;
}

/* Trending — overlay cards */
.trend-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .trend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trend-grid { grid-template-columns: repeat(3, 1fr); } }

.card-b-wrap {
  display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start;
  transition: transform 0.18s ease;
}
.card-b-wrap:hover {
  transform: translateY(-4px);
  z-index: 3;
}
.rank { color: var(--muted); font-weight: 700; font-size: 1.1rem; padding-top: 0.35rem; }
.card-b {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  display: block; color: inherit; text-decoration: none;
}
.card-b-wrap:hover .card-b,
.card-b:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}
.card-b img { width: 100%; height: 100%; object-fit: cover; }
.card-b__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.card-b__chip {
  position: absolute; top: 0.65rem; left: 0.65rem;
  background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.72rem;
}
.card-b__foot {
  position: absolute; left: 0.7rem; right: 0.7rem; bottom: 1.05rem;
  display: flex; justify-content: space-between; gap: 0.65rem; align-items: flex-end;
}
.card-b__left {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.card-b__title {
  font-weight: 750; font-size: 0.98rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.card-b__price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  white-space: nowrap;
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1.15;
  max-width: 42%;
}
.card-b__now { font-weight: 750; }
.card-b__price .price-was { font-size: 0.78rem; }
.card-b__price .badge-off { font-size: 0.72rem; }

/* .h-scroll enhanced to .rail__track via public.js */
.h-scroll { /* base before JS wrap */ }

.results-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.section__meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  align-self: end;
  padding-bottom: 0.15rem;
}

.explore-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  min-height: 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}
.explore-more[hidden] { display: none !important; }
.explore-more__spin {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #7dd3fc;
  animation: explore-spin 0.7s linear infinite;
}
@keyframes explore-spin {
  to { transform: rotate(360deg); }
}

/* Explore AJAX pager (Prev/Next, no page numbers) — stable height shell */
.explore-grid-shell {
  min-height: 0;
}
.explore-grid-shell.is-loading {
  opacity: 0.72;
  pointer-events: none;
}
.explore-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  min-height: 2.75rem;
}
.explore-pager__btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.explore-pager__btn:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}
.explore-pager__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Asset detail (xamin-ish) */
.asset-hero { padding: 1.75rem 0 1rem; }
.crumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.asset-grid {
  display: grid; gap: 1.5rem;
  min-width: 0;
}
@media (min-width: 900px) {
  .asset-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.asset-grid > * { min-width: 0; max-width: 100%; }
.asset-media {
  position: relative;
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  aspect-ratio: 16/10;
  width: 100%;
  max-width: 100%;
}
.asset-media img { width: 100%; height: 100%; object-fit: cover; }
.asset-gallery {
  display: flex; flex-direction: column; gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Stage uses .asset-media — same box as before thumbs/YouTube existed */
.asset-gallery__stage.asset-media {
  flex: 0 0 auto;
  touch-action: pan-y;
  user-select: none;
}
.asset-gallery__stage.asset-media img {
  -webkit-user-drag: none;
  user-select: none;
}
.asset-gallery__nav {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 0;
}
.asset-gallery__stage:hover > .asset-gallery__nav { opacity: 0.85; }
.asset-gallery__nav:hover { opacity: 0.95; }
.asset-gallery__nav--prev { left: 0; }
.asset-gallery__nav--next { right: 0; }
.asset-gallery__frame {
  position: absolute; inset: 0;
  cursor: zoom-in;
}
.asset-gallery__slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.asset-gallery__slide.is-on {
  opacity: 1; pointer-events: auto; z-index: 1;
}
.asset-gallery__slide img,
.asset-gallery__slide iframe {
  width: 100%; height: 100%;
  object-fit: cover; border: 0; display: block;
}
.asset-gallery__slide[data-kind="youtube"] { cursor: default; }
.asset-gallery__thumbs-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 1.55rem;
  box-sizing: border-box;
}
.asset-gallery__thumbs {
  display: flex; gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.1rem 0 0.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.asset-gallery__thumbs::-webkit-scrollbar { display: none; }
.asset-gallery__thumb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 1.55rem; height: 1.55rem;
  border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; font-size: 1.15rem; line-height: 1;
  background: rgba(15, 23, 42, 0.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.asset-gallery__thumbs-wrap:hover .asset-gallery__thumb-nav,
.asset-gallery__thumbs-wrap:focus-within .asset-gallery__thumb-nav {
  opacity: 0.95; pointer-events: auto;
}
.asset-gallery__thumb-nav--prev { left: 0; }
.asset-gallery__thumb-nav--next { right: 0; }
.asset-gallery__thumb {
  position: relative; flex: 0 0 auto;
  width: 3.55rem; height: 2.45rem; padding: 0;
  border: 1px solid var(--border); border-radius: 7px;
  overflow: hidden; cursor: pointer; background: var(--surface);
  opacity: 0.72;
}
.asset-gallery__thumb.is-on {
  opacity: 1; border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.asset-gallery__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.asset-gallery__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 0.7rem;
  background: rgba(0,0,0,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Fullscreen media preview */
.asset-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.asset-lightbox[hidden] { display: none !important; }
.asset-lightbox__inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: min(88vh, 900px);
  width: auto;
  cursor: default;
}
.asset-lightbox__inner img,
.asset-lightbox__inner iframe {
  display: block;
  width: min(1100px, 96vw);
  height: min(88vh, 900px);
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.asset-lightbox__close {
  position: absolute; top: -0.35rem; right: -0.35rem;
  width: 2.2rem; height: 2.2rem;
  border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff; font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.asset-panel h1 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.asset-title-link {
  color: inherit; text-decoration: none;
}
.asset-title-link:hover { color: var(--accent, #38bdf8); text-decoration: none; }
.asset-meta { color: var(--muted); margin-bottom: 1rem; }
.statline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1rem 0;
}
.statbox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem; text-align: center;
}
.statbox b { display: block; font-size: 1.15rem; }
.statbox span { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.statbox--today {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.35));
}
.statbox--today b { color: #7dd3fc; font-size: 1.28rem; }
.statbox--today span { color: #7dd3fc; }
.statbox--low {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.statbox--low b { color: #6ee7b7; }
.statbox--low span { color: #86efac; }
.statbox--high {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(249, 115, 22, 0.08);
}
.statbox--high b { color: #fdba74; }
.statbox--high span { color: #fdba74; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.75rem 1.15rem; font-weight: 750; border: 0; cursor: pointer;
}
.btn--primary { background: var(--accent); color: #0b0f19; }
.btn--buy {
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    outline-color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn--buy:hover {
  transform: translateY(-3px);
  background: #7dd3fc;
  color: #082f49;
  outline-color: rgba(125, 211, 252, 0.95);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.28);
}
.btn--buy:active {
  transform: translateY(-1px);
  background: #38bdf8;
}
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--wide { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.asset-aff-note {
  margin: 0.65rem 0 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.asset-aff-note__link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.asset-aff-note__link:hover { color: #7dd3fc; }
.chart-box {
  margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 0.55rem 0.35rem; border-bottom: 1px solid var(--border); text-align: left; }
.table .num { font-variant-numeric: tabular-nums; }
.prose { color: var(--muted); line-height: 1.65; }
.prose h2 { color: var(--text); margin-top: 2rem; }
.faq details { border-top: 1px solid var(--border); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 650; }

.footer {
  margin-top: 3rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.88rem;
}
.footer__links {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.15rem;
  margin: 0.85rem 0 0; align-items: center;
}
.footer__link {
  border: 0; background: none; padding: 0;
  color: var(--muted); font: inherit; font-size: 0.88rem;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 0.18em; text-decoration-color: rgba(148, 163, 184, 0.45);
}
.footer__link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer a:hover { color: var(--accent); }
.mode-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.75rem;
  border: 1px solid var(--border); color: var(--muted);
}
.mode-pill--live { color: var(--ok); border-color: rgba(52, 211, 153, 0.35); }

.empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* Category showcases — large tiles, auto image slideshow (not user-driven) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 800px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
}
.cat-tile {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  isolation: isolate;
  /* No drag / scrub — click only opens the category */
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
}
.cat-tile {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
  z-index: 2;
}
.cat-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b1220;
  pointer-events: none;
}
.cat-tile__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 4.5s ease;
  pointer-events: none;
}
.cat-tile__slide.is-on {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.cat-tile__slide--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(56,189,248,0.25), transparent 55%),
    linear-gradient(145deg, #111827, #0b1220);
}
.cat-tile__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 11, 20, 0.88) 100%);
  pointer-events: none;
}
.cat-tile__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 1rem 1.05rem 1.05rem;
  pointer-events: none;
}
.cat-tile__name {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cat-tile__count {
  margin-top: 0.25rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.88rem;
  font-weight: 550;
}

/* Header actions */
.top__inner { justify-content: space-between; }
.top__disclosure {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 0.35rem;
  padding: 0.15rem 0.35rem 0.15rem 1.15rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}
.top__disclosure strong {
  color: var(--text);
  font-weight: 650;
}
@media (max-width: 720px) {
  .top__disclosure { display: none; }
}
.top__actions {
  display: flex; align-items: center; gap: 0.55rem; margin-left: auto;
  flex-shrink: 0;
}
.top__icon-btn {
  position: relative;
  width: 2.35rem; height: 2.35rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.05rem;
}
.top__badge {
  position: absolute; top: -0.2rem; right: -0.2rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem;
  border-radius: 999px; background: #fb7185; color: #0b0f19;
  font-size: 0.65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.top__avatar {
  width: 2.35rem; height: 2.35rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #38bdf8, #818cf8);
  color: #0b0f19; font-weight: 800; font-size: 0.95rem;
  border: 0; cursor: pointer;
}
.top__avatar--ghost {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border);
}
.top__cta--quiet {
  display: none;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
@media (min-width: 900px) { .top__cta--quiet { display: inline-flex; } }

/* Hero live search (replaces pill row) */
.hero-search {
  display: flex; align-items: center; gap: 0.65rem;
  width: min(100%, 52rem); max-width: 52rem;
  margin: 0.35rem auto 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.75rem 1.1rem;
}
/* Air between hero search and Featured */
#home-main > .section:first-child {
  padding-top: 1.25rem;
}
.hero-search span { color: var(--muted); }
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 1rem;
}
.hero-search input::placeholder { color: var(--muted); }

/* Site gate */
.gate-body {
  min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(700px 320px at 50% 0%, #1e293b 0%, transparent 55%), var(--bg);
}
.gate { width: min(100% - 2rem, 26rem); text-align: center; padding: 2rem 0; }
.gate__logo { display: inline-block; margin-bottom: 1.25rem; font-size: 1.35rem; }
.gate h1 { margin: 0; letter-spacing: -0.03em; }
.gate__lead { color: var(--muted); margin: 0.65rem 0 1.35rem; }
.gate__form { display: grid; gap: 0.55rem; text-align: left; }
.gate__label { font-size: 0.85rem; color: var(--muted); }
.gate__input {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  padding: 0.75rem 0.9rem;
}
.gate__btn {
  margin-top: 0.35rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #0b0f19; font-weight: 750;
  padding: 0.75rem 1rem; cursor: pointer;
}
.gate__error { color: var(--danger); margin: 0; font-size: 0.9rem; }

/* Auth modal */
.auth-modal[hidden] { display: none !important; }
.auth-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
}
.auth-modal__backdrop {
  position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.auth-modal__panel {
  position: relative; z-index: 1;
  width: min(100%, 26rem);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.auth-modal__x {
  position: absolute; top: 0.65rem; right: 0.75rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.4rem; cursor: pointer;
}
.auth-modal__tabs { display: flex; gap: 0.35rem; margin-bottom: 0.85rem; }
.auth-tab {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer; font-weight: 650;
}
.auth-tab.is-on { color: var(--text); border-color: rgba(56,189,248,0.55); background: rgba(56,189,248,0.1); }
.auth-modal__title { margin: 0 0 0.35rem; font-size: 1.25rem; }
.auth-modal__lead { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.auth-form { display: grid; gap: 0.65rem; }
.auth-form[hidden] { display: none !important; }
.auth-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.auth-form input {
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 0.65rem 0.75rem;
}
.auth-form__error { color: var(--danger); margin: 0; font-size: 0.88rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-ghost {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  border-radius: 999px; padding: 0.55rem 0.95rem; cursor: pointer; font-weight: 650;
}

/* Legal info modal (disclosure / terms / privacy) */
.legal-modal[hidden] { display: none !important; }
.legal-modal {
  position: fixed; inset: 0; z-index: 85;
  display: grid; place-items: center; padding: 1rem;
}
.legal-modal__backdrop {
  position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}
.legal-modal__panel {
  position: relative; z-index: 1;
  width: min(100%, 36rem);
  max-height: min(86vh, 40rem);
  overflow: auto;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.legal-modal__x {
  position: absolute; top: 0.65rem; right: 0.75rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.45rem; line-height: 1; cursor: pointer;
  z-index: 2;
}
.legal-modal__x:hover { color: var(--text); }
.legal-modal__body[hidden] { display: none !important; }
.legal-modal__title {
  margin: 0 2rem 0.85rem 0; font-size: 1.3rem; letter-spacing: -0.02em;
}
.legal-modal__body h3 {
  margin: 1.25rem 0 0.45rem; font-size: 0.95rem; color: var(--text);
}
.legal-modal__body p,
.legal-modal__body li {
  margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55;
}
.legal-modal__body ul {
  margin: 0 0 0.75rem; padding-left: 1.15rem; color: var(--muted);
}
.legal-modal__body strong { color: var(--text); font-weight: 650; }
