/*
 * TitanMC homepage — VPLN top-up v14 "Mennica".
 * A minted 3D coin (two struck faces + a 36-segment reeded edge) flips to the chosen
 * denomination; its metal climbs with the tier (copper → silver → gold → royal gold →
 * amethyst → titanium). Editorial type follows the rank showroom above: Georgia for
 * headings and prices, a condensed heavy numeral, Chakra Petch micro-labels.
 * home-vpln-v6.js owns state/checkout; home-vpln-v14.js mirrors it (data-vm-tier,
 * --flip, count-ups, scale knob).
 */

@property --m-hi { syntax: '<color>'; inherits: true; initial-value: #FFF6CF; }
@property --m-mid { syntax: '<color>'; inherits: true; initial-value: #F0B93A; }
@property --m-lo { syntax: '<color>'; inherits: true; initial-value: #8F5708; }
@property --m-glow { syntax: '<color>'; inherits: true; initial-value: #FFBE3B; }

#vpln-topup,
#vplnModal {
  --m-hi: #FFF6CF;
  --m-mid: #F0B93A;
  --m-lo: #8F5708;
  --m-glow: #FFBE3B;
  --vm-cream: #FFFAF0;
  --vm-text: rgba(239, 236, 229, 0.86);
  --vm-dim: rgba(239, 236, 229, 0.56);
  --vm-faint: rgba(239, 236, 229, 0.38);
  --vm-gold: #F5D16F;
  --vm-green: #7EE0A6;
  --vm-serif: Georgia, 'Times New Roman', serif;
  --vm-display: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --vm-coin-face: 'Cinzel Decorative', 'Cinzel Decorative Fallback', Cinzel, Georgia, serif;
  --vm-sans: 'Chakra Petch', 'Rajdhani', Arial, sans-serif;
  transition: --m-hi 0.6s ease, --m-mid 0.6s ease, --m-lo 0.6s ease, --m-glow 0.6s ease;
}
/* metals: copper · silver · gold · royal gold · amethyst gold · titanium */
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-10"] { --m-hi: #FFD9BC; --m-mid: #C9824E; --m-lo: #62311A; --m-glow: #E0955F; }
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-25"] { --m-hi: #FFFFFF; --m-mid: #C3C9D2; --m-lo: #5B626E; --m-glow: #D4DCE8; }
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-50"] { --m-hi: #FFF1BF; --m-mid: #DDA937; --m-lo: #7E520C; --m-glow: #F2CB5A; }
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-100"] { --m-hi: #FFF6CF; --m-mid: #F0B93A; --m-lo: #8F5708; --m-glow: #FFBE3B; }
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-200"] { --m-hi: #F3E4FF; --m-mid: #B37BF0; --m-lo: #4B2380; --m-glow: #C069FF; }
:is(#vpln-topup, #vplnModal)[data-vm-tier="vpln-500"] { --m-hi: #FFFFFF; --m-mid: #BFE3F0; --m-lo: #3F6273; --m-glow: #74DAFF; }

#vpln-topup .vm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#vpln-topup .vm-sr,
#vpln-topup .tv6-denomination__copy small,
#vpln-topup .tv6-denomination__price small {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Header (showroom style) ───────────────────────────────────────────── */
#vpln-topup .vm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(8px, 2vw, 18px);
}
#vpln-topup .vm-head__copy { max-width: 620px; }
#vpln-topup .vm-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: rgba(245, 209, 111, 0.78);
  font: 800 0.62rem/1 var(--vm-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#vpln-topup .vm-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 209, 111, 0.8));
}
#vpln-topup .vm-title {
  margin: 0;
  color: var(--vm-cream);
  font: 500 clamp(2.5rem, 4.4vw, 3.7rem)/1.02 var(--vm-serif);
  letter-spacing: -0.045em;
}
#vpln-topup .vm-lead {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--vm-dim);
  font: 400 0.95rem/1.6 var(--vm-sans);
}
#vpln-topup .vm-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--vm-dim);
  font: 600 0.76rem/1.2 var(--vm-sans);
  white-space: nowrap;
}
#vpln-topup .vm-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E8920B;
  box-shadow: 0 0 0 3px rgba(232, 146, 11, 0.14);
}
#vpln-topup .vm-account[data-state="loading"] .vm-dot { animation: vmBlink 1.4s ease-in-out infinite; }
#vpln-topup .vm-account[data-state="ready"] { color: var(--vm-text); border-color: rgba(126, 224, 166, 0.22); }
#vpln-topup .vm-account[data-state="ready"] .vm-dot { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15), 0 0 10px rgba(74, 222, 128, 0.6); }

