/* Vividh Health — primitive component library
 *
 * Every primitive here is theme-agnostic: it reads from tokens.css only.
 * Light↔dark switches automatically because every value is a token.
 *
 * Reuse target: each primitive used ≥3 places before P6.
 *
 *   .vh-glass         — frosted surface
 *   .vh-card-v3       — squircle card with hover sheen + glow halo
 *   .vh-stat          — KPI / metric block (label + value + delta)
 *   .vh-skeleton      — loading shimmer block
 *   .vh-progress-ring — circular progress (counted SVG)
 *   .vh-callout-card  — eyebrow + title + body + cta vertical card
 *   .vh-pill-group    — multi-select chip row
 *   .vh-stepper       — numbered step indicator
 *   .vh-sheet         — bottom-sheet / pull-up modal
 *   .vh-icon          — base sizing for sprite icons (set by {% icon %})
 *   .vh-reveal        — scroll-reveal target (paired with IntersectionObserver in P6)
 */

/* ============================================================
 * Icon base
 * ========================================================== */
.vh-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -2px;
  stroke: currentColor;
  fill: none;
}

/* ============================================================
 * .vh-glass — frosted translucent surface
 * Drop on any block to make it Apple-glass.
 * ========================================================== */
.vh-glass {
  background: var(--vh-glass-bg);
  border: 1px solid var(--vh-glass-border);
  border-radius: var(--vh-card-radius);
  backdrop-filter: var(--vh-glass-blur);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  box-shadow: var(--vh-glow-neutral);
}
.vh-glass--strong {
  background: var(--vh-glass-bg-strong);
  backdrop-filter: var(--vh-glass-blur-lg);
  -webkit-backdrop-filter: var(--vh-glass-blur-lg);
}

/* ============================================================
 * .vh-card-v3 — the new universal card
 * 32 px squircle, glow halo on hover (accent-aware), soft sheen
 * ========================================================== */
.vh-card-v3 {
  position: relative;
  background: var(--vh-card-bg);
  border: 1px solid var(--vh-card-border);
  border-radius: var(--vh-card-radius);
  padding: var(--vh-space-phi-2);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--vh-dur-cinematic) var(--vh-ease-soft),
    box-shadow var(--vh-dur-cinematic) var(--vh-ease-soft),
    border-color var(--vh-dur-cinematic) var(--vh-ease-soft);
}
/* Hover: top-left gradient sheen + glow halo */
.vh-card-v3::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--vh-grad-sheen);
  opacity: 0;
  transition: opacity var(--vh-dur-cinematic) var(--vh-ease-soft);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.vh-card-v3 > * { position: relative; z-index: 1; }
.vh-card-v3:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: var(--_glow, var(--vh-glow-primary));
  border-color: transparent;
}
.vh-card-v3:hover::before { opacity: 1; }

/* Accent variants — drop on the card to switch the glow colour */
.vh-card-v3--gold  { --_glow: var(--vh-glow-gold); }
.vh-card-v3--teal  { --_glow: var(--vh-glow-teal); }
.vh-card-v3--coral { --_glow: var(--vh-glow-coral); }

/* ============================================================
 * .vh-stat — KPI block
 *   <div class="vh-stat">
 *     <span class="vh-stat__label">In wallet</span>
 *     <span class="vh-stat__value vh-mono">₹240</span>
 *     <span class="vh-stat__delta vh-stat__delta--up">+₹40</span>
 *   </div>
 * ========================================================== */
.vh-stat { display: flex; flex-direction: column; gap: 2px; }
.vh-stat__label {
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  color: var(--vh-text-subtle);
}
.vh-stat__value {
  font-size: var(--vh-text-2xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-tight);
  line-height: 1.05;
  color: var(--vh-text);
}
.vh-stat__delta {
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  margin-top: 2px;
}
.vh-stat__delta--up   { color: var(--vh-success); }
.vh-stat__delta--down { color: var(--vh-danger); }
.vh-stat__delta--flat { color: var(--vh-text-muted); }

/* ============================================================
 * .vh-skeleton — loading placeholder
 *   <div class="vh-skeleton" style="width: 80%; height: 1em;"></div>
 * ========================================================== */
.vh-skeleton {
  display: block;
  background: linear-gradient(
    90deg,
    var(--vh-bg-muted) 0%,
    color-mix(in srgb, var(--vh-bg-muted) 60%, var(--vh-bg-elevated)) 50%,
    var(--vh-bg-muted) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--vh-radius-sm);
  animation: vh-skeleton-shine 1.4s linear infinite;
}
.vh-skeleton--circle { border-radius: 50%; }
.vh-skeleton--pill   { border-radius: var(--vh-radius-pill); }
@keyframes vh-skeleton-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
 * .vh-progress-ring — circular progress (set --p between 0 and 100)
 *   <div class="vh-progress-ring" style="--p: 64; --size: 56px;">64%</div>
 * Pure CSS, no SVG required.
 * ========================================================== */
.vh-progress-ring {
  --p: 0;
  --size: 64px;
  --stroke: 6px;
  --color: var(--vh-primary);
  width: var(--size); height: var(--size);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--color) calc(var(--p) * 1%), var(--vh-bg-muted) 0);
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  font-family: var(--vh-font-mono);
  color: var(--vh-text);
  position: relative;
}
.vh-progress-ring::before {
  content: "";
  position: absolute; inset: var(--stroke);
  background: var(--vh-bg-elevated);
  border-radius: 50%;
}
.vh-progress-ring > * { position: relative; z-index: 1; }
.vh-progress-ring--gold  { --color: var(--vh-secondary); }
.vh-progress-ring--teal  { --color: var(--vh-tertiary-teal); }
.vh-progress-ring--coral { --color: var(--vh-tertiary-coral); }

/* ============================================================
 * .vh-callout-card — vertical eyebrow / title / body / cta
 * Used for: "Talk to a doctor", "Build a bundle", "Vividh AI".
 * ========================================================== */
