/* ================================================================
   منصة حروف — نظام تصميم موحّد (Design System)
   طبقة أساس: tokens • typography • motion • elevation
================================================================ */

:root {
  /* ---- Brand palette (scaled) ---- */
  --brand-50:  #f5efff;
  --brand-100: #e7d9ff;
  --brand-200: #d0b4ff;
  --brand-300: #b48aff;
  --brand-400: #965fff;
  --brand-500: #7c3aed;
  --brand-600: #6725d1;
  --brand-700: #521ba8;
  --brand-800: #3d1481;
  --brand-900: #260a55;

  --accent-cyan: #4fd1ff;
  --accent-pink: #f472b6;
  --accent-gold: #f5b544;

  /* ---- Neutrals (near-black to near-white) ---- */
  --n-50:  #faf9fc;
  --n-100: #f2f0f7;
  --n-200: #e6e3ee;
  --n-300: #cec9db;
  --n-400: #a29cb6;
  --n-500: #7a748d;
  --n-600: #56516a;
  --n-700: #3a3548;
  --n-800: #22202d;
  --n-900: #15131d;

  /* ---- Semantic aliases (backward compatible) ---- */
  --sp-bg: var(--n-50);
  --sp-bg-top: #f1ecff;
  --sp-card: #ffffff;
  --sp-card-h: #f3f0fb;
  --sp-text: var(--n-900);
  --sp-sub: var(--n-500);
  --sp-line: rgba(21,19,29,0.08);
  --sp-grad: linear-gradient(120deg, var(--accent-cyan), var(--brand-500));
  --sp-grad-warm: linear-gradient(120deg, var(--accent-pink), var(--brand-500));
  --sp-grad-rich: linear-gradient(135deg, #2a1d4a 0%, #3a2563 50%, #1d3a6b 100%);

  /* ---- Spacing scale (8pt base) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ---- Elevation (shadows) ---- */
  --el-1: 0 1px 2px rgba(21,19,29,0.05);
  --el-2: 0 4px 14px rgba(21,19,29,0.06);
  --el-3: 0 10px 26px rgba(21,19,29,0.12);
  --el-4: 0 20px 44px rgba(21,19,29,0.18);
  --el-5: 0 30px 70px rgba(21,19,29,0.28);
  --el-brand: 0 14px 38px rgba(124,58,237,0.35);

  /* ---- Typography ---- */
  --font-display: 'Rubik', 'Cairo', system-ui, sans-serif;
  --font-body: 'Cairo', system-ui, sans-serif;
  --font-serif: 'Amiri', 'Cairo', serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.4rem;
  --fs-2xl: clamp(1.5rem, 2.5vw, 1.9rem);
  --fs-3xl: clamp(1.9rem, 3.5vw, 2.6rem);
  --fs-4xl: clamp(2.4rem, 5vw, 3.6rem);
  --fs-5xl: clamp(2.8rem, 7vw, 5rem);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 0.18s;
  --dur-normal: 0.32s;
  --dur-slow: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   ✦ Scroll reveal (Phase 7)
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--right { transform: translateX(-32px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--left { transform: translateX(32px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--scale { transform: scale(0.94); }
.reveal--scale.is-visible { transform: scale(1); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Focus states unified */
:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}
.sp-card:focus-visible, .sp-artist:focus-visible, .hx-quick__tile:focus-visible, .cx-plan__btn:focus-visible {
  outline-offset: 4px;
}

/* الخلفية الفاتحة للصفحة كاملة */
.home2-page {
  position: relative; z-index: 1; padding-top: 85px; color: var(--sp-text);
  background:
    radial-gradient(900px 420px at 80% -60px, rgba(124,58,237,0.12), transparent 60%),
    linear-gradient(180deg, var(--sp-bg-top) 0, var(--sp-bg) 520px);
  min-height: 100vh;
}
.h2-wrap { max-width: none; padding: 0 32px; }

/* ================================================================
   ✦ HERO سينمائي (Phase 2)
================================================================ */
.hx-hero {
  position: relative;
  padding: var(--s-6) 0 var(--s-7);
  isolation: isolate;
  overflow: hidden;
  border-radius: 0;
  margin-top: 0;
  margin-left: -32px;
  margin-right: -32px;
  background: linear-gradient(160deg, #f5f0ff 0%, #ece4ff 45%, #eaf0ff 100%);
  color: var(--sp-text);
  min-height: max(640px, calc(100vh - 85px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mosaic خلفية أغلفة الكتب */
.hx-hero__mosaic {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background-image: url('/assets/images/img/hero-mosaic.webp');
  background-size: cover;
  background-position: center;
  transform: rotate(-8deg) scale(1.3);
  opacity: 0.35;
  animation: hxMosaicDrift 40s linear infinite;
  will-change: transform;
}
@keyframes hxMosaicDrift {
  0%   { transform: rotate(-8deg) scale(1.3) translate3d(0,0,0); }
  50%  { transform: rotate(-8deg) scale(1.3) translate3d(-40px,-30px,0); }
  100% { transform: rotate(-8deg) scale(1.3) translate3d(0,0,0); }
}

/* Veil لتخفيف الخلفية وتحسين قابلية القراءة */
.hx-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(245,240,255,0.82) 0%, rgba(236,228,255,0.88) 100%),
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(124,58,237,0.08), transparent 70%);
}
.hx-hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(124,58,237,0.1), transparent 60%),
    radial-gradient(500px 260px at 85% 80%, rgba(79,209,255,0.08), transparent 60%);
}

/* Hero content — متوسّط */
.hx-hero__inner {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hx-hero__main { width: 100%; display: flex; flex-direction: column; align-items: center; }

.hx-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.2px;
  padding: 8px 18px; border-radius: var(--r-full);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  backdrop-filter: blur(10px);
  color: var(--brand-700);
  margin-bottom: var(--s-5);
}
.hx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4fd1ff;
  box-shadow: 0 0 0 4px rgba(79,209,255,0.25);
  animation: hxPulse 2s ease-in-out infinite;
}
@keyframes hxPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(79,209,255,0.25); }
  50%     { box-shadow: 0 0 0 10px rgba(79,209,255,0); }
}

.hx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--sp-text);
}
.hx-hero__title-line { display: inline; }
.hx-hero__title em {
  font-style: normal;
  color: #7c3aed;
  -webkit-text-fill-color: #7c3aed;
}
.hx-hero__title-line--grad {
  background: linear-gradient(120deg, #7c3aed, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hx-hero__lead {
  margin: var(--s-4) auto 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--sp-sub);
}

/* Search bar ضخم */
.hx-search {
  margin: var(--s-6) auto 0;
  width: 100%;
  max-width: 640px;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 20px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--r-full);
  box-shadow: 0 8px 32px rgba(124,58,237,0.14), 0 0 0 1px rgba(124,58,237,0.08);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