/* ── Stage: numeral · coin · price ─────────────────────────────────────── */
#vpln-topup .vm-stage {
  --coin: clamp(200px, 19vw, 256px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "amount mint pay" "scale scale scale";
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
}
#vpln-topup .vm-amount { grid-area: amount; justify-self: start; min-width: 0; }
#vpln-topup .vm-mint { grid-area: mint; }
#vpln-topup .vm-pay { grid-area: pay; justify-self: end; }
#vpln-topup .vm-scale { grid-area: scale; }

#vpln-topup .vm-amount > p { margin: 0; }
#vpln-topup .vm-amount__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font: 800 0.6rem/1 var(--vm-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#vpln-topup .vm-amount__badge { color: rgba(245, 209, 111, 0.85); }
#vpln-topup .vm-amount__badge::before { content: "·"; margin-right: 10px; color: rgba(255, 255, 255, 0.3); }
#vpln-topup .vm-amount__name {
  margin-top: 16px !important;
  color: var(--m-glow);
  font: 400 clamp(1.15rem, 1.7vw, 1.5rem)/1.2 var(--vm-serif);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#vpln-topup .vm-amount__name.is-swap { opacity: 0; transform: translateY(6px); }
#vpln-topup .vm-amount__value {
  margin-top: 4px !important;
  background: linear-gradient(180deg, #FFF8E2 8%, var(--m-glow) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--vm-cream);
  -webkit-text-fill-color: transparent;
  font: 900 clamp(6rem, 10.5vw, 9.8rem)/0.84 var(--vm-display);
  font-stretch: condensed;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
#vpln-topup .vm-amount__unit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 14px !important;
  font: 600 0.92rem/1.3 var(--vm-sans);
}
#vpln-topup .vm-amount__unit b { color: var(--vm-gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3em; }
#vpln-topup .vm-amount__bonus { color: var(--vm-green); }
#vpln-topup .vm-amount__bonus.is-plain { color: var(--vm-faint); }

/* the mint: halo, coin, shadow, strike */
#vpln-topup .vm-mint {
  position: relative;
  width: calc(var(--coin) * 1.7);
  height: calc(var(--coin) * 1.62);
  display: grid;
  place-items: center;
  perspective: 1100px;
  pointer-events: none;
}
#vpln-topup .vm-halo {
  position: absolute;
  left: 50%;
  top: 47%;
  width: calc(var(--coin) * 1.62);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--m-glow) 26%, transparent), color-mix(in oklab, var(--m-glow) 6%, transparent) 62%, transparent 72%);
}
#vpln-topup .vm-halo i {
  position: absolute;
  border-radius: 50%;
}
#vpln-topup .vm-halo i:nth-child(1) { inset: 9%; border: 1px solid color-mix(in oklab, var(--m-glow) 26%, transparent); }
#vpln-topup .vm-halo i:nth-child(2) {
  inset: 1%;
  border: 1px dashed color-mix(in oklab, var(--m-glow) 20%, transparent);
  animation: vmSpin 80s linear infinite;
}
#vpln-topup .vm-coin {
  --d: var(--coin);
  --t: calc(var(--coin) * 0.075);
  position: relative;
  width: var(--d);
  height: var(--d);
  margin-top: -6%;
  transform-style: preserve-3d;
}
#vpln-topup .vm-coin__float,
#vpln-topup .vm-coin__flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
#vpln-topup .vm-coin__float { animation: vmFloat 7s ease-in-out infinite; }
#vpln-topup .vm-coin__flip {
  transform: rotateY(var(--flip, 0deg));
  transition: transform 0.72s cubic-bezier(0.25, 1.28, 0.42, 1);
}
#vpln-topup.vm-js:not(.is-in) .vm-coin__flip { transition: none; }
#vpln-topup.is-in:not(.vm-settled) .vm-coin__flip { transition: transform 2s cubic-bezier(0.12, 0.8, 0.2, 1); }