.vh-callout-card {
  display: flex; flex-direction: column;
  gap: var(--vh-space-2);
  padding: var(--vh-space-phi-2) var(--vh-space-phi-2);
  background: var(--vh-card-bg);
  border: 1px solid var(--vh-card-border);
  border-radius: var(--vh-card-radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.vh-callout-card__eyebrow {
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  color: var(--vh-text-subtle);
}
.vh-callout-card__title {
  margin: 0;
  font-size: var(--vh-text-xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-tight);
  line-height: var(--vh-leading-snug);
  color: var(--vh-text);
}
.vh-callout-card__body {
  margin: 0;
  font-size: var(--vh-text-sm);
  line-height: var(--vh-leading-relaxed);
  color: var(--vh-text-muted);
  max-width: 56ch;
}
.vh-callout-card__cta { margin-top: var(--vh-space-2); align-self: flex-start; }

/* Branded fill variants — use sparingly */
.vh-callout-card--brand {
  background: var(--vh-grad-brand);
  color: var(--vh-text-on-brand);
  border-color: transparent;
  box-shadow: var(--vh-glow-primary);
}
.vh-callout-card--brand .vh-callout-card__eyebrow,
.vh-callout-card--brand .vh-callout-card__body { color: rgba(255,255,255,0.85); }
.vh-callout-card--brand .vh-callout-card__title { color: #fff; }

/* ============================================================
 * .vh-pill-group — multi-select chip row
 *   <ul class="vh-pill-group">
 *     <li><button class="vh-pill-group__pill is-active">All</button></li>
 *     ...
 *   </ul>
 * ========================================================== */
.vh-pill-group {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.vh-pill-group__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-pill);
  font-family: inherit;
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text);
  cursor: pointer;
  transition:
    background var(--vh-dur-fast) var(--vh-ease),
    border-color var(--vh-dur-fast) var(--vh-ease),
    color var(--vh-dur-fast) var(--vh-ease);
}
.vh-pill-group__pill:hover { background: var(--vh-bg-muted); }
.vh-pill-group__pill.is-active {
  background: var(--vh-primary);
  border-color: var(--vh-primary);
  color: var(--vh-text-on-brand);
}

/* ============================================================
 * .vh-stepper — numbered horizontal stepper
 *   <ol class="vh-stepper" style="--current: 2;">
 *     <li>Address</li><li>Slot</li><li>Pay</li>
 *   </ol>
 * ========================================================== */
.vh-stepper {
  --current: 1;
  display: flex; align-items: center;
  gap: var(--vh-space-2);
  list-style: none; padding: 0; margin: 0;
  counter-reset: vh-step;
}
.vh-stepper > li {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text-muted);
  counter-increment: vh-step;
  position: relative;
}
.vh-stepper > li::before {
  content: counter(vh-step);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vh-bg-muted);
  color: var(--vh-text-muted);
  border-radius: 50%;
  font-family: var(--vh-font-mono);
  font-size: var(--vh-text-2xs);
  flex: 0 0 auto;
  transition: background var(--vh-dur-fast) var(--vh-ease),
              color var(--vh-dur-fast) var(--vh-ease);
}
.vh-stepper > li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--vh-bg-muted);
  border-radius: 2px;
}
.vh-stepper > li.is-current::before,
.vh-stepper > li.is-done::before {
  background: var(--vh-primary);
  color: var(--vh-text-on-brand);
}
.vh-stepper > li.is-current,
.vh-stepper > li.is-done { color: var(--vh-text); }
.vh-stepper > li.is-done:not(:last-child)::after { background: var(--vh-primary); }

/* ============================================================
 * .vh-sheet — bottom-sheet / pull-up modal
 * Mobile-first, becomes a centered modal at desktop.
 *   <div class="vh-sheet" x-show="open">
 *     <div class="vh-sheet__panel">
 *       <button class="vh-sheet__handle"></button>
 *       …
 *     </div>
 *   </div>
 * ========================================================== */
.vh-sheet {
  /* Hidden by default — pure CSS, no Alpine dependency. The .is-open
   * modifier (toggled by an Alpine :class binding) flips it on. */
  display: none;
  position: fixed; inset: 0;
  z-index: 70;
  align-items: flex-end; justify-content: center;
  background: rgba(15, 22, 18, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.vh-sheet.is-open {
  display: flex;
  animation: vh-sheet-fade-in var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--vh-bg-elevated);
  border-radius: var(--vh-radius-3xl) var(--vh-radius-3xl) 0 0;
  padding: var(--vh-space-3) var(--vh-space-5) var(--vh-space-6);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--vh-glow-neutral);
  animation: vh-sheet-slide-up var(--vh-dur-cinematic-long) var(--vh-ease-soft);
}
.vh-sheet__handle {
  display: block;
  width: 40px; height: 4px;
  margin: 0 auto var(--vh-space-3);
  background: var(--vh-border-strong);
  border: 0;
  border-radius: var(--vh-radius-pill);
  cursor: grab;
}
@keyframes vh-sheet-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vh-sheet-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (min-width: 760px) {
  .vh-sheet { align-items: center; }
  .vh-sheet__panel {
    border-radius: var(--vh-radius-3xl);
    padding: var(--vh-space-6);
    animation-name: vh-sheet-pop;
  }
  .vh-sheet__handle { display: none; }
  @keyframes vh-sheet-pop {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }
}

/* ============================================================
 * .vh-reveal — scroll-reveal target (no JS yet; activated in P6)
 * ========================================================== */
.vh-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--vh-dur-cinematic-long) var(--vh-ease-soft),
    transform var(--vh-dur-cinematic-long) var(--vh-ease-soft);
}
.vh-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .vh-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
 * .vh-num — inline mono numeral wrapper (alias for .vh-mono in numerics)
 * ========================================================== */
.vh-num {
  font-family: var(--vh-font-mono);
  font-feature-settings: "ss01", "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================
 * .vh-hero — universal page hero
 * Golden-ratio split (61.8% text / 38.2% art on desktop).
 * Parallax via CSS scroll-timeline (graceful fallback to static).
 * ========================================================== */

.vh-hero {
  --_accent-color: var(--vh-primary);
  --_accent-glow:  var(--vh-glow-primary);
  --_accent-grad:  var(--vh-grad-text-brand);

  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vh-space-phi-2);
  padding: var(--vh-space-phi-3) var(--vh-space-phi-1);
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-3xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--vh-glow-neutral);
}

/* Soft accent halo behind the art column */
.vh-hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--_accent-color) 22%, transparent) 0%,
              transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}

@media (min-width: 760px) {
  .vh-hero {
    grid-template-columns: 61.8% 38.2%;
    align-items: center;
    padding: var(--vh-space-phi-4) var(--vh-space-phi-3);
    gap: var(--vh-space-phi-3);
  }
  .vh-hero--solo { grid-template-columns: 1fr; }
}

.vh-hero__text {
  display: flex; flex-direction: column;
  gap: var(--vh-space-phi-1);
  min-width: 0;
}

.vh-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--_accent-color) 10%, var(--vh-bg-elevated));
  border: 1px solid color-mix(in srgb, var(--_accent-color) 25%, transparent);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  color: var(--_accent-color);
}
.vh-hero__eyebrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.vh-hero__title {
  margin: 0;
  font-family: var(--vh-font);
  font-size: var(--vh-text-2xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-display);
  line-height: 1.06;
  color: var(--vh-text);
}
@media (min-width: 760px) {
  .vh-hero__title { font-size: var(--vh-text-display); }
}
@media (min-width: 1180px) {
  .vh-hero__title { font-size: var(--vh-text-hero); line-height: 1.02; }
}

/* Gradient-text accent line — subtle per design brief */
.vh-hero__accent {
  background: var(--_accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vh-hero__sub {
  margin: 0;
  font-size: var(--vh-text-md);
  color: var(--vh-text-muted);
  line-height: var(--vh-leading-relaxed);
  max-width: 56ch;
}
@media (min-width: 760px) {
  .vh-hero__sub { font-size: var(--vh-text-lg); }
}

.vh-hero__ctas {
  display: flex; flex-wrap: wrap; gap: var(--vh-space-2);
  margin-top: var(--vh-space-2);
}
.vh-hero__cta { box-shadow: var(--_accent-glow); }
.vh-hero__cta:hover { transform: translateY(-1px); }

/* Right column: parallax illustration */
.vh-hero__art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin-left: auto;
  color: var(--_accent-color);
  will-change: transform;
}
.vh-hero__art__img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 32px color-mix(in srgb, var(--_accent-color) 24%, transparent));
}

/* Modern parallax (Chromium 115+, Safari 18.2+). Graceful no-op elsewhere. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .vh-hero__art {
      animation: vh-hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 600px;
    }
    @keyframes vh-hero-parallax {
      from { transform: translateY(0)    rotate(0deg); }
      to   { transform: translateY(-32px) rotate(-1.5deg); }
    }
  }
}

/* === .vh-preloader — home-only first-load brand preloader ===========
 * Renders fullscreen for ≤ ~600 ms while CSS + Lucide sprite + first
 * paint complete, then fades out and removes itself. Suppressed on
 * subsequent navigations via sessionStorage so soft nav stays instant. */
