/* ══════════════════════════════════════════════════════════
   MAESTRO — Home CSS (Premium Modern Look & Glassmorphism)
   نسخة مدمجة بالكامل — معالجة الترتيب الشبكي (3 فوق و 3 تحت)
   تحديث: شريط تمرير أحمر + خطوط سلايدر احترافية
══════════════════════════════════════════════════════════ */
:root {
  /* Premium Dark Cosmic Gradient — أسود × ذهبي × فضائي */
  --bg:
    radial-gradient(ellipse 55% 40% at 15% -5%,  rgba(212,175,55,.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 38% at 92% 8%,   rgba(139,92,246,.12) 0%, transparent 62%),
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(212,175,55,.09) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 70% 55%,  rgba(56,189,248,.05) 0%, transparent 65%),
    linear-gradient(160deg, #000000 0%, #0d0a04 22%, #171209 42%, #0a0806 65%, #000000 100%);
  --bg2: rgba(15, 12, 8, 0.4); 
  --bg3: rgba(24, 19, 12, 0.5);
  --card: rgba(15, 12, 8, 0.6); 
  --card2: rgba(20, 16, 10, 0.7);
  --bd: rgba(212, 175, 55, 0.10); 
  --bd2: rgba(212, 175, 55, 0.20);
  --tx: #e7e2d5; --tx2: #ffffff;
  --mt: #6b6555; --mt2: #b3a98b;
  --nav-bg: rgba(6, 5, 3, 0.68); 
  --footer-bg: rgba(6, 5, 3, 0.92);
  --r: 20px; --shadow: 0 10px 40px rgba(0,0,0,0.5);
  /* لمسة جمالية إضافية: أحمر نابض يتناغم مع الأسود والذهبي في الهوية */
  --red: #e21b34; 
  --red2: #8c0018; 
  --red-rgb: 226,27,52;
  --g: #d4af37;
  --gr: 212,175,55;
  --gg: rgba(212,175,55,0.5);
  --nav-h: 74px;
  /* متغيرات الخطوط */
  --font-primary: 'Cairo', 'Tajawal', sans-serif;
  --font-heading: 'Lalezar', 'Tajawal', 'Cairo', sans-serif;
}

html.light-mode {
  --bg: linear-gradient(135deg, #f4f7fe 0%, #e6effd 100%);
  --bg2: rgba(232, 237, 248, 0.5); 
  --bg3: rgba(221, 227, 242, 0.6);
  --card: rgba(255, 255, 255, 0.85); 
  --card2: rgba(248, 250, 255, 0.9);
  --bd: rgba(0, 0, 0, 0.06); 
  --bd2: rgba(0, 0, 0, 0.12);
  --tx: #1e2540; --tx2: #0a0e1a;
  --mt: #8892aa; --mt2: #5a6480;
  --nav-bg: rgba(244, 247, 254, 0.75); 
  --footer-bg: rgba(232, 237, 248, 0.9);
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== شريط التمرير الأحمر الاحترافي ===== */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(0,0,0,0.15);
}

html.light-mode {
  scrollbar-color: var(--red2) rgba(0,0,0,0.06);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

html.light-mode ::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.04);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(var(--red-rgb), 0.4);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red2);
  box-shadow: 0 0 30px rgba(var(--red-rgb), 0.6);
}

html.light-mode ::-webkit-scrollbar-thumb {
  background: var(--red2);
}

html.light-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

body {
  font-family: var(--font-primary);
  background: var(--bg); 
  color: var(--tx);
  background-attachment: fixed;
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased;
}

body.inner-page { padding-top: var(--nav-h); }
body.inner-page #nav { background: var(--nav-bg); border-bottom: 1px solid var(--bd); }

