/* =========================================================
   Wekkel Hub — منظومة وكل
   ========================================================= */

/* ---------- الألوان والمتغيرات ---------- */
:root {
  /* مأخوذة من الشعار: كحلي + سماوي */
  --brand: #0E7FC4;
  --brand-2: #1D4ED8;
  --brand-3: #22D3EE;
  --navy: #0B1A3A;
  --brand-grad: linear-gradient(135deg, #0891B2 0%, #1D6FD8 55%, #1E3A8A 100%);
  --brand-grad-text: linear-gradient(135deg, #06B6D4 0%, #2563EB 70%);

  --bg: #F6F8FD;
  --bg-alt: #EEF2FA;
  --surface: #FFFFFF;
  --surface-2: #F3F5FB;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0B1220;
  --muted: #586179;
  --header-bg: rgba(246, 248, 253, 0.78);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.28);
  --phone-frame: #0B1020;
  --phone-screen: #FFFFFF;
  --phone-ui: #F2F4F9;
  --phone-ui-2: #E4E8F1;
  --map-bg: #E8EEF6;
  --map-road: #FFFFFF;
  --blob-opacity: 0.45;

  --radius: 20px;
  --radius-sm: 12px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --accent: var(--brand);
  --accent-2: var(--brand-2);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #22D3EE;
  --brand-grad-text: linear-gradient(135deg, #22D3EE 0%, #60A5FA 70%);
  --bg: #060913;
  --bg-alt: #0A0F1E;
  --surface: #0E1426;
  --surface-2: #141B31;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #EEF2FF;
  --muted: #98A2BA;
  --header-bg: rgba(6, 9, 19, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  --phone-frame: #1B2238;
  --phone-screen: #0B1122;
  --phone-ui: #141C33;
  --phone-ui-2: #1E2743;
  --map-bg: #101830;
  --map-road: #1C2643;
  --blob-opacity: 0.32;
  color-scheme: dark;
}

/* بدون JavaScript: اتبع وضع النظام */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #060913; --bg-alt: #0A0F1E; --surface: #0E1426; --surface-2: #141B31;
    --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.14);
    --text: #EEF2FF; --muted: #98A2BA; --header-bg: rgba(6,9,19,.72);
    --phone-frame: #1B2238; --phone-screen: #0B1122; --phone-ui: #141C33; --phone-ui-2: #1E2743;
    --map-bg: #101830; --map-road: #1C2643; --blob-opacity: .32;
    color-scheme: dark;
  }
}