.vh-preloader {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--vh-space-3);
  background: var(--vh-bg);
  transition: opacity 380ms var(--vh-ease-soft), visibility 0s linear 380ms;
  opacity: 1;
  pointer-events: all;
}
.vh-preloader.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.vh-preloader__mark {
  width: 80px; height: 76px;
  background: url("/static/img/vividh-logo-mark.png") center/contain no-repeat;
  animation: vh-preloader-breathe 1.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px color-mix(in srgb, var(--vh-primary) 30%, transparent));
}
@keyframes vh-preloader-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.vh-preloader__caption {
  margin: 0;
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text-muted);
  letter-spacing: var(--vh-tracking-wide);
  text-transform: uppercase;
}
.vh-preloader__caption .vh-mono { color: var(--vh-primary); }
.vh-preloader__bar {
  width: 120px; height: 3px;
  background: var(--vh-bg-muted);
  border-radius: var(--vh-radius-pill);
  overflow: hidden;
}
.vh-preloader__bar::before {
  content: ""; display: block;
  width: 40%; height: 100%;
  background: var(--vh-grad-aurora);
  border-radius: inherit;
  animation: vh-preloader-shuttle 1.1s ease-in-out infinite;
}
@keyframes vh-preloader-shuttle {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce) {
  .vh-preloader__mark { animation: none; }
  .vh-preloader__bar::before { animation: none; width: 100%; }
}

/* === .vh-personalhero — lighter signed-in hero (above the bento) === */
.vh-personalhero {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--vh-space-3);
  padding: var(--vh-space-phi-1) var(--vh-space-phi-2);
  border-radius: var(--vh-radius-3xl);
  flex-wrap: wrap;
}
.vh-personalhero__greet {
  font-size: var(--vh-text-xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-tight);
  line-height: var(--vh-leading-snug);
}
.vh-personalhero__hello { color: var(--vh-text); }
.vh-personalhero__name {
  background: var(--vh-grad-text-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vh-personalhero__metaline {
  display: flex; flex-wrap: wrap; gap: var(--vh-space-2);
  align-items: center;
  margin-top: 6px;
}
.vh-personalhero__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-xs);
  color: var(--vh-text-muted);
  font-weight: var(--vh-weight-semibold);
}
.vh-personalhero__chip--suggest {
  background: color-mix(in srgb, var(--vh-secondary) 14%, transparent);
  color: var(--vh-gold-700, #876a27);
  border-color: color-mix(in srgb, var(--vh-secondary) 30%, transparent);
}
.vh-personalhero__chip--suggest a { color: inherit; text-decoration: none; }
.vh-personalhero__chip--suggest a:hover { color: var(--vh-secondary); }

/* === Cinematic variant ============================================== *
 * Drop .vh-hero--cinematic on .vh-hero to get:
 *  - aurora-mesh radial-gradient background that drifts slowly
 *  - staggered intro animation that runs once on load and settles
 *  - gradient-sweep on the title accent
 *  - 3-illustration rotator slot (Alpine wires the rotation)
 *  - mobile: hidden (categories + bento take over)
 * ===================================================================== */
.vh-hero--cinematic {
  background:
    radial-gradient(46% 60% at 18% 26%, color-mix(in srgb, var(--vh-tertiary-teal) 22%, transparent) 0%, transparent 60%),
    radial-gradient(52% 64% at 82% 70%, color-mix(in srgb, var(--vh-secondary) 18%, transparent) 0%, transparent 60%),
    radial-gradient(46% 56% at 50% 96%, color-mix(in srgb, var(--vh-primary) 16%, transparent) 0%, transparent 60%),
    var(--vh-bg-elevated);
  background-size: 220% 220%, 220% 220%, 220% 220%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 50% 100%, 0 0;
  animation: vh-aurora 28s ease-in-out infinite alternate;
  border: 1px solid var(--vh-glass-border);
  position: relative;
}
@keyframes vh-aurora {
  0%   { background-position: 0% 0%, 100% 100%, 50% 100%, 0 0; }
  50%  { background-position: 8% 6%, 92% 94%, 54% 92%, 0 0; }
  100% { background-position: 4% 2%, 96% 98%, 50% 96%, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-hero--cinematic { animation: none; }
}

/* Subtle dotted-grid overlay for texture (Linear-style) */
.vh-hero--cinematic::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--vh-text-subtle) 22%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.vh-hero--cinematic > * { position: relative; z-index: 1; }

/* Staggered cinematic intro — runs once, then ambient drift takes over. */
@media (prefers-reduced-motion: no-preference) {
  .vh-hero--cinematic .vh-hero__eyebrow,
  .vh-hero--cinematic .vh-hero__title,
  .vh-hero--cinematic .vh-hero__sub,
  .vh-hero--cinematic .vh-hero__ctas,
  .vh-hero--cinematic .vh-hero__statchips,
  .vh-hero--cinematic .vh-hero__art {
    animation: vh-hero-rise 700ms var(--vh-ease-soft) both;
  }
  .vh-hero--cinematic .vh-hero__eyebrow   { animation-delay:  40ms; }
  .vh-hero--cinematic .vh-hero__title     { animation-delay: 100ms; }
  .vh-hero--cinematic .vh-hero__sub       { animation-delay: 220ms; }
  .vh-hero--cinematic .vh-hero__ctas      { animation-delay: 320ms; }
  .vh-hero--cinematic .vh-hero__statchips { animation-delay: 420ms; }
  .vh-hero--cinematic .vh-hero__art       { animation-delay: 140ms; }
}
@keyframes vh-hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Gradient sweep on the title accent — runs once on load, leaves a static
 * gradient text fill afterwards. Both `.vh-hero--cinematic .vh-hero__accent`
 * (in-hero usage) and standalone `.vh-text-sweep` (any page title) share
 * the same animation by composing onto the same selector list. */
.vh-hero--cinematic .vh-hero__accent,
.vh-text-sweep {
  background: linear-gradient(90deg,
    var(--vh-primary)         0%,
    var(--vh-tertiary-teal)  35%,
    var(--vh-secondary)      65%,
    var(--vh-primary)       100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vh-hero-sweep 1900ms var(--vh-ease-soft) 400ms both;
}
@keyframes vh-hero-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-text-sweep,
  .vh-hero--cinematic .vh-hero__accent { animation: none; background-position: 0% 0; }
}

/* 3-illustration rotator — Alpine controls `index`; CSS handles the
 * crossfade. Only the active layer has opacity 1. */
.vh-hero__art--rotator { position: relative; }
.vh-hero__art--rotator > * {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 800ms var(--vh-ease-soft);
}
.vh-hero__art--rotator > .is-active { opacity: 1; }
.vh-hero__art--rotator .vh-hero__art__img {
  animation: vh-hero-drift 9s ease-in-out infinite alternate;
}
@keyframes vh-hero-drift {
  from { transform: translateY(0)  rotate(0deg); }
  to   { transform: translateY(-8px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vh-hero__art--rotator .vh-hero__art__img { animation: none; }
}

/* 3 stat chips below hero (animated count-up + Geist Mono) */
.vh-hero__statchips {
  display: flex; flex-wrap: wrap; gap: var(--vh-space-2);
  margin-top: var(--vh-space-phi-2);
}
.vh-hero__statchip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px;
  background: var(--vh-glass-bg);
  border: 1px solid var(--vh-glass-border);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  backdrop-filter: var(--vh-glass-blur);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-sm);
  color: var(--vh-text);
}
.vh-hero__statchip__num {
  font-family: var(--vh-font-mono);
  font-weight: var(--vh-weight-bold);
  letter-spacing: -0.01em;
  color: var(--vh-primary);
}
.vh-hero__statchip__label {
  color: var(--vh-text-muted);
  font-size: var(--vh-text-xs);
}

/* Mobile: skip the hero entirely (per design brief — categories + bento
 * take over). */
@media (max-width: 759px) {
  .vh-hero--cinematic { display: none; }
}

/* === Accent variants (drop on .vh-hero) ============================ */
.vh-hero--brand {
  --_accent-color: var(--vh-primary);
  --_accent-glow:  var(--vh-glow-primary);
  --_accent-grad:  var(--vh-grad-text-brand);
}
.vh-hero--gold {
  --_accent-color: var(--vh-secondary);
  --_accent-glow:  var(--vh-glow-gold);
  --_accent-grad:  var(--vh-grad-text-gold);
}
.vh-hero--teal {
  --_accent-color: var(--vh-tertiary-teal);
  --_accent-glow:  var(--vh-glow-teal);
  --_accent-grad:  linear-gradient(180deg, var(--vh-teal-500), var(--vh-teal-700));
}
.vh-hero--coral {
  --_accent-color: var(--vh-tertiary-coral);
  --_accent-glow:  var(--vh-glow-coral);
  --_accent-grad:  linear-gradient(180deg, var(--vh-coral-500), var(--vh-coral-700));
}

/* ============================================================
 * .vh-greeter — greeting strip (good morning, city, weather)
 * Pure-CSS chip; weather badge filled by JS (greeter_init).
 * ========================================================== */

.vh-greeter {
  display: flex; align-items: center;
  gap: var(--vh-space-3);
  padding: var(--vh-space-2) var(--vh-space-4);
  background: var(--vh-glass-bg);
  border: 1px solid var(--vh-glass-border);
  backdrop-filter: var(--vh-glass-blur);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-sm);
  width: fit-content;
}
.vh-greeter__hello {
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text);
}
.vh-greeter__name {
  background: var(--vh-grad-text-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vh-greeter__sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--vh-border-strong);
  flex: 0 0 auto;
}
.vh-greeter__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--vh-text-xs);
  color: var(--vh-text-muted);
}
.vh-greeter__chip svg { width: 14px; height: 14px; }
.vh-greeter__temp { font-family: var(--vh-font-mono); font-weight: var(--vh-weight-semibold); color: var(--vh-text); }