#vpln-topup .vm-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--m-lo) 75%, black);
}
#vpln-topup .vm-face--a { transform: translateZ(calc(var(--t) / 2)); }
#vpln-topup .vm-face--b { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
:is(#vpln-topup, #vplnModal) .vm-face__art { display: block; width: 100%; height: 100%; overflow: visible; }

/* gradient stops follow the tier metal (stops live in the shared <defs>) */
#vpln-topup .vm-s-hi { stop-color: var(--m-hi); }
#vpln-topup .vm-s-hi2 { stop-color: color-mix(in oklab, var(--m-hi) 60%, var(--m-mid)); }
#vpln-topup .vm-s-mid { stop-color: var(--m-mid); }
#vpln-topup .vm-s-lo { stop-color: var(--m-lo); }
#vpln-topup .vm-s-deep { stop-color: color-mix(in oklab, var(--m-lo) 68%, black); }
#vpln-topup .vm-s-field1 { stop-color: color-mix(in oklab, var(--m-mid) 72%, var(--m-hi)); }
#vpln-topup .vm-s-field2 { stop-color: color-mix(in oklab, var(--m-mid) 50%, var(--m-lo)); }
#vpln-topup .vm-s-frost { stop-color: color-mix(in oklab, var(--m-hi) 68%, white); }

/* struck relief, lit from the top-left: shadow + highlight + frosted fill */
:is(#vpln-topup, #vplnModal) .vm-r-shadow { fill: color-mix(in oklab, var(--m-lo) 70%, black); transform: translate(0.75px, 0.95px); }
:is(#vpln-topup, #vplnModal) .vm-r-light { fill: color-mix(in oklab, var(--m-hi) 45%, white); opacity: 0.85; transform: translate(-0.45px, -0.55px); }
:is(#vpln-topup, #vplnModal) .vm-r-fill { fill: url(#vmRelief); }

/* environment reflection that slides as the coin turns (same rhythm as vmFloat) */
#vpln-topup .vm-face__glare {
  position: absolute;
  inset: -25%;
  background: radial-gradient(34% 22% at 50% 50%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 55%, transparent 72%);
  mix-blend-mode: overlay;
  transform: translate(20%, -10%) rotate(-28deg);
  animation: vmReflect 7s ease-in-out infinite;
  pointer-events: none;
}
/* mint shine: one bright sweep when a denomination is struck */
#vpln-topup .vm-face__shine {
  position: absolute;
  inset: -12%;
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.7) 50%, transparent 64%);
  mix-blend-mode: overlay;
  opacity: 0;
  transform: translateX(-95%);
  pointer-events: none;
}
#vpln-topup .vm-coin[data-shine="a"] .vm-face__shine { animation: vmShineA 0.95s cubic-bezier(0.3, 0.6, 0.3, 1); }
#vpln-topup .vm-coin[data-shine="b"] .vm-face__shine { animation: vmShineB 0.95s cubic-bezier(0.3, 0.6, 0.3, 1); }
/* reeded edge: 36 tangent strips around the rim */
#vpln-topup .vm-edge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
#vpln-topup .vm-edge i {
  --seg: calc(var(--d) * 3.14159 / 36 + 1.5px);
  position: absolute;
  left: calc(var(--t) / -2);
  top: calc(var(--seg) / -2);
  width: var(--t);
  height: var(--seg);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, var(--m-lo), var(--m-mid) 40%, var(--m-hi) 55%, var(--m-lo));
  transform: rotateZ(calc(var(--i) * 10deg)) translateX(calc(var(--d) / 2 - 1px)) rotateY(90deg);
  filter: brightness(calc(1 - 0.32 * sin(calc(var(--i) * 10deg))));
}