.hx-search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.2), 0 0 0 3px rgba(124,58,237,0.25);
}
.hx-search__icon { color: var(--n-500); display: grid; place-items: center; }
.hx-search__input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 500;
  color: var(--n-900); padding: 14px 8px;
}
.hx-search__input::placeholder { color: var(--n-400); }
.hx-search__btn {
  border: none; cursor: pointer;
  padding: 14px 30px; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: #fff; background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--el-brand);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast);
}
.hx-search__btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Trust bar */
.hx-trust {
  margin: var(--s-6) auto 0;
  display: inline-flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-6);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
  justify-content: center;
}
.hx-trust__item { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.hx-trust__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand-700);
  letter-spacing: -0.02em;
}
.hx-trust__lbl {
  font-size: 0.78rem; font-weight: 600; color: var(--sp-sub);
  margin-top: 6px; letter-spacing: 0.3px;
}
.hx-trust__sep {
  width: 1px; height: 32px; background: var(--sp-line);
}

/* Quick tiles صف تحت الـ hero */
.hx-quick {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: var(--s-6) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.hx-quick__tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(124,58,237,0.1);
  backdrop-filter: blur(10px);
  color: var(--sp-text);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
}
.hx-quick__tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(124,58,237,0.05));
  opacity: 0; transition: opacity var(--dur-fast);
}
.hx-quick__tile:hover { transform: translateY(-3px); background: rgba(255,255,255,0.97); border-color: rgba(124,58,237,0.2); }
.hx-quick__tile:hover::before { opacity: 1; }
.hx-quick__ico {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
  flex-shrink: 0;
}
.hx-quick__tile--books   .hx-quick__ico { background: linear-gradient(135deg, #56d6ff, #2f7bf6); box-shadow: 0 6px 18px rgba(47,123,246,0.45); }
.hx-quick__tile--authors .hx-quick__ico { background: linear-gradient(135deg, #b48aff, var(--brand-500)); }
.hx-quick__tile--pubs    .hx-quick__ico { background: linear-gradient(135deg, #5aa2ff, #5b53e6); }
.hx-quick__tile--plans   .hx-quick__ico { background: linear-gradient(135deg, var(--accent-pink), var(--brand-500)); }
.hx-quick__ico svg { width: 18px; height: 18px; }
.hx-quick__lbl { flex: 1; }
.hx-quick__arrow { opacity: 0.5; font-size: 1.6rem; line-height: 1; color: var(--brand-500); transition: transform var(--dur-fast), opacity var(--dur-fast); }
.hx-quick__tile:hover .hx-quick__arrow { opacity: 1; transform: translateX(-4px); }

/* استجابة الـ hero */
@media (max-width: 780px) {
  /* نسخة أخف من صورة الموزاييك (800px بدل 1440px) — بتوفّر ~64 كيلوبايت
     على الموبايل، ومفيش فرق يُذكر بصريًا لأنها خلفية بشفافية 35% أصلاً */
  .hx-hero__mosaic { background-image: url('/assets/images/img/hero-mosaic-mobile.webp'); }
  .hx-hero { min-height: 100dvh; margin-top: -85px; padding: var(--s-6) 0; border-radius: 0; margin-left: -18px; margin-right: -18px; }
  .hx-hero__inner { padding: 0 var(--s-4); }
  .hx-search { padding: 6px 6px 6px 16px; }
  .hx-search__input { padding: 12px 4px; font-size: 0.95rem; }
  .hx-search__btn { padding: 12px 20px; font-size: 0.85rem; }
  .hx-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4) var(--s-3);
    padding: var(--s-4);
    width: 100%;
  }
  .hx-trust__sep { display: none; }
  .hx-trust__item { min-width: 0; }
  .hx-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
}

/* ---------- ترويسة الرف (عنوان + عرض الكل) ---------- */
.sp-shelf { padding: 18px 0 30px; }
.sp-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sp-shelf__titles { display: flex; flex-direction: column; gap: 4px; }
.sp-shelf__eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--purple); }
.sp-shelf__title { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; color: var(--sp-text); letter-spacing: -0.3px; }
.sp-shelf__title b { background: var(--sp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sp-shelf__actions { display: flex; align-items: center; gap: 10px; }
.sp-shelf__all { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--sp-sub); white-space: nowrap; transition: color 0.2s; }
.sp-shelf__all:hover { color: var(--sp-text); }
.sp-nav { display: flex; gap: 8px; }
.sp-nav--below {
  position: absolute; top: 50%; right: -6px; left: -6px;
  transform: translateY(-50%);
  justify-content: space-between; flex-direction: row-reverse;
  pointer-events: none; z-index: 4;
}
.sp-nav--below .sp-nav-btn {
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(21,19,29,0.18);
  border-color: rgba(21,19,29,0.08);
}
.sp-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sp-line); cursor: pointer;
  background: #fff; color: var(--sp-text); display: grid; place-items: center; transition: all 0.2s; box-shadow: 0 2px 8px rgba(21,19,29,0.06); }
.sp-nav-btn:hover { background: var(--sp-text); color: #fff; transform: scale(1.06); }

/* ---------- الترحيب + مربعات الأقسام السريعة ---------- */
.sp-greet { padding: 28px 0 8px; }
.sp-greet h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.5px; }
.sp-greet p { color: var(--sp-sub); margin-top: 6px; font-size: 0.98rem; }

.sp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.sp-tile {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  border-radius: 12px; padding: 0 16px; height: 84px; color: var(--sp-text); isolation: isolate;
  background: #fff; border: 1px solid var(--sp-line); box-shadow: 0 4px 14px rgba(21,19,29,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-tile:hover { box-shadow: 0 10px 26px rgba(21,19,29,0.12); transform: translateY(-3px); }
.sp-tile__accent { position: absolute; inset: 0 auto 0 0; width: 84px; z-index: -1; }
.sp-tile--books   .sp-tile__accent { background: linear-gradient(145deg, #56d6ff, #2f7bf6); }
.sp-tile--authors .sp-tile__accent { background: linear-gradient(145deg, #b06bff, #7c3aed); }
.sp-tile--pubs    .sp-tile__accent { background: linear-gradient(145deg, #5aa2ff, #5b53e6); }
.sp-tile--plans   .sp-tile__accent { background: linear-gradient(145deg, #fb86c4, #b15bf0); }
.sp-tile__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08)); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.sp-tile__title { font-size: 1.05rem; font-weight: 800; }

/* ================================================================
   ✦ Editorial Spotlight — كاتب الشهر (Phase 3)
================================================================ */
.ed-spotlight {
  position: relative;
  margin: var(--s-7) 0 var(--s-6);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 12% 20%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(79,209,255,0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid var(--sp-line);
  box-shadow: var(--el-3);
  overflow: hidden;
}
.ed-spotlight::before {
  content: '"';
  position: absolute;
  top: -60px; right: 30px;
  font-family: var(--font-serif);
  font-size: 340px; font-weight: 700; line-height: 1;
  color: var(--brand-100);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.ed-spotlight__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-7);
  align-items: center;
}

/* البورتريه */
.ed-spotlight__portrait { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.ed-spotlight__frame {
  position: relative; width: 220px; height: 220px; border-radius: 50%;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(124,58,237,0.35);
}
/* التدرّج الملوّن في طبقة خلفية تدور — الصورة نفسها ثابتة */
.ed-spotlight__frame::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 220deg, var(--accent-cyan), var(--brand-500), var(--accent-pink), var(--accent-cyan));
  animation: edRotate 22s linear infinite;
}
.ed-spotlight__frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #fff;
  display: block;
}
.ed-spotlight__ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(124,58,237,0.28);
  pointer-events: none;
}
@keyframes edRotate { to { transform: rotate(360deg); } }

.ed-spotlight__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full);
  background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 22px rgba(124,58,237,0.4);
}

/* النص والاقتباس */
.ed-spotlight__body { position: relative; }
.ed-spotlight__eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-3);
}
.ed-spotlight__quote {
  position: relative;
  margin: 0 0 var(--s-5);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.7;
  color: var(--n-800);
  font-weight: 700;
  padding-right: var(--s-3);
  border-right: 3px solid var(--brand-500);
}
.ed-spotlight__mark {
  font-size: 3rem; line-height: 0; color: var(--brand-400);
  margin-left: 6px; vertical-align: -18px;
}
.ed-spotlight__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--s-4); margin-bottom: var(--s-5);
}
.ed-spotlight__who { display: flex; flex-direction: column; gap: 4px; }
.ed-spotlight__who strong {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--n-900);
}
.ed-spotlight__who span { font-size: 0.9rem; color: var(--n-500); }
.ed-spotlight__stats {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: var(--s-3); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(124,58,237,0.07), rgba(124,58,237,0.02));
  border: 1px solid var(--sp-line);
}
.ed-spotlight__stat {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--sp-line);
  box-shadow: 0 2px 6px rgba(21,19,29,0.05);
}
.ed-spotlight__stat b {
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--brand-600);
}
.ed-spotlight__stat small { font-size: 0.7rem; color: var(--n-500); }

