/* ============================================================
   فرص للحلول البرمجية - واجهة احترافية (ذهبي + متعدد اللوحات)
   ============================================================ */

:root {
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --gold-soft: #fff3c4;
  --gold-ink: #92400e;
  --primary: #10b981;
  --primary-2: #059669;
  --primary-3: #065f46;
  --primary-rgb: 16, 185, 129;
  --deep: #06281f;
  --deep-2: #0a352a;
  --bg: #f2faf6;
  --card: #ffffff;
  --text: #26332e;
  --muted: #5b6f68;
  --line: rgba(16, 185, 129, 0.14);
  --shadow: 0 14px 40px rgba(16, 185, 129, 0.14);
  --shadow-strong: 0 22px 55px rgba(6, 95, 70, 0.24);
  --grad: linear-gradient(135deg, #f7c948 0%, #f59e0b 45%, #b45309 100%);
  --grad-soft: linear-gradient(135deg, #fff3c4 0%, #fcd34d 50%, #fbbf24 100%);
  --grad-primary: linear-gradient(135deg, #34d399 0%, #10b981 55%, #047857 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  --header-h: 78px;
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-palette="ocean"] {
  --primary: #0ea5e9;
  --primary-2: #0284c7;
  --primary-3: #075985;
  --primary-rgb: 14, 165, 233;
  --deep: #062033;
  --deep-2: #0a2a40;
  --bg: #f0f7fb;
  --text: #1f3442;
  --muted: #59707f;
  --line: rgba(14, 165, 233, 0.14);
  --shadow: 0 14px 40px rgba(14, 165, 233, 0.14);
  --shadow-strong: 0 22px 55px rgba(7, 89, 133, 0.24);
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0369a1 100%);
}

:root[data-palette="fire"] {
  --primary: #f97316;
  --primary-2: #ea580c;
  --primary-3: #9a3412;
  --primary-rgb: 249, 115, 22;
  --deep: #2a1005;
  --deep-2: #381607;
  --bg: #fbf4ee;
  --text: #3a2a1e;
  --muted: #7d6a5d;
  --line: rgba(249, 115, 22, 0.16);
  --shadow: 0 14px 40px rgba(249, 115, 22, 0.14);
  --shadow-strong: 0 22px 55px rgba(154, 52, 18, 0.24);
  --grad-primary: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #9a3412 100%);
}

html[data-theme="dark"] {
  --bg: #04120c;
  --deep: #04120c;
  --deep-2: #072019;
  --card: #0a1f18;
  --text: #e7fbf2;
  --muted: #8fb5a6;
  --line: rgba(52, 211, 153, 0.15);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"][data-palette="ocean"] {
  --bg: #04131c;
  --deep: #04131c;
  --deep-2: #072231;
  --card: #0a1e2b;
  --text: #e7f6fd;
  --muted: #86aabc;
  --line: rgba(56, 189, 248, 0.16);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"][data-palette="fire"] {
  --bg: #170b05;
  --deep: #170b05;
  --deep-2: #241206;
  --card: #1e130b;
  --text: #fdf1e9;
  --muted: #c5a08a;
  --line: rgba(251, 146, 60, 0.16);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--card); }
.section-alt.section-glass { background: linear-gradient(var(--card), var(--bg)); }

/* ---- عناوين الأقسام ---- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 100px;
  background: var(--grad-soft);
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.star-min { font-size: 0.4rem; color: var(--gold-2); vertical-align: middle; }

/* ---- أزرار ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-gold {
  color: #4a2600;
  background: var(--grad-soft);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(245, 158, 11, 0.5); }

.btn-ghost {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

html[data-theme="dark"] .btn-ghost { color: var(--gold-soft); border-color: var(--gold-soft); }
html[data-theme="dark"] .btn-ghost:hover { background: var(--gold-soft); color: var(--gold-ink); }

.btn-ghost-light { color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--primary-3); transform: translateY(-3px); }

/* ============================================================
   شاشة اللودينج
   ============================================================ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  text-align: center;
  background: linear-gradient(160deg, var(--deep), var(--deep-2) 60%, var(--deep-2));
}
#loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: 0.5s ease; animation: none; }

/* إخفاء تلقائي عبر CSS (احتياطي إن تعذّر تشغيل الجافاسكربت) */
#loader { animation: loaderAutoHide 0.6s ease 1.4s forwards; }
@keyframes loaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  max-width: 360px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}
.loader-logo { display: block; width: 110px; height: 110px; margin: 0 auto 26px; animation: loaderFloat 1.6s ease-in-out infinite; }
.loader-ring {
  position: absolute; top: 50%; left: 50%;
  width: 150px; height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(251, 191, 36, 0.35);
  animation: spin 1s linear infinite;
}
.loader-ring::after {
  content: ""; position: absolute; top: 14px; right: 14px; bottom: 14px; left: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--primary);
  animation: spin 1.4s linear infinite reverse;
}
.loader-text { color: var(--gold-soft); font-weight: 500; margin-bottom: 18px; letter-spacing: 0.5px; }
.loader-bar { width: 220px; height: 8px; border-radius: 100px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-inline: auto; }
.loader-bar span { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--grad); transition: width 0.4s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================================================
   الهيدر
   ============================================================ */
