/*
 * ═══════════════════════════════════════════════════════════════
 *  ZovoPay — Internal Pages 2026 · نظام الصفحات الداخليّة
 *  كل قاعدة منطَّقة تحت .zi — صفر تسرّب لبقيّة الموقع
 *  مرايا موثوق لـ .zl — النطاق .zi بدلًا من .zl
 *  الباليتة: كحليّ + فضّيّ فاتح (jewelry + light silver)
 * ═══════════════════════════════════════════════════════════════
 */

/* ── متغيّرات الألوان (tokens — مُعاد الإعلان في .zi) ── */
:root {
  --zi-deep:   #061228;
  --zi-dark:   #0d1b3e;
  --zi-navy:   #1b2e5f;
  --zi-bright: #2d5299;
  --zi-accent: #3b6fd4;
  --zi-pA:     #F4F6F9;
  --zi-pB:     #E8ECF2;
  --zi-ink:    #0F172A;
  --zi-body:   #334155;
  --zi-muted:  #5b6b8c;
  --zi-s1:     #C9D1DA;
  --zi-s2:     #AEB8C4;
  --zi-line:   #e6e9ee;
  --zi-ok:     #16a34a;
  --zi-warn:   #D97706;
  --zi-err:    #dc2626;
}

/* ── @keyframes — نطاق zi (آمنة عامّة، لا تصادم مع zl-*) ── */
@keyframes zi-shn   { 0%{transform:translateX(-160%)} 55%,100%{transform:translateX(300%)} }
@keyframes zi-tw    { 0%,100%{opacity:.2;transform:scale(.8)} 50%{opacity:1;transform:scale(1.3)} }
@keyframes zi-flo   { 0%{transform:translateY(0)} 100%{transform:translateY(-14px)} }
@keyframes zi-drift { to{transform:translate(28px,22px) scale(1.1)} }

/* ── prefers-reduced-motion — مقيّد بـ .zi (لا global kill-switch) ── */
@media (prefers-reduced-motion: reduce) {
  .zi * { animation: none !important; }
}

/* ── إعادة ضبط داخل .zi ── */
.zi *, .zi *::before, .zi *::after { box-sizing: border-box; }

/*
  خلفيّة أساس بيضاء: body القديم له خلفيّة داكنة (rgb(3,12,26)) من الثيم القديم.
  الأقسام العاديّة (.zi-sec بلا navy/pearl/dark) كانت تكشف الداكنة → عناوين --zi-ink تختفي.
  هذا السطر يعيد ضبط اللوحة البيضاء؛ أقسام navy/pearl/dark لها خلفيّاتها فتتجاوزه.
*/
.zi {
  background: #fff;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  color: var(--zi-ink);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   UTILITIES داخل .zi
══════════════════════════════════════════ */

.zi .zi-wrap    { max-width: 1140px; margin: 0 auto; padding-inline: 24px; }
.zi .zi-sec     { padding-block: 70px; }
.zi .zi-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--zi-accent); }
.zi .zi-h2      { font-size: 34px; font-weight: 900; color: var(--zi-ink); line-height: 1.25; }
.zi .zi-center  { text-align: center; }
.zi .zi-muted   { color: var(--zi-muted); }

/* تدرّج نصّيّ — navy→accent (للنص الداكن على خلفيّة فاتحة) */
.zi .zi-grad    {
  background: linear-gradient(135deg, var(--zi-navy), var(--zi-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* تدرّج نصّيّ — دخيل فاتح (للنص على خلفيّة داكنة) */
.zi .zi-gradd   {
  background: linear-gradient(135deg, #dbe7ff, #9cc0ff 50%, var(--zi-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── أزرار ── */
.zi .zi-btn   {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  transition: box-shadow .2s, transform .15s;
}
.zi .zi-btn:hover { transform: translateY(-2px); }

/* زرّ أساسيّ — كحليّ متدرّج */
.zi .zi-btn-p {
  background: linear-gradient(135deg, var(--zi-deep), var(--zi-accent));
  color: #fff;
  box-shadow: 0 12px 30px rgba(59,111,212,.36);
}

/* زرّ أبيض — على خلفيّات داكنة */
.zi .zi-btn-w {
  background: #fff;
  color: var(--zi-navy);
  box-shadow: 0 12px 30px rgba(59,111,212,.18);
}

/* زرّ outline — على خلفيّات داكنة */
.zi .zi-btn-o {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

/* وميض لامع على الأزرار */
.zi .zi-shn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: zi-shn 4.5s ease-in-out infinite;
}

/* ── بلاطة أيقونة ── */
.zi .zi-tile {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--zi-navy), var(--zi-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(27,46,95,.28);
  border: 1px solid rgba(255,255,255,.14);
  flex-shrink: 0;
}
.zi .zi-tile i { color: #fff; font-size: 24px; }

/* ── بطاقة عامّة ── */
.zi .zi-card {
  background: #fff;
  border: 1px solid var(--zi-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

/* ── بطاقة ميزات — مع hover ── */
.zi .zi-fcard {
  background: #fff;
  border: 1px solid var(--zi-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  transition: transform .2s, box-shadow .2s;
}
.zi .zi-fcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,23,42,.09); }

/* ── خط علوي متدرّج (مجوهرات فضّيّة) ── */
.zi .zi-hair {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--zi-s1), var(--zi-s2), transparent);
}

/* ── خلفيّات الأقسام ── */

/* خلفيّة كحليّة (navy band) */
.zi .zi-navy-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--zi-deep), var(--zi-dark) 55%, var(--zi-navy));
  color: #fff;
}

/* خلفيّة لؤلؤيّة فاتحة */
.zi .zi-pearl-bg { background: linear-gradient(180deg, var(--zi-pA), var(--zi-pB)); }

/* خلفيّة كحليّة عميقة (deep navy — ليست سوداء) */
.zi .zi-dark-bg { background: var(--zi-dark); }

/* ── حبّة بيضاء (eyebrow على خلفيّات داكنة) ── */
.zi .zi-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
  color: #dbe7ff;
}

/* ── صفوف وشبكات ── */
.zi .zi-row  { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.zi .zi-grid { display: grid; gap: 16px; }

/* ── نقطة مباشر (دائرة خضراء) ── */
.zi .zi-dotlive {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
}

/* ── نجمة متلألئة ── */
.zi .zi-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #dbe7ff;
  animation: zi-tw 3s ease-in-out infinite;
}

/* ── نقطة حيّة ── */
.zi .zi-bul  { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-top: 12px; }
.zi .zi-bic  { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── شارة badge صغيرة ── */
.zi .zi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--zi-line);
  border-radius: 30px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--zi-navy);
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.zi .zi-chip i { color: var(--zi-accent); font-size: 18px; }