/* ألوان التطبيقات */
.app--go    { --accent: #F97316; --accent-2: #F59E0B; }
.app--store { --accent: #A855F7; --accent-2: #EC4899; }
.app--track { --accent: #06B6D4; --accent-2: #14B8A6; }
.app--pay   { --accent: #10B981; --accent-2: #22C55E; }
.sw--pos    { --accent: #2563EB; --accent-2: #0EA5E9; }
.sw--resto  { --accent: #E11D48; --accent-2: #F97316; }
.sw--hotel  { --accent: #7C3AED; --accent-2: #6366F1; }
.sw--clinic { --accent: #0D9488; --accent-2: #10B981; }
.app--go, .app--store, .app--track, .app--pay,
.sw--pos, .sw--resto, .sw--hotel, .sw--clinic {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.gp { width: 26px; height: 26px; flex-shrink: 0; }
.gp-a { fill: #00D7FE; } .gp-b { fill: #00F076; } .gp-c { fill: #FF3A44; } .gp-d { fill: #FFD500; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--brand-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; border-radius: 14px; padding: 12px 22px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(14, 127, 196, .55); }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(14, 127, 196, .75); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0B0F1A; color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px 8px 18px; border-radius: 12px; direction: ltr;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 15px; text-align: left; }
.play-btn small { font-size: 10px; font-weight: 500; opacity: .75; direction: rtl; text-align: left; }
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--accent, #000); }
.play-btn.lg { padding: 11px 22px 11px 24px; }
.play-btn.lg .gp { width: 30px; height: 30px; }
.play-btn.lg span { font-size: 18px; }
.play-btn.lg small { font-size: 11px; }
:root[data-theme="dark"] .play-btn { background: #fff; color: #0B0F1A; border-color: transparent; }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(8, 145, 178, .6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 10px; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--text); background: var(--surface-2); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.ico-moon, .ico-close { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
.menu-open .ico-menu { display: none; }
.menu-open .ico-close { display: block; }

/* ---------- البطل ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-opacity); }
.blob-1 { width: 520px; height: 520px; background: #2563EB; top: -160px; inset-inline-end: -120px; }
.blob-2 { width: 420px; height: 420px; background: #22D3EE; top: 180px; inset-inline-start: -160px; }
.blob-3 { width: 360px; height: 360px; background: #06B6D4; bottom: -160px; inset-inline-end: 30%; opacity: calc(var(--blob-opacity) * .6); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: 560px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; margin: 22px 0 18px; line-height: 1.2; }
.h1-brand {
  display: block; width: fit-content; font-size: .62em; line-height: 1.15; margin-bottom: 6px;
  background: var(--brand-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); max-width: 560px; }
.hero-facts li { display: flex; align-items: baseline; gap: 10px; }
.hero-facts strong { font-family: var(--font-display); font-size: 34px; line-height: 1; background: var(--brand-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facts span { color: var(--muted); font-size: 14px; max-width: 110px; line-height: 1.4; }

/* المدار */
.hero-visual { display: grid; place-items: center; }
.orbit { --size: 440px; position: relative; width: var(--size); height: var(--size); max-width: 100%; aspect-ratio: 1; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed var(--border-strong); }
.ring-1 { width: 100%; height: 100%; }
.ring-2 { width: 70%; height: 70%; border-style: solid; border-color: var(--border); }
.ring-3 { width: 42%; height: 42%; border-style: solid; border-color: var(--border); background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand-3) 12%, transparent), 0 30px 60px -15px rgba(34,211,238,.55);
  animation: glow 4s ease-in-out infinite;
}
.orbit-core img { width: 150px; height: 150px; border-radius: 50%; }
@keyframes glow { 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--brand-3) 8%, transparent), 0 30px 70px -10px rgba(34,211,238,.7); } }
.orbit-track { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-item {
  position: absolute; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: spin 40s linear infinite reverse;
}
.orbit-item .tile {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 18px 30px -12px var(--accent), inset 0 1px 0 rgba(255,255,255,.3);
}
.orbit-item .tile .ico { width: 34px; height: 34px; }
.orbit-item em {
  font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.pos-1 { top: -36px; left: calc(50% - 46px); }
.pos-2 { top: calc(50% - 50px); right: -46px; }
.pos-3 { bottom: -50px; left: calc(50% - 46px); }
.pos-4 { top: calc(50% - 50px); left: -46px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* الشريط المتحرك */
.marquee {
  margin-top: 56px; overflow: hidden; border-block: 1px solid var(--border); padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--muted); white-space: nowrap; }
.marquee-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad-text); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(50% + 14px)); } }

/* ---------- الأقسام ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.kicker {
  display: inline-block; font-weight: 600; font-size: 14px; color: var(--brand);
  padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* بطاقات التطبيقات */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: -1;
  background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 70%);
}
.app-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-grad); opacity: 0; transition: opacity .3s; }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.app-card:hover::after { opacity: 1; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.app-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent-grad); color: #fff; box-shadow: 0 12px 22px -10px var(--accent);
}
.app-icon .ico { width: 26px; height: 26px; }
.app-icon.lg { width: 68px; height: 68px; border-radius: 20px; }
.app-icon.lg .ico { width: 34px; height: 34px; }
.app-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); }
.app-card h3 { font-size: 22px; direction: ltr; text-align: right; }
.app-sub { color: var(--accent); font-weight: 600; font-size: 15px; }
.app-card > p:not(.app-sub) { color: var(--muted); font-size: 15px; flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips li { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.app-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); }
.more-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.more-link:hover .ico { transform: translateX(-4px); }

