/* حركات وتأثيرات — تعمل فقط إذا عمل JavaScript، وتحترم من يفضّل تقليل الحركة */
html.fx body { animation: pageIn .5s ease-out both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ظهور تدريجي عند التمرير */
html.fx .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
html.fx .rv.in { opacity: 1; transform: none; }

/* الصفحة الرئيسية: دخول متتابع */
html.fx .hero h1, html.fx .hero .lead, html.fx .hero .hero-actions, html.fx .hero .hero-more, html.fx .hero .eyebrow { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
html.fx .hero .eyebrow { animation-delay: .05s; }
html.fx .hero h1 { animation-delay: .15s; }
html.fx .hero .lead { animation-delay: .3s; }
html.fx .hero .hero-actions { animation-delay: .45s; }
html.fx .hero .hero-more { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.fx .hero-art { animation: pop 1s cubic-bezier(.2,.7,.2,1) .2s both, floaty 7s ease-in-out 1.2s infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); box-shadow: 0 0 5rem rgba(224,168,74,.16); } 50% { transform: translateY(-10px); box-shadow: 0 0 6.5rem rgba(224,168,74,.3); } }

/* عناوين الصفحات */
html.fx .page-head h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
html.fx .page-head p { animation: rise .7s cubic-bezier(.2,.7,.2,1) .12s both; }

/* الهيدر */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.site-header .brand img { transition: transform .5s; }
.site-header .brand:hover img { transform: rotate(-8deg) scale(1.08); }
.site-header nav a { position: relative; }

/* تفاعل عند المرور */
.row-link { transition: background .25s, padding .25s, transform .25s; }
.row-link:hover { transform: translateX(-4px); }
.row-link .go { transition: transform .25s; }
.row-link:hover .go { transform: translateX(-6px); }
.plan, .card, .faq { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.45); position: relative; z-index: 1; }
.card:hover { border-color: var(--amber); }
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224,168,74,.35); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.bundle img, .row-link img, .pd-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.row-link:hover img { transform: scale(1.05) rotate(-1.5deg); }
.faq summary { transition: color .2s; }

/* نافذة المنتج */
dialog[open] { animation: dlg .35s cubic-bezier(.2,.8,.2,1) both; }
dialog[open]::backdrop { animation: fade .35s ease-out both; }
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* القايمة المنسدلة وخطوات الدفع */
.cc ul:not([hidden]) { animation: dlg .2s ease-out both; }
html.fx .step, html.fx .amount, html.fx .card.dl { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
html.fx .step:nth-of-type(2) { animation-delay: .08s; } html.fx .step:nth-of-type(3) { animation-delay: .16s; } html.fx .step:nth-of-type(4) { animation-delay: .24s; }
.err:not(:empty) { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* زر واتساب العائم */
.wa-float, .quick a { transition: transform .25s; }
.wa-float:hover, .quick a:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html.fx body, html.fx .hero *, html.fx .page-head *, html.fx .hero-art, dialog[open], dialog[open]::backdrop, html.fx .step, html.fx .amount { animation: none !important; }
  html.fx .rv { opacity: 1; transform: none; transition: none; }
  .plan:hover, .row-link:hover, .btn-primary:hover { transform: none; }
}