.ed-spotlight__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.ed-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.ed-btn--primary {
  color: #fff; background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--el-brand);
}
.ed-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(124,58,237,0.5); }
.ed-btn--ghost {
  color: var(--brand-700); background: transparent;
  border: 1.5px solid var(--brand-200);
}
.ed-btn--ghost:hover { background: var(--brand-50); transform: translateY(-2px); }

@media (max-width: 780px) {
  .ed-spotlight { padding: var(--s-6) var(--s-4); }
  .ed-spotlight::before { font-size: 200px; top: -30px; right: 10px; }
  .ed-spotlight__grid { grid-template-columns: 1fr; gap: var(--s-5); justify-items: center; text-align: center; }
  .ed-spotlight__frame { width: 170px; height: 170px; }
  .ed-spotlight__quote { border-right: none; border-top: 2px solid var(--brand-500); padding-right: 0; padding-top: var(--s-3); text-align: center; }
  .ed-spotlight__meta { flex-direction: column; align-items: center; text-align: center; }
  .ed-spotlight__who { align-items: center; }
  /* الإحصائيات الأربعة: شبكة 2×2 داخل كونتينر واحد */
  .ed-spotlight__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; padding: var(--s-3); }
  .ed-spotlight__stat { align-items: center; text-align: center; padding: 12px 6px; }
  .ed-spotlight__stat b { font-size: 1.05rem; }
  .ed-spotlight__stat small { font-size: 0.68rem; }
  /* الزرارين صف واحد قد بعض وماليين الكرت */
  .ed-spotlight__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ed-spotlight__cta .ed-btn { width: 100%; justify-content: center; padding: 12px 8px; font-size: 0.86rem; white-space: nowrap; }
}

/* ---------- الكتاب المميز (بانر سينمائي) ---------- */
.sp-feat-sec { padding: 26px 0 6px; }
.sp-feat {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  background: #14121d; border: 1px solid var(--sp-line); border-radius: 22px;
  /* padding-top زيادة عشان تاج "كتاب اليوم" ما يغطّيش حافة الغلاف */
  padding: 62px 44px 40px; position: relative; overflow: hidden; min-height: 300px;
}
/* خلفية الغلاف مكبّرة ومموّهة لإعطاء جو لوني خاص بكل كتاب */
.sp-feat__bg { position: absolute; inset: -10%; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(46px) saturate(1.5); transform: scale(1.2); opacity: 0.7; }
.sp-feat__shade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,22,0.92) 8%, rgba(15,13,22,0.62) 45%, rgba(15,13,22,0.25) 100%); }
.sp-feat__art { position: relative; z-index: 2; perspective: 900px; }
/* height:auto مهم — عشان الارتفاع يتحسب من نسبة الصورة الحقيقية بدل
   ما ياخد قيمة خاصية height في الـ HTML حرفياً (اللي بتمطّط الغلاف) */
.sp-feat__art img { width: 100%; height: auto; border-radius: 12px; display: block;
  transform: rotateY(-6deg) rotate(1.5deg);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1); }