/* ---------- تفاصيل التطبيقات ---------- */
.app-detail { position: relative; padding: 100px 0; overflow: hidden; }
.app-detail::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 15% 50%, var(--accent-soft), transparent 70%),
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 3%, transparent), transparent);
}
.app-detail.is-reversed::before { background: radial-gradient(50% 60% at 85% 50%, var(--accent-soft), transparent 70%); }
.app-detail-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.app-detail.is-reversed .app-detail-copy { order: 2; }
.app-detail.is-reversed .app-detail-visual { order: 1; }

.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-title h2 { font-size: clamp(30px, 3.6vw, 42px); direction: ltr; text-align: right; }
.app-detail .lead { font-size: 18px; color: var(--muted); max-width: 600px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 28px; }
.features li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s var(--ease);
}
.features li:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.f-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.f-ico .ico { width: 20px; height: 20px; }
.features b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.features p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.slogan {
  margin: 0 0 28px; padding: 4px 18px; border-inline-start: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- الهاتف ---------- */
.app-detail-visual { position: relative; display: grid; place-items: center; padding: 20px 0; }
.app-detail-visual::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--accent-grad); filter: blur(90px); opacity: .28;
}
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 11px;
  background: var(--phone-frame); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08);
  transform: rotate(-3deg); transition: transform .6s var(--ease);
}
.app-detail.is-reversed .phone { transform: rotate(3deg); }
.app-detail-visual:hover .phone { transform: rotate(0); }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 999px; background: #000; z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--phone-screen); padding: 58px 16px 18px; display: flex; flex-direction: column; gap: 12px;
  font-size: 12px;
}

.ui-head { display: flex; align-items: center; justify-content: space-between; }
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.ui-badge { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--phone-ui); }
.ui-badge .ico { width: 17px; height: 17px; }
.ui-badge i { position: absolute; top: -4px; left: -4px; font-style: normal; font-size: 10px; font-weight: 700; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.ui-chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); }
.ui-btn { display: block; text-align: center; padding: 11px; border-radius: 14px; background: var(--accent-grad); color: #fff; font-weight: 600; font-size: 13px; }
.search-pill { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--phone-ui); color: var(--muted); }
.search-pill .ico { width: 15px; height: 15px; }