::selection { background: var(--g); color: #000; }
#stars-c, #noise-c { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .4s; }
#noise-c { opacity: .25; }
html.light-mode #stars-c { opacity: .1; }
html.light-mode #noise-c { opacity: .05; }

/* غبار ذهبي عائم في الفضاء الداكن */
body::before {
  content: '';
  position: fixed; inset: -5% -5% -5% -5%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.8px 1.8px at 12% 22%, rgba(212,175,55,.55), transparent),
    radial-gradient(1.4px 1.4px at 28% 68%, rgba(212,175,55,.4), transparent),
    radial-gradient(2px 2px at 46% 12%, rgba(212,175,55,.45), transparent),
    radial-gradient(1.5px 1.5px at 63% 55%, rgba(212,175,55,.35), transparent),
    radial-gradient(2px 2px at 78% 30%, rgba(212,175,55,.5), transparent),
    radial-gradient(1.3px 1.3px at 88% 75%, rgba(212,175,55,.35), transparent),
    radial-gradient(1.6px 1.6px at 35% 88%, rgba(212,175,55,.3), transparent),
    radial-gradient(1.4px 1.4px at 95% 12%, rgba(212,175,55,.4), transparent);
  background-repeat: no-repeat;
  opacity: .65;
  animation: goldDustDrift 22s ease-in-out infinite alternate;
}
html.light-mode body::before { opacity: 0; }
@keyframes goldDustDrift {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  50%  { transform: translateY(-18px) translateX(6px) scale(1.015); }
  100% { transform: translateY(-32px) translateX(-4px) scale(1.03); }
}

#nav.solid::after {
  content: '';
  position: absolute; left: 8%; right: 8%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--g) 50%, transparent);
  opacity: .55;
  animation: navShimmer 3.4s ease-in-out infinite;
}
@keyframes navShimmer { 0%,100% { opacity: .25; } 50% { opacity: .75; } }
html.light-mode #nav.solid::after { opacity: .3; }

/* ── NAVBAR MODERN ── */
#nav {
    position: fixed; top: 0; width: 100%; z-index: 500; 
    padding: 0.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}
#nav.solid {
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 0.5rem 2rem;
}
.nav-w { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }

.nav-brand { position: relative; display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-glow {
    position: absolute; inset: -16px; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--gr),.55) 0%, rgba(139,92,246,.22) 45%, transparent 75%);
    filter: blur(11px); opacity: .5; border-radius: 50%;
    animation: brandPulse 3.2s ease-in-out infinite;
}
@keyframes brandPulse { 0%,100%{opacity:.35;transform:scale(1);} 50%{opacity:.7;transform:scale(1.18);} }
.brand-img { position: relative; z-index: 1; height: 48px; width: auto; filter: drop-shadow(0 0 15px rgba(var(--gr),.4)); transition: transform 0.3s; }
.nav-brand:hover .brand-img { transform: scale(1.06); }
.nav-brand:hover .brand-glow { opacity: .8; }

.brand-ic {
    position: relative; z-index: 1;
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--g), #a68412);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; box-shadow: 0 4px 20px var(--gg);
}

.nav-lnks { display: flex; align-items: center; gap: 0.4rem; }
.nav-lnks a {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; font-weight: 700; color: var(--mt2);
    transition: all 0.3s ease; padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 99px;
    text-decoration: none;
}
.nav-lnks a:hover, .nav-lnks a.on { color: var(--tx2); background: rgba(255,255,255,0.06); }
html.light-mode .nav-lnks a:hover, html.light-mode .nav-lnks a.on { background: rgba(0,0,0,0.05); }