#vpln-topup .vm-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: calc(var(--coin) * 0.74);
  height: calc(var(--coin) * 0.11);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
  transform: translateX(-50%);
  animation: vmShadow 7s ease-in-out infinite;
}
#vpln-topup .vm-strike {
  position: absolute;
  left: 50%;
  top: 47%;
  width: var(--coin);
  height: var(--coin);
  transform: translate(-50%, -50%);
}
#vpln-topup .vm-strike i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--m-glow);
  border-radius: 50%;
  opacity: 0;
}
#vpln-topup .vm-strike b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--m-hi);
  box-shadow: 0 0 10px var(--m-glow);
  opacity: 0;
}
#vpln-topup .vm-strike b:nth-of-type(1) { --a: 8deg; }
#vpln-topup .vm-strike b:nth-of-type(2) { --a: 52deg; }
#vpln-topup .vm-strike b:nth-of-type(3) { --a: 97deg; }
#vpln-topup .vm-strike b:nth-of-type(4) { --a: 141deg; }
#vpln-topup .vm-strike b:nth-of-type(5) { --a: 188deg; }
#vpln-topup .vm-strike b:nth-of-type(6) { --a: 233deg; }
#vpln-topup .vm-strike b:nth-of-type(7) { --a: 279deg; }
#vpln-topup .vm-strike b:nth-of-type(8) { --a: 322deg; }
#vpln-topup .vm-strike[data-strike="a"] i { animation: vmShockA 0.85s cubic-bezier(0.2, 0.7, 0.3, 1); }
#vpln-topup .vm-strike[data-strike="b"] i { animation: vmShockB 0.85s cubic-bezier(0.2, 0.7, 0.3, 1); }
#vpln-topup .vm-strike[data-strike="a"] b { animation: vmSparkA 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }
#vpln-topup .vm-strike[data-strike="b"] b { animation: vmSparkB 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* price column */
#vpln-topup .vm-pay {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 320px);
  min-width: 0;
}
#vpln-topup .vm-pay > p { margin: 0; }
#vpln-topup .vm-pay__label {
  color: rgba(255, 255, 255, 0.5);
  font: 800 0.6rem/1 var(--vm-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#vpln-topup .vm-pay__value {
  margin-top: -4px !important;
  color: var(--m-glow);
  font: 500 clamp(2.3rem, 3.4vw, 3rem)/1 var(--vm-serif);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#vpln-topup .vm-pay__rate {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--vm-faint);
  font: 500 0.8rem/1.3 var(--vm-sans);
}
#vpln-topup .vm-save { color: var(--vm-green); }
#vpln-topup .vm-save:empty { display: none; }
#vpln-topup .vm-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-left: 2px solid #F87171;
  border-radius: 0 8px 8px 0;
  background: rgba(248, 113, 113, 0.07);
  color: #FFB4AA;
  font: 500 0.8rem/1.45 var(--vm-sans);
}
#vpln-topup .vm-status[hidden] { display: none; }
#vpln-topup .vm-status svg { flex: none; width: 17px; height: 17px; margin-top: 1px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#vpln-topup .vm-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 170, 0.68);
  border-radius: 10px;
  background: linear-gradient(145deg, #FFE078, #D89C20 64%, #F3C951);
  box-shadow: 0 15px 34px rgba(212, 150, 23, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.56);
  color: #161005;
  font: 800 0.76rem/1.2 var(--vm-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
#vpln-topup .vm-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
  pointer-events: none;
}
#vpln-topup .vm-cta:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(212, 150, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
#vpln-topup .vm-cta:not(:disabled):hover::before { transform: translateX(120%); }
#vpln-topup .vm-cta:not(:disabled):active { transform: translateY(0) scale(0.99); }
#vpln-topup .vm-cta:focus-visible { outline: 2px solid var(--vm-gold); outline-offset: 3px; }
#vpln-topup .vm-cta__arrow { flex: none; width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
#vpln-topup .vm-cta:not(:disabled):hover .vm-cta__arrow { transform: translateX(4px); }
#vpln-topup .vm-cta:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  color: var(--vm-dim);
  letter-spacing: 0.1em;
  cursor: not-allowed;
}
#vpln-topup .vm-cta:disabled .vm-cta__arrow { display: none; }
#vpln-topup .vm-cta[aria-busy="true"]::before { background: linear-gradient(110deg, transparent 32%, rgba(245, 208, 97, 0.14) 50%, transparent 68%); animation: vmSheen 1.6s ease-in-out infinite; }
#vpln-topup .vm-hint { color: var(--vm-faint); font: 400 0.78rem/1.5 var(--vm-sans); }
#vpln-topup .vm-hint strong { color: var(--vm-gold); font-weight: 700; }
#vpln-topup .vm-status:not([hidden]) ~ .vm-hint { display: none; }

