/* روش کار و خرید: بخش اسکرول‌محور (sticky). با اسکرول، مرحله‌ی بعد فعال می‌شود و صحنه‌ی متحرک آن نمایش داده می‌شود.
   فقط transform/opacity انیمیت می‌شود. بدون جاوااسکریپت یا با prefers-reduced-motion، فهرست ساده و باز نمایش داده می‌شود. */
.vj { --vj-top: 92px; }
.vj__sub { max-width: 640px; margin: 10px auto 0; }
.vj__track { margin-top: 40px; }
.vj__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }

/* ---------- فهرست مراحل ---------- */
.vj__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 6px; }
.vj__steps::before, .vj__steps::after { content: ""; position: absolute; inset-inline-start: 25px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; }
.vj__steps::before { background: rgba(255,255,255,.1); }
.vj__steps::after { background: linear-gradient(180deg, #a78bfa, #22d3ee); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 16px rgba(123,92,255,.7); }
.vj__step { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 10px 0; cursor: pointer; }
.vj__num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #a9a4c4; background: #12112a; border: 2px solid rgba(255,255,255,.14); position: relative; z-index: 2; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), color .3s, border-color .3s, box-shadow .3s, background .3s; }
.vj__step.is-done .vj__num { color: #fff; border-color: rgba(52,211,153,.7); background: rgba(52,211,153,.14); }
.vj__step.is-active .vj__num { color: #fff; transform: scale(1.14); border-color: #a78bfa; background: linear-gradient(135deg, #7b5cff, #22d3ee); box-shadow: 0 0 0 8px rgba(123,92,255,.18), 0 0 34px rgba(123,92,255,.6); }
.vj__body { display: grid; grid-template-rows: 0fr; opacity: .5; transition: grid-template-rows .45s cubic-bezier(.2,.9,.3,1), opacity .35s; }
.vj__body > div { overflow: hidden; min-height: 0; }
.vj__step h3 { font-size: 20px; font-weight: 800; color: #fff; margin: 0; padding-top: 11px; transition: color .3s; }
.vj__step:not(.is-active) h3 { color: #a9a4c4; }
.vj__main { min-width: 0; }
.vj__step.is-active .vj__body { grid-template-rows: 1fr; opacity: 1; }
.vj__step .vj__time, .vj__step p, .vj__step .vj__list, .vj__step .vj__cta { opacity: 0; transform: translateY(10px); transition: opacity .4s .12s, transform .4s .12s; }
.vj__step.is-active .vj__time, .vj__step.is-active p, .vj__step.is-active .vj__list, .vj__step.is-active .vj__cta { opacity: 1; transform: none; }
.vj__time { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 700; color: #7ee2b8; background: rgba(52,211,153,.12); padding: 3px 12px; border-radius: 99px; margin-top: 4px; }
.vj__step p { color: var(--vp-mute, #a9a4c4); font-size: 15.5px; line-height: 2; margin: 10px 0 8px; }
.vj__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.vj__list li { position: relative; padding-inline-start: 26px; color: #d8d4ee; font-size: 14.5px; line-height: 1.8; }
.vj__list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .5em; width: 12px; height: 7px; border-inline-start: 2.5px solid #7ee2b8; border-bottom: 2.5px solid #7ee2b8; transform: rotate(-45deg); }
.vj__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: #fff !important; padding: 10px 18px; border-radius: 12px; background: linear-gradient(135deg, #7b5cff, #6696ff); box-shadow: 0 10px 26px rgba(123,92,255,.35); text-decoration: none; transition: transform .2s; }
.vj__cta:hover { transform: translateY(-2px); }
.vj__step:not(.is-active):hover .vj__num { border-color: rgba(167,139,250,.6); color: #fff; }

/* ---------- صحنه‌ها ---------- */
.vj__scenes { position: relative; height: min(520px, 62vh); }
.vj__scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.3,1); pointer-events: none; }
.vj__scene.is-on { opacity: 1; transform: none; }
.vj__scenes::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, rgba(123,92,255,.32), transparent 70%); filter: blur(24px); animation: vj-glow 6s ease-in-out infinite alternate; }
@keyframes vj-glow { to { transform: scale(1.08); opacity: .7; } }
.sc { position: relative; width: min(430px, 100%); border-radius: 24px; background: linear-gradient(160deg, #1a1838, #0e0d20); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.55); padding: 16px 18px 20px; display: grid; gap: 12px; }
.sc__bar { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sc__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3a63; } .sc__bar i:nth-child(1) { background: #f87171; } .sc__bar i:nth-child(2) { background: #fbbf24; } .sc__bar i:nth-child(3) { background: #34d399; }
.sc__bar b { margin-inline-start: auto; font-size: 12px; color: #8f8aab; font-weight: 600; direction: ltr; }
.sc__chip { display: flex; align-items: center; gap: 9px; justify-self: start; padding: 8px 14px; border-radius: 12px; background: rgba(123,92,255,.18); color: #cfc5fc; font-size: 13.5px; font-weight: 700; }
.sc__chip--ok { background: rgba(52,211,153,.16); color: #86efc5; }
.is-on .sc__chip { animation: vj-pop .6s .9s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes vj-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }

/* ۱ */
.sc__pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; padding: 6px 0; }
.pk { position: relative; text-align: center; padding: 14px 6px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 1px; }
.pk small { color: #a9a4c4; font-size: 12.5px; } .pk b { color: #fff; font-size: 26px; font-weight: 900; line-height: 1.2; } .pk span { color: #8f8aab; font-size: 11.5px; }
.pk--hot { padding: 22px 6px; background: linear-gradient(160deg, rgba(123,92,255,.5), rgba(34,211,238,.25)); border-color: #a78bfa; box-shadow: 0 0 30px rgba(123,92,255,.5); }
.pk--hot em { position: absolute; top: -10px; inset-inline: 0; margin-inline: auto; width: max-content; background: #fbbf24; color: #3b2300; font-size: 11px; font-weight: 800; font-style: normal; padding: 1px 10px; border-radius: 99px; }
.pk--hot i { position: absolute; bottom: -9px; inset-inline: 0; margin-inline: auto; width: max-content; color: #34d399; background: #0e0d20; border-radius: 50%; font-size: 18px; }
.is-on .pk { animation: vj-rise .6s both; } .is-on .pk:nth-child(1) { animation-delay: .05s; } .is-on .pk:nth-child(2) { animation-delay: .18s; } .is-on .pk:nth-child(3) { animation-delay: .3s; }
.is-on .pk--hot i { animation: vj-pop .5s .8s both; }
@keyframes vj-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ۲ */
.sc__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.04); }
.sc__row b { display: block; color: #fff; font-size: 14px; } .sc__row small { color: #8f8aab; font-size: 12px; } .sc__row em { color: #7ee2b8; font-style: normal; font-weight: 800; font-size: 14px; }
.sc__img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #7b5cff, #22d3ee); } .sc__img--b { background: linear-gradient(135deg, #db2777, #8b5cf6); }
.is-on .sc__row { animation: vj-rise .5s both; } .is-on .sc__row:nth-of-type(2) { animation-delay: .12s; }
.sc__sum { display: flex; justify-content: space-between; color: #a9a4c4; font-size: 13.5px; padding: 0 4px; } .sc__sum b { color: #34d399; }
.sc__pay { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 14px; background: #2a2850; color: #fff; font-weight: 800; }
.sc__pf { position: absolute; inset: 0; background: linear-gradient(90deg, #10b981, #34d399); transform-origin: right; transform: scaleX(0); }
.sc__pay b, .sc__pay i { position: relative; } .sc__pay i { display: none; }
.is-on .sc__pf { animation: vj-fill 1.1s .45s cubic-bezier(.4,0,.2,1) forwards; } .is-on .sc__pay i { display: inline; animation: vj-pop .4s 1.5s both; }
@keyframes vj-fill { to { transform: scaleX(1); } }

/* ۳ */
.wf { position: relative; height: 190px; border-radius: 16px; background: rgba(255,255,255,.04); overflow: hidden; }
.wf span { position: absolute; border-radius: 10px; background: rgba(255,255,255,.1); }
.wf__hero { inset: 12px 12px auto 12px; height: 70px; background: linear-gradient(135deg, rgba(123,92,255,.6), rgba(34,211,238,.35)) !important; }
.wf__a { right: 12px; top: 96px; width: 30%; height: 50px; } .wf__b { right: 36%; top: 96px; width: 30%; height: 50px; } .wf__c { left: 12px; top: 96px; width: 28%; height: 50px; }
.wf__l1 { right: 12px; bottom: 16px; width: 62%; height: 8px; border-radius: 6px; } .wf__l2 { right: 12px; bottom: 32px; width: 44%; height: 8px; border-radius: 6px; }
.is-on .wf span { animation: vj-slide .6s both; } .is-on .wf__a { animation-delay: .2s; } .is-on .wf__b { animation-delay: .32s; } .is-on .wf__c { animation-delay: .44s; } .is-on .wf__l1 { animation-delay: .56s; } .is-on .wf__l2 { animation-delay: .66s; }
@keyframes vj-slide { from { opacity: 0; transform: translateX(26px) scale(.9); } to { opacity: 1; transform: none; } }
.sc__pal { display: flex; gap: 8px; } .sc__pal i { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 3px #0e0d20, 0 0 0 4px rgba(255,255,255,.2); }
.is-on .sc__pal i { animation: vj-pop .45s both; } .is-on .sc__pal i:nth-child(2) { animation-delay: .1s; } .is-on .sc__pal i:nth-child(3) { animation-delay: .2s; } .is-on .sc__pal i:nth-child(4) { animation-delay: .3s; }

/* ۴ */
.md { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.md span { display: grid; gap: 6px; justify-items: center; padding: 14px 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: #d8d4ee; font-size: 12.5px; font-weight: 700; }
.md i { font-size: 18px; color: #8f8aab; transition: color .3s; }
.is-on .md span { animation: vj-light .7s both; } .is-on .md span:nth-child(1) { animation-delay: .1s; } .is-on .md span:nth-child(2) { animation-delay: .22s; } .is-on .md span:nth-child(3) { animation-delay: .34s; } .is-on .md span:nth-child(4) { animation-delay: .46s; } .is-on .md span:nth-child(5) { animation-delay: .58s; } .is-on .md span:nth-child(6) { animation-delay: .7s; }
@keyframes vj-light { 0% { opacity: .3; transform: translateY(10px); } 60% { opacity: 1; transform: none; border-color: #a78bfa; background: rgba(123,92,255,.28); } 100% { opacity: 1; transform: none; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); } }
.seo { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 4px 14px; }
.seo svg { grid-row: 1 / 3; width: 64px; height: 64px; transform: rotate(-90deg); } .seo__bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 7; } .seo__fg { fill: none; stroke: #34d399; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-on .seo__fg { animation: vj-ring 1.4s .6s cubic-bezier(.3,.7,.2,1) forwards; } @keyframes vj-ring { to { stroke-dashoffset: 6; } }
.seo b { color: #fff; font-size: 24px; font-weight: 900; line-height: 1; align-self: end; } .seo small { color: #8f8aab; font-size: 12.5px; align-self: start; }

/* ۵ */
.ch { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.04); }
.ch span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #34d399, #22d3ee); transform-origin: bottom; }
.is-on .ch span { animation: vj-grow .9s both cubic-bezier(.2,.9,.3,1); } .is-on .ch span:nth-child(2) { animation-delay: .08s; } .is-on .ch span:nth-child(3) { animation-delay: .16s; } .is-on .ch span:nth-child(4) { animation-delay: .24s; } .is-on .ch span:nth-child(5) { animation-delay: .32s; } .is-on .ch span:nth-child(6) { animation-delay: .4s; }
@keyframes vj-grow { from { transform: scaleY(.05); opacity: .4; } to { transform: none; opacity: 1; } }
.sc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sc__stats div { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); text-align: center; } .sc__stats b { display: block; color: #fff; font-size: 17px; } .sc__stats small { color: #8f8aab; font-size: 12px; }

.vj__dots { display: none; }

/* ---------- حالت اسکرول‌محور (با JS) ---------- */
.vj--on .vj__track { height: calc(var(--n) * 78vh); }
.vj--on .vj__stage { position: sticky; top: var(--vj-top); height: calc(100vh - var(--vj-top) - 24px); min-height: 520px; }
@supports (height: 100svh) { .vj--on .vj__stage { height: calc(100svh - var(--vj-top) - 24px); } }

/* بدون JS یا کاهش حرکت: همه‌ی مراحل باز */
.vj:not(.vj--on) .vj__body { grid-template-rows: 1fr; opacity: 1; }
.vj:not(.vj--on) .vj__step .vj__time, .vj:not(.vj--on) .vj__step p, .vj:not(.vj--on) .vj__step .vj__list, .vj:not(.vj--on) .vj__step .vj__cta { opacity: 1; transform: none; }
.vj:not(.vj--on) .vj__scenes { display: none; }
.vj:not(.vj--on) .vj__stage { grid-template-columns: 1fr; }

/* ---------- موبایل ---------- */
@media (max-width: 860px) {
  .vj { --vj-top: 76px; }
  .vj--on .vj__track { height: calc(var(--n) * 70vh); }
  .vj__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
  .vj__scenes { order: -1; height: clamp(250px, 38svh, 310px); }
  .sc { transform-origin: top center; width: 124%; max-width: none; margin-inline: -12%; transform: scale(.806); padding: 12px 14px 14px; gap: 9px; }
  .vj__stage { align-content: center; }
  .vj__step.is-active .vj__num { transform: none; }
  .wf { height: 130px; } .ch { height: 100px; } .pk b { font-size: 21px; } .pk--hot { padding: 16px 6px; }
  .vj__steps::before, .vj__steps::after { display: none; }
  .vj--on .vj__step:not(.is-active) { display: none; }
  .vj__step { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 0; cursor: default; }
  .vj__num { width: 46px; height: 46px; font-size: 17px; }
  .vj__step h3 { font-size: 18px; padding-top: 8px; }
  .vj__step p { font-size: 14.5px; line-height: 1.9; margin: 8px 0 6px; }
  .vj__list li { font-size: 13.5px; }
  .vj--on .vj__body { opacity: 1; }
  .vj--on .vj__dots { display: flex; justify-content: center; gap: 9px; }
  .vj__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .3s, background .3s; }
  .vj__dots button.is-on { width: 30px; background: linear-gradient(90deg, #a78bfa, #22d3ee); }
  .vj--on .vj__stage { min-height: 0; }
}
@media (max-width: 380px) { .vj__scenes { height: 240px; } .sc__chip { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) {
  .vj__scene, .vj__body, .vj__num, .vj__step p, .vj__list, .vj__time, .vj__cta { transition: none !important; }
  .vj__scenes::before, .is-on .pk, .is-on .sc__row, .is-on .wf span, .is-on .md span, .is-on .ch span, .is-on .sc__chip, .is-on .sc__pal i, .is-on .pk--hot i { animation: none !important; }
  .is-on .sc__pf { animation: none !important; transform: scaleX(1); } .is-on .sc__pay i { display: inline; animation: none !important; } .is-on .seo__fg { animation: none !important; stroke-dashoffset: 6; }
}
