/* ============================================
   الأنماط العامة للمنصة - مولّد صفحات الهبوط
   RTL + Mobile First
   ============================================ */

:root {
  --brand-primary: #6d28d9;
  --brand-primary-dark: #5b21b6;
  --brand-accent: #f59e0b;
  --brand-success: #16a34a;
  --brand-danger: #dc2626;
  --brand-bg: #f8f7fc;
  --brand-text: #1f2130;
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--brand-bg);
  color: var(--brand-text);
  scroll-behavior: smooth;
}

/* شريط التمرير */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 8px; }

/* التدرجات المستخدمة في القوالب */
.gradient-brand {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #c026d3 100%);
}
.gradient-hero {
  background: linear-gradient(160deg, #4c1d95 0%, #6d28d9 45%, #9333ea 100%);
}
.gradient-cod {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #6d28d9, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* بطاقات */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(90, 40, 170, .08);
}

/* أزرار */
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  transition: all .2s ease;
}
.btn-primary:hover { background: var(--brand-primary-dark); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  border-radius: 12px;
  font-weight: 700;
  transition: all .2s ease;
  background: transparent;
}
.btn-outline:hover { background: var(--brand-primary); color: #fff; }

.btn-cod {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  transition: all .2s ease;
}
.btn-cod:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,.35); }

/* حقول الإدخال */
.input-field {
  border: 1.5px solid #e5e0f5;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color .2s;
  background: #fff;
}
.input-field:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}

/* شعار نجوم */
.stars { color: #f59e0b; letter-spacing: 2px; }

/* شارة "نشط" */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.1);
  color: var(--brand-success);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-live::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--brand-success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* شريط علوي جامد أثناء التمرير على صفحة الهبوط العامة */
.sticky-cta {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  z-index: 40;
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
}

/* تكبير الصور في المعرض */
.gallery-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color .2s;
}
.gallery-thumb.active { border-color: var(--brand-primary); }

/* شارة عداد المخزون / العرض المحدود */
.countdown-box {
  background: #fff1e6;
  border: 1px dashed #f59e0b;
  border-radius: 12px;
}

/* تنسيق سكرول أفقي للمعرض على الموبايل */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* حركة دخول بسيطة */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease forwards; }

/* تنسيق طباعة رقم الهاتف LTR داخل نص RTL */
.ltr-num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
