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

/* ================= Hero — deep river/ocean theme, distinct from Pool's navy ================= */
.vmx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, #0e3a6b 55%, #052436 100%);
  padding: 54px 0 70px;
}
.vmx-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 20%, rgba(59, 130, 196, .22) 0%, transparent 42%),
    radial-gradient(circle at 92% 80%, rgba(245, 185, 66, .12) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0px, rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.vmx-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.vmx-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}
.vmx-crumb a { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .92); }
.vmx-crumb a:hover { color: var(--gold); }
.vmx-crumb .pbc-sep { color: rgba(255, 255, 255, .35); }
.vmx-crumb .pbc-current { color: var(--gold); }

.vmx-eyebrow {
  display: inline-block;
  background: rgba(59, 130, 196, .18);
  border: 1px solid rgba(59, 130, 196, .45);
  color: #8fd3ff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.vmx-hero-content h1 {
  color: white;
  font-size: 38px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.vmx-hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.vmx-hero-sub {
  color: #d5dafa;
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 0 28px;
}

.vmx-hero-stats { display: flex; gap: 30px; }
.vmx-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid rgba(245, 185, 66, .35);
}
.vmx-hero-stat:first-child { padding-left: 0; border-left: none; }
.vmx-hero-stat strong { font-size: 24px; font-weight: 800; color: white; }
.vmx-hero-stat span { font-size: 12px; color: #aab2e0; font-weight: 600; }

/* ---- Featured listing preview ---- */
.vmx-hero-feature { position: relative; }
.vmx-feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
}
.vmx-feature-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--red) 14%, white);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.vmx-feature-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.vmx-feature-emoji {
  font-size: 34px;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--bg-tint);
}
.vmx-feature-top strong { display: block; font-size: 16px; color: var(--navy-text); }
.vmx-feature-top small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.vmx-feature-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 18px;
}
.vmx-feature-stats strong { color: var(--navy-text); font-size: 14px; margin-right: 3px; }

/* ================= Shared progress bar ================= */
.vm-progress-track {
  height: 10px;
  border-radius: 8px;
  background: var(--bg-tint);
  overflow: hidden;
}
.vm-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lightblue) 0%, #5fb8ea 100%);
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.vm-progress-fill.is-full { background: linear-gradient(90deg, var(--green) 0%, #05a44a 100%); }

/* ================= Listings slider ================= */
.vm-section { padding: 60px 0 76px; }
.vm-slider {
  display: flex;
  align-items: stretch;
  gap: 14px;
}
.vm-track {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}
.vm-track::-webkit-scrollbar { display: none; }
.vm-track { scrollbar-width: none; }

.vm-scroll-btn {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  font-size: 18px;
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 20, 80, 0.12);
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.vm-scroll-btn:hover { background: var(--lightblue); border-color: var(--lightblue); color: white; transform: scale(1.08); }

/* Card is a single <a> (whole card links to vaga-mach-details.php) — global `a { color:
   inherit; text-decoration:none; }` in styles.css already handles link reset, this just needs
   block layout + slider-item sizing. */
.vm-card {
  display: block;
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vm-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11, 21, 80, .14); }
.vm-card.is-sold-out { opacity: .85; }

.vm-card-media {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-tint-2) 100%);
}
.vm-card-media .vm-emoji { font-size: 62px; filter: drop-shadow(0 8px 16px rgba(0, 12, 82, .18)); }
.vm-posted-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 12, 82, .78);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  backdrop-filter: blur(3px);
}

.vm-card-body { padding: 18px 20px 20px; }
.vm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.vm-card-head h3 { font-size: 17px; margin: 0; color: var(--navy-text); }
.vm-bn { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.vm-source {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tint);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.vm-caption {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 10px 0 14px;
}

.vm-expiry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--orange) 14%, white);
  color: var(--orange);
  margin-bottom: 12px;
}
.vm-expiry.is-urgent { background: color-mix(in srgb, var(--red) 14%, white); color: var(--red); }

.vm-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 10px 0 14px;
}
.vm-stats-row strong { color: var(--navy-text); font-size: 13.5px; margin-right: 2px; }

.vm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.vm-avatars { display: flex; }
.vm-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lightblue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  border: 2px solid white;
}
.vm-avatar:first-child { margin-left: 0; }
.vm-avatar.vm-avatar-more { background: var(--bg-tint); color: var(--navy-text); }

.vm-price { font-size: 13px; font-weight: 700; color: var(--navy-text); white-space: nowrap; }

.vm-claim-btn { width: 100%; justify-content: center; }
.vm-sold-out-ribbon {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: var(--bg-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
}

/* ================= Details page (vaga-mach-details.php) =================
   Loads css/product.css alongside this file and reuses its .breadcrumb/.product-page/
   .product-top/.product-gallery/.gallery-main/.gallery-thumbs/.product-info-col/.trust-line/
   .buy-box/.qty-stepper classes verbatim — the rules below only cover what's genuinely
   different: the status block (reuses .vm-progress-track/.vm-expiry/.vm-stats-row/.vm-avatars
   from above) and the claim box's error/note text. */
.vm-status-block {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.vm-status-block h3 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--navy-text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vm-status-participants { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; }
.vm-status-participants strong { color: var(--navy-text); }

.vm-error { color: var(--red); font-size: 12.5px; font-weight: 600; margin: 10px 0 0; }
.vm-form-note { text-align: center; font-size: 11.5px; color: var(--text-muted); margin: 12px 0 0; }

.vm-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #0e3a6b 45%, var(--gold-dark) 100%);
  box-shadow: 0 10px 26px rgba(212, 160, 23, .35);
}
.vm-sold-out-box { text-align: center; padding: 10px 4px 4px; }
.vm-sold-out-box h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy-text); }
.vm-sold-out-box p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.vm-done { width: 100%; justify-content: center; background: var(--navy); }

.vm-about-section { padding: 10px 0 76px; }
.vm-about-section .container { max-width: 760px; }
.vm-about-section h2 { font-size: 20px; margin: 0 0 12px; color: var(--navy-text); }
.vm-about-section p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin: 0 0 18px; }
.vm-about-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.vm-about-meta strong { display: block; color: var(--navy-text); font-size: 13px; margin-bottom: 2px; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .vmx-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .vmx-hero-content { text-align: center; }
  .vmx-hero-content h1 { font-size: 30px; }
  .vmx-hero-sub { margin-left: auto; margin-right: auto; }
  .vmx-crumb, .vmx-hero-stats { justify-content: center; }
  .vmx-hero-feature { max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .vmx-hero-stats { gap: 18px; flex-wrap: wrap; }
  .vm-card { width: 270px; }
}
