/* ══════════════════════════════════════════════════════════════
   Hefni Media — صفحة البيع (index) وصفحات الطلب
   الفكرة: الإثبات الحقيقي أولاً — فيديوهات محمود ومشاهداتها الفعلية
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:       #0B1E30;   /* خلفية الهيرو — أغمق درجة من الكحلي */
  --navy:      #0F2A43;
  --gold:      #D4A94E;
  --gold-soft: #F4E7C5;
  --rec:       #22C55E;   /* نقطة "مفتوح" الخضراء — الطلب المسبق مفتوح */
  --paper:     #F5F7FA;
  --line:      rgba(15, 42, 67, 0.10);
  --radius-lg: 20px;
}
:root[data-theme="dark"] {
  --color-bg: #0A1422;          /* خلفية الصفحة */
  --color-bg-alt: #0E1B2D;
  --paper: #0E1B2D;             /* الأقسام المتبادلة */
  --card: #12233A;              /* البطاقات فوق الخلفية */
  --line:  rgba(148, 178, 214, 0.12);
  --gold-soft: rgba(212, 169, 78, 0.14);
}
:root { --card: #ffffff; }
:root[data-theme="dark"] .l-body { background: var(--color-bg); }
/* توهّج ذهبي خافت بالأقسام المتبادلة — عمق بدل سطح مسطح */
:root[data-theme="dark"] .l-section--paper {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(212, 169, 78, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(56, 120, 200, 0.08), transparent 70%),
    var(--paper);
}
:root[data-theme="dark"] .proof-stat,
:root[data-theme="dark"] .learn-item,
:root[data-theme="dark"] .unit,
:root[data-theme="dark"] .faq details,
:root[data-theme="dark"] .coach__ig { background: var(--card); }

.l-body { background: var(--color-bg); }
.l-section { padding: 76px 0; }
@media (max-width: 640px) { .l-section { padding: 56px 0; } }
.l-section--paper { background: var(--paper); }

.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 12px;
}
.l-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin-bottom: 12px; color: var(--color-heading); }
.l-lead  { color: var(--color-text-muted); font-size: 1.05rem; max-width: 600px; }
.l-head  { margin-bottom: 40px; }
.l-head--center { text-align: center; }
.l-head--center .l-lead { margin: 0 auto; }

/* ── شارة الطلب المسبق (نقطة تسجيل نابضة) ─────────────────────── */
.rec-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 16px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #86efac;
  font-size: 0.85rem; font-weight: 700;
}
.rec-chip--light { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: rec-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes rec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── الهيرو ─────────────────────────────────────────────────── */
.l-hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 15% 30%, rgba(212, 169, 78, 0.16), transparent 65%),
    var(--ink);
  color: #fff;
  padding: 128px 0 72px;
  overflow: hidden;
}
.l-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .l-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}
.l-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 1.18;
  margin: 18px 0 16px;
}
.l-hero h1 em { font-style: normal; color: var(--gold); }
.l-hero__sub { color: rgba(255, 255, 255, 0.74); font-size: 1.08rem; max-width: 520px; margin-bottom: 26px; }

.l-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.l-price__now { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: #fff; line-height: 1; }
.l-price__now small { font-size: 1rem; color: var(--gold); margin-inline-start: 4px; }
.l-price__was { color: rgba(255, 255, 255, 0.45); text-decoration: line-through; font-size: 1.05rem; }
.l-price__tag { font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 99px; }

.l-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.l-hero__note { margin-top: 16px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.55); }

.btn-ghost-light {
  color: #fff; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05);
}
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* شاشة الريل — العنصر المميز للصفحة: فيديو حقيقي + عدّاد مشاهداته الحقيقي */
.reel-screen {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1d3a57, #08131f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.reel-screen video, .reel-screen img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; background: #000;
}
.reel-screen__views {
  position: absolute; bottom: 26px; right: 24px;
  display: flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 1.15rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}
.reel-screen__handle {
  position: absolute; top: 24px; right: 24px;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 99px; direction: ltr;
}
.reel-screen__badge {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 99px;
  box-shadow: 0 10px 30px rgba(212, 169, 78, 0.35);
}

/* ── شريط الأرقام الحقيقية ──────────────────────────────────── */
.proof-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 34px;
}
.proof-stat {
  background: var(--color-bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 12px; text-align: center;
}
.proof-stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-heading); line-height: 1.1; direction: ltr;
}
.proof-stat span { font-size: 0.84rem; color: var(--color-text-muted); }