/* ── Denomination scale ────────────────────────────────────────────────── */
#vpln-topup .vm-scale {
  position: relative;
  margin-top: clamp(8px, 1.6vw, 18px);
  padding-top: 8px;
}
#vpln-topup .vm-scale__track {
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 8px;
  height: 2px;
  border-radius: 2px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 2px, transparent 2.5px) 0 50% / 20% 6px repeat-x,
    rgba(255, 255, 255, 0.08);
}
#vpln-topup .vm-scale__track::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
#vpln-topup .vm-scale__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 60%);
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--m-glow) 20%, transparent), var(--m-glow));
  box-shadow: 0 0 12px color-mix(in oklab, var(--m-glow) 55%, transparent);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#vpln-topup .vm-scale__knob {
  position: absolute;
  left: var(--p, 60%);
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #0B0B11;
  border-radius: 50%;
  background: var(--m-hi);
  box-shadow: 0 0 0 1px var(--m-glow), 0 0 16px var(--m-glow);
  transform: translate(-50%, -50%);
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#vpln-topup .vm-scale__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
#vpln-topup .tv6-denomination {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 26px 4px 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#vpln-topup .tv6-denomination__seal {
  color: rgba(239, 236, 229, 0.34);
  font: 900 clamp(1.8rem, 2.6vw, 2.5rem)/1 var(--vm-display);
  font-stretch: condensed;
  letter-spacing: -0.03em;
  transform-origin: 50% 100%;
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 0.3s ease;
}
#vpln-topup .tv6-denomination__copy { display: block; min-height: 1.1em; line-height: 1; }
#vpln-topup .tv6-denomination__copy > strong { font-size: 0; line-height: 0; }
#vpln-topup .tv6-denomination__bonus { color: var(--vm-green); font: 700 0.72rem/1 var(--vm-sans); letter-spacing: 0.02em; opacity: 0.75; }
#vpln-topup .tv6-denomination__price { display: block; line-height: 1; }
#vpln-topup .tv6-denomination__price strong { color: var(--vm-faint); font: 500 0.74rem/1 var(--vm-sans); white-space: nowrap; }
#vpln-topup .tv6-denomination:hover .tv6-denomination__seal { color: rgba(239, 236, 229, 0.7); }
#vpln-topup .tv6-denomination[aria-checked="true"] .tv6-denomination__seal {
  color: var(--m-glow);
  text-shadow: 0 0 28px color-mix(in oklab, var(--m-glow) 55%, transparent);
  transform: scale(1.3);
}
#vpln-topup .tv6-denomination[aria-checked="true"] .tv6-denomination__bonus { opacity: 1; }
#vpln-topup .tv6-denomination[aria-checked="true"] .tv6-denomination__price strong { color: var(--vm-text); }
#vpln-topup .tv6-denomination:focus-visible { outline: 2px solid var(--vm-gold); outline-offset: -2px; }

#vpln-topup .vm-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: var(--vm-faint);
  font: 500 0.76rem/1.4 var(--vm-sans);
}
#vpln-topup .vm-trust i { margin-right: 6px; color: rgba(245, 209, 111, 0.8); font-size: 0.72rem; }

/* ── Entrance (adapter adds .vm-js, then .is-in on first view) ─────────── */
#vpln-topup.vm-js .vm-head,
#vpln-topup.vm-js .vm-amount,
#vpln-topup.vm-js .vm-pay,
#vpln-topup.vm-js .vm-scale,
#vpln-topup.vm-js .vm-trust,
#vpln-topup.vm-js .vm-halo {
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
#vpln-topup.vm-js:not(.is-in) .vm-head,
#vpln-topup.vm-js:not(.is-in) .vm-amount,
#vpln-topup.vm-js:not(.is-in) .vm-pay,
#vpln-topup.vm-js:not(.is-in) .vm-scale,
#vpln-topup.vm-js:not(.is-in) .vm-trust { opacity: 0; transform: translateY(22px); }
#vpln-topup.vm-js:not(.is-in) .vm-halo { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
#vpln-topup.vm-js .vm-amount { transition-delay: 0.25s; }
#vpln-topup.vm-js .vm-pay { transition-delay: 0.4s; }
#vpln-topup.vm-js .vm-scale { transition-delay: 0.55s; }
#vpln-topup.vm-js .vm-trust { transition-delay: 0.7s; }
#vpln-topup.vm-js:not(.is-in) .vm-coin { opacity: 0; }
#vpln-topup.vm-js .vm-coin { transition: opacity 0.6s ease 0.1s; }