/* ============================================================
 * .vh-chart — single SVG primitive for sparklines, gauges, heatmaps
 *
 * One CSS file drives all three viz types via class composition:
 *   .vh-chart                 — base svg wrapper (sets currentColor + sizing)
 *   .vh-chart--spark / gauge / heatmap
 *
 * Children:
 *   .vh-chart__line           — line stroke (sparkline)
 *   .vh-chart__area           — filled area beneath line
 *   .vh-chart__dot            — data point marker
 *   .vh-chart__axis           — axis hairlines + ticks
 *   .vh-chart__gridline       — dashed reference range edge
 *
 *   .vh-chart__gauge          — horizontal gauge track (rounded)
 *   .vh-chart__gauge__zone    — coloured sub-range
 *   .vh-chart__gauge__needle  — value pointer (small triangle)
 *   .vh-chart__gauge__label   — caption next to a zone or needle
 *
 *   .vh-chart__region         — body-region overlay used in heatmap
 *
 * All values are tokens — light/dark themes flip automatically.
 * ========================================================== */

.vh-chart {
  display: block;
  width: 100%;
  height: auto;
  color: var(--vh-primary);
  --_axis: var(--vh-border-strong);
  --_grid: color-mix(in srgb, var(--vh-text-subtle) 30%, transparent);
  --_zone-ok:    color-mix(in srgb, var(--vh-success) 22%, transparent);
  --_zone-warn:  color-mix(in srgb, var(--vh-warning) 28%, transparent);
  --_zone-bad:   color-mix(in srgb, var(--vh-danger)  28%, transparent);
  --_dot-fill:   var(--vh-bg-elevated);
  font-family: var(--vh-font-mono);
}

/* ---- Sparkline ---- */
.vh-chart__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, currentColor 30%, transparent));
}
.vh-chart__area {
  fill: currentColor;
  opacity: 0.12;
  stroke: none;
}
.vh-chart__dot {
  fill: var(--_dot-fill);
  stroke: currentColor;
  stroke-width: 2;
}
.vh-chart__dot--last { stroke-width: 2.5; r: 5; }
.vh-chart__axis {
  stroke: var(--_axis);
  stroke-width: 1;
}
.vh-chart__gridline {
  stroke: var(--_grid);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: none;
}
.vh-chart__label {
  fill: var(--vh-text-subtle);
  font-size: 10px;
  font-family: var(--vh-font-mono);
  font-feature-settings: "tnum";
}

/* ---- Gauge ---- */
.vh-chart__gauge { fill: var(--vh-bg-muted); }
.vh-chart__gauge__zone--ok    { fill: var(--_zone-ok); }
.vh-chart__gauge__zone--warn  { fill: var(--_zone-warn); }
.vh-chart__gauge__zone--bad   { fill: var(--_zone-bad); }
.vh-chart__gauge__needle {
  fill: var(--vh-text);
  stroke: var(--vh-bg-elevated);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.vh-chart__gauge__needle--warn { fill: var(--vh-warning); }
.vh-chart__gauge__needle--bad  { fill: var(--vh-danger); }

/* ---- Heatmap (body-region overlay) ---- */
.vh-chart__region {
  fill: transparent;
  stroke: transparent;
  transition: fill var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-chart__region[data-severity="INFO"]     { fill: color-mix(in srgb, var(--vh-success) 28%, transparent); }
.vh-chart__region[data-severity="WARNING"]  { fill: color-mix(in srgb, var(--vh-warning) 32%, transparent); }
.vh-chart__region[data-severity="CRITICAL"] { fill: color-mix(in srgb, var(--vh-danger)  38%, transparent); }

/* ============================================================
 * .vh-fabstack — vertically stacked floating buttons
 * Used by body widget + AI helper.
 * ========================================================== */
.vh-fabstack {
  position: fixed;
  right: var(--vh-space-4);
  bottom: calc(var(--vh-tabbar-h) + var(--vh-safe-bottom) + var(--vh-space-3));
  display: flex; flex-direction: column;
  gap: var(--vh-space-2);
  align-items: flex-end;
  z-index: 60;
}
@media (min-width: 1024px) {
  .vh-fabstack { bottom: var(--vh-space-4); }
}

/* ============================================================
 * .vh-aifab + .vh-aisheet — AI helper FAB
 * (Stylistic siblings of vh-bodyfab/vh-bodysheet but standalone.)
 * ========================================================== */
.vh-aifab {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--vh-grad-aurora);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--vh-glow-teal);
  transition: transform var(--vh-dur-cinematic) var(--vh-ease-soft),
              box-shadow var(--vh-dur-cinematic) var(--vh-ease-soft);
  overflow: hidden;
  isolation: isolate;
}
.vh-aifab::before {
  content: "";
  position: absolute; inset: -2px;
  background: var(--vh-grad-aurora);
  filter: blur(12px) saturate(1.6);
  opacity: 0.55;
  z-index: -1;
  border-radius: inherit;
  animation: vh-aifab-pulse 4s ease-in-out infinite;
}
@keyframes vh-aifab-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.45; }
  50%      { transform: scale(1.1); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-aifab::before { animation: none; }
}
.vh-aifab:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--vh-glow-teal), 0 0 0 4px var(--vh-focus); }
.vh-aifab.is-active { box-shadow: var(--vh-glow-teal), 0 0 0 4px var(--vh-focus); }
.vh-aifab svg { width: 24px; height: 24px; }

