/* =========================================================
   fx.css — انیمیشن‌ها، هاورها و افکت‌ها
   (جدا از style.css تا ظاهر پایه ساده و قابل ویرایش بماند)
   ========================================================= */

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes shimmer-text { to { background-position: -300% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes marquee { to { transform: translateX(50%); } }
@keyframes ripple { from { transform: scale(0); opacity: .45; } to { transform: scale(1); opacity: 0; } }
@keyframes sel-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--g, #F33CC0) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes glow-breathe { 0%, 100% { opacity: .55; transform: translate(-50%, 0) scale(1); } 50% { opacity: .85; transform: translate(-50%, 0) scale(1.06); } }

/* ---------- ورود صفحه (هیرو) ---------- */
.enter { animation: rise .9s cubic-bezier(.22, .8, .24, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

/* ---------- متن گرادیانی متحرک ---------- */
.grad-text, .hero-title .line-1 {
  background-image: linear-gradient(90deg, #4349FF, #F33CC0, #9d7bff, #4349FF);
  background-size: 300% 100%;
  animation: shimmer-text 9s linear infinite;
}
.hero-title .line-1 { animation: shimmer-text 9s linear infinite, rise .9s cubic-bezier(.22, .8, .24, 1) backwards; animation-delay: 0s, 190ms; }

/* ---------- نوار پیشرفت اسکرول ---------- */
.scroll-progress { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, #F33CC0, #7950FF, #4349FF); box-shadow: 0 0 12px #F33CC0; }

/* ---------- هدر ---------- */
.site-header { transition: padding .35s cubic-bezier(.22, .8, .24, 1); }
.nav { transition: height .35s cubic-bezier(.22, .8, .24, 1), box-shadow .3s, background .3s, border-color .3s; }
.site-header.is-compact { padding-top: 10px; }
.site-header.is-compact .nav { height: 62px; background: rgba(14, 11, 22, .82); border-color: rgba(202, 198, 221, .16); }
.brand img { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }

.nav-links { position: relative; gap: clamp(.1rem, .7vw, .5rem); }
.nav-links a { z-index: 1; padding-inline: 10px; }
.nav-links a::after { display: none; }
.nav-ink {
  position: absolute; top: calc(50% - 17px); right: auto; left: 0; height: 34px; width: 0; opacity: 0;
  border-radius: 9px; background: rgba(202, 198, 221, .08); border: 1px solid rgba(202, 198, 221, .12);
  transition: transform .45s cubic-bezier(.22, .8, .24, 1), width .45s cubic-bezier(.22, .8, .24, 1), opacity .25s;
  pointer-events: none;
}
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::before { content: ""; position: absolute; bottom: -2px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); transform: translateX(-50%); box-shadow: 0 0 10px var(--magenta); }

/* ---------- دکمه‌ها: درخشش، براق شدن و موج ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 45%; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-120%) skewX(-20deg); pointer-events: none;
}
.btn:hover::before { transition: transform .75s cubic-bezier(.22, .8, .24, 1); transform: translateX(260%) skewX(-20deg); }
.btn-primary { background-image: linear-gradient(90deg, var(--pink), var(--indigo), var(--pink)); background-size: 200% 100%; background-position: 0 0; transition: transform .25s cubic-bezier(.22, .8, .24, 1), box-shadow .3s, background-position .6s; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 34px -10px rgba(181, 13, 97, .95), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.btn-ghost:hover, .btn-outline:hover { box-shadow: 0 10px 28px -14px rgba(121, 80, 255, .9); }
.btn-tg:hover { box-shadow: 0 12px 30px -10px var(--tg); }
.btn-arrow { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.22, .8, .24, 1); }
.btn:hover .btn-arrow { transform: translateX(-4px); }
.ripple { position: absolute; z-index: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: ripple .6s ease-out forwards; }

/* ---------- هیرو: مدار، پارالاکس، آسمان پرستاره ---------- */
.hero { overflow: hidden; }
.hero-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { animation: glow-breathe 8s ease-in-out infinite; }
.hero-stage { isolation: isolate; }
.hero-art-wrap { display: block; width: min(440px, 78%); margin-inline: auto; will-change: translate; }
.hero-art { width: 100%; }
.orbit {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 104%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(202, 198, 221, .14);
  animation: spin 60s linear infinite; pointer-events: none;
}
.orbit span { position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #F33CC0; box-shadow: 0 0 16px 3px rgba(243, 60, 192, .8); }
.orbit-2 { width: 78%; border-style: solid; border-color: rgba(121, 80, 255, .16); animation: spin-rev 38s linear infinite; }
.orbit-2 span { background: #7aa2ff; box-shadow: 0 0 14px 3px rgba(122, 162, 255, .8); width: 7px; height: 7px; top: -3.5px; left: calc(50% - 3.5px); }
.chip { transition: border-color .3s, box-shadow .3s, background .3s, scale .35s cubic-bezier(.34, 1.56, .64, 1); will-change: translate; }
.chip:hover { scale: 1.05; border-color: rgba(243, 60, 192, .45); background: rgba(24, 18, 38, .6); box-shadow: 0 16px 40px -18px rgba(243, 60, 192, .8); }
.chip img { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.chip:hover img { transform: rotate(-10deg) scale(1.1); }

/* ---------- نوار متحرک گیفت‌ها ---------- */
.ticker {
  position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: 14px; overflow: hidden;
  border-block: 1px solid rgba(202, 198, 221, .08);
  background: linear-gradient(90deg, rgba(67, 73, 255, .06), rgba(243, 60, 192, .06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; gap: 12px; padding-inline-end: 12px; }
.ticker-item {
  --g: #7950FF; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; flex-shrink: 0;
  border-radius: 40px; text-align: start; color: var(--text);
  background: rgba(14, 12, 21, .55); border: 1px solid rgba(202, 198, 221, .12);
  transition: transform .3s cubic-bezier(.22, .8, .24, 1), border-color .3s, box-shadow .3s;
}
.ticker-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g) 60%, transparent); box-shadow: 0 12px 26px -14px var(--g); }
.ticker-art { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: radial-gradient(circle, color-mix(in srgb, var(--g) 45%, transparent), transparent 72%); }
.ticker-art .gift-visual, .ticker-art img { width: 32px; height: 32px; }
.ticker-item b { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); line-height: 1.5; white-space: nowrap; }
.ticker-item small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ticker-item small svg { width: 11px; height: 11px; color: #FFC53D; }

/* ---------- نور دنبال‌کننده ماوس ---------- */
[data-spot], .gift-item label, .plan-option label, .star-pack label, .faq details, .chip { position: relative; isolation: isolate; }
[data-spot]::before, .gift-item label::before, .plan-option label::before, .star-pack label::before, .faq details::before, .chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(243, 60, 192, .13), rgba(121, 80, 255, .06) 40%, transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.is-lit::before { opacity: 1; }

/* ---------- کج شدن سه‌بعدی ---------- */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.22, .8, .24, 1), border-color .3s, box-shadow .35s; transform-style: preserve-3d; }
[data-tilt].is-tilting { transition: transform .12s linear, border-color .3s, box-shadow .35s; }
.price-card[data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); box-shadow: 0 30px 60px -30px rgba(121, 80, 255, .7); }
.step[data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.step-top img { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.step:hover .step-top img { transform: translateZ(30px) rotate(-8deg) scale(1.1); }
.step:hover { filter: drop-shadow(0 20px 30px rgba(121, 80, 255, .28)); }

/* کارت محبوب: حاشیه چرخان */
.price-card.is-featured {
  background: linear-gradient(rgba(16, 13, 26, .9), rgba(16, 13, 26, .9)) padding-box,
              conic-gradient(from var(--ang), #090EDB, #E73DC4, #9d7bff, #090EDB) border-box;
  animation: spin-ang 6s linear infinite;
}
.price-card .amount { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.price-card:hover .amount { transform: scale(1.06); }

/* ---------- فروشگاه ---------- */
.store-tabs.has-ink { position: relative; }
.tab-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; opacity: 0; border-radius: 9px;
  background: var(--grad-brand); box-shadow: 0 8px 22px -10px rgba(181, 13, 97, .9);
  transition: transform .5s cubic-bezier(.34, 1.3, .64, 1), width .5s cubic-bezier(.34, 1.3, .64, 1), opacity .2s;
}
.store-tab { position: relative; z-index: 1; overflow: hidden; }
.store-tabs.has-ink .store-tab[aria-selected="true"] { background: transparent; }
.store-tab img { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.store-tab:hover img, .store-tab[aria-selected="true"] img { transform: rotate(-10deg) scale(1.12); }

.plan-option label { transition: border-color .25s, background .25s, transform .3s cubic-bezier(.22, .8, .24, 1), box-shadow .3s; }
.plan-option label:hover { transform: translateX(-4px); }
.plan-option input:checked + label { box-shadow: 0 14px 34px -18px rgba(231, 61, 196, .8); }

.star-pack label { transition: border-color .2s, background .2s, transform .3s cubic-bezier(.22, .8, .24, 1), box-shadow .3s; }
.star-pack label:hover { box-shadow: 0 12px 28px -16px rgba(255, 197, 61, .6); }
.star-pack .star-count svg { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.star-pack label:hover .star-count svg, .star-pack input:checked + label .star-count svg { transform: rotate(144deg) scale(1.2); }

.gift-item label { transition: border-color .25s, transform .35s cubic-bezier(.22, .8, .24, 1), box-shadow .35s; }
.gift-item label:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -18px var(--g, #7950FF); border-color: color-mix(in srgb, var(--g, #7950FF) 55%, transparent); }
.gift-item label:hover .gift-visual { transform: scale(1.1) rotate(-4deg); }
.gift-item input:checked + label { animation: sel-pop .45s cubic-bezier(.22, .8, .24, 1), ring-pulse .9s ease-out; }
.gift-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.22, .8, .24, 1); pointer-events: none; }
.gift-item label:hover .gift-art::after { transform: translateX(120%); }
.gift-art { overflow: hidden; }

.filter-chip { position: relative; overflow: hidden; transition: color .2s, border-color .2s, background .2s, transform .25s; }
.filter-chip:hover { transform: translateY(-2px); }

#summary-total.bump { display: inline-block; animation: bump .45s cubic-bezier(.34, 1.56, .64, 1); }
.summary-art img { animation: bob 6s ease-in-out infinite; }

/* ---------- ویژگی‌ها ---------- */
.feature { transition: border-color .35s, transform .45s cubic-bezier(.22, .8, .24, 1), box-shadow .45s; }
.feature:hover { border-color: rgba(202, 198, 221, .24); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(121, 80, 255, .8); }
.feature-art { animation: bob 7s ease-in-out infinite; transition: filter .4s; }
.feature:nth-child(2) .feature-art { animation-delay: -2.3s; }
.feature:nth-child(3) .feature-art { animation-delay: -4.6s; }
.feature:hover .feature-art { filter: drop-shadow(0 24px 30px rgba(243, 60, 192, .35)); }
.feature-rail .dot { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.feature:hover .feature-rail .dot { transform: scale(1.15) rotate(180deg); }
.perks li { transition: color .2s, transform .25s; }
.perks li:hover { color: #fff; transform: translateX(-3px); }

/* ---------- سوالات و درباره ما ---------- */
.faq details { transition: border-color .25s, background .25s, transform .3s cubic-bezier(.22, .8, .24, 1); overflow: hidden; }
.faq details:hover { border-color: rgba(202, 198, 221, .24); }
.faq .answer { overflow: hidden; }
.about-tagline .brand-grad { background-size: 250% 100%; background-image: linear-gradient(90deg, #fefefe, #c51628, #F33CC0, #fefefe); animation: shimmer-text 8s linear infinite; }
.about-points li { transition: transform .3s cubic-bezier(.22, .8, .24, 1), border-color .3s, box-shadow .3s; }
.about-points li:hover { transform: translateY(-3px); border-color: rgba(243, 60, 192, .45); box-shadow: 0 12px 24px -14px rgba(243, 60, 192, .8); }

.label { position: relative; overflow: hidden; }
.label::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sheen 5s ease-in-out infinite; }

.footer-links a { position: relative; }
.footer-links a::after { content: ""; position: absolute; right: 0; bottom: -2px; height: 1px; width: 100%; background: var(--grad-label); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ---------- دکمه بازگشت به بالا ---------- */
.to-top {
  position: fixed; z-index: 70; inset-inline-end: 14px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(20, 16, 32, .8); border: 1px solid rgba(202, 198, 221, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, box-shadow .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(243, 60, 192, .6); box-shadow: 0 10px 26px -10px rgba(243, 60, 192, .9); }

/* ---------- نمایش پلکانی گروه کارت‌ها ---------- */
.stagger:not(.in-view) > * { opacity: 0; }
.stagger.in-view > * { animation: rise .75s cubic-bezier(.22, .8, .24, 1) backwards; }
.stagger.in-view > *:nth-child(2) { animation-delay: .09s; }
.stagger.in-view > *:nth-child(3) { animation-delay: .18s; }
.stagger.in-view > *:nth-child(4) { animation-delay: .27s; }
.stagger.in-view > *:nth-child(5) { animation-delay: .36s; }
.stagger.in-view > *:nth-child(6) { animation-delay: .45s; }
.stagger.in-view > *:nth-child(n+7) { animation-delay: .5s; }

/* ---------- موبایل و لمسی ---------- */
@media (hover: none) {
  .ticker-track { animation-duration: 40s; }
  .gift-item label:hover, .plan-option label:hover, .feature:hover { transform: none; }
}
@media (min-width: 768px) {
  .to-top { inset-inline-end: 20px; }
  .orbit { width: min(560px, 96%); }
  .orbit-2 { width: min(400px, 72%); }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  .enter, .grad-text, .hero-title .line-1, .orbit, .ticker-track, .feature-art, .summary-art img, .label::after, .price-card.is-featured, .hero::before { animation: none !important; }
  .stagger:not(.in-view) > * { opacity: 1; }
  .ticker { overflow-x: auto; }
}

/* نور کارت نباید حالت چسبان خلاصه سفارش را از بین ببرد */
.summary[data-spot] { position: relative; top: auto; }
@media (min-width: 1024px) { .summary[data-spot] { position: sticky; top: calc(var(--nav-h) + 36px); } }

/* ---------- بهینه‌سازی: توقف انیمیشن‌های خارج از دید یا تب پنهان ---------- */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }

/* ---------- دکمه‌های ورود / ثبت‌نام در نوبار ---------- */
.nav-actions .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-actions .btn-outline { background: linear-gradient(rgba(14, 12, 21, .85), rgba(14, 12, 21, .85)) padding-box, var(--grad-label) border-box; }
.nav-actions .btn-outline:hover { background: linear-gradient(rgba(58, 15, 211, .18), rgba(181, 13, 97, .18)) padding-box, var(--grad-label) border-box; }
.nav-actions .btn { border-radius: 10px; }
html { scroll-behavior: smooth; }
::selection { background: rgba(243, 60, 192, .35); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* دکمه‌های ورود/ثبت‌نام در نوبار (آیکون‌تنها زیر ۱۲۸۰px و کنار همبرگر) در layout.css مدیریت می‌شوند */

/* =========================================================
   نسخه‌ی جدید حرکت و دیزاین (مدرن‌تر، نرم‌تر)
   ========================================================= */
:root { --spring: cubic-bezier(.34, 1.4, .64, 1); --glide: cubic-bezier(.22, .8, .24, 1); }

/* ---------- نشانگر مایع منو ---------- */
.nav-ink {
  top: calc(50% - 18px); height: 36px; border-radius: 11px; z-index: 0;
  background: linear-gradient(135deg, rgba(243, 60, 192, .22), rgba(67, 73, 255, .24));
  border: 1px solid rgba(243, 60, 192, .38);
  box-shadow: 0 8px 26px -8px rgba(243, 60, 192, .65), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .3s, background .3s, border-color .3s, box-shadow .3s;
}
.nav-ink::after {
  content: ""; position: absolute; inset-inline: 22%; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff9ad9, #7aa2ff, transparent); filter: blur(.4px);
}
.nav-ink.is-hover { background: rgba(202, 198, 221, .09); border-color: rgba(202, 198, 221, .16); box-shadow: none; }
.nav-ink.is-hover::after { opacity: 0; }
.nav-links a.is-active::before { display: none; }
.nav-links a { transition: color .25s; }

/* ---------- آمدن هدر و صفحه ---------- */
@keyframes nav-drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.site-header .nav { animation: nav-drop .8s var(--glide) backwards; }
main { animation: page-in .7s var(--glide) .05s backwards; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s ease both vt-out; }
::view-transition-new(root) { animation: .35s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- منوی موبایل: باز شدن پلکانی ---------- */
@keyframes menu-item { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.mobile-menu.is-open > a, .mobile-menu.is-open .nav-actions { animation: menu-item .5s var(--glide) backwards; }
.mobile-menu.is-open > a:nth-child(1) { animation-delay: .04s; } .mobile-menu.is-open > a:nth-child(2) { animation-delay: .08s; }
.mobile-menu.is-open > a:nth-child(3) { animation-delay: .12s; } .mobile-menu.is-open > a:nth-child(4) { animation-delay: .16s; }
.mobile-menu.is-open > a:nth-child(5) { animation-delay: .2s; } .mobile-menu.is-open > a:nth-child(6) { animation-delay: .24s; }
.mobile-menu.is-open > a:nth-child(n+7), .mobile-menu.is-open .nav-actions { animation-delay: .28s; }
.nav-toggle { transition: border-color .25s, background .25s, transform .3s var(--spring); }
.nav-toggle:hover { border-color: rgba(243, 60, 192, .5); background: rgba(243, 60, 192, .08); }
.nav-toggle:active { transform: scale(.92); }

/* ---------- پس‌زمینه‌ی زنده (آرام و سبک) ---------- */
@keyframes aurora-a { 50% { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes aurora-b { 50% { transform: translate3d(-9vw, -5vh, 0) scale(1.1); } }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; width: 46vmax; height: 46vmax; border-radius: 50%;
  pointer-events: none; opacity: .2; will-change: transform;
}
body::before { top: -18vmax; right: -14vmax; background: radial-gradient(circle, var(--magenta, #F33CC0), transparent 68%); animation: aurora-a 22s ease-in-out infinite; }
body::after { bottom: -20vmax; left: -16vmax; background: radial-gradient(circle, var(--blue, #4349FF), transparent 68%); animation: aurora-b 26s ease-in-out infinite; }
html.tab-hidden body::before, html.tab-hidden body::after { animation-play-state: paused; }

/* ---------- نمایش هنگام اسکرول: محو + بزرگ‌نمایی + بلور ---------- */
.reveal-pending { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(6px); }
.reveal-in { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--glide), transform .8s var(--glide), filter .8s var(--glide); }
.stagger.in-view > * { animation-name: stagger-in; animation-duration: .8s; }
@keyframes stagger-in { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(5px); } }

/* ---------- عنوان بخش‌ها و برچسب‌ها ---------- */
.section-title { letter-spacing: -.01em; }
.label { position: relative; overflow: hidden; box-shadow: 0 8px 22px -12px rgba(243, 60, 192, .9); }
.label::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-130%); animation: sheen 5s ease-in-out infinite; }

/* ---------- کارت‌ها: لبه‌ی درخشان و بالا آمدن نرم ---------- */
.step, .feature, .price-card, .faq details, .gift-item label, .plan-option label, .star-pack label {
  transition: transform .45s var(--glide), box-shadow .45s var(--glide), border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(121, 80, 255, .75); }
.faq details:hover { border-color: rgba(243, 60, 192, .32); }
.faq summary { transition: color .25s; }
.faq details[open] summary { color: #fff; }

/* ---------- دکمه‌ها ---------- */
.btn { transition: transform .35s var(--spring), box-shadow .3s, background-position .6s, border-color .25s, opacity .2s; }
.btn:active { transform: scale(.96); }
.btn-primary { box-shadow: 0 10px 30px -12px rgba(181, 13, 97, .9), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.btn-primary:focus-visible, .btn-outline:focus-visible { outline-offset: 4px; }

/* ---------- ورودی‌ها: درخشش نرم هنگام فوکوس ---------- */
.input-wrap, .textarea-wrap textarea, .select-wrap select { transition: border-color .25s, box-shadow .3s, background .25s; }
.input-wrap:focus-within, .textarea-wrap textarea:focus { background: rgba(14, 11, 22, .8); box-shadow: 0 0 0 4px rgba(243, 60, 192, .13), 0 14px 34px -18px rgba(243, 60, 192, .7); }

/* ---------- نوار اسکرول و توست ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(202, 198, 221, .28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(202, 198, 221, .22); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(243, 60, 192, .55); }
.toast { transition: opacity .35s var(--glide), transform .5s var(--spring); }

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .label::after, .site-header .nav, main { animation: none !important; }
  .reveal-pending { filter: none; }
  @view-transition { navigation: none; }
}