/* ── Confirmation dialog ───────────────────────────────────────────────── */
body.tv6-dialog-open { overflow: hidden; }
#vplnModal.vm-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
#vplnModal.vm-modal-layer[hidden] { display: none !important; }
#vplnModal.vm-modal-layer.is-open { opacity: 1; }
#vplnModal .vm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#vplnModal .vm-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(760px, calc(100svh - 28px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px clamp(22px, 4vw, 32px) 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  outline: none;
  background:
    radial-gradient(90% 42% at 50% 0%, color-mix(in oklab, var(--m-glow) 16%, transparent), transparent 70%),
    #0E0E15;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--vm-text);
  font-family: var(--vm-sans);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
#vplnModal.is-open .vm-dialog { opacity: 1; transform: none; }
#vplnModal .vm-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--vm-dim);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
#vplnModal .vm-dialog__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--vm-cream); }
#vplnModal .vm-dialog__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#vplnModal .vm-dialog__coin {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 0 36px color-mix(in oklab, var(--m-glow) 45%, transparent), 0 12px 26px rgba(0, 0, 0, 0.55);
  animation: vmModalCoin 4s ease-in-out infinite;
}
#vplnModal .vm-dialog__kicker {
  margin: 0 0 6px;
  color: rgba(245, 209, 111, 0.78);
  font: 800 0.6rem/1 var(--vm-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#vplnModal .vm-dialog h2 {
  margin: 0 0 8px;
  color: var(--vm-cream);
  font: 500 1.7rem/1.1 var(--vm-serif);
  letter-spacing: -0.035em;
}
#vplnModal .vm-dialog__lead { max-width: 32ch; margin: 0 auto 22px; color: var(--vm-dim); font-size: 0.88rem; line-height: 1.55; }
#vplnModal .vm-dialog__list { margin: 0 0 18px; text-align: left; }
#vplnModal .vm-dialog__list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#vplnModal .vm-dialog__list dt { color: var(--vm-dim); font-size: 0.82rem; }
#vplnModal .vm-dialog__list dd { margin: 0; color: var(--vm-cream); font-weight: 700; font-size: 0.92rem; }
#vplnModal .vm-dialog__list .is-total dd { color: var(--m-glow); font: 500 1.35rem/1 var(--vm-serif); }
#vplnModal .vm-dialog__list .is-price { border-top-color: rgba(255, 255, 255, 0.12); }
#vplnModal .vm-dialog__list .is-price dd { font: 500 1.35rem/1 var(--vm-serif); }
#vplnModal .vm-dialog__nick { display: inline-flex; align-items: center; gap: 8px; }
#vplnModal .vm-dialog__nick i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
#vplnModal .vm-dialog__error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 2px solid #F87171;
  border-radius: 0 8px 8px 0;
  background: rgba(248, 113, 113, 0.08);
  color: #FFB4AA;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}