.vh-aisheet__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--vh-space-3);
  margin-bottom: var(--vh-space-3);
}
.vh-aisheet__title {
  margin: 0; font-size: var(--vh-text-xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-tight);
  background: var(--vh-grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vh-aisheet__close {
  background: transparent; border: 0;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  color: var(--vh-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.vh-aisheet__close:hover { background: var(--vh-bg-muted); color: var(--vh-text); }

.vh-aisheet__tabs { margin-bottom: var(--vh-space-3); }

.vh-aisheet__tab { display: none; }
.vh-aisheet__tab.is-active { display: flex; flex-direction: column; gap: var(--vh-space-2); }

.vh-aisheet__faq {
  display: grid; gap: var(--vh-space-2);
  list-style: none; padding: 0; margin: 0;
}
.vh-aisheet__faq button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--vh-space-2);
  padding: var(--vh-space-3) var(--vh-space-4);
  background: var(--vh-bg-muted);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-2xl);
  text-align: left;
  font: inherit;
  color: var(--vh-text);
  font-weight: var(--vh-weight-semibold);
  cursor: pointer;
  transition: background var(--vh-dur-fast) var(--vh-ease);
}
.vh-aisheet__faq button:hover { background: var(--vh-bg-elevated); }
.vh-aisheet__faq__answer {
  padding: var(--vh-space-2) var(--vh-space-4) var(--vh-space-3);
  font-size: var(--vh-text-sm);
  color: var(--vh-text-muted);
  line-height: var(--vh-leading-relaxed);
}

.vh-aisheet__symptominput {
  display: flex; align-items: center; gap: var(--vh-space-2);
  padding: 6px 6px 6px var(--vh-space-4);
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-pill);
  margin-bottom: var(--vh-space-2);
}
.vh-aisheet__symptominput input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: inherit; font-size: var(--vh-text-md);
  padding: 6px 0;
  color: var(--vh-text);
}
.vh-aisheet__symptomhint {
  font-size: var(--vh-text-xs);
  color: var(--vh-text-subtle);
}
.vh-aisheet__suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--vh-space-2);
}

.vh-aisheet__explain {
  padding: var(--vh-space-3) var(--vh-space-4);
  background: var(--vh-bg-muted);
  border-radius: var(--vh-radius-2xl);
  font-size: var(--vh-text-sm);
  color: var(--vh-text-muted);
  line-height: var(--vh-leading-relaxed);
}
.vh-aisheet__explain strong { color: var(--vh-text); }
.vh-aisheet__disclaimer {
  font-size: var(--vh-text-2xs);
  color: var(--vh-text-subtle);
  text-align: center;
  margin-top: var(--vh-space-3);
  padding-top: var(--vh-space-3);
  border-top: 1px solid var(--vh-border);
}

/* ============================================================
 * .vh-focus-ring — universal focus-visible treatment
 * Applies to every interactive element by default. WCAG AA.
 * ========================================================== */

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 0;
  box-shadow: var(--vh-glow-focus);
  border-radius: var(--vh-radius-md);
}
input, textarea, select { outline: none !important; }
input:focus, input:focus-visible,
textarea:focus, textarea:focus-visible,
select:focus, select:focus-visible {
  outline: none !important;
}

/* ============================================================
 * .vh-tour — first-run coach overlay
 * ========================================================== */
.vh-tour {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: var(--vh-space-4);
}
.vh-tour__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 22, 18, 0.55);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  backdrop-filter: var(--vh-glass-blur);
}
.vh-tour__card {
  position: relative;
  max-width: 440px;
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  padding: var(--vh-space-phi-2);
  display: flex; flex-direction: column; gap: var(--vh-space-3);
  animation: vh-cmdk-pop var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-tour__title {
  margin: 0;
  font-size: var(--vh-text-xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-tight);
  background: var(--vh-grad-text-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vh-tour__body {
  margin: 0;
  font-size: var(--vh-text-sm);
  color: var(--vh-text-muted);
  line-height: var(--vh-leading-relaxed);
}
.vh-tour__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--vh-space-2);
}

/* ============================================================
 * .vh-milestone-banner — subtle in-app banner for milestone events
 * ========================================================== */
.vh-milestone-banner {
  position: fixed;
  top: var(--vh-space-3); left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex; align-items: center; gap: var(--vh-space-2);
  padding: 8px 16px;
  background: var(--vh-glass-bg-strong);
  border: 1px solid var(--vh-glass-border);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  backdrop-filter: var(--vh-glass-blur);
  border-radius: var(--vh-radius-pill);
  box-shadow: var(--vh-glow-gold);
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text);
  animation: vh-milestone-pop var(--vh-dur-cinematic-long) var(--vh-ease-soft);
}
@keyframes vh-milestone-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.vh-milestone-banner__icon { color: var(--vh-secondary); }

/* ============================================================
 * .vh-ptr — pull-to-refresh indicator (mobile)
 * Inserted by vh-mobile.js when [data-pull-refresh] elements are present.
 * ========================================================== */
.vh-ptr {
  position: fixed;
  top: 0; left: 50%;
  z-index: 70;
  transform: translateX(-50%) translateY(-40px) scale(0.6);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  box-shadow: var(--vh-glow-neutral);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: transform 200ms var(--vh-ease-soft), opacity 200ms var(--vh-ease-soft);
}
.vh-ptr__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, var(--vh-primary) 0%, var(--vh-primary) 70%, transparent 70%);
}
.vh-ptr.is-spinning .vh-ptr__dot {
  animation: vh-ptr-spin 700ms linear infinite;
}
@keyframes vh-ptr-spin { to { transform: rotate(360deg); } }

/* ============================================================
 * .vh-snap-sheet — 3-snap-point bottom sheet (Apple Maps style)
 * Add via class .vh-snap-sheet to a .vh-sheet__panel; user can drag the
 * handle to switch between peek / half / full. Pure-CSS snap, JS just
 * tracks the drag.
 *
 * Set --snap to: 'peek' | 'half' | 'full' (defaults to peek).
 * ========================================================== */
.vh-snap-sheet {
  --peek-h: 30vh;
  --half-h: 60vh;
  --full-h: 90vh;
  height: var(--peek-h);
  transition: height var(--vh-dur-cinematic) var(--vh-ease-soft);
  max-height: 90vh;
}
.vh-snap-sheet[data-snap="half"]  { height: var(--half-h); }
.vh-snap-sheet[data-snap="full"]  { height: var(--full-h); }

/* ============================================================
 * .vh-saving — "you save ₹X" chip
 * Designed to live next to a price.
 * ========================================================== */
.vh-saving {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--vh-success) 12%, transparent);
  color: var(--vh-success);
  border: 1px solid color-mix(in srgb, var(--vh-success) 28%, transparent);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-wide);
  text-transform: uppercase;
}
.vh-saving .vh-mono { font-size: var(--vh-text-xs); text-transform: none; letter-spacing: -0.01em; }

/* ============================================================
 * .vh-density — "N partners in your area" live chip
 * Reactive to $store.vh.partnersInArea.
 * ========================================================== */
.vh-density {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--vh-glass-bg);
  border: 1px solid var(--vh-glass-border);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  backdrop-filter: var(--vh-glass-blur);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-xs);
  color: var(--vh-text-muted);
  font-weight: var(--vh-weight-semibold);
}
.vh-density::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--vh-success);
  box-shadow: 0 0 0 0 var(--vh-success);
  animation: vh-track-pulse 1.6s ease-out infinite;
}
.vh-density .vh-mono { color: var(--vh-text); }

/* ============================================================
 * .vh-doctorverify — verification ribbon + reviews + live counter
 * Composes into doctor product pages and consult cards.
 * ========================================================== */