.sp-feat:hover .sp-feat__art img { transform: rotateY(0deg) rotate(0deg) translateY(-4px); }
.sp-feat__body { position: relative; z-index: 2; }
/* تاج "كتاب اليوم" — مثبّت في الركن العلوي اليمين للكارت */
.sp-feat__eyebrow { position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.sp-feat__title { font-family: 'Amiri', serif; font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700;
  color: #fff; line-height: 1.15; margin: 0 0 14px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.sp-feat__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.sp-feat__chip { font-size: 0.82rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.sp-feat__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-feat__price { font-weight: 800; color: #fff; font-size: 1.1rem; }

/* ---------- الأزرار ---------- */
.sp-btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 800; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: none; transition: transform 0.15s, filter 0.15s; }
.sp-btn--primary { background: #fff; color: #15131d; }
.sp-btn--primary:hover { transform: scale(1.04); }
.sp-btn--accent { background: var(--sp-grad); color: #fff; }
.sp-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.sp-btn--ghost:hover { border-color: #fff; transform: scale(1.03); }

/* ---------- الرفوف الأفقية ---------- */
.sp-shelf__rail-wrap { position: relative; }
.sp-shelf__rail-wrap::before,
.sp-shelf__rail-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 12px; width: 60px;
  pointer-events: none; z-index: 3;
  opacity: 0; transition: opacity var(--dur-normal);
}
.sp-shelf__rail-wrap::before { right: 0; background: linear-gradient(-90deg, var(--sp-bg), transparent); }
.sp-shelf__rail-wrap::after  { left: 0;  background: linear-gradient(90deg, var(--sp-bg), transparent); }
.sp-shelf__rail-wrap.has-overflow-start::before { opacity: 1; }
.sp-shelf__rail-wrap.has-overflow-end::after { opacity: 1; }

.sp-rail { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.sp-rail::-webkit-scrollbar { display: none; }
.sp-rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---- Empty state لأي رفّ اختياراته من الأدمن فاضية ---- */
.sp-rail > .sp-empty,
.wx-grid > .sp-empty {
  flex: 1 0 auto;
  min-height: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  border: 1.5px dashed rgba(79,209,255,0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(79,209,255,0.03), rgba(79,209,255,0.01));
  color: var(--sp-text-2, #6b7280);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.sp-rail > .sp-empty svg { opacity: 0.5; }

/* ================================================================
   ✦ سكيلتون التحميل (Skeleton) — بديل مؤقّت للكروت لحد ما بيانات
   home-data.json/Firestore توصل. الكروت الحقيقية بتستبدله تلقائياً
   (buildX() بيعمل innerHTML = ... فيمسح السكيلتون من غير أي كود إضافي).
   الأنيميشن نفسه واقف افتراضياً، ومايشتغلش إلا لما القسم يدخل الشاشة
   (نفس نظام .reveal.is-visible) — عشان كل سكيلتون الصفحة ما يلفّش
   ويستهلك معالجة في نفس اللحظة، ويشتغل بس للقسم اللي وصلته فعلاً.
================================================================ */
.sk-line {
  height: 13px; border-radius: 6px;
  background: linear-gradient(100deg, var(--n-100) 25%, var(--n-200) 45%, var(--n-100) 65%);
  background-size: 220% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  animation-play-state: paused;
}
.sk-line--sm { height: 10px; }
.sk-line--dark {
  background: linear-gradient(100deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.16) 45%, rgba(255,255,255,0.06) 65%);
  background-size: 220% 100%;
}
.reveal.is-visible .sk-line { animation-play-state: running; }
/* سكيلتون رقم إحصائية (زائر/قارئ/تحميل/كتاب) — بيفضل شغال لحد ما يوصل
   الرقم الحقيقي من Firestore، مفيش رقم تقديري بيتعرض أبداً */
.stat-sk {
  display: inline-block; width: 30px; height: 0.95em; border-radius: 4px;
  background: linear-gradient(100deg, var(--n-100) 25%, var(--n-200) 45%, var(--n-100) 65%);
  background-size: 220% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  animation-play-state: paused;
  vertical-align: -2px;
}
.reveal.is-visible .stat-sk { animation-play-state: running; }
.stat-sk--chip {
  width: 22px; height: 0.85em;
  background: linear-gradient(100deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.16) 45%, rgba(255,255,255,0.06) 65%);
  background-size: 220% 100%;
  vertical-align: -1px;
}
/* ملاحظة: تعطيل/تفعيل شمعدان .sp-card__art و.sp-artist__art (شمعدان تحميل
   الصور الحقيقي) موجود تحت بجانب تعريفهم الأصلي — لازم يكون بعد الـ
   `animation:` shorthand بتاعهم، لأن الـ shorthand بيصفّر animation-play-state
   لو اتعرّف بعد قاعدة الإيقاف دي في الترتيب. */

/* سكيلتون "الكتاب المميز" — بديل بانر h2Featured الغامق */
.sk-feat__art {
  aspect-ratio: 3/4; border-radius: 12px; position: relative; z-index: 2;
  background: linear-gradient(100deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.16) 45%, rgba(255,255,255,0.06) 65%);
  background-size: 220% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  animation-play-state: paused;
}
.reveal.is-visible .sk-feat__art { animation-play-state: running; }
.sk-feat__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }

/* ---------- بطاقة كتاب (سبوتيفاي) ---------- */
.sp-card {
  position: relative;
  display: block; width: 172px;
  background: var(--sp-card); border: 1px solid var(--sp-line);
  border-radius: var(--r-md); padding: 14px;
  box-shadow: var(--el-2);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-fast);
  isolation: isolate;
}
.sp-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  padding: 1px; background: linear-gradient(135deg, var(--brand-300), var(--accent-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur-normal);
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--el-4); }
.sp-card:hover::before { opacity: 1; }
.sp-grid .sp-card, .sp-rail .sp-card { width: auto; }
.sp-rail .sp-card { width: 172px; }
.sp-card__art { position: relative; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 6px 18px rgba(124,58,237,0.14);
  background: #ece5fb;
  animation: skPulse 1.4s ease-in-out infinite; }
.sp-card__art.is-loaded { animation: none; opacity: 1; background: #efeafc; }
/* شمعدان تحميل الغلاف: واقف افتراضياً، يشتغل بس لما القسم يدخل الشاشة */
.sp-card__art { animation-play-state: paused; }
.reveal.is-visible .sp-card__art { animation-play-state: running; }
.sp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1;
  transition: transform var(--dur-slow) var(--ease-out); }
