/* ============================================================
   كانيوار — تنسيقات مكمّلة لـ Tailwind (حركات + تفاصيل)
   ============================================================ */

::selection {
  background: #dcfce7;
  color: #14532d;
}

html {
  scroll-behavior: smooth;
}

/* شريط تمرير أنيق */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4ade80;
}

/* ===== إخفاء شريط التمرير (للسلايدر) ===== */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ===== توهّج أبيض خلف نص البطل ليبقى مقروءاً فوق الصورة ===== */
.hero-text-glow {
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.85);
}

/* ===== حركة الظهور عند التمرير ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== حركات دخول قسم البطل ===== */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-rise {
  animation: rise 0.9s ease both;
}

.hero-rise-1 { animation-delay: 0.1s; }
.hero-rise-2 { animation-delay: 0.25s; }
.hero-rise-3 { animation-delay: 0.4s; }

/* توهج ناعم متحرك في خلفية البطل */
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.06); }
}

.blob {
  animation: floaty 9s ease-in-out infinite;
}

.blob-2 {
  animation-duration: 12s;
  animation-delay: 1.5s;
}

/* ===== نجوم التقييم (إدخال) ===== */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 16px;
  background: #f5f5f4;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.7rem;
  line-height: 1;
  color: #d6d3d1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f59e0b;
}

.star-rating label:hover {
  transform: scale(1.2);
}

/* ===== صندوق طرق الدفع ===== */

/* لمعة ضوئية تمر على الصندوق كل بضع ثوانٍ */
.pay-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.55) 52%,
    transparent 75%
  );
  transform: translateX(110%);
  animation: pay-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pay-shimmer {
  0% {
    transform: translateX(110%);
  }
  35%,
  100% {
    transform: translateX(-110%);
  }
}

/* حبوب طرق الدفع */
.pay-pill {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.pay-pill:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* نبضة نجاح النسخ */
#pay-copy.copied {
  background: linear-gradient(135deg, #16a34a, #15803d);
  animation: copy-pop 0.35s ease;
}

@keyframes copy-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== نبض زر واتساب ===== */
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
  animation: wa-pulse 2.4s infinite;
}

.wa-float:hover {
  animation: none;
}

/* ===== ترقيم الصفحات (يُستخدم في الموقع ولوحة التحكم) ===== */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-link {
  min-width: 42px;
  padding: 9px 16px;
  text-align: center;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
}

.page-link:hover:not(.disabled):not(.current) {
  border-color: #16a34a;
  color: #14532d;
  background: #f0fdf4;
}

.page-link.current {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: transparent;
  color: #ffffff;
}

.page-link.disabled {
  opacity: 0.45;
  cursor: default;
}

/* ===== تقليل الحركة لمن يفضّل ذلك ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