.vh-doctorverify {
  display: flex; flex-wrap: wrap; gap: var(--vh-space-2);
  padding: var(--vh-space-3) var(--vh-space-4);
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-2xl);
  align-items: center;
}
.vh-doctorverify__ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--vh-tertiary-teal) 12%, transparent);
  color: var(--vh-tertiary-teal);
  border: 1px solid color-mix(in srgb, var(--vh-tertiary-teal) 30%, transparent);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  text-decoration: none;
}
.vh-doctorverify__ribbon:hover { background: color-mix(in srgb, var(--vh-tertiary-teal) 18%, transparent); }
.vh-doctorverify__stars {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--vh-font-mono);
  font-weight: var(--vh-weight-bold);
}
.vh-doctorverify__stars svg { width: 14px; height: 14px; color: var(--vh-secondary); fill: currentColor; stroke: currentColor; }
.vh-doctorverify__count {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-size: var(--vh-text-2xs);
  color: var(--vh-text-muted);
}
.vh-doctorverify__count::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--vh-success);
  animation: vh-track-pulse 1.6s ease-out infinite;
}

/* ============================================================
 * .vh-slotpicker — horizontal pill row for date+time slots
 * Rarity-aware: amber tint when fewer than ~2 slots left.
 * ========================================================== */
.vh-slotpicker__rail {
  display: flex; gap: var(--vh-space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: var(--vh-space-2) 2px;
}
.vh-slot {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 110px;
  padding: var(--vh-space-3) var(--vh-space-3);
  background: var(--vh-bg-elevated);
  border: 1px solid var(--vh-border);
  border-radius: var(--vh-radius-2xl);
  cursor: pointer;
  transition: border-color var(--vh-dur-fast) var(--vh-ease),
              background  var(--vh-dur-fast) var(--vh-ease),
              transform   var(--vh-dur-fast) var(--vh-ease);
  position: relative;
  scroll-snap-align: start;
}
.vh-slot input { position: absolute; opacity: 0; pointer-events: none; }
.vh-slot:hover { border-color: var(--vh-primary); transform: translateY(-1px); }
.vh-slot[aria-checked="true"],
.vh-slot:has(input:checked) {
  border-color: var(--vh-primary);
  background: var(--vh-primary-soft);
  box-shadow: var(--vh-glow-primary);
}
.vh-slot__day {
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  color: var(--vh-text-subtle);
}
.vh-slot__date { font-size: var(--vh-text-sm); font-weight: var(--vh-weight-semibold); color: var(--vh-text); }
.vh-slot__time { font-size: var(--vh-text-md); font-weight: var(--vh-weight-bold); color: var(--vh-primary); }

.vh-slot--scarce { background: color-mix(in srgb, var(--vh-warning) 8%, var(--vh-bg-elevated)); border-color: color-mix(in srgb, var(--vh-warning) 35%, var(--vh-border)); }
.vh-slot--scarce .vh-slot__time { color: var(--vh-warning); }
.vh-slot--full { opacity: 0.4; pointer-events: none; }

.vh-slot__rare {
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-bold);
  color: var(--vh-warning);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  margin-top: 2px;
}

/* ============================================================
 * .vh-paybar — sticky mobile checkout pay bar (Apple-Pay-feel)
 * ========================================================== */
.vh-paybar {
  position: sticky;
  bottom: calc(var(--vh-tabbar-h) + var(--vh-safe-bottom));
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--vh-space-3);
  margin: var(--vh-space-4) calc(-1 * var(--vh-space-4)) 0;
  padding: var(--vh-space-3) var(--vh-space-4);
  background: var(--vh-glass-bg-strong);
  backdrop-filter: var(--vh-glass-blur-lg);
  -webkit-backdrop-filter: var(--vh-glass-blur-lg);
  border-top: 1px solid var(--vh-glass-border);
}
.vh-paybar__total {
  display: flex; flex-direction: column; gap: 2px;
  font-size: var(--vh-text-2xs);
  color: var(--vh-text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  font-weight: var(--vh-weight-semibold);
}
.vh-paybar__total strong {
  font-family: var(--vh-font-mono);
  font-size: var(--vh-text-xl);
  color: var(--vh-text);
}
.vh-paybar__cta { flex: 1; }
@media (min-width: 1024px) {
  .vh-paybar { display: none; }
}

/* ============================================================
 * .vh-cmdk — ⌘K command palette (fullscreen overlay)
 * Reuses .vh-toggle-group for tabs, .vh-mono for prices,
 * .vh-pill-group__pill for AI sample chips.
 * ========================================================== */
.vh-cmdk {
  position: fixed; inset: 0;
  z-index: 80;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh var(--vh-space-4) var(--vh-space-4);
}
.vh-cmdk__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 22, 18, 0.45);
  -webkit-backdrop-filter: var(--vh-glass-blur);
  backdrop-filter: var(--vh-glass-blur);
  animation: vh-sheet-fade-in var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-cmdk__panel {
  position: relative;
  width: 100%; max-width: 640px;
  background: var(--vh-glass-bg-strong);
  border: 1px solid var(--vh-glass-border);
  -webkit-backdrop-filter: var(--vh-glass-blur-lg);
  backdrop-filter: var(--vh-glass-blur-lg);
  border-radius: var(--vh-radius-3xl);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4), var(--vh-glow-neutral);
  overflow: hidden;
  animation: vh-cmdk-pop var(--vh-dur-cinematic) var(--vh-ease-soft);
}
@keyframes vh-cmdk-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
/* All cmdk panel sections share the same horizontal gutter (--_pad-x)
 * so head / tabs / list-rows / hint / ai / foot align on a single column.
 * Vertical rhythm is consistent at φ-1 between groups. */
.vh-cmdk__panel { --_pad-x: var(--vh-space-phi-2); }