@keyframes h2Shimmer { 0% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
/* نبضة تحميل خفيفة على الـ GPU (opacity) — بديل لحركة background-position
   اللي بتشتغل على الـ main thread وتسبب jank وقت السكرول */
@keyframes skPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.sp-card:hover .sp-card__img { transform: scale(1.08); }
.sp-card__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  opacity: 0; transition: opacity var(--dur-normal);
  pointer-events: none;
}
.sp-card:hover .sp-card__art::after { opacity: 1; }
.sp-card__ribbon { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 0.64rem; font-weight: 800;
  color: #fff; background: var(--sp-grad-warm); padding: 3px 10px; border-radius: 999px; }
.sp-card__play { position: absolute; bottom: 8px; left: 8px; width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--sp-grad);
  box-shadow: 0 8px 18px rgba(124,58,237,0.55); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.sp-card:hover .sp-card__play { opacity: 1; transform: translateY(0); }
.sp-card__title { font-size: 0.98rem; font-weight: 800; color: var(--sp-text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card__sub { font-size: 0.82rem; color: var(--sp-sub); margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* سطر الكاتب والسعر: الكاتب يمين والسعر في أقصى الشمال */
.sp-card__sub:has(.sp-sub-split) { display: block; }
.sp-sub-split { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-sub-split > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-card__price { color: var(--purple); font-weight: 800; white-space: nowrap; }

/* بطاقة التصنيفات: الكاتب في سطر لوحده + النوع والتحميلات جنب بعض */
.sp-card__author { font-size: 0.8rem; font-weight: 600; color: var(--sp-sub); margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.sp-meta-chip {
  font-size: 0.68rem; font-weight: 700; color: var(--purple);
  background: rgba(124,58,237,0.08);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.sp-meta-chip--alt { color: #2f7bf6; background: rgba(47,123,246,0.08); }

/* عنصر مرتّب: رقم كبير بأسلوب Netflix Top-10 */
.sp-ranked { display: flex; align-items: flex-end; position: relative; }
.sp-ranked__num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 160px; line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 3px var(--brand-500);
  background: linear-gradient(180deg, rgba(124,58,237,0.35), rgba(124,58,237,0));
  -webkit-background-clip: text; background-clip: text;
  user-select: none; margin-bottom: -4px;
  filter: drop-shadow(0 8px 16px rgba(124,58,237,0.25));
  transition: transform var(--dur-normal) var(--ease-out);
}
.sp-ranked:hover .sp-ranked__num { transform: translateY(-6px) scale(1.04); }
.sp-ranked .sp-card { margin-right: -40px; }

/* ---------- بطاقة كاتب (سبوتيفاي) ---------- */
.sp-grid--artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.sp-rail .sp-artist { width: 234px; }
.sp-artist { position: relative; display: block; background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--r-md); padding: 20px 18px;
  text-align: center; box-shadow: var(--el-2); text-decoration: none; color: inherit; cursor: pointer;
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out); overflow: hidden; }
.sp-artist:hover { box-shadow: var(--el-4); transform: translateY(-6px); }
.sp-artist--top { background: linear-gradient(180deg, rgba(124,58,237,0.1), var(--sp-card)); border: 1px solid rgba(124,58,237,0.2); }
.sp-artist__art { position: relative; width: 130px; height: 130px; margin: 0 auto 16px; border-radius: 50%;
  background: #ece5fb;
  animation: skPulse 1.4s ease-in-out infinite; }
.sp-artist__art.is-loaded { animation: none; opacity: 1; background: none; }
/* شمعدان تحميل الصورة: واقف افتراضياً، يشتغل بس لما القسم يدخل الشاشة */
.sp-artist__art { animation-play-state: paused; }
.reveal.is-visible .sp-artist__art { animation-play-state: running; }
.sp-artist__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px rgba(124,58,237,0.18); position: relative; z-index: 1; }
.sp-artist__rank { position: absolute; top: -4px; right: -4px; z-index: 2; min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: 999px; background: var(--sp-grad); color: #fff; font-weight: 900; font-size: 0.9rem;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(124,58,237,0.55); }
.sp-artist--top .sp-artist__rank { background: linear-gradient(120deg, #ffd76a, #f59e0b); color: #2a1d00; }
.sp-artist__play { position: absolute; bottom: 4px; left: 4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--sp-grad);
  box-shadow: 0 8px 18px rgba(124,58,237,0.55); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.sp-artist:hover .sp-artist__play { opacity: 1; transform: translateY(0); }
.sp-artist__name { font-size: 1.08rem; font-weight: 800; color: var(--sp-text); }
.sp-artist__type { font-size: 0.78rem; color: var(--sp-sub); margin-top: 4px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-artist__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 4px;
  padding: 12px 4px; background: var(--sp-bg); border-radius: 12px; }
.sp-artist__stat span { display: block; font-size: 0.95rem; font-weight: 900; color: var(--sp-text); }
.sp-artist__stat small { font-size: 0.62rem; color: var(--sp-sub); }
.sp-artist__inter { font-size: 0.74rem; color: var(--sp-sub); }
.sp-artist__inter span { color: var(--cyan); font-weight: 900; font-size: 1.05rem; }

/* ---------- اكتشف الكتب ---------- */
.sp-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.sp-chip { font-family: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--sp-line); background: #fff; color: var(--sp-sub); transition: all 0.2s; }
.sp-chip:hover { border-color: var(--purple); color: var(--purple); }
.sp-chip.is-active { background: var(--sp-text); color: #fff; border-color: var(--sp-text); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }

/* ================================================================
   ✦ Social proof — شهادات + دور نشر (Phase 5)
================================================================ */
.sx-social { padding: var(--s-7) 0 var(--s-6); }
.sx-social__head { text-align: center; margin-bottom: var(--s-6); }
.sx-social__head .sp-shelf__eyebrow { display: inline-block; margin-bottom: var(--s-2); }
.sx-social__head .sp-shelf__title { display: inline-block; }

.sx-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.sx-testi {
  position: relative;
  margin: 0;
  padding: var(--s-6) var(--s-5);
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: var(--r-lg);
  box-shadow: var(--el-2);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
.sx-testi::before {
  content: '"';
  position: absolute; top: -16px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 2.4rem; line-height: 0.9;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--el-brand);
}
.sx-testi:hover { transform: translateY(-4px); box-shadow: var(--el-3); }
.sx-testi__stars {
  display: flex; gap: 3px; color: var(--accent-gold);
  font-size: 1rem; margin-bottom: var(--s-3);
}
.sx-testi blockquote {
  margin: 0 0 var(--s-4);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--n-800);
  font-weight: 700;
}
.sx-testi figcaption {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--sp-line);
}
.sx-testi figcaption img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--brand-100);
  background: var(--n-100);
}
.sx-testi figcaption div { display: flex; flex-direction: column; gap: 2px; }
.sx-testi figcaption strong {
  font-family: var(--font-display); font-weight: 800; font-size: 0.98rem;
  color: var(--n-900);
}
.sx-testi figcaption span { font-size: 0.78rem; color: var(--n-500); }

/* Partners */
.sx-partners {
  scroll-margin-top: 90px;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, #f8f6ff);
  border: 1px solid var(--sp-line);
  display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap;
}
.sx-partners__lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--n-500);
  padding-left: var(--s-5);
  border-left: 1px solid var(--sp-line);
}
.sx-partners__row {
  display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; flex: 1;
  justify-content: space-around;
}
.sx-partner {
  display: block; height: 48px;
  filter: grayscale(1); opacity: 0.75;
  transition: filter var(--dur-normal), opacity var(--dur-normal), transform var(--dur-normal) var(--ease-out);
}
.sx-partner img { height: 100%; width: auto; display: block; object-fit: contain; border-radius: 8px; }
.sx-partner:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
/* الشاشات اللمسية من غير hover — اللوجوهات بألوانها الطبيعية */
@media (hover: none) {
  .sx-partner { filter: none; opacity: 1; }
}

@media (max-width: 900px) {
  .sx-testimonials { grid-template-columns: 1fr; }
  .sx-partners { flex-direction: column; gap: var(--s-4); }
  .sx-partners__lbl { padding-left: 0; border-left: 0; padding-bottom: var(--s-3); border-bottom: 1px solid var(--sp-line); width: 100%; text-align: center; }
  .sx-partners__row { justify-content: center; gap: var(--s-5); }
}

/* ---------- CTA (قديم — محفوظ للاستخدام في صفحات أخرى) ---------- */
.sp-cta-sec { padding: 50px 0 70px; }
.sp-cta { background: linear-gradient(125deg, #2a1d4a, #3a2563 55%, #1d3a6b); border-radius: 24px;
  padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.sp-cta::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(rgba(79,209,255,0.35), transparent 65%); top: -170px; right: -80px; }
.sp-cta > * { position: relative; z-index: 1; }
.sp-cta h2 { font-family: 'Amiri', serif; font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; margin-bottom: 14px; color: #fff; }
.sp-cta p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; line-height: 1.85; }
.sp-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   ✦ قسم الإحصائيات — تصميم Bento (هوية الصفحة)
================================================================ */
.pulse-wrap { padding: var(--s-6) 0; }
.pulse { }
.pulse__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-6); }
.pulse__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 1px; color: var(--brand-700);
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.18);
  padding: 6px 14px; border-radius: var(--r-full); margin-bottom: var(--s-3);
}
.pulse__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(124,58,237,0.15); }
.pulse__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--sp-text); letter-spacing: -0.02em; }
.pulse__title b { background: linear-gradient(120deg, #7c3aed, #a855f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pulse__sub { margin-top: var(--s-2); color: var(--sp-sub); font-size: 1.02rem; line-height: 1.7; }

/* لوحة تحكّم موحّدة */
.dash {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(124,58,237,0.1);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

/* الشريط العلوي: عنوان + تقييم */
.dash__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(120deg, rgba(124,58,237,0.05), rgba(79,209,255,0.05));
  border-bottom: 1px solid rgba(124,58,237,0.1);
}
.dash__bar-ttl { display: flex; align-items: center; gap: 14px; }
.dash__bar-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 8px 20px rgba(124,58,237,0.3); flex-shrink: 0;
}
.dash__h { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--sp-text); }
.dash__hint { font-size: 0.82rem; color: var(--sp-sub); }
.dash__rate {
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 12px;
  padding: 10px 18px; border-radius: 16px;
  background: linear-gradient(150deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 30px rgba(124,58,237,0.32);
}
.dash__rate-stars { grid-column: 1; color: #ffd76b; font-size: 0.8rem; letter-spacing: 1.5px; }
.dash__rate-main { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 900; color: #fff; }
.dash__rate-num { font-size: 2.2rem; line-height: 1; -webkit-text-fill-color: #fff; }
.dash__rate-of { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.72); }
.dash__rate-lbl { grid-column: 1; font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.9); }

/* الجسم: رسم + جانب */
.dash__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
.dash__chart {
  display: flex; flex-direction: column;
  padding: 22px 26px;
  border-left: 1px solid rgba(124,58,237,0.1);
}
.dash__chart .linechart-wrap { flex: 1; min-height: 230px; }
.dash__side { display: flex; flex-direction: column; }

/* رؤوس اللوحات الداخلية */
.dash__phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dash__ptitle { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--sp-text); }
.pbadge {
  font-size: 0.72rem; font-weight: 700; color: var(--brand-700);
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.18);
  padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap;
}