#vplnModal .vm-dialog__error[hidden] { display: none; }
#vplnModal .vm-dialog__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
#vplnModal .vm-dialog__ghost,
#vplnModal .vm-dialog__submit {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  font: 700 0.9rem/1.2 var(--vm-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
#vplnModal .vm-dialog__ghost { border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: var(--vm-text); }
#vplnModal .vm-dialog__ghost:hover { background: rgba(255, 255, 255, 0.05); }
#vplnModal .vm-dialog__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 235, 170, 0.7);
  background: linear-gradient(145deg, #FFE078, #D89C20 64%, #F3C951);
  box-shadow: 0 12px 30px rgba(212, 150, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #161005;
}
#vplnModal .vm-dialog__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(212, 150, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
#vplnModal .vm-dialog__close:focus-visible,
#vplnModal .vm-dialog__ghost:focus-visible,
#vplnModal .vm-dialog__submit:focus-visible { outline: 2px solid var(--vm-gold); outline-offset: 3px; }
#vplnModal .vm-dialog__actions button:disabled { cursor: progress; opacity: 0.6; transform: none; }
#vplnModal .vm-dialog__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(22, 16, 5, 0.25); border-top-color: #161005; border-radius: 50%; animation: vmSpin 0.8s linear infinite; }
#vplnModal #vplnSubmit[data-busy="true"] .vm-dialog__spinner { display: inline-block; }
#vplnModal .vm-dialog__fine { margin: 14px 0 0; color: var(--vm-faint); font-size: 0.74rem; line-height: 1.5; }

/* ── Payment notices (built by home-vpln-v6.js) ────────────────────────── */
.tv6-notice {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100300;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(245, 208, 97, 0.28);
  border-radius: 12px;
  background: rgba(15, 15, 22, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #E8E4DC;
  font: 500 0.88rem/1.5 'Chakra Petch', 'Rajdhani', Arial, sans-serif;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: vmToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tv6-notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #F5D061; }
.tv6-notice[data-type="success"] { border-color: rgba(74, 222, 128, 0.4); }
.tv6-notice[data-type="success"] svg { color: #4ADE80; }
.tv6-notice[data-type="error"] { border-color: rgba(248, 113, 113, 0.45); }
.tv6-notice[data-type="error"] svg { color: #F87171; }
.tv6-notice.is-leaving { opacity: 0; transform: translate(-50%, 8px); }

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes vmSpin { to { transform: rotate(360deg); } }
@keyframes vmFloat {
  0%, 100% { transform: translateY(0) rotateX(10deg) rotateY(-26deg); }
  50% { transform: translateY(-12px) rotateX(5deg) rotateY(26deg); }
}
@keyframes vmShadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.95; }
  50% { transform: translateX(-50%) scale(0.84); opacity: 0.62; }
}
@keyframes vmReflect { 0%, 100% { transform: translate(20%, -10%) rotate(-28deg); } 50% { transform: translate(-22%, 2%) rotate(-28deg); } }
@keyframes vmShineA { from { opacity: 1; transform: translateX(-95%); } to { opacity: 1; transform: translateX(95%); } }
@keyframes vmShineB { from { opacity: 1; transform: translateX(-95%); } to { opacity: 1; transform: translateX(95%); } }
@keyframes vmShockA { from { transform: scale(0.92); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes vmShockB { from { transform: scale(0.92); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes vmSparkA { from { transform: rotate(var(--a)) translateX(calc(var(--coin) * 0.48)); opacity: 1; } to { transform: rotate(var(--a)) translateX(calc(var(--coin) * 0.9)); opacity: 0; } }
@keyframes vmSparkB { from { transform: rotate(var(--a)) translateX(calc(var(--coin) * 0.48)); opacity: 1; } to { transform: rotate(var(--a)) translateX(calc(var(--coin) * 0.9)); opacity: 0; } }
@keyframes vmModalCoin { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes vmBlink { 50% { opacity: 0.35; } }
@keyframes vmSheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes vmToastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

#vpln-topup.tv6-paused *,
.tv6-page-hidden #vpln-topup * { animation-play-state: paused !important; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  #vpln-topup .vm-stage { --coin: clamp(180px, 18vw, 210px); }
  #vpln-topup .vm-amount__value { font-size: clamp(5rem, 9.5vw, 7rem); }
}
@media (max-width: 900px) {
  #vpln-topup .vm-head { flex-direction: column; align-items: flex-start; }
  #vpln-topup .vm-stage {
    --coin: clamp(170px, 46vw, 230px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mint" "amount" "scale" "pay";
    row-gap: 8px;
  }
  #vpln-topup .vm-mint { justify-self: center; height: calc(var(--coin) * 1.42); }
  #vpln-topup .vm-amount { justify-self: center; text-align: center; margin-top: -14px; }
  #vpln-topup .vm-amount__meta,
  #vpln-topup .vm-amount__unit { justify-content: center; }
  #vpln-topup .vm-pay { justify-self: stretch; width: 100%; max-width: 460px; margin: 18px auto 0; text-align: center; }
  #vpln-topup .vm-pay__rate { justify-content: center; }
}
@media (max-width: 600px) {
  #vpln-topup .vm-title { font-size: 2.3rem; }
  #vpln-topup .vm-lead { font-size: 0.9rem; }
  #vpln-topup .vm-amount__value { font-size: clamp(4.6rem, 26vw, 6rem); }
  #vpln-topup .tv6-denomination { padding-top: 22px; gap: 4px; }
  #vpln-topup .tv6-denomination__seal { font-size: 1.35rem; }
  #vpln-topup .tv6-denomination[aria-checked="true"] .tv6-denomination__seal { transform: scale(1.25); }
  #vpln-topup .tv6-denomination__price { display: none; }
  #vpln-topup .tv6-denomination__bonus { font-size: 0.64rem; }
  #vpln-topup .vm-trust { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
}