.vh-cmdk__head {
  display: flex; align-items: center; gap: var(--vh-space-2);
  padding: var(--vh-space-3) var(--_pad-x);
  border-bottom: 1px solid var(--vh-border);
}
.vh-cmdk__icon { color: var(--vh-text-muted); display: inline-flex; }
.vh-cmdk__input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0; outline: none;
  font-family: inherit;
  font-size: var(--vh-text-md);
  color: var(--vh-text);
  padding: 4px 0;
}
.vh-cmdk__input::placeholder { color: var(--vh-text-subtle); }
.vh-cmdk__voice {
  background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vh-text-muted);
  transition: background var(--vh-dur-fast) var(--vh-ease),
              color      var(--vh-dur-fast) var(--vh-ease);
}
.vh-cmdk__voice:hover { background: var(--vh-bg-muted); color: var(--vh-text); }
.vh-cmdk__voice.is-listening {
  color: var(--vh-coral-500);
  background: color-mix(in srgb, var(--vh-coral-500) 12%, transparent);
  animation: vh-cmdk-listen 1s ease-in-out infinite;
}
@keyframes vh-cmdk-listen {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vh-coral-500) 50%, transparent); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
.vh-cmdk__esc, .vh-cmdk__kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1px 6px; min-width: 20px;
  font-family: var(--vh-font-mono);
  font-size: var(--vh-text-2xs);
  color: var(--vh-text-subtle);
  background: var(--vh-bg-muted);
  border: 1px solid var(--vh-border);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vh-cmdk__tabs {
  padding: 8px;
  margin: 8px 0 0 8px;
}
.vh-cmdk__body {
  max-height: 56vh;
  overflow-y: auto;
  padding: var(--vh-space-2) 0 var(--vh-space-3);
}
.vh-cmdk__list { list-style: none; padding: 0; margin: 0; }
.vh-cmdk__row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: var(--vh-space-3);
  align-items: center;
  padding: 10px var(--_pad-x);
  cursor: pointer;
  transition: background var(--vh-dur-fast) var(--vh-ease);
  font-size: var(--vh-text-sm);
}
.vh-cmdk__row.is-active,
.vh-cmdk__row:hover {
  background: color-mix(in srgb, var(--vh-primary) 8%, transparent);
}
.vh-cmdk__rowicon { color: var(--vh-text-muted); display: inline-flex; }
.vh-cmdk__rowname { color: var(--vh-text); font-weight: var(--vh-weight-semibold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-cmdk__rowmeta { color: var(--vh-primary); font-weight: var(--vh-weight-semibold); }
.vh-cmdk__rowtype { font-size: var(--vh-text-2xs); color: var(--vh-text-subtle); text-transform: uppercase; letter-spacing: var(--vh-tracking-wide); }
.vh-cmdk__hint {
  list-style: none;
  padding: var(--vh-space-3) var(--_pad-x);
  color: var(--vh-text-muted);
  font-size: var(--vh-text-sm);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.vh-cmdk__ai {
  padding: var(--vh-space-3) var(--_pad-x);
  display: flex; flex-direction: column; gap: var(--vh-space-2);
}
.vh-cmdk__samples { display: flex; flex-wrap: wrap; gap: 6px; }
.vh-cmdk__foot {
  /* Centred + uniform gutter — matches the rest of the panel. */
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: var(--vh-space-2);
  padding: var(--vh-space-3) var(--_pad-x);
  border-top: 1px solid var(--vh-border);
  font-size: var(--vh-text-2xs);
  color: var(--vh-text-subtle);
  text-align: center;
}

/* ============================================================
 * .vh-pulse — generic "I just changed" pulse on a counter
 * Trigger by toggling the .is-pulsing class for one beat.
 * ========================================================== */
@keyframes vh-pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--_pulse, var(--vh-secondary)); }
  60%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.vh-pulse {
  animation: vh-pulse-ring 700ms var(--vh-ease-soft);
}
@media (prefers-reduced-motion: reduce) {
  .vh-pulse { animation: none; }
}

/* ============================================================
 * HTMX swap states — skeleton-first feel
 * `htmx-request` is auto-applied during a request.
 * `htmx-swapping` flashes briefly during the swap itself.
 * ========================================================== */
.htmx-request .vh-htmx-target,
.vh-htmx-target.htmx-request {
  position: relative;
  pointer-events: none;
}
.htmx-request .vh-htmx-target::after,
.vh-htmx-target.htmx-request::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--vh-bg-elevated) 60%, transparent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: vh-skeleton-shine 1.4s linear infinite;
  border-radius: inherit;
  pointer-events: none;
}
.htmx-swapping {
  opacity: 0.4;
  transition: opacity var(--vh-dur-fast) var(--vh-ease);
}
.htmx-settling {
  animation: vh-htmx-settle var(--vh-dur-cinematic) var(--vh-ease-soft);
}
@keyframes vh-htmx-settle {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .htmx-settling { animation: none; }
}

/* Generic indicator pattern — show .vh-loading only during request */
.vh-loading { display: none; }
.htmx-request .vh-loading { display: inline-flex; }

/* ============================================================
 * .vh-skip — keyboard "skip to main content" link
 * Hidden offscreen until focused via Tab.
 * ========================================================== */
.vh-skip {
  position: absolute;
  top: -40px; left: 12px;
  z-index: 999;
  padding: 8px 14px;
  background: var(--vh-primary);
  color: var(--vh-text-on-brand);
  text-decoration: none;
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-semibold);
  border-radius: var(--vh-radius-md);
  box-shadow: var(--vh-glow-primary);
  transition: top var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-skip:focus { top: 12px; }

/* ============================================================
 * prefers-contrast: more — bump borders + drop translucency
 * for users who need higher contrast.
 * ========================================================== */
@media (prefers-contrast: more) {
  :root {
    --vh-border:        var(--vh-neutral-400);
    --vh-border-strong: var(--vh-neutral-700);
    --vh-glass-bg:      var(--vh-bg-elevated);
    --vh-glass-bg-strong: var(--vh-bg-elevated);
    --vh-glass-blur:    none;
    --vh-glass-blur-lg: none;
  }
  .vh-pcard, .vh-card-v3, .vh-callout-card, .vh-insight, .vh-vrow, .vh-glass {
    border-width: 2px;
  }
}

/* ============================================================
 * @media print — A4 single-page report layout
 *
 * Strategy:
 *   - Force light theme so dark-mode users print clean white pages.
 *   - Hide navigation, FABs, footers, sidebars.
 *   - Remove all gradients, shadows, glow halos (ink-saving).
 *   - Bring the report's main column to full width.
 *   - Add a watermark via :root::after (printed on every page).
 * ========================================================== */

@page {
  size: A4;
  margin: 18mm 15mm 22mm;
}