/* المقاييس — قائمة 2×2 */
.dash__metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
}
.dmetric {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 14px;
  border-radius: 14px;
  transition: background var(--dur-fast);
}
.dmetric:hover { background: rgba(124,58,237,0.05); }
.dmetric__ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--brand-700); background: rgba(124,58,237,0.1);
}
.dmetric__txt { display: flex; flex-direction: column; }
.dmetric__val { display: flex; align-items: baseline; gap: 1px; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; }
.dmetric__val .stat-num {
  font-size: 1.5rem; line-height: 1;
  background: linear-gradient(135deg, var(--brand-600, #6d28d9), #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dmetric__plus { font-size: 0.9rem; font-weight: 900; color: var(--brand-500); }
.dmetric__lbl { font-size: 0.8rem; font-weight: 600; color: var(--sp-sub); margin-top: 2px; }

/* الجغرافيا */
.dash__geo { padding: 18px 24px 24px; border-top: 1px solid rgba(124,58,237,0.1); }
.dash__geo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pgeo__item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.pgeo__ring {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #fff 72%, transparent 74% 100%),
    conic-gradient(var(--brand-500) calc(var(--pct) * 1%), rgba(124,58,237,0.12) 0);
}
.pgeo__code { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; color: var(--brand-700); letter-spacing: 0.5px; }
.pgeo__name { font-size: 0.82rem; font-weight: 700; color: var(--sp-text); }
.pgeo__pct  { font-size: 0.78rem; font-weight: 800; color: var(--brand-500); }

/* استجابة الـ dashboard — كل الأجهزة */
.dash__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* تابلت أفقي / لابتوب صغير */
@media (max-width: 1024px) {
  .dash__body { grid-template-columns: 1.2fr 1fr; }
  .dash__chart { padding: 20px 20px; }
  .dash__geo { padding: 16px 18px 20px; }
}

/* تابلت رأسي — عمود واحد */
@media (max-width: 860px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__chart { border-left: none; border-bottom: 1px solid rgba(124,58,237,0.1); }
  .dash__chart .linechart-wrap { min-height: 210px; }
}

/* موبايل كبير */
@media (max-width: 600px) {
  .pulse-wrap { padding: var(--s-5) 0; }
  .dash { border-radius: 18px; }
  .dash__bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px; }
  .dash__rate { justify-content: center; }
  .dash__chart { padding: 18px 16px; }
  .dash__metrics { padding: 6px; }
  .dmetric { padding: 12px 10px; gap: 10px; }
  .dash__geo { padding: 14px 16px 18px; }
}

/* موبايل صغير */
@media (max-width: 440px) {
  .dash__metrics { grid-template-columns: 1fr; }
  .dash__geo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .dmetric__val .stat-num { font-size: 1.35rem; }
  .dash__chart .linechart-wrap { min-height: 180px; }
  .pgeo__ring { width: 62px; height: 62px; }
}

/* أصغر الشاشات */
@media (max-width: 340px) {
  .dash__bar-ico { width: 40px; height: 40px; }
  .dash__h { font-size: 1.05rem; }
  .dmetric { padding: 10px 8px; }
}

/* ================================================================
   ✦ أسئلة شائعة (FAQ مرئي)
================================================================ */
.faq2 { padding: var(--s-6) 0; max-width: 820px; margin: 0 auto; }
.faq2__head { text-align: center; margin-bottom: var(--s-5); }
.faq2__list { display: flex; flex-direction: column; gap: 12px; }
.faq2__item {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.faq2__item[open] { border-color: rgba(124,58,237,0.3); box-shadow: 0 10px 28px rgba(124,58,237,0.1); }
.faq2__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: var(--sp-text);
}
.faq2__q::-webkit-details-marker { display: none; }
.faq2__ico {
  position: relative; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(124,58,237,0.1);
  transition: transform var(--dur-normal) var(--ease-out), background var(--dur-fast);
}
.faq2__ico::before, .faq2__ico::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 2px; border-radius: 2px;
  background: var(--brand-600, #6d28d9);
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-fast);
}
.faq2__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq2__item[open] .faq2__ico { background: rgba(124,58,237,0.16); }
.faq2__item[open] .faq2__ico::after { opacity: 0; }
.faq2__a {
  padding: 0 22px 20px;
  color: var(--sp-sub); font-size: 0.98rem; line-height: 1.9;
}
@media (max-width: 560px) {
  .faq2__q { padding: 15px 16px; font-size: 0.95rem; }
  .faq2__a { padding: 0 16px 16px; font-size: 0.92rem; }
}

/* ================================================================
   ✦ CTA split — كاتب / دار نشر (Phase 6)
================================================================ */
.cx-cta {
  position: relative;
  padding: var(--s-8) var(--s-6);
  margin: var(--s-7) 0 var(--s-8);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 380px at 15% 20%, rgba(124,58,237,0.08), transparent 60%),
    radial-gradient(600px 320px at 85% 85%, rgba(79,209,255,0.08), transparent 60%),
    linear-gradient(140deg, var(--sp-bg-top) 0%, #fff 60%);
  border: 1px solid var(--sp-line);
  overflow: hidden;
  isolation: isolate;
}
.cx-cta__head { position: relative; z-index: 1; text-align: center; }
.cx-cta__head .sp-shelf__eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.cx-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800; letter-spacing: -0.3px;
  margin: 0 0 var(--s-3);
  color: var(--sp-text);
}
.cx-cta__title b {
  background: var(--sp-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cx-cta__sub {
  max-width: 620px; margin: 0 auto;
  color: var(--sp-sub);
  line-height: 1.85; font-size: 1rem;
}

.cx-cta__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-6);
  padding: 16px 38px; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-pink), var(--brand-500));
  box-shadow: 0 14px 34px rgba(244,114,182,0.35);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), filter var(--dur-fast);
}
.cx-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cx-cta__btn svg { transition: transform var(--dur-fast) var(--ease-out); }
.cx-cta__btn:hover svg { transform: translateX(-3px); }