#header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
html[data-theme="dark"] #header { background: rgba(0, 0, 0, 0.35); background: color-mix(in srgb, var(--bg) 88%, transparent); }

#header.scrolled { box-shadow: var(--shadow); border-bottom-color: var(--line); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; transition: var(--transition); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; color: var(--primary); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.4px; }
html[data-theme="dark"] .brand-text strong { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--muted);
  position: relative;
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
html[data-theme="dark"] .nav-link:hover { color: var(--gold-soft); background: rgba(251, 191, 36, 0.1); }
.nav-link.active { color: var(--primary); }
html[data-theme="dark"] .nav-link.active { color: var(--gold-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  transition: var(--transition);
}
html[data-theme="dark"] .theme-toggle { color: var(--gold); background: rgba(251, 191, 36, 0.12); }
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); }

.palette-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .palette-switch { background: rgba(255, 255, 255, 0.05); }
.pal-btn { width: 26px; height: 26px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.pal-btn span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.pal-btn[data-palette="emerald"] span { background: linear-gradient(135deg, #34d399, #10b981 55%, #047857); }
.pal-btn[data-palette="ocean"] span { background: linear-gradient(135deg, #38bdf8, #0ea5e9 55%, #0369a1); }
.pal-btn[data-palette="fire"] span { background: linear-gradient(135deg, #fb923c, #f97316 55%, #9a3412); }
.pal-btn:hover { transform: scale(1.15); }
.pal-btn.active { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.1); }

.nav-cta { padding: 11px 20px; font-size: 0.92rem; }
.nav-link-mobile { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { width: 26px; height: 3px; border-radius: 4px; background: var(--primary); transition: var(--transition); }
html[data-theme="dark"] .hamburger span { background: var(--gold); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   البنر
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 30px) 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(251, 191, 36, 0.55), transparent 70%); top: -140px; right: -120px; animation: blobMove 16s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5), transparent 70%); bottom: -180px; left: -140px; animation: blobMove 18s ease-in-out infinite reverse; }
.blob-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35), transparent 70%); top: 40%; left: 30%; animation: blobMove 14s ease-in-out infinite; }

@keyframes blobMove { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } }

.grid-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--gold-2); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 22px;
}
html[data-theme="dark"] .badge { color: var(--gold-soft); }

.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 30px; }
.hero-sub strong { color: var(--primary); }
html[data-theme="dark"] .hero-sub strong { color: var(--gold-soft); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.hero-points i { color: var(--gold-2); }

/* ---- المشهد البصري للبنر ---- */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.rocket-wrap { position: relative; width: min(430px, 100%); aspect-ratio: 1; }

.rocket-glow {
  position: absolute; top: 12%; right: 12%; bottom: 12%; left: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 68%);
  filter: blur(10px);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.96); opacity: 0.7; } 50% { transform: scale(1.06); opacity: 1; } }