.nav-ic {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .92rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 3px 12px var(--gg);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.ic-home     { background: linear-gradient(135deg,#ffe9b3,#d4af37); color:#2b2205; }
.ic-grades   { background: linear-gradient(135deg,#d4af37,#9c7a12); color:#1a1400; }
.ic-features { background: linear-gradient(135deg,#e6c78a,#8a6d2f); color:#231a05; }
.ic-default  { background: linear-gradient(135deg,#f0d58c,#b8860b); color:#241c02; }
.nav-lnks a:hover .nav-ic, .nav-lnks a.on .nav-ic {
    transform: scale(1.14) rotate(-6deg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 5px 18px var(--gg);
}

.nav-acts { display: flex; align-items: center; gap: 0.8rem; }
.btn-gold-n, .btn-ghost-n { 
    display: flex; align-items: center; gap: 8px; font-size: .83rem; 
    border-radius: 99px; text-decoration: none; font-weight: 900; 
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s; 
}
.btn-gold-n { padding: .5rem 1.4rem; background: linear-gradient(135deg, var(--g), rgba(var(--gr),.7)); color: #000; box-shadow: 0 4px 20px var(--gg); }
.btn-ghost-n { padding: .48rem 1.1rem; border: 1.5px solid var(--bd2); color: var(--tx); backdrop-filter: blur(10px); }
.btn-gold-n:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--gg); }
.btn-ghost-n:hover { background: rgba(255,255,255,0.05); border-color: var(--tx); }
html.light-mode .btn-ghost-n:hover { background: rgba(0,0,0,0.05); }

.theme-toggle-modern { 
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; 
    color: var(--tx); font-size: 1.2rem; background: rgba(255,255,255,0.03); 
    border: 1px solid var(--bd2); width: 44px; height: 44px; 
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.theme-toggle-glow {
    position: absolute; inset: -6px; z-index: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--g), #a78bfa, #38bdf8, var(--g));
    opacity: .25; filter: blur(6px);
    animation: spinGlow 5s linear infinite;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }
.theme-toggle-icon { position: relative; z-index: 1; display: flex; transition: transform .3s ease, opacity .3s ease; }
.theme-toggle-icon i {
    background: linear-gradient(135deg, var(--g), #fff7d6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px var(--gg));
}
html.light-mode .theme-toggle-icon i {
    background: linear-gradient(135deg, #f59e0b, #fde68a);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.theme-toggle-modern:hover { background: rgba(255,255,255,0.1); transform: rotate(15deg) scale(1.08); color: var(--tx2); }
html.light-mode .theme-toggle-modern { background: rgba(0,0,0,0.03); }
html.light-mode .theme-toggle-modern:hover { background: rgba(0,0,0,0.08); }

.mob-tog { font-size: 1.6rem; display: none; background: transparent; border: none; color: var(--tx); cursor: pointer; transition: color 0.3s; }
.mob-tog:hover { color: var(--g); }

/* ── Mobile Drawer ── */
.mob-overlay { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 599; opacity: 0; visibility: hidden; transition: all 0.4s ease; 
}
.mob-overlay.show { opacity: 1; visibility: visible; }
#mob-m {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 320px; max-width: 85%;
    background: var(--nav-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 600; display: flex; flex-direction: column; padding: 2.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-left: 1px solid var(--bd); box-shadow: -10px 0 50px rgba(0,0,0,0.4);
}
#mob-m.open { right: 0; }
.mob-hdr { display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
.mob-cls { background: rgba(255,255,255,0.05); border: 1px solid var(--bd); color: var(--tx); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.mob-cls:hover { background: var(--g); color: #000; transform: rotate(90deg); }
.mob-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mob-links a { 
    display: flex; align-items: center; gap: 14px; font-size: 1.15rem; font-weight: 700; 
    color: var(--tx); text-decoration: none; padding: .8rem 1.2rem; 
    border-radius: 14px; transition: all 0.3s; border: 1px solid transparent;
}
.mob-links a .nav-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.mob-links a:hover { background: rgba(255,255,255,0.03); border-color: var(--bd); transform: translateX(-5px); }
.mob-links a:hover .nav-ic { transform: scale(1.1) rotate(-6deg); }
html.light-mode .mob-links a:hover { background: rgba(0,0,0,0.03); }
.mob-sep { height: 1px; background: var(--bd); margin: 2rem 0; }
.mob-acts { display: flex; flex-direction: column; gap: 1rem; }
.mob-btn-gold, .mob-btn-ghost { padding: 1.1rem; border-radius: 14px; text-align: center; font-weight: 800; text-decoration: none; font-size: 1.05rem; transition: transform 0.3s; }
.mob-btn-gold { background: linear-gradient(135deg, var(--g), rgba(var(--gr),.7)); color: #000; box-shadow: 0 4px 20px var(--gg); }
.mob-btn-ghost { border: 1.5px solid var(--bd2); color: var(--tx); }
.mob-btn-gold:active, .mob-btn-ghost:active { transform: scale(0.96); }

/* ── HERO SECTION ── */
#hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% -15%, rgba(var(--gr),.16) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 88% 70%, rgba(var(--red-rgb),.14) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 6% 85%, rgba(var(--red-rgb),.10) 0%, transparent 68%);
}
.gem-wrapper { animation: gemIdleFloat 6.5s ease-in-out infinite; }
@keyframes gemIdleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) { .gem-wrapper { animation: none; } }
.h-track { position: relative; z-index: 10; width: 100%; max-width: 1360px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.slide { display: none; }
.slide.active { display: block; animation: slideIn .85s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideIn { from{opacity:0;transform:translateY(40px) scale(.98);} to{opacity:1;transform:translateY(0) scale(1);} }
.sg { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ── تحسين السلايدر: خطوط احترافية جذابة ── */
.sl-num {
  font-size: .75rem;
  font-weight: 900;
  color: var(--mt);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
  font-family: var(--font-primary);
}
.sl-num-bar { 
  height: 2px; 
  width: 50px; 
  background: linear-gradient(90deg, var(--g), transparent);
  border-radius: 2px;
}
.sl-num-cur { 
  color: var(--g);
  font-weight: 900;
  font-size: .85rem;
}

.sl-ttl {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.1;
  color: var(--red);
  margin-top: -1.5rem;
  margin-bottom: 1.3rem;
  text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 10px 30px rgba(var(--red-rgb),.25);
}
html.light-mode .sl-ttl {
  color: var(--red2);
  text-shadow: 0 3px 0 rgba(0,0,0,.08), 0 10px 30px rgba(var(--red-rgb),.12);
}
.sl-ttl .gw {
  background: linear-gradient(135deg, var(--red) 0%, #fff 45%, var(--red) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light-mode .sl-ttl .gw {
  background: linear-gradient(135deg, var(--red2) 0%, #1a1a2e 45%, var(--red2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sl-ttl .gw-name {
  font-weight: 400;
  background: linear-gradient(90deg, var(--red) 0%, #1a0000 42%, #050000 50%, #1a0000 58%, var(--red) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.45));
}
html.light-mode .sl-ttl .gw-name {
  background: linear-gradient(90deg, var(--red2) 0%, #2a1a1a 42%, #1a0a0a 50%, #2a1a1a 58%, var(--red2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.sl-sub {
  font-size: 1.05rem;
  color: var(--mt2);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 500px;
  font-family: var(--font-primary);
  font-weight: 400;
}
html.light-mode .sl-sub {
  color: var(--mt);
  font-weight: 500;
}

.sl-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.bp { 
  background: linear-gradient(135deg, var(--g), rgba(var(--gr),.75)); 
  color: #000; 
  font-weight: 900; 
  padding: .9rem 2rem; 
  border-radius: 12px; 
  font-size: .95rem; 
  text-decoration: none; 
  box-shadow: 0 6px 24px var(--gg); 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-family: var(--font-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}
.bp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--gg);
}
.bs { 
  background: rgba(255,255,255,.05); 
  border: 1.5px solid var(--bd2); 
  color: var(--tx); 
  font-weight: 700; 
  padding: .9rem 1.8rem; 
  border-radius: 12px; 
  text-decoration: none; 
  backdrop-filter: blur(8px);
  font-family: var(--font-primary);
  transition: all 0.3s;
}
.bs:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--g);
  transform: translateY(-3px);
}
html.light-mode .bs { background: rgba(0,0,0,.03); color: var(--tx2); }
html.light-mode .bs:hover { background: rgba(0,0,0,.06); }

/* ── الصورة الشفافة داخل برواز أسود ثلاثي الأبعاد ── */
.sl-vis { position: relative; width: 100%; display: flex; justify-content: center; }
.gem-wrapper {
    position: relative; width: 100%; max-width: 340px; margin: 2.5rem auto 0;
    display: flex; justify-content: center; align-items: center; z-index: 5;
}
.gem-img-cont {
    position: relative; width: 100%; padding: 16px; border-radius: 28px;
    background: linear-gradient(160deg, #1c0505 0%, #0a0202 55%, #000 100%);
    box-shadow:
        0 30px 55px rgba(0,0,0,.65),
        0 0 0 2px var(--g),
        0 0 0 6px rgba(0,0,0,.9),
        0 0 0 8px rgba(var(--gr),.45),
        0 0 40px rgba(var(--red-rgb),.18),
        inset 0 2px 0 rgba(255,255,255,.07),
        inset 0 -3px 10px rgba(0,0,0,.85);
    transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
}
.gem-img-cont::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(155deg, rgba(255,255,255,.06) 0%, transparent 35%);
}
.gem-img-cont::before {
    content: ''; position: absolute; inset: -8px; border-radius: inherit; pointer-events: none; z-index: 2;
    background-image:
        radial-gradient(circle at 14px 14px, var(--g) 0 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) 14px, var(--g) 0 3.5px, transparent 4px),
        radial-gradient(circle at 14px calc(100% - 14px), var(--g) 0 3.5px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--g) 0 3.5px, transparent 4px);
}
.gem-img-cont img {
    position: relative; z-index: 1;
    width: 100%; height: auto; display: block; border-radius: 18px;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.5));
    transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.gem-wrapper:hover .gem-img-cont { transform: translateY(-6px); box-shadow: 0 40px 65px rgba(0,0,0,.7), 0 0 0 1px rgba(var(--red-rgb),.4), 0 0 55px rgba(var(--red-rgb),.16), inset 0 2px 0 rgba(255,255,255,.08), inset 0 -3px 10px rgba(0,0,0,.85); }
.gem-wrapper:hover .gem-img-cont img { transform: scale(1.02); }

.gem-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: visible; }
.gem-spark {
    position: absolute; bottom: 0; width: 4px; height: 4px; background: #fff;
    border-radius: 50%; box-shadow: 0 0 10px 2px var(--red);
    animation: riseSpark 3s ease-in infinite; opacity: 0;
}
.gem-spark:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 2.5s; }
.gem-spark:nth-child(2) { left: 50%; animation-delay: 1s; animation-duration: 3s; }
.gem-spark:nth-child(3) { left: 80%; animation-delay: 0.5s; animation-duration: 2.8s; }
@keyframes riseSpark { 0% { bottom: -20px; opacity: 0; transform: scale(0.5); } 20% { opacity: 1; } 100% { bottom: 120%; opacity: 0; transform: scale(1.5); } }

.s-ctrl { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: .75rem; background: rgba(6,8,15,.5); padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--bd2); backdrop-filter: blur(10px); }

/* ── COMMON SECTIONS ── */
.section { padding: 5rem 2rem; position: relative; z-index: 10; }
.secw { max-width: 1360px; margin: 0 auto; }
.shdr { margin-bottom: 3rem; text-align: center; }
.stag { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .7rem; font-weight: 900; color: var(--red); letter-spacing: 2px; }
.stag::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(var(--red-rgb),.5); }

.sttl { 
  font-family: var(--font-heading); 
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); 
  font-weight: 400; 
  letter-spacing: 0; 
  color: var(--red); 
  margin-top: .5rem; 
  position: relative; 
  display: inline-block; 
  padding-bottom: 12px; 
}
html.light-mode .sttl { color: var(--red2); }
.sttl::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.secw:hover .sttl::after { width: 140px; }
.ssub { font-size: .95rem; color: var(--mt2); max-width: 500px; margin: 1rem auto 0; }

/* ── STATS ── */
.stats-bar { background: var(--bg2); border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); backdrop-filter: blur(15px); }
.stats-in { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-c { padding: 2rem 1rem; text-align: center; border-left: 1px solid var(--bd); }
.sn { font-size: 2.2rem; font-weight: 900; color: var(--red); display: block; }
.sl2 { font-size: .8rem; color: var(--mt2); font-weight: 600; }

/* ── كروت المراحل ── */
.gg2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.gc {
    display: block; width: 100%;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.gc:hover { transform: translateY(-10px) scale(1.02); }

.gc-img-el {
    width: 100%; height: auto !important;
    display: block; aspect-ratio: auto;
    transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5)) saturate(1.05) contrast(1.02);
}
.gc:hover .gc-img-el { 
    transform: scale(1.05); 
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.7)) saturate(1.15) contrast(1.05) brightness(1.03); 
}

.gc-shine { display: none !important; }

.gc-hover-cta {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 1rem 1.5rem; color: #fff; font-weight: 900; font-size: 1.1rem;
  background: radial-gradient(ellipse at bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  border-radius: 0 0 20px 20px;
  opacity: 0; transform: translateY(10px); transition: all 0.4s;
}
.gc:hover .gc-hover-cta { opacity: 1; transform: translateY(0); }
.gc-hover-cta i { color: var(--g); transition: transform .4s; }
.gc:hover .gc-hover-cta i { transform: translateX(-6px); }

.gc.gc-plain { background: var(--card) !important; border: 1px solid var(--bd) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important; border-radius: var(--r) !important; overflow: hidden !important; }
.gc.gc-plain .gc-bg { position: absolute; inset: 0; }
.gc.gc-plain .gc-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,8,15,.96) 0%, transparent 100%); }
.gc.gc-plain .gc-body { position: relative; z-index: 3; padding: 2rem; }
.gc-ttl { font-size: 1.3rem; font-weight: 900; color: #fff; }

/* ── المميزات ── */
.fg2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fc { 
    padding: 2.2rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all .4s; position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.fc:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }

.fc::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--g), #fff, var(--g), transparent);
    transition: left 0.7s ease-in-out; opacity: 0.8;
}
.fc:hover::before { left: 100%; }

.fc-ic {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.4rem; color: #241c02;
  background: linear-gradient(135deg, #ffe9b3, var(--g));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 18px var(--gg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.fc:hover .fc-ic { transform: scale(1.1) rotate(-6deg); }
.fc-t { font-size: 1.1rem; font-weight: 900; color: var(--tx2); margin-bottom: .5rem; }
.fc-d { font-size: .88rem; color: var(--mt2); line-height: 1.8; }

/* ── توهج CTA ── */
.cta { position: relative; padding: 5rem 2rem; text-align: center; overflow: hidden; border: none !important; z-index: 10; }
.cta::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 60%);
    z-index: -1; pointer-events: none; animation: pulseGlow 6s alternate infinite;
}
@keyframes pulseGlow { from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
.cta-t { font-family: var(--font-heading); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 400; color: var(--red); margin-bottom: 1rem; }
html.light-mode .cta-t { color: var(--red2); }

/* ── FOOTER ── */
footer { background: var(--footer-bg); border-top: 1px solid var(--bd); padding-top: 0; position: relative; z-index: 10; backdrop-filter: blur(20px); overflow: hidden; }
.ft-glow-line { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gr),.7) 50%, transparent); }
.ft-glow-line::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 3px; background: var(--g); filter: blur(10px); opacity: .65;
}
.ft { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding: 4rem 2rem 3rem; }
.ft-brand-link { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-bottom: 1rem; }
.ft-logo-t { font-size: 1.2rem; font-weight: 900; color: var(--tx2); }
.ft-desc { font-size: .9rem; color: var(--mt2); line-height: 1.8; margin: 1rem 0; max-width: 320px; }
.ft-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.ft-soc-ic {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(var(--gr),.14), rgba(var(--gr),.04));
    border: 1px solid var(--bd2); color: var(--g); font-size: 1.05rem; text-decoration: none;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
.ft-soc-ic:hover {
    background: linear-gradient(135deg, #ffe9b3, var(--g));
    color: #241c02; transform: translateY(-4px) rotate(-6deg);
    box-shadow: 0 10px 24px var(--gg);
}
.ft-ct { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 900; color: var(--tx2); margin-bottom: 1.2rem; }
.ft-ct-bar { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g), transparent); }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.ft-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--mt2); text-decoration: none; font-size: .9rem; transition: color 0.3s, transform .3s; }
.ft-col a:hover { color: var(--g); transform: translateX(-4px); }
.ft-col a i { font-size: .72rem; color: var(--g); opacity: .8; }
.ft-contact-line { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--mt2); margin-top: .9rem; }
.ft-contact-line i { color: var(--g); width: 16px; text-align: center; }