@media (max-width: 780px) {
  .cx-cta { padding: var(--s-6) var(--s-4); }
}

/* ---------- استجابة ---------- */
@media (max-width: 980px) {
  .sp-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .h2-wrap { padding: 0 18px; }
  /* كتاب اليوم: الغلاف فوق والبيانات تحته */
  /* padding-top زيادة عشان تاج "كتاب اليوم" ياخد مساحته فوق من غير
     ما يتداخل مع الغلاف (الغلاف بيبقى في النص على الموبايل) */
  .sp-feat { grid-template-columns: 1fr; gap: 16px; padding: 62px 18px 24px; text-align: center; }
  .sp-feat__art { width: 170px; margin: 0 auto; }
  .sp-feat__title { font-size: 1.7rem; }
  .sp-feat__chips { justify-content: center; }
  /* زرار "اقرأ الآن" والسعر: نفس الحجم وماليين عرض الكرت */
  .sp-feat__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sp-feat__actions .sp-btn { width: 100%; justify-content: center; padding: 13px 10px; }
  .sp-feat__price {
    display: grid; place-items: center; margin: 0;
    border: 1.5px solid rgba(255,255,255,0.4); border-radius: 999px;
    font-size: 1rem; padding: 12px 10px;
  }
  .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sp-grid--artists { grid-template-columns: repeat(2, 1fr); }
  /* الأكثر تحميلاً: الكرت متوسّط بين السهمين والرقم وراه على الجنب */
  .sp-ranked { justify-content: center; width: calc(100vw - 116px); }
  .sp-ranked__num { position: absolute; right: -6px; bottom: 62px; z-index: 0; font-size: 104px; margin: 0; }
  .sp-rail .sp-ranked .sp-card {
    margin-right: 0; width: 190px; z-index: 1;
    background: transparent; border: none; box-shadow: none; padding: 0;
  }
  .sp-ranked .sp-card__art { border-radius: 0; }
}

/* ================================================================
   ✦ سلايدر شهادات الأعضاء
================================================================ */
.sx-rail-wrap { margin-bottom: var(--s-6); }
.sx-rail .sx-testi {
  flex: 0 0 min(380px, 84vw);
  scroll-snap-align: start;
}
@media (max-width: 620px) {
  .sx-rail .sx-testi { flex-basis: min(320px, 86vw); }
}

/* ================================================================
   ✦ زرار الانضمام في الهيدر
================================================================ */
.main-header { grid-template-columns: 44px 1fr auto; }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.hdr-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #7C3AED, #5B8DEF);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124,58,237,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hdr-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124,58,237,0.4); }
@media (max-width: 768px) {
  .main-header { grid-template-columns: 40px 1fr auto; }
  .hdr-cta { font-size: 0.74rem; padding: 7px 13px; }
}
@media (max-width: 380px) {
  .hdr-cta { font-size: 0.68rem; padding: 6px 10px; }
  .hdr-tools { gap: 6px; }
}