.r-star {
  position: absolute;
  background: var(--grad-soft);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  animation: twinkle 2.4s ease-in-out infinite;
  z-index: 1;
}
.r-star-1 { width: 24px; height: 24px; top: 12%; right: 10%; }
.r-star-2 { width: 15px; height: 15px; top: 8%; left: 16%; animation-delay: 0.6s; }
.r-star-3 { width: 32px; height: 32px; top: 34%; left: 4%; animation-delay: 1.1s; }
.r-star-4 { width: 13px; height: 13px; bottom: 20%; left: 18%; animation-delay: 0.3s; }
.r-star-5 { width: 17px; height: 17px; bottom: 5%; right: 14%; animation-delay: 0.9s; }
@keyframes twinkle { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

.rocket {
  position: absolute; top: 32%; left: 50%;
  width: 30%; height: 46%;
  transform: translateX(-50%);
  animation: rocketFloat 3.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes rocketFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
  50% { transform: translateX(-50%) translateY(-16px) rotate(3deg); }
}
.rocket-nose {
  position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: 88%; height: 34%;
  background: linear-gradient(145deg, #ffffff, var(--primary));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 8px 8px 0 0;
  z-index: 2;
}
.rocket .rocket-window {
  position: absolute; top: 34%; left: 50%; transform: translateX(-50%);
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #bae6fd, var(--primary-2) 75%);
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3), 0 0 18px rgba(var(--primary-rgb), 0.35);
  z-index: 2;
}
.rocket::before {
  content: ""; position: absolute; top: 8%; left: 0; right: 0; bottom: 6%;
  background: linear-gradient(160deg, #ffffff, #e6f0ea 35%, var(--primary) 130%);
  border-radius: 20% 20% 12% 12%;
  box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.3);
  z-index: 1;
}
.rocket-fin {
  position: absolute; bottom: 5%; width: 44%; height: 30%;
  background: var(--primary-3);
  z-index: 1;
}
.rocket-fin.fin-l { left: -2%; clip-path: polygon(0 100%, 100% 100%, 100% 0); border-radius: 0 0 6px 6px; }
.rocket-fin.fin-r { right: -2%; clip-path: polygon(0 100%, 100% 100%, 0 0); border-radius: 0 0 6px 6px; }
.rocket-flame {
  position: absolute; bottom: -16%; left: 50%; transform: translateX(-50%);
  width: 36%; height: 22%;
  background: linear-gradient(180deg, #fbbf24, #f97316 55%, rgba(245, 158, 11, 0));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.6));
  animation: flameFlicker 0.35s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes flameFlicker {
  from { transform: translateX(-50%) scaleY(0.9); opacity: 0.9; }
  to { transform: translateX(-50%) scaleY(1.1); opacity: 1; }
}

.chip {
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  background: var(--card);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  animation: chipFloat 4.5s ease-in-out infinite;
  z-index: 3;
}
.chip-1 { top: 6%; right: 10%; animation-delay: 0.2s; color: #e34c26; }
.chip-2 { top: 18%; left: 2%; animation-delay: 0.7s; color: #f7df1e; }
.chip-3 { bottom: 20%; right: 2%; animation-delay: 1.1s; color: #2965f1; }
.chip-4 { bottom: 4%; left: 14%; animation-delay: 1.5s; color: var(--primary); }

@keyframes chipFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--primary); border-radius: 20px; z-index: 2; }
html[data-theme="dark"] .scroll-hint { border-color: var(--gold); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 10px; border-radius: 4px; background: var(--primary); animation: scrollDot 1.6s ease-in-out infinite; }
html[data-theme="dark"] .scroll-hint span { background: var(--gold); }
@keyframes scrollDot { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 24px; } 100% { opacity: 0; top: 8px; } }
/* ============================================================
   من نحن
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; margin-bottom: 70px; }

.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.about-logo { width: 260px; height: 260px; animation: pulse 4s ease-in-out infinite; }
.about-visual::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3), rgba(var(--primary-rgb), 0.16), transparent 70%);
  filter: blur(4px);
}
.about-years {
  position: absolute; top: 4%; right: 0;
  background: var(--grad-primary); color: #fff;
  padding: 16px 24px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  display: flex; flex-direction: column; line-height: 1.3;
  animation: chipFloat 5s ease-in-out infinite;
}
.about-years strong { font-size: 1.9rem; font-weight: 800; }
.about-years span { font-size: 0.82rem; opacity: 0.92; }
.about-vibe {
  position: absolute; bottom: 6%; left: 0;
  background: var(--grad-soft); color: var(--gold-ink);
  padding: 14px 22px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.3;
  animation: chipFloat 5.5s ease-in-out infinite reverse;
}
.about-vibe strong { font-size: 1.6rem; font-weight: 800; }
.about-vibe span { font-size: 0.8rem; }

.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.about-features li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.about-features li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-features i { color: var(--gold-2); font-size: 1.4rem; margin-top: 3px; }
.about-features strong { display: block; font-size: 1rem; }
.about-features span { font-size: 0.82rem; color: var(--muted); }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--grad-primary);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
}
.stat { color: #fff; position: relative; }
.stat span { font-size: 2.6rem; font-weight: 800; }
.stat i { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-inline-start: 2px; }
.stat p { color: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* ============================================================
   الخدمات
   ============================================================ */
.service-group { margin-bottom: 48px; }
.group-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 24px;
}
.group-title small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.group-ico {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-soft); color: var(--gold-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.25);
}

.services-grid { display: block; }

/* سلايدر الخدمات عبر مكتبة Swiper */
.services-swiper { padding: 6px 0 44px; overflow: hidden; }
.services-swiper .swiper-slide { height: auto; display: flex; }
.services-swiper .service-card { width: 100%; height: 100%; }
.services-swiper .swiper-pagination-bullet { width: 9px; height: 9px; border-radius: 100px; background: rgba(var(--primary-rgb), 0.22); opacity: 1; transition: var(--transition); }
.services-swiper .swiper-pagination-bullet-active { width: 24px; background: var(--grad); }
@media (min-width: 769px) {
  .services-swiper .swiper-pagination { display: none; }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); border-color: rgba(251, 191, 36, 0.4); }