/* ── صفّ مقارنة ── */
.zi .zi-crow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #eef1f5;
  font-size: 14px;
}

/* ── أكورديون FAQ ── */
.zi .zi-faq          { background: #fff; border: 1px solid var(--zi-line); border-radius: 14px; margin-top: 12px; overflow: hidden; }
.zi .zi-faq .zi-fq   { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; cursor: pointer; font-size: 15px; font-weight: 800; user-select: none; }
.zi .zi-faq .zi-fa   { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 20px; color: var(--zi-muted); font-size: 14px; line-height: 1.85; }
.zi .zi-faq.zi-open .zi-fa  { max-height: 220px; padding: 0 20px 17px; }
.zi .zi-faq.zi-open .zi-fq i { transform: rotate(45deg); }
.zi .zi-faq .zi-fq i { transition: transform .3s; color: var(--zi-accent); }

/* ── إحصائيّات ── */
.zi .zi-stat-n { font-size: 30px; font-weight: 900; color: #fff; }
.zi .zi-stat-l { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── أفاتار (أوّليّة الاسم) ── */
.zi .zi-av {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--zi-navy), var(--zi-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.zi .zi-stars { color: #f5b301; font-size: 15px; letter-spacing: 2px; }

/* ══════════════════════════════════════════
   PAGE-HEADER BAND — رأس الصفحة الداخليّة
══════════════════════════════════════════ */

/*
  .zi-phead: شريط عنوان صفحة مضغوط بتدرّج كحليّ عميق.
  يُستخدَم بدلًا من hero الهبوط الكامل — أقصر، أكثر تركيزًا.
*/
.zi .zi-phead {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 0%, var(--zi-navy) 0%, var(--zi-dark) 52%, var(--zi-deep) 100%);
  padding-block: 56px 64px;
  color: #fff;
}

/* كانفاس الجسيمات يجلس خلف المحتوى */
.zi .zi-phead canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* كرة ضبابيّة ناعمة (orb) */
.zi .zi-aur {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* تراكب شبكة blueprint خفيف */
.zi .zi-grid-ov {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155,192,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,192,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  pointer-events: none;
}

/* عنوان الصفحة */
.zi .zi-phead h1 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-block: 14px 0;
}

/* مسار التنقّل (breadcrumb) */
.zi .zi-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  flex-wrap: wrap;
  margin-block-end: 14px;
}
.zi .zi-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.zi .zi-breadcrumb a:hover { color: #fff; }
.zi .zi-breadcrumb i { font-size: 14px; color: rgba(255,255,255,.35); }

/* نصّ مساعد أسفل العنوان */
.zi .zi-sub {
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  margin-block-start: 14px;
  max-width: 560px;
}

/* محتوى الرأس — relative فوق canvas */
.zi .zi-phead-in {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════
   Responsive
══════════════════════════════════════════ */
@media (max-width: 760px) {
  .zi .zi-phead       { padding-block: 38px 46px; }
  .zi .zi-phead h1    { font-size: 30px; }
  .zi .zi-h2          { font-size: 27px; }
  .zi .zi-sec         { padding-block: 50px; }
  .zi .zi-sub         { font-size: 15px; }
}

/* ── إلغاء حدّ الـheader العامّ المتسرّب من zp-premium-v3.css (لون أزرق ممنوع rgba(59,130,246)) على شريط الصفحة الكحليّ ── */
.zi .zi-phead { border: 0 !important; }