@media print {
  /* Force light tokens regardless of OS theme. */
  :root, :root[data-theme="dark"], :root[data-theme="auto"] {
    --vh-bg:           #ffffff !important;
    --vh-bg-elevated:  #ffffff !important;
    --vh-bg-muted:     #f4f3ee !important;
    --vh-text:         #1c1f1b !important;
    --vh-text-muted:   #5b6360 !important;
    --vh-text-subtle:  #7d7c72 !important;
    --vh-border:       #d3d1c7 !important;
    --vh-card-shadow:  none !important;
    --vh-glow-primary: none !important;
    --vh-glow-gold:    none !important;
    --vh-glow-teal:    none !important;
    --vh-glow-coral:   none !important;
    --vh-glow-neutral: none !important;
    --vh-glass-bg:     transparent !important;
    --vh-glass-blur:   none !important;
    color-scheme: light !important;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  /* Hide everything that's not the report itself */
  .vh-appbar,
  .vh-topnav,
  .vh-tabbar,
  .vh-fabstack,
  .vh-bodywidget,
  .vh-aiwidget,
  #vh-toasts,
  .vh-footer,
  .vh-greeter,
  .vh-2col__aside,
  .vh-rep__header > .vh-badge,
  .vh-btn,
  .vh-pill,
  .vh-cartbtn,
  .vh-avatar,
  .vh-sponsor,
  .vh-empty,
  [data-reveal]:not(.is-revealed)  /* don't print pre-reveal hidden state */
  { display: none !important; }

  /* Reveal anything held back by scroll-reveal */
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* Layout: full-width single column */
  .vh-main { padding: 0 !important; max-width: 100% !important; }
  .vh-2col, .vh-2col__main {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  /* Cards / surfaces: borders only, no fills, no shadows */
  .vh-card,
  .vh-card-v3,
  .vh-callout-card,
  .vh-insight,
  .vh-vrow,
  .vh-stat,
  .vh-glass {
    background: #fff !important;
    border: 1px solid #c0c0c0 !important;
    box-shadow: none !important;
    border-radius: 6mm !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Insights: keep their accent stripe, drop tinted backgrounds */
  .vh-insight              { background: #fff !important; }
  .vh-insight--CRITICAL    { border-color: #b32418 !important; }
  .vh-insight--WARNING     { border-color: #b06b00 !important; }
  .vh-insight--INFO        { border-color: #0f8a55 !important; }

  /* Value rows: full-width with subtle severity border */
  .vh-vrow--CRITICAL          { border-color: #b32418 !important; }
  .vh-vrow--HIGH, .vh-vrow--LOW { border-color: #b06b00 !important; }

  /* Mono numerals stay mono in print */
  .vh-mono, .vh-num {
    font-family: var(--vh-font-mono);
  }

  /* Page-break controls */
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
  .vh-stack-lg > * + *,
  .vh-stack > * + *  { page-break-inside: avoid; }

  /* Watermark — patient name + serial, printed bottom-right of every page */
  body::after {
    content: "Vividh Health · printed " attr(data-print-stamp);
    position: fixed;
    bottom: 6mm; right: 12mm;
    font-size: 8pt; color: #999; letter-spacing: 0.05em;
    font-family: var(--vh-font-mono);
  }

  /* Links: spell out the URL after them so the printed page is self-referential */
  a[href]:not(.vh-no-print-href)::after {
    content: " (" attr(href) ")";
    font-size: 9pt; color: #666;
  }
  a[href^="javascript:"]::after,
  a[href^="#"]::after { content: ""; }

  /* No animations or transitions during print */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
 * .vh-walletchip — wallet balance pill (sits left of cart in topnav)
 * ========================================================== */
.vh-walletchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--vh-secondary) 14%, var(--vh-bg-elevated));
  color: var(--vh-gold-700, #876a27);
  border: 1px solid color-mix(in srgb, var(--vh-secondary) 28%, transparent);
  border-radius: var(--vh-radius-pill);
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-semibold);
  text-decoration: none;
  transition: background var(--vh-dur-fast) var(--vh-ease),
              border-color var(--vh-dur-fast) var(--vh-ease);
}
.vh-walletchip:hover {
  background: color-mix(in srgb, var(--vh-secondary) 22%, var(--vh-bg-elevated));
  border-color: var(--vh-secondary);
}
.vh-walletchip svg { color: var(--vh-secondary); flex: 0 0 auto; }
.vh-walletchip .vh-mono { color: var(--vh-text); }

/* ============================================================
 * .vh-walletcard — credit-card-style wallet block in the avatar menu
 * Brand gradient + chip graphic + balance + foot.
 * ========================================================== */
.vh-walletcard {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: var(--vh-space-2);
  padding: var(--vh-space-4);
  /* 16:9 in the topnav avatar menu. The full variant on the wallet page
   * resets aspect-ratio to auto + adds min-height. */
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  /* Light, soft pastel mesh — same family as .vh-hero--cinematic, just
   * with bigger / warmer radials so the wallet card still feels distinct. */
  background:
    radial-gradient(58% 70% at 14% 22%, color-mix(in srgb, var(--vh-secondary) 26%, transparent) 0%, transparent 60%),
    radial-gradient(52% 64% at 86% 28%, color-mix(in srgb, var(--vh-tertiary-teal) 22%, transparent) 0%, transparent 58%),
    radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--vh-primary) 18%, transparent) 0%, transparent 62%),
    var(--vh-bg-elevated) !important;
  color: var(--vh-text);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--vh-glass-border);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.50) inset,
    var(--vh-shadow-2);
  transition: transform var(--vh-dur-cinematic) var(--vh-ease-soft),
              box-shadow var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-walletcard:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.60) inset,
    var(--vh-shadow-3);
}

/* Holographic foil band — soft iridescent stripe, tuned for light bg */
.vh-walletcard__hologram {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    color-mix(in srgb, var(--vh-secondary) 16%, transparent) 42%,
    color-mix(in srgb, var(--vh-tertiary-teal) 14%, transparent) 52%,
    color-mix(in srgb, var(--vh-secondary) 16%, transparent) 60%,
    transparent 70%
  );
  background-size: 220% 220%;
  background-position: 100% 100%;
  pointer-events: none;
  z-index: 0;
  transition: background-position 700ms var(--vh-ease-soft);
}
.vh-walletcard:hover .vh-walletcard__hologram {
  background-position: 0% 0%;
}

/* Subtle SVG noise for "embossed paper" feel — pure CSS, ~600 bytes */
.vh-walletcard__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  background-size: 120px 120px;
  mix-blend-mode: multiply;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
/* Subtle moving sheen */
.vh-walletcard::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255,255,255,0.20) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: vh-walletcard-sheen 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes vh-walletcard-sheen {
  0%, 55% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .vh-walletcard::before { animation: none; opacity: 0; }
}
.vh-walletcard > * { position: relative; z-index: 1; }

.vh-walletcard__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--vh-space-2);
  font-size: var(--vh-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
  font-weight: var(--vh-weight-bold);
  color: var(--vh-text-muted);
}
.vh-walletcard__label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--vh-text);
}
.vh-walletcard__label svg { color: var(--vh-secondary); }

/* Vividh logo mark in the corner — uses the existing PNG; small size */
.vh-walletcard__mark {
  width: 28px; height: 26px;
  background-image: url("/static/img/vividh-logo-mark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
  flex: 0 0 auto;
}

.vh-walletcard__chip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  width: 32px; height: 24px;
  margin: var(--vh-space-2) 0;
  padding: 4px;
  background: linear-gradient(135deg, var(--vh-gold-300), var(--vh-gold-700) 60%, var(--vh-gold-500));
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 1px 3px rgba(0,0,0,0.18);
}
.vh-walletcard__chip span {
  background: rgba(255,255,255,0.30);
  border-radius: 1px;
}

.vh-walletcard__balance {
  font-size: var(--vh-text-2xl);
  font-weight: var(--vh-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--vh-primary);
  margin-bottom: var(--vh-space-1);
}

/* Card "PAN" line — masked phone tail in monospace, AMEX-style spacing */
.vh-walletcard__pan {
  font-size: var(--vh-text-sm);
  font-weight: var(--vh-weight-semibold);
  letter-spacing: 0.16em;
  color: var(--vh-text-muted);
}

.vh-walletcard__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--vh-space-3);
  margin-top: auto;     /* push to the bottom of the 16:9 box */
  padding-top: var(--vh-space-2);
  font-size: var(--vh-text-2xs);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-text-muted);
}

/* Foot fields — two-column "Holder" / "Member since" pair, like the
 * embossed name + valid-thru block on a real card. */
.vh-walletcard__field {
  display: flex; flex-direction: column; gap: 1px;
  text-transform: uppercase;
  letter-spacing: var(--vh-tracking-wide);
}
.vh-walletcard__field--right { text-align: right; align-items: flex-end; }
.vh-walletcard__field__lbl {
  font-size: 9px;
  font-weight: var(--vh-weight-bold);
  color: var(--vh-text-subtle);
}
.vh-walletcard__field__val {
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-bold);
  color: var(--vh-text);
  letter-spacing: 0.06em;
}

/* All decorative layers stay behind the content stack */
.vh-walletcard > *:not(.vh-walletcard__hologram):not(.vh-walletcard__noise) {
  position: relative;
  z-index: 1;
}

/* ============================================================
 * .vh-switch — slider toggle (Apple-style)
 * Used in account menu (sound cues) and elsewhere.
 * ========================================================== */
.vh-switch {
  position: relative;
  width: 40px; height: 22px;
  background: var(--vh-bg-muted);
  border: 1px solid var(--vh-border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: background var(--vh-dur-fast) var(--vh-ease),
              border-color var(--vh-dur-fast) var(--vh-ease);
}
.vh-switch__thumb {
  position: absolute;
  left: 2px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--vh-bg-elevated);
  border-radius: 50%;
  box-shadow: var(--vh-shadow-1);
  transition: left var(--vh-dur-cinematic) var(--vh-ease-soft),
              background var(--vh-dur-cinematic) var(--vh-ease-soft);
}
.vh-switch.is-on {
  background: var(--vh-primary);
  border-color: var(--vh-primary);
}
.vh-switch.is-on .vh-switch__thumb {
  left: 20px;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .vh-switch__thumb { transition: none; }
}