.service-card:hover::before { transform: scaleX(1); }

.card-ico {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(251, 191, 36, 0.16));
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
  transition: var(--transition);
}
html[data-theme="dark"] .card-ico { color: var(--gold-soft); }
.service-card:hover .card-ico { transform: rotateY(180deg); background: var(--grad-soft); color: var(--gold-ink); }

.service-card h4 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; flex-grow: 1; }

.order-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, #25d366, #1cbf52);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.order-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45); }

/* ============================================================
   لماذا فرص
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }
.why-ico {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 22px;
  background: var(--grad-primary); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.35);
  transition: var(--transition);
}
.why-card:hover .why-ico { transform: rotate(-10deg) scale(1.08); }
.why-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   كيف نعمل
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: proc; }
.process-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 18px 26px;
  text-align: center;
  transition: var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.step-num {
  position: absolute; top: -16px; right: 18px;
  background: var(--grad); color: var(--gold-ink);
  font-weight: 800; font-size: 0.85rem;
  padding: 4px 14px; border-radius: 100px;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}
.step-ico {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), rgba(var(--primary-rgb), 0.12));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
html[data-theme="dark"] .step-ico { color: var(--gold-soft); }
.process-step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   آراء العملاء
   ============================================================ */
.t-slider { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; }
.testimonials-swiper { padding-bottom: 42px; }
.testimonials-swiper .swiper-slide { height: auto; }
.testimonials-swiper .swiper-pagination-bullet { width: 9px; height: 9px; border-radius: 100px; background: rgba(var(--primary-rgb), 0.22); opacity: 1; transition: var(--transition); }
.testimonials-swiper .swiper-pagination-bullet-active { width: 24px; background: var(--grad); }
.t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.t-card::before {
  content: "\201D"; position: absolute; top: -6px; right: 26px;
  font-size: 6rem; font-weight: 900;
  color: rgba(251, 191, 36, 0.22);
  font-family: Georgia, serif;
  line-height: 1;
}
.t-stars { color: var(--gold-2); margin-bottom: 16px; font-size: 1.05rem; letter-spacing: 3px; }
.t-card > p { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.t-user { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.t-user div { text-align: right; }
.t-user strong { display: block; font-size: 1rem; }
.t-user small { color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   شريط الاستشارة
   ============================================================ */
.cta-band {
  position: relative;
  margin: 0 4%;
  background: var(--grad-primary);
  border-radius: 28px;
  padding: 56px 44px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.cta-flex { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-text { color: #fff; }
.cta-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta-text p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-blob {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  top: -120px; left: -80px;
  animation: pulse 4s ease-in-out infinite;
}

/* ============================================================
   اتصل بنا
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; gap: 14px; align-items: center;
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(251, 191, 36, 0.4); }
.info-ico {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--grad-soft); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.info-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.info-card p { color: var(--muted); font-size: 0.9rem; word-break: break-word; }
.info-card:nth-child(2n) .info-ico { background: var(--grad-primary); color: var(--gold-soft); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: inline-block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14); }
.form-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 14px; }
.form-note i { color: var(--gold-2); }

/* ============================================================
   الفوتر
   ============================================================ */
.footer { background: var(--deep); color: #e6ddfa; padding-top: 70px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.f-brand > p { color: #b6a6d8; font-size: 0.95rem; margin: 18px 0 20px; max-width: 320px; }
.f-brand-logo { margin-bottom: 6px; }
html[data-theme="dark"] .f-brand-logo .brand-text strong { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }

.social { display: flex; gap: 10px; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  transition: var(--transition);
  font-size: 1rem;
}
.social-link:hover { background: var(--grad); color: var(--gold-ink); transform: translateY(-4px); }

.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-col h4 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; position: relative; padding-bottom: 12px; }
.f-col h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 38px; height: 3px; border-radius: 4px; background: var(--grad); }
.f-col a, .f-col p { color: #b6a6d8; font-size: 0.93rem; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.f-col a:hover { color: var(--gold-soft); transform: translateX(-5px); }
.f-col a i { font-size: 0.7rem; color: var(--gold); }
.f-col p i { color: var(--gold); width: 18px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; text-align: center; color: #a48fc8; font-size: 0.88rem; }
.footer-bottom strong { color: var(--gold-soft); }
.footer-visits { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.85rem; color: #b6a6d8; }
.footer-visits i { color: var(--gold); }
.footer-visits b { color: var(--gold-soft); font-weight: 800; }

/* ============================================================
   الإشعارات
   ============================================================ */
.toasts { position: fixed; bottom: 24px; left: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-strong);
  min-width: 300px;
  max-width: 360px;
  animation: toastIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.out { animation: toastOut 0.5s ease forwards; }
.toast i.toast-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--grad-soft); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.toast-close {
  margin-inline-start: auto;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.toast-close:hover { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.toast strong { display: block; font-size: 0.95rem; }
.toast span { color: var(--muted); font-size: 0.85rem; }
.toast .wa-now { color: #1cbf52; font-weight: 700; font-size: 0.82rem; text-decoration: underline; }

@keyframes toastIn { from { transform: translateX(-120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(-120%); opacity: 0; } }

/* ============================================================
   زر واتساب العائم
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1cbf52);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  z-index: 2900;
}
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-ping { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPing 1.8s ease-out infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   مساعد فرص الذكي
   ============================================================ */
.ai-float {
  position: fixed; bottom: 100px; right: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.45);
  transition: var(--transition);
  z-index: 2800;
  animation: aiBounce 2.4s ease-in-out infinite;
}
.ai-float:hover { transform: scale(1.1); }
.ai-float.hidden { opacity: 0; visibility: hidden; transform: scale(0.5); }
@keyframes aiBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ai-widget {
  position: fixed; bottom: 100px; right: 28px;
  width: min(340px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  z-index: 2800;
  overflow: hidden;
  display: none;
  transition: var(--transition);
}
.ai-widget.open { display: block; animation: aiOpen 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes aiOpen { from { transform: translateY(24px) scale(0.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.ai-close { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; z-index: 2; display: flex; align-items: center; justify-content: center; }
.ai-close:hover { background: rgba(255, 255, 255, 0.3); }
.ai-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px;
  background: var(--grad-primary);
  color: #fff;
}
.ai-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.15); }
.ai-head strong { display: block; font-size: 1rem; }
.ai-head small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 6px; }
.ai-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; animation: pulse 1.6s infinite; }

.ai-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; }
.ai-msg { max-width: 85%; }
.ai-welcome { align-self: flex-start; }
.ai-user {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
.ai-welcome p {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
html[data-theme="dark"] .ai-welcome p { background: var(--deep-2); }
.ai-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-inline: 2px; animation: typing 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
html[data-theme="dark"] .ai-typing span { background: var(--gold); }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.ai-quick { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ai-q-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-weight: 600; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
html[data-theme="dark"] .ai-q-btn { color: var(--gold-soft); background: rgba(251, 191, 36, 0.1); }
.ai-q-btn:hover { background: var(--grad-soft); color: var(--gold-ink); transform: translateY(-2px); }

/* ============================================================
   زر العودة للأعلى
   ============================================================ */
.to-top {
  position: fixed;
  bottom: 100px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad); color: var(--gold-ink);
  box-shadow: var(--shadow-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition);
  z-index: 2700;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ============================================================
   شريط الموبايل السفلي (يظهر على الجوال فقط)
   ============================================================ */
.mobile-dock { display: none; }

/* ============================================================
   التجاوب
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .rocket-wrap { width: min(320px, 80vw); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hamburger { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-link-mobile { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    padding: 18px;
    box-shadow: var(--shadow-strong);
    border-top: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    transition: var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 13px 16px; font-size: 1.02rem; text-align: center; border-radius: var(--radius-sm); }
  .nav-cta { justify-content: center; width: 100%; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: 1fr; }
  .group-title { flex-wrap: wrap; font-size: 1.3rem; gap: 10px; }
  .group-title small { width: 100%; padding-inline-start: 56px; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .cta-band { padding: 40px 24px; }
  .cta-flex { justify-content: center; text-align: center; }
  .cta-btns { justify-content: center; }

  .hero { padding-top: calc(var(--header-h) + 20px); }
  .scroll-hint { display: none; }

  .toasts { top: calc(var(--header-h) + 10px); left: 12px; right: 12px; bottom: auto; align-items: center; }
  .toast { min-width: 0; max-width: none; width: 100%; }

  .footer { display: none; }

  /* إخفاء الأزرار العائمة القديمة في الجوال */
  .wa-float, .ai-float, .to-top { display: none; }

  /* الشريط السفلي الموحّد: ملتصق بالأسفل، بعرض كامل، بدون استدارة */
  .mobile-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2850;
    width: 100%;
    padding: 8px 18px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.18);
    will-change: transform;
  }
  .mobile-dock .to-top,
  .mobile-dock .ai-float,
  .mobile-dock .wa-float {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    animation: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
  .mobile-dock .to-top { background: var(--grad); color: var(--gold-ink); }
  .mobile-dock .ai-float { background: var(--grad-primary); color: var(--gold-soft); }
  .mobile-dock .wa-float { background: linear-gradient(135deg, #25d366, #1cbf52); color: #fff; }
  .mobile-dock .to-top:hover,
  .mobile-dock .ai-float:hover,
  .mobile-dock .wa-float:hover { transform: translateY(-2px) !important; }
  .mobile-dock .wa-ping { display: none; }
  .mobile-dock .ai-float.hidden { display: none; }

  /* نافذة المساعد فوق الشريط */
  .ai-widget { bottom: 150px !important; }
}

@media (max-width: 480px) {
  :root { --header-h: 68px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.15rem; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .btn-lg { padding: 14px 24px; }
  .wa-float { width: 56px; height: 56px; font-size: 1.6rem; bottom: 18px; right: 18px; }
  .ai-float { bottom: 92px; right: 21px; }
  .ai-widget { bottom: 92px; right: 16px; left: 16px; width: auto; }
  .to-top { bottom: 92px; left: 16px; }
}

/* ============================================================
   تقليل الحركة لمن يفضل ذلك
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #loader { animation: loaderAutoHide 0.01s linear 1.4s forwards !important; }
  html { scroll-behavior: auto; }
}