/* ═══════════════════════════════════════════════════════════
   تدلل — ستايل مخصص
   كل شي غير موجود بـ Tailwind: التدرجات الذهبية، إطار الـQR،
   وحركات الظهور عند التمرير.
   ═══════════════════════════════════════════════════════════ */

::selection { background: rgba(201, 162, 39, .3); }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

*:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0A0908; }
::-webkit-scrollbar-thumb { background: #3A342C; border-radius: 99px; }

/* ── التدرجات الذهبية ── */
.bg-gold-fill {
  background: linear-gradient(135deg, #F0D48A 0%, #C9A227 45%, #9C7B18 100%);
}
.bg-gold-line {
  background: linear-gradient(90deg, transparent, #C9A227, transparent);
}
.gold-text {
  background: linear-gradient(135deg, #F0D48A 0%, #C9A227 45%, #9C7B18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hairline {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #C9A227, transparent);
  opacity: .4;
}

/* ── العنصر المميز: زوايا كود QR ── */
.qr-frame { position: relative; }
.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(201, 162, 39, .7);
  pointer-events: none;
  z-index: 2;
}
.qr-frame::before {
  top: -1px; right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-top-right-radius: 3px;
}
.qr-frame::after {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-bottom-left-radius: 3px;
}

/* ── خط المسح فوق كود الـQR ── */
.scan-line {
  background: linear-gradient(to bottom, transparent, rgba(201,162,39,.5), transparent);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(-100%); opacity: 0; }
  50%      { transform: translateY(100%);  opacity: 1; }
}

/* ── ظهور ناعم عند التمرير ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── ظهور عناصر الواجهة الرئيسية عند التحميل ── */
.hero-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ── مكوّنات متكررة ── */
.nav-link {
  position: relative;
  font-size: .875rem;
  color: rgba(251, 249, 245, .7);
  transition: color .3s;
}
.nav-link:hover { color: #FBF9F5; }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px; right: 0;
  height: 1px; width: 0;
  background: #C9A227;
  transition: width .3s;
}
.nav-link:hover::after { width: 100%; }

.trust-box {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(251,249,245,.08);
  background: rgba(27,24,21,.6);
  padding: 1.5rem;
  transition: transform .5s, border-color .5s, box-shadow .5s;
}
.trust-box:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,.35);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.8);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: .75rem;
  border: 1px solid rgba(201,162,39,.25);
  background: rgba(201,162,39,.08);
  color: #C9A227;
}
.trust-body {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(251,249,245,.55);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 99px;
  border: 1px solid rgba(201,162,39,.4);
  background: #0A0908;
  font-family: "Reem Kufi", serif;
  font-size: 1.25rem;
  color: #C9A227;
  box-shadow: 0 12px 40px -12px rgba(201,162,39,.45);
}

/* ── منع التمرير خلف القوائم المفتوحة ── */
body.no-scroll { overflow: hidden; }

/* ── احترام إعداد تقليل الحركة ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-in { opacity: 1; transform: none; }
}

/* ── الطباعة ── */
@media print {
  #wa-fab, #announcement, #site-header, #lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