/* Go */
.go-screen { padding: 0; }
.go-map { position: absolute; inset: 0; background: var(--map-bg); }
.go-map svg { width: 100%; height: 72%; }
.go-map .road { stroke: var(--map-road); stroke-width: 12; fill: none; }
.go-map .route { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 8 6; animation: dash 1.6s linear infinite; }
.go-map .route-start { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.go-map .route-end { fill: #0B1220; stroke: #fff; stroke-width: 3; }
.go-car { position: absolute; top: 32%; left: 52%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.go-car .ico { width: 18px; height: 18px; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.sheet {
  position: absolute; inset: auto 0 0 0; padding: 10px 16px 18px; border-radius: 26px 26px 0 0;
  background: var(--phone-screen); box-shadow: 0 -10px 30px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 11px;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--phone-ui-2); margin: 0 auto 2px; }
.go-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.go-options .opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--phone-ui); font-weight: 600; border: 1.5px solid transparent; }
.go-options .opt .ico { width: 20px; height: 20px; color: var(--accent); }
.go-options .opt.is-active { border-color: var(--accent); background: var(--accent-soft); }

/* Store */
.cat-row { display: flex; gap: 6px; overflow: hidden; }
.cat-row span { padding: 5px 11px; border-radius: 999px; background: var(--phone-ui); white-space: nowrap; font-weight: 500; }
.cat-row .is-active { background: var(--accent-grad); color: #fff; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-grow: 1; }
.product { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--phone-ui); }
.p-img { flex-grow: 1; min-height: 70px; border-radius: 10px; }
.p1 { background: linear-gradient(135deg, #A855F7, #EC4899); }
.p2 { background: linear-gradient(135deg, #F59E0B, #F97316); }
.p3 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.p4 { background: linear-gradient(135deg, #10B981, #84CC16); }
.p-line { height: 7px; width: 80%; border-radius: 4px; background: var(--phone-ui-2); }
.p-price { height: 9px; width: 45%; border-radius: 4px; background: var(--accent); opacity: .7; }

/* Track */
.track-id { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--phone-ui); font-weight: 700; direction: ltr; justify-content: flex-end; letter-spacing: .04em; }
.track-id .ico { width: 16px; height: 16px; color: var(--accent); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 8px 4px; flex-grow: 1; }
.timeline::before { content: ""; position: absolute; top: 16px; bottom: 30px; right: 13px; width: 2px; background: var(--phone-ui-2); }
.timeline li { position: relative; padding-right: 32px; display: flex; flex-direction: column; line-height: 1.4; }
.timeline li::before {
  content: ""; position: absolute; right: 6px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--phone-screen); border: 2px solid var(--phone-ui-2); box-sizing: border-box;
}
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.current::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 1.8s ease-in-out infinite; }
.timeline b { font-size: 13px; }
.timeline small { color: var(--muted); font-size: 11px; }
.timeline li:not(.done):not(.current) { opacity: .5; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.cod-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
.cod-row b { color: var(--accent); }

/* Pay */
.balance-card {
  position: relative; padding: 18px; border-radius: 18px; color: #fff; overflow: hidden; min-height: 120px;
  background: linear-gradient(135deg, #059669, #10B981 50%, #22C55E);
  display: flex; flex-direction: column; gap: 4px;
}
.balance-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); top: -60px; left: -50px; }
.balance-card small { opacity: .85; }
.balance-card b { font-family: var(--font-display); font-size: 24px; letter-spacing: .1em; direction: ltr; text-align: right; }
.bc-chip { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #FDE68A, #F59E0B); margin-top: auto; }
.bc-brand { position: absolute; bottom: 14px; left: 16px; font-family: var(--font-display); font-weight: 600; font-size: 11px; opacity: .9; }
.pay-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.pay-actions span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-weight: 500; font-size: 11px; }
.pay-actions i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.pay-actions .ico { width: 18px; height: 18px; }
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; background: var(--phone-ui); }
.tx-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; }
.tx-ico .ico { width: 16px; height: 16px; }
.t1 { background: linear-gradient(135deg, #A855F7, #EC4899); }
.t2 { background: linear-gradient(135deg, #10B981, #22C55E); }
.t3 { background: linear-gradient(135deg, #F97316, #F59E0B); }
.tx-lines { display: flex; flex-direction: column; line-height: 1.3; flex-grow: 1; }
.tx-lines b { font-size: 12px; }
.tx-lines small { color: var(--muted); font-size: 10.5px; }
.tx-amt { width: 40px; height: 8px; border-radius: 4px; }
.tx-amt.minus { background: var(--phone-ui-2); }
.tx-amt.plus { background: var(--accent); opacity: .7; }

/* البطاقات العائمة */
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite;
}
.float-card > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--accent-grad); color: #fff; }
.float-card div { display: flex; flex-direction: column; line-height: 1.35; }
.float-card b { font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-1, .fc-3 { bottom: 18%; inset-inline-start: -6%; }
.fc-2, .fc-4 { top: 20%; inset-inline-end: -6%; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- المنظومة ---------- */
.ecosystem { background: var(--bg-alt); border-block: 1px solid var(--border); }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow::before {
  content: ""; position: absolute; top: 62px; right: 12%; left: 12%; height: 2px;
  background: linear-gradient(to left, #A855F7, #10B981, #F97316, #06B6D4); opacity: .5;
}
.flow-step {
  position: relative; text-align: center; padding: 30px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.flow-step .app-icon { width: 64px; height: 64px; border-radius: 20px; position: relative; z-index: 1; }
.flow-step .app-icon .ico { width: 30px; height: 30px; }
.flow-num { position: absolute; top: 14px; inset-inline-start: 18px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--accent); opacity: .8; }
.flow-step h3 { font-size: 19px; }
.flow-step p { color: var(--muted); font-size: 14.5px; }

/* ---------- منصات الويب ---------- */
.platforms-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.platform-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.pf-main { background: linear-gradient(135deg, #0B1A3A 0%, #12408F 60%, #0891B2 100%); color: #fff; border: none; }
.pf-main p, .pf-main .pf-domain { color: rgba(255,255,255,.85); }
.pf-main .chips li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; }
.pf-main .pf-icon { background: rgba(255,255,255,.18); color: #fff; }
.pf-main::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); bottom: -120px; left: -80px; }
.pf-store { --pf: #A855F7; }
.pf-pro { --pf: #06B6D4; }
.pf-pay { --pf: #10B981; }
/* أربع منصات: الرئيسية تمتد صفّين، و«وكل للدفع» تأخذ عرض العمودين تحت المتاجر والتوصيل */
.platforms-grid .pf-main { grid-row: span 2; }
.platforms-grid .pf-pay { grid-column: span 2; }
.pf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pf-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--pf, #3B82F6) 14%, transparent); color: var(--pf, var(--brand)); }
.pf-icon .ico { width: 26px; height: 26px; }
.pf-domain { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); direction: ltr; }
.pf-domain .ico { width: 15px; height: 15px; }
.platform-card h3 { font-size: 22px; }
.platform-card p { color: var(--muted); font-size: 15px; flex-grow: 1; }

/* ---------- للأعمال ---------- */
.business { padding-top: 40px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); display: flex; flex-direction: column; gap: 12px; }
.aud-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); }
.aud-icon .ico { width: 26px; height: 26px; }
.audience h3 { font-size: 21px; }
.audience p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.aud-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mini-pill { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px; background: var(--accent-soft, var(--surface-2)); color: var(--accent, var(--text)); border: 1px solid var(--border); direction: ltr; transition: transform .2s; }
.mini-pill:hover { transform: translateY(-2px); }

/* ---------- شريط التحميل ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px;
  background: linear-gradient(135deg, #061026 0%, #0B1A3A 50%, #0E2A66 100%); color: #fff;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
}
.cta-bg span { position: absolute; border-radius: 50%; filter: blur(70px); }
.cta-bg span:first-child { width: 340px; height: 340px; background: #22D3EE; opacity: .45; top: -140px; right: -80px; }
.cta-bg span:last-child { width: 300px; height: 300px; background: #2563EB; opacity: .35; bottom: -140px; left: 20%; }
.cta-copy, .cta-apps { position: relative; }
.cta-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-copy p { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 18px; }
.cta-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-app {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); transition: background-color .2s, transform .2s var(--ease);
}
.cta-app:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.cta-app .app-icon { width: 46px; height: 46px; border-radius: 14px; }
.cta-app .app-icon .ico { width: 22px; height: 22px; }
.cta-app-name { display: flex; flex-direction: column; line-height: 1.3; flex-grow: 1; }
.cta-app-name b { font-family: var(--font-display); font-size: 15px; direction: ltr; text-align: right; }
.cta-app-name small { color: rgba(255,255,255,.65); font-size: 12.5px; }
.cta-app .gp { width: 24px; height: 24px; }

/* ---------- التذييل ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 360px; }
.site-footer h4 { font-size: 15px; margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.to-top:hover { color: var(--brand); }

/* ---------- الصفحات القانونية (سياسة الخصوصية) ---------- */
.legal-hero { position: relative; overflow: hidden; padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 14px; }
.legal-hero .lead { color: var(--muted); font-size: 18px; max-width: 760px; }
.legal-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.legal-meta time { font-weight: 600; color: var(--text); }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--brand); }
.legal-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--brand-grad); color: #fff; box-shadow: 0 14px 28px -12px rgba(14, 127, 196, .7);
}
.legal-icon .ico { width: 30px; height: 30px; }
.legal-icon.sm { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.legal-icon.sm .ico { width: 24px; height: 24px; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.toc-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.toc a::before { content: counter(toc); font-family: var(--font-display); font-size: 12px; min-width: 18px; color: var(--brand); padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--surface-2); color: var(--text); }

.legal-content { min-width: 0; counter-reset: sec; }
.legal-content section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.legal-content section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-content h2 { counter-increment: sec; display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.4vw, 27px); margin-bottom: 16px; }
.legal-content h2::before {
  content: counter(sec); display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 11px; font-size: 16px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.legal-content p { color: var(--muted); margin-bottom: 12px; font-size: 16.5px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--brand); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.legal-content ul li { position: relative; padding-inline-start: 22px; color: var(--muted); }
.legal-content ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--brand)); }
.legal-content .steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; padding: 0; }
.legal-content .steps li { counter-increment: step; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.legal-content .steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; color: var(--brand); }

.app-block { padding: 22px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); }
.app-block h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; margin-bottom: 12px; direction: ltr; justify-content: flex-end; }
.app-block .app-icon { width: 38px; height: 38px; border-radius: 11px; }
.app-block .app-icon .ico { width: 19px; height: 19px; }
.app-block ul { margin-bottom: 0; }
.note { margin-top: 14px !important; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft, var(--surface-2)); font-size: 15px !important; }
.highlight { display: inline-block; padding: 10px 16px; border-radius: 12px; font-weight: 600; color: var(--text) !important; background: color-mix(in srgb, #10B981 14%, transparent); }

.contact-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-card p { margin-bottom: 4px; }
.contact-mail { font-family: var(--font-display); font-size: 20px; direction: ltr; display: inline-block; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--brand); }
.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .toc ol { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 36px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- برامج الكمبيوتر + طلب الشراء عبر واتساب ---------- */
.software { background: var(--bg-alt); }
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; color: #fff; background: #1FA855;
  box-shadow: 0 10px 22px -10px rgba(31, 168, 85, .7);
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s;
}
.wa-btn:hover { transform: translateY(-2px); background: #189447; box-shadow: 0 14px 28px -10px rgba(31, 168, 85, .8); }
.wa-btn .ico { width: 20px; height: 20px; }
.wa-fill { fill: currentColor; stroke: none; }
.app-card .wa-btn { flex: 1 1 auto; }
.wa-btn-lg { width: 100%; padding: 14px 20px; font-size: 16px; margin-top: 6px; }

.sw-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 40px;
}
.sw-perks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500;
}
.sw-perks .ico { color: var(--brand); width: 18px; height: 18px; }
.sw-direct { text-align: center; margin-top: 26px; color: var(--muted); }
.wa-number { font-family: var(--font-display); font-weight: 700; color: #1FA855; direction: ltr; display: inline-block; margin-inline-start: 6px; }
.wa-number:hover { text-decoration: underline; }

.order-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.order-dialog::backdrop { background: rgba(6, 9, 19, .6); backdrop-filter: blur(4px); }
.order-dialog[open] { animation: dialog-in .25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.order-form { display: grid; gap: 14px; padding: 24px; }
.order-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.order-head h3 { font-size: 21px; }
.order-head p { color: var(--muted); font-size: 14px; }
.order-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px; color: #fff; background: #1FA855;
}
.order-ico .ico { width: 26px; height: 26px; }
.order-close { margin-inline-start: auto; flex-shrink: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 15px; color: var(--text);
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field input[aria-invalid="true"] { border-color: #E11D48; }
.order-error { color: #E11D48; font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .order-form { padding: 20px 16px; }
}

/* ---------- النسخة الإنجليزية من الصفحات القانونية ---------- */
.lang-switch { margin-top: 10px; }
.lang-switch a { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--brand); }
.lang-switch a:hover { border-color: var(--brand); }
.legal-en { padding: 64px 0 96px; background: var(--bg-alt); border-top: 1px solid var(--border); font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif; }
.legal-en .legal-content { max-width: 860px; margin-inline: auto; }
.legal-en .legal-content p, .legal-en .legal-content li { font-size: 15.5px; line-height: 1.7; }
.legal-en-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.legal-en .legal-content .legal-en-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; font-weight: 700; color: var(--text) !important; margin-bottom: 6px !important; }
.legal-en .legal-meta a { color: var(--brand); }

/* ---------- زر «تواصل معنا» العائم (أسفل اليسار) ---------- */
/* flex-end = اليسار في صفحة RTL، فيبقى الزر والتلميح والنافذة ملاصقة للحافة اليسرى */
.contact-fab { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cf-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cf-ico-fill { width: 22px; height: 22px; fill: currentColor; }

.cf-btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: var(--brand-grad);
  box-shadow: 0 14px 30px -10px rgba(14, 127, 196, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cf-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 36px -10px rgba(14, 127, 196, .9); }
.cf-btn .cf-ico { width: 28px; height: 28px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .2s; }
.cf-btn .cf-ico-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact-fab.is-open .cf-btn .cf-ico-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact-fab.is-open .cf-btn .cf-ico-x { opacity: 1; transform: none; }
.cf-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-3); animation: cf-ping 2.4s ease-out infinite; pointer-events: none; }
.contact-fab.is-open .cf-ping { display: none; }
@keyframes cf-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