/* ================================================================
   ✦ تحسينات الموبايل — التصنيفات في سطر واحد وأسهم أصغر
================================================================ */
@media (max-width: 620px) {
  .sp-chips {
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; margin-bottom: 16px;
  }
  .sp-chips::-webkit-scrollbar { display: none; }
  .sp-chip { flex: 0 0 auto; white-space: nowrap; }
  .sp-nav--below .sp-nav-btn { width: 34px; height: 34px; }
  .sp-nav--below { right: -10px; left: -10px; }
  /* الكروت تقف بين السهمين مش تحتهم */
  .sp-rail { padding-inline: 40px; scroll-padding-inline: 40px; }
  /* الكرت ياخد عرض المساحة بين السهمين بالظبط — كرت واحد في النص */
  .sp-rail .sp-card,
  .sp-rail .sp-artist,
  .wx-rail .wx-card { width: calc(100vw - 116px); }
  /* كرت التقييم على الموبايل: الصورة والاسم فوق، ثم النجوم، ثم الاقتباس */
  .sx-rail .sx-testi {
    flex-basis: calc(100vw - 116px);
    display: flex; flex-direction: column; align-items: center;
    padding: 24px 18px 22px;
    text-align: center;
  }
  .sx-testi::before { display: none; }
  .sx-rail .sx-testi figcaption {
    order: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    width: 100%;
    padding-top: 0; margin-bottom: 14px; padding-bottom: 14px;
    border-top: none; border-bottom: 1px dashed var(--sp-line);
  }
  .sx-rail .sx-testi figcaption img { width: 58px; height: 58px; }
  .sx-rail .sx-testi figcaption div { align-items: center; text-align: center; }
  .sx-rail .sx-testi figcaption strong { font-size: 0.95rem; }
  .sx-rail .sx-testi .sx-testi__stars { justify-content: center; font-size: 0.88rem; margin-bottom: 10px; }
  .sx-rail .sx-testi blockquote {
    font-size: 0.95rem; line-height: 1.9; margin-bottom: 0;
    flex: 1; display: flex; align-items: center;
  }
  /* كرت "من كتابات الأعضاء" على الموبايل: مساحة أقل + فوتر يلفّ لو الاسم طويل */
  .wx-rail .wx-card { padding: 18px; min-height: 0; }
  .wx-rail .wx-card__title { font-size: 0.95rem; }
  .wx-rail .wx-card__excerpt { font-size: 0.88rem; line-height: 1.85; -webkit-line-clamp: 3; }
  .wx-rail .wx-card__foot { flex-wrap: wrap; gap: 8px 10px; }
  .wx-rail .wx-card__author { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wx-rail .wx-card__btn { flex-shrink: 0; }
}

/* ================================================================
   ✦ من كتابات الأعضاء
================================================================ */
.wx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* نسخة السلايدر: الكروت عرض ثابت جوّه الـ rail — بس من التابلت لفوق،
   عشان مايكسرش قاعدة الموبايل (calc(100vw - 116px)) المعرّفة فوق */
@media (min-width: 621px) {
  .wx-rail .wx-card { width: 320px; min-height: 260px; }
}
.wx-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--sp-line); border-radius: var(--r-lg);
  padding: 22px;
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal), border-color var(--dur-normal);
}
.wx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.28);
  box-shadow: 0 16px 34px rgba(124,58,237,0.10);
}
.wx-card__genre {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; color: var(--purple);
  background: rgba(124,58,237,0.08);
  padding: 4px 12px; border-radius: 999px;
}
.wx-card__title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--sp-text); line-height: 1.5;
}
.wx-card__excerpt {
  font-family: 'Amiri', serif; font-size: 0.94rem; line-height: 1.95;
  color: var(--n-500); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.wx-card__author { font-size: 0.8rem; font-weight: 700; color: var(--purple); }
.wx-card__arrow { font-weight: 900; }
.wx-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--sp-line);
}
.wx-card__btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  padding: 8px 14px; border-radius: var(--r-full);
  box-shadow: 0 6px 16px rgba(124,58,237,0.28);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast);
}
.wx-card__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wx-card__btn span { font-weight: 900; }
@media (max-width: 1000px) { .wx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .wx-grid { grid-template-columns: 1fr; } }

/* ================================================================
   ✦ انشر كتابك في ثلاث خطوات
================================================================ */
.hw-steps { padding: var(--s-6) 0; }
.hw-steps__head { text-align: center; margin-bottom: var(--s-7); }
.hw-steps__head .sp-shelf__eyebrow { display: inline-block; margin-bottom: 6px; }

/* خط زمني أفقي */
.hw-steps__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; position: relative;
  max-width: 1120px; margin: 0 auto;
}
.hw-steps__grid::before {
  content: ''; position: absolute; top: 29px; left: 9%; right: 9%; height: 3px;
  background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(124,58,237,0.4) 50%, rgba(124,58,237,0.12));
  border-radius: 3px; z-index: 0;
}
.hw-step {
  position: relative; z-index: 1; text-align: center; padding: 0 14px;
}
.hw-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, #7C3AED, #5B8DEF);
  box-shadow: 0 8px 20px rgba(124,58,237,0.32), 0 0 0 6px var(--sp-bg-top, #f7f5fc);
  margin-bottom: 18px;
  transition: transform var(--dur-normal) var(--ease-out);
}
.hw-step:hover .hw-step__num { transform: translateY(-4px) scale(1.06); }
.hw-step__title { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--sp-text); margin-bottom: 8px; }
.hw-step__desc { font-size: 0.86rem; line-height: 1.85; color: var(--n-500); max-width: 210px; margin: 0 auto; }

/* تابلت — يتحوّل لخط زمني رأسي */
@media (max-width: 820px) {
  .hw-steps__grid { grid-template-columns: 1fr; max-width: 440px; gap: 0; }
  .hw-steps__grid::before {
    top: 10px; bottom: 10px; left: auto; right: 28px; width: 3px; height: auto;
    background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(124,58,237,0.4) 50%, rgba(124,58,237,0.12));
  }
  .hw-step {
    display: grid; grid-template-columns: 58px 1fr; align-items: start;
    gap: 4px 16px; text-align: right; padding: 0 0 26px;
  }
  .hw-step:last-child { padding-bottom: 0; }
  .hw-step__num { grid-column: 1; grid-row: 1 / span 2; margin: 0; width: 58px; height: 58px; }
  .hw-step__title { grid-column: 2; grid-row: 1; margin-top: 12px; margin-bottom: 4px; }
  .hw-step__desc { grid-column: 2; grid-row: 2; max-width: none; margin: 0; }
}

/* ================================================================
   ✦ أسئلة شائعة
================================================================ */
.fq-sec { padding: var(--s-6) 0 var(--s-7); max-width: 820px; margin: 0 auto; }
.fq-sec__head { text-align: center; margin-bottom: var(--s-6); }
.fq-sec__head .sp-shelf__eyebrow { display: inline-block; margin-bottom: 6px; }
.fq-list { display: flex; flex-direction: column; gap: 12px; }
.fq-item {
  background: #fff; border: 1px solid var(--sp-line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}
.fq-item[open] { border-color: rgba(124,58,237,0.3); box-shadow: 0 10px 26px rgba(124,58,237,0.08); }
.fq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--sp-text);
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item__chev {
  flex-shrink: 0; color: var(--purple); font-weight: 900; font-size: 1.1rem;
  transition: transform var(--dur-normal) var(--ease-out);
}
.fq-item[open] .fq-item__chev { transform: rotate(180deg); }
.fq-item p {
  padding: 0 22px 20px;
  font-size: 0.9rem; line-height: 2; color: var(--n-500);
}

/* ================================================================
   ✦ الفوتر — عمود إضافي على الشاشات الواسعة
================================================================ */
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