.ft-badges { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0 2rem 3rem; }
.ft-badge {
    display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; color: var(--mt2);
    background: rgba(var(--gr),.06); border: 1px solid var(--bd); padding: .6rem 1.2rem; border-radius: 99px;
    transition: all .3s;
}
.ft-badge:hover { border-color: var(--bd2); background: rgba(var(--gr),.1); color: var(--tx2); }
.ft-badge i { color: var(--g); }
.ft-bot { max-width: 1360px; margin: 0 auto; border-top: 1px solid var(--bd); padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }

.btt-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 400;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(135deg, #ffe9b3, var(--g), #9c7a12); color: #241c02;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 10px 28px var(--gg);
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
.btt-btn.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.btt-btn:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 14px 34px var(--gg); }

/* ── RESPONSIVENESS ── */
@media (max-width: 1024px) {
  .gg2 { grid-template-columns: repeat(2, 1fr); }
  .fg2 { grid-template-columns: repeat(2, 1fr); }
  .ft { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-w { padding: 0 0.5rem; }
  .nav-lnks, .btn-ghost-n, .btn-gold-n { display: none; }
  .mob-tog { display: flex; }
  
  #hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .h-track { padding: 2rem 1rem; }
  
  /* الضربة القاضية لترتيب الصورة والنص في الموبايل */
  .sg { 
    display: flex !important; 
    flex-direction: column !important; 
    text-align: center !important; 
    gap: 3rem !important; 
  }
  .sl-vis { 
    order: -1 !important; 
    width: 100% !important; 
    display: flex !important; 
    justify-content: center !important; 
    margin-bottom: -1rem !important;
  }
  /* إجبار النص (أو أي ديف تاني داخل السلايدر) إنه ينزل تحت الصورة */
  .sg > *:not(.sl-vis) {
    order: 2 !important;
  }
  
  .sl-sub { margin-left: auto; margin-right: auto; }
  .sl-btns { justify-content: center; }
  
  .gem-wrapper { max-width: 260px; margin-top: 0; }
  
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat-c { border-bottom: 1px solid var(--bd); padding: 1.5rem; }
  .stat-c:nth-child(even) { border-left: none; }
  
  .section, .cta { padding: 4rem 1.2rem; }
  
  .gg2 { grid-template-columns: 1fr; }
  .fg2 { grid-template-columns: 1fr; }
  
  .ft { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.2rem 2.5rem; text-align: center; }
  .ft-brand-link { justify-content: center; }
  .ft-desc { margin: 1rem auto; }
  .ft-social { justify-content: center; }
  .ft-ct { justify-content: center; }
  .ft-col a { justify-content: center; }
  .ft-contact-line { justify-content: center; }
  .ft-badges { padding: 0 1.2rem 2.5rem; }
  .ft-bot { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem 1.2rem; }
  .btt-btn { left: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .sl-ttl { font-size: 2.2rem; }
  .bp, .bs { width: 100%; justify-content: center; }
  .stats-in { grid-template-columns: 1fr; }
  .stat-c { border-left: none; border-bottom: 1px solid var(--bd); }
}

.rv { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.rv.v { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   طبقة الأشكال الهندسية والمعادلات العائمة (الصفحة الرئيسية)
══════════════════════════════════════════════════════════ */
.fm-layer {
    position: fixed; inset: 0; z-index: 2; overflow: hidden;
    pointer-events: none; user-select: none;
}
.fm-item {
    position: absolute; will-change: transform, opacity;
    font-family: 'Cairo', sans-serif; font-weight: 800; line-height: 1;
}
.fm-item.fm-sym { color: var(--red); text-shadow: 0 0 22px rgba(var(--red-rgb),.35); }
html.light-mode .fm-item.fm-sym { color: var(--red2); text-shadow: none; opacity: .5; }
.fm-item.fm-sym:nth-child(3n) { color: var(--g); text-shadow: 0 0 20px var(--gg); }

.fm-shape { display: block; }
.fm-circle { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--red); }
.fm-square { width: 46px; height: 46px; border: 3px solid var(--g); border-radius: 8px; transform: rotate(12deg); }
.fm-tri    { width: 0; height: 0; border-left: 27px solid transparent; border-right: 27px solid transparent; border-bottom: 46px solid rgba(var(--red-rgb),.9); }
.fm-hex    { width: 52px; height: 52px; background: linear-gradient(135deg, var(--red), var(--g)); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%); }
html.light-mode .fm-circle,
html.light-mode .fm-tri { border-color: var(--red2); }
html.light-mode .fm-tri { border-bottom-color: var(--red2); }

.fm-item:nth-child(1)  { top:6%;  left:5%;  font-size:3rem;  opacity:.35; animation: fmFloatA 18s ease-in-out infinite; }
.fm-item:nth-child(2)  { top:12%; left:88%; font-size:2.4rem; opacity:.30; animation: fmFloatB 21s ease-in-out infinite 1s; }
.fm-item:nth-child(3)  { top:22%; left:3%;  font-size:2.7rem; opacity:.32; animation: fmFloatB 16s ease-in-out infinite .5s; }
.fm-item:nth-child(4)  { top:30%; left:92%; font-size:3.2rem; opacity:.30; animation: fmFloatA 20s ease-in-out infinite 2s; }
.fm-item:nth-child(5)  { top:40%; left:7%;  font-size:2.3rem; opacity:.34; animation: fmFloatA 14s ease-in-out infinite; }
.fm-item:nth-child(6)  { top:48%; left:90%; font-size:2.8rem; opacity:.30; animation: fmFloatB 19s ease-in-out infinite 1.5s; }
.fm-item:nth-child(7)  { top:58%; left:2%;  font-size:2.5rem; opacity:.33; animation: fmFloatA 17s ease-in-out infinite 3s; }
.fm-item:nth-child(8)  { top:66%; left:85%; font-size:2.7rem; opacity:.30; animation: fmFloatB 22s ease-in-out infinite; }
.fm-item:nth-child(9)  { top:74%; left:6%;  font-size:2.4rem; opacity:.32; animation: fmFloatA 15s ease-in-out infinite 2.5s; }
.fm-item:nth-child(10) { top:82%; left:93%; font-size:3rem;  opacity:.28; animation: fmFloatB 20s ease-in-out infinite .8s; }
.fm-item:nth-child(11) { top:90%; left:4%;  font-size:2.3rem; opacity:.30; animation: fmFloatA 18s ease-in-out infinite 1.2s; }
.fm-item:nth-child(12) { top:88%; left:80%; font-size:2.7rem; opacity:.30; animation: fmFloatB 16s ease-in-out infinite 2s; }
.fm-item:nth-child(13) { top:16%; left:16%; opacity:.26; animation: fmFloatB 19s ease-in-out infinite .3s; }
.fm-item:nth-child(14) { top:26%; left:84%; opacity:.26; animation: fmFloatA 17s ease-in-out infinite 1.8s; }
.fm-item:nth-child(15) { top:46%; left:4%;  opacity:.26; animation: fmFloatA 21s ease-in-out infinite; }
.fm-item:nth-child(16) { top:56%; left:94%; opacity:.27; animation: fmFloatB 15s ease-in-out infinite 2.2s; }
.fm-item:nth-child(17) { top:68%; left:11%; opacity:.26; animation: fmFloatA 23s ease-in-out infinite .6s; }
.fm-item:nth-child(18) { top:80%; left:90%; opacity:.26; animation: fmFloatB 18s ease-in-out infinite 1.4s; }
.fm-item:nth-child(19) { top:36%; left:50%; font-size:4rem;  opacity:.14; animation: fmFloatA 26s ease-in-out infinite; }
.fm-item:nth-child(20) { top:88%; left:46%; opacity:.16; animation: fmFloatB 24s ease-in-out infinite .9s; }

@keyframes fmFloatA {
    0%, 100% { transform: translate(0,0) rotate(0deg);      opacity: .22; }
    50%      { transform: translate(14px,-42px) rotate(10deg); opacity: .42; }
}
@keyframes fmFloatB {
    0%, 100% { transform: translate(0,0) rotate(0deg);       opacity: .20; }
    50%      { transform: translate(-20px,36px) rotate(-9deg); opacity: .40; }
}

@media (max-width: 1024px) {
    .fm-item:nth-child(n+15) { display: none; }
}
@media (max-width: 768px) {
    .fm-item:nth-child(n+11) { display: none; }
    .fm-item.fm-sym { font-size: 1.4rem !important; }
}
@media (max-width: 480px) {
    .fm-item:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-layer { display: none; }
}