/* التلميح */
.cf-teaser {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  animation: cf-in .35s var(--ease);
}
.cf-teaser[hidden] { display: none; }
.cf-teaser-text { border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted); padding: 4px 2px; }
.cf-teaser-text b { color: var(--brand); }
.cf-teaser-close { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.cf-teaser-close:hover { background: var(--surface-2); }
.cf-teaser-close .cf-ico { width: 15px; height: 15px; }

/* النافذة */
.cf-panel {
  width: 340px; max-width: calc(100vw - 40px); border-radius: 22px;
  /* على الشاشات القصيرة: لا تتجاوز ارتفاع الشاشة، والمحتوى يُمرَّر داخلها */
  max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform-origin: bottom left; animation: cf-in .3s var(--ease);
}
.cf-panel[hidden] { display: none; }
@keyframes cf-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.cf-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #061026 0%, #0B1A3A 55%, #0E2A66 100%); }
.cf-head img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.cf-head > div { flex: 1; min-width: 0; }
.cf-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; }
.cf-sub { font-size: 12.5px; opacity: .75; }
.cf-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); }
.cf-close:hover { background: rgba(255, 255, 255, .2); }
.cf-close .cf-ico { width: 18px; height: 18px; }

.cf-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.cf-lead { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.cf-topics { display: flex; gap: 6px; border: 0; padding: 0; margin: 2px 0 4px; }
.cf-topics legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cf-topics label { flex: 1; position: relative; }
.cf-topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cf-topics span {
  display: block; text-align: center; padding: 7px 4px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.cf-topics input:checked + span { background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: var(--brand); color: var(--brand); }
.cf-topics input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cf-label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text); margin-top: 4px; }