/* ── شبكة الريلز ───────────────────────────────────────────── */
.reels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 44%);
  overscroll-behavior-x: contain;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .reels { grid-auto-columns: minmax(190px, 30%); } }
@media (min-width: 900px) { .reels { grid-auto-columns: minmax(200px, 19%); gap: 14px; } }

/* مؤشر "اسحب" تحت الريلز: شريط تقدّم + يد بتتحرك — بيختفي بعد أول سحب */
.reels-hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 14px; color: var(--color-text-muted); font-size: 0.86rem;
  transition: opacity 0.4s ease;
}
.reels-hint.used .reels-hint__text { opacity: 0; height: 0; overflow: hidden; }
.reels-hint__track { width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.reels-hint__track i { display: block; height: 100%; width: 22%; border-radius: 4px; background: var(--gold); margin-inline-start: 0; transition: margin 0.15s linear; }
.reels-hint__text { display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.4s ease; }
.reels-hint__hand { display: inline-flex; color: var(--gold); animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); opacity: 0.6; } 50% { transform: translateX(-8px); opacity: 1; } }
.reel {
  position: relative; scroll-snap-align: start;
  aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  background: #0b1e30; cursor: pointer; border: 0; padding: 0; text-align: right;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reel:hover, .reel:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 30, 48, 0.28); }
.reel:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, transparent 46%);
}
.reel__meta { position: absolute; z-index: 1; bottom: 12px; right: 12px; left: 12px; color: #fff; }
.reel__views { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.reel__title { font-size: 0.82rem; opacity: 0.88; line-height: 1.45; margin-top: 2px; }
.reel__play {
  position: absolute; z-index: 1; top: 10px; left: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}

/* إثبات الحساب: لقطة الإنستغرام داخل إطار متصفح */
.ig-proof {
  margin-top: 30px;
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 20px 50px rgba(11, 30, 48, 0.25);
}
.ig-proof h3 { color: #fff !important; }
.ig-proof p { color: rgba(255, 255, 255, 0.7) !important; }
.ig-proof .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.ig-proof .btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
:root[data-theme="dark"] .ig-proof { background: #F5F7FA; color: var(--ink); border-color: transparent; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
:root[data-theme="dark"] .ig-proof h3 { color: var(--ink) !important; }
:root[data-theme="dark"] .ig-proof p { color: #4b5563 !important; }
:root[data-theme="dark"] .ig-proof .btn-ghost { color: var(--ink); border-color: rgba(11, 30, 48, 0.25); }
@media (min-width: 900px) { .ig-proof { grid-template-columns: 1.4fr 1fr; padding: 22px; } }
.ig-proof__shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.ig-proof__bar { display: flex; gap: 6px; padding: 9px 12px; background: #1f2937; }
.ig-proof__bar i { width: 9px; height: 9px; border-radius: 50%; background: #4b5563; display: block; }
.ig-proof__shot img { width: 100%; height: auto; }
.ig-proof h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--color-heading); }
.ig-proof p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 14px; }

/* ── ماذا ستتعلم ───────────────────────────────────────────── */
.learn-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
.learn-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 16px;
  background: var(--color-bg); border: 1px solid var(--line);
}
.learn-item__icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--gold-soft); color: #8a6516;
  display: flex; align-items: center; justify-content: center;
}
:root[data-theme="dark"] .learn-item__icon { color: var(--gold); }
.learn-item p { font-size: 0.98rem; line-height: 1.7; padding-top: 6px; }

/* ── المنهج ────────────────────────────────────────────────── */
.units { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.unit {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 16px;
  background: var(--color-bg); border: 1px solid var(--line);
}
.unit__n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.unit h3 { font-size: 1.05rem; color: var(--color-heading); }
.unit p { font-size: 0.85rem; color: var(--color-text-muted); }
.units-note { margin-top: 14px; font-size: 0.88rem; color: var(--color-text-muted); }

/* ── المدرب ───────────────────────────────────────────────── */
.coach { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 860px) { .coach { grid-template-columns: 300px 1fr; gap: 52px; } }
.coach__photo { position: relative; width: min(300px, 80vw); margin: 0 auto; }
.coach__photo img {
  width: 100%; height: auto; aspect-ratio: 1;
  object-fit: cover; object-position: 50% 30%;
  border-radius: 26px; background: var(--paper);
}
.coach__ig {
  position: absolute; bottom: -14px; right: 50%; transform: translateX(50%);
  background: var(--color-bg); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 99px; white-space: nowrap;
  display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.coach__ig b { color: var(--color-heading); direction: ltr; }
.coach h2 { margin-bottom: 14px; color: var(--color-heading); }
.coach p { color: var(--color-text-muted); font-size: 1.02rem; line-height: 1.9; white-space: pre-line; }

/* ── الطلب المسبق + السعر ─────────────────────────────────── */
.order-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .order-wrap { grid-template-columns: 1fr 400px; gap: 40px; } }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step__n {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
:root[data-theme="dark"] .step__n { background: var(--gold); color: var(--ink); }
.step h3 { font-size: 1.02rem; margin-bottom: 2px; color: var(--color-heading); }
.step p { font-size: 0.9rem; color: var(--color-text-muted); }

.price-card {
  background: var(--ink); color: #fff;
  border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(11, 30, 48, 0.28);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(212, 169, 78, 0.22), transparent 55%);
  pointer-events: none;
}
.price-card > * { position: relative; }
.price-card h3 { color: #fff; font-size: 1.15rem; margin: 14px 0 6px; }
.price-card .l-price { margin: 10px 0 18px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: rgba(255, 255, 255, 0.85); }
.price-card li svg { flex-shrink: 0; margin-top: 4px; color: var(--gold); }
.price-card__pay { margin-top: 14px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); text-align: center; line-height: 1.7; }

/* ── الأسئلة الشائعة ──────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--color-bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 18px;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 17px 0; font-weight: 700; font-size: 1rem; color: var(--color-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--gold);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--color-text-muted); line-height: 1.85; }

/* ── الدعوة الأخيرة ───────────────────────────────────────── */
.l-final { background: var(--ink); color: #fff; text-align: center; }
.l-final h2 { color: #fff; margin: 16px 0 10px; }
.l-final p { color: rgba(255, 255, 255, 0.7); max-width: 520px; margin: 0 auto 26px; }

/* ── شريط الشراء الثابت (موبايل) ──────────────────────────── */
.buy-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 30, 48, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.buy-bar.show { transform: none; }
.buy-bar__price { color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.buy-bar__price small { display: block; font-size: 0.72rem; font-weight: 600; color: #86efac; }
.buy-bar .btn { padding: 11px 22px; }
@media (min-width: 900px) { .buy-bar { display: none; } }
@media (max-width: 899px) {
  .l-body .whatsapp-float { bottom: 84px; }
  .l-body footer { padding-bottom: 96px; }
}

/* ── نافذة تشغيل الفيديو ──────────────────────────────────── */
.player-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(3, 8, 14, 0.9);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.player-modal video { max-height: 86vh; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }
.player-modal__close {
  position: absolute; top: 16px; left: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem;
  border: 0; cursor: pointer;
}
.player-modal__link { position: absolute; bottom: 18px; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .rec-dot, .reel, .buy-bar { animation: none; transition: none; }
}

/* سمة hidden لازم تتغلب على display للكلاسات (form-group = flex) */
[hidden] { display: none !important; }

/* ── شاشة التحميل: تغطي الصفحة لحد ما يجهز اللي فوق الطية (خطوط + صورة/فيديو الهيرو) ── */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--ink, #0B1E30);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(212, 169, 78, 0.7);
  animation: pre-breathe 1.6s ease-in-out infinite;
}
.preloader__bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.preloader__bar i {
  display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--gold, #D4A94E);
  animation: pre-slide 1.1s ease-in-out infinite;
}
@keyframes pre-breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes pre-slide { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }
@media (prefers-reduced-motion: reduce) { .preloader img, .preloader__bar i { animation: none; } }

/* أثناء شاشة التحميل: ما في سكرول */
html.is-loading, html.is-loading body { overflow: hidden !important; touch-action: none; }

/* الفوتر: البراند بسطر كامل فوق، وتحته روابط سريعة (يمين) وتواصل (يسار) بنفس الصف */
.footer-top--stacked { grid-template-columns: 1fr 1fr !important; gap: 28px 24px; }
.footer-top--stacked .footer-brand-block {
  grid-column: 1 / -1;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