.cf-option {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.cf-option:hover { transform: translateY(-2px); }
.cf-wa:hover { border-color: #25D366; background: color-mix(in srgb, #25D366 8%, var(--surface-2)); }
.cf-mail:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.cf-opt-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; flex-shrink: 0; }
.cf-wa .cf-opt-ico { background: #25D366; }
.cf-mail .cf-opt-ico { background: var(--brand-grad); }
.cf-opt-ico .cf-ico { width: 21px; height: 21px; }
.cf-opt-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cf-opt-text b { font-size: 15px; }
.cf-opt-text small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.cf-arrow { width: 18px; height: 18px; color: var(--muted); }

/* نموذج البريد داخل نافذة «تواصل معنا» */
button.cf-option { width: 100%; font: inherit; text-align: start; cursor: pointer; }
.cf-view[hidden] { display: none; }
.cf-form-head { display: flex; align-items: center; gap: 8px; }
.cf-form-head .cf-label { margin: 0; }
.cf-topic-label { color: var(--brand); }
.cf-back { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.cf-back:hover { border-color: var(--brand); color: var(--brand); }
.cf-back .cf-ico { width: 18px; height: 18px; }

.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field > span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cf-field input, .cf-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.cf-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted); opacity: .7; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.cf-field [aria-invalid="true"] { border-color: #E5484D; }
.cf-field-error { display: none; font-size: 12.5px; color: #E5484D; }
.cf-field-error.is-shown { display: block; }
.cf-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cf-error { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; color: #B42318; background: color-mix(in srgb, #E5484D 10%, transparent); border: 1px solid color-mix(in srgb, #E5484D 30%, transparent); }
:root[data-theme="dark"] .cf-error { color: #FFA8A8; }
.cf-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.cf-error[hidden] { display: none; }

.cf-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; margin-top: 2px;
  border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; cursor: pointer;
  background: var(--brand-grad); box-shadow: 0 10px 22px -10px rgba(14, 127, 196, .7); transition: transform .2s var(--ease), opacity .2s;
}
.cf-submit:hover { transform: translateY(-1px); }
.cf-submit .cf-ico { width: 18px; height: 18px; transform: scaleX(-1); }
.cf-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.cf-submit.is-loading .cf-ico { animation: cf-fly 1s ease-in-out infinite; }
@keyframes cf-fly { 50% { transform: scaleX(-1) translate(4px, -3px); } }
.cf-alt { text-align: center; font-size: 12.5px; color: var(--muted); }
.cf-alt a { color: var(--brand); font-weight: 600; }

.cf-done { align-items: center; text-align: center; padding-top: 26px; padding-bottom: 24px; }
.cf-done-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: #12B76A; box-shadow: 0 0 0 8px color-mix(in srgb, #12B76A 15%, transparent); margin-bottom: 4px; }
.cf-done-ico .cf-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.cf-done-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.cf-done-email { color: var(--text); }
.cf-again { margin-top: 6px; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-weight: 600; font-size: 14px; color: var(--brand); cursor: pointer; }
.cf-again:hover { border-color: var(--brand); }

@media (max-width: 640px) {
  .contact-fab { left: 16px; bottom: 16px; }
  .cf-btn { width: 54px; height: 54px; }
  .cf-panel { position: fixed; left: 12px; right: 12px; bottom: 82px; width: auto; max-width: none; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); }
}
@media print { .contact-fab { display: none; } }

/* ---------- حركة الظهور ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow::before { display: none; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .platforms-grid .pf-main { grid-column: 1 / -1; grid-row: auto; }
  .platforms-grid .pf-pay { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: absolute; top: 72px; inset-inline: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 22px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav-cta { display: inline-flex; margin-top: 8px; }
  .header-actions { margin-inline-start: auto; }

  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 70px; }
  .hero .lead, .hero-facts { margin-inline: auto; }
  .h1-brand { margin-inline: auto; }
  .hero-ctas, .hero-facts { justify-content: center; }
  .hero-visual { padding: 30px 0 40px; }
  .orbit { --size: 360px; }

  .app-detail { padding: 80px 0; }
  .app-detail-inner { grid-template-columns: 1fr; gap: 56px; }
  .app-detail.is-reversed .app-detail-copy { order: 1; }
  .app-detail.is-reversed .app-detail-visual { order: 2; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .brand-sub { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-facts { gap: 14px 24px; }
  .hero-facts strong { font-size: 28px; }
  .orbit { --size: 270px; }
  .orbit-core, .orbit-core img { width: 100px; height: 100px; }
  .orbit-item { width: 70px; }
  .orbit-item .tile { width: 54px; height: 54px; border-radius: 17px; }
  .orbit-item .tile .ico { width: 26px; height: 26px; }
  .pos-1 { top: -30px; left: calc(50% - 35px); }
  .pos-2 { top: calc(50% - 40px); right: -32px; }
  .pos-3 { bottom: -42px; left: calc(50% - 35px); }
  .pos-4 { top: calc(50% - 40px); left: -32px; }
  .apps-grid, .flow, .platforms-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .float-card { display: none; }
  .cta-band { padding: 32px 20px; border-radius: 24px; }
  .cta-apps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
