/* ==========================================================
   EliteP — الموقع الرسمي
   ثيم داكن فخم · RTL · بدون صور (كل الرسومات بالكود)
   ========================================================== */
:root {
  --bg: #060A16;
  --bg-2: #0A1022;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #EAF0FF;
  --dim: #9AA6C8;
  --mute: #6B7699;
  --cyan: #22D3EE;
  --violet: #7C6CFF;
  --gold: #FBBF24;
  --green: #2FBF71;
  --orange: #F0A93A;
  --red: #F26B6B;
  --grad: linear-gradient(120deg, #22D3EE, #7C6CFF);
  --radius: 22px;
  --maxw: 1200px;
  --font: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-en: 'Space Grotesk', 'Tajawal', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* حبيبات خفيفة تعطي ملمس فخم للخلفية */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(124, 108, 255, .45); }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 20px; height: 20px; }

/* شريط تقدّم القراءة */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; background: var(--grad); transform-origin: right; transform: scaleX(0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary { background: var(--grad); color: #06101f; box-shadow: 0 10px 40px -12px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(124, 108, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.btn-sm { height: 44px; padding-inline: 20px; font-size: 15px; }
.btn[disabled], .btn.is-off { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 90; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 10, 22, .74); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 26px/1 var(--font-en); letter-spacing: -.02em; direction: ltr; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 4px; margin-inline: auto; }
.links a { padding: 9px 16px; border-radius: 10px; color: var(--dim); font-weight: 500; transition: color .2s, background .2s; }
.links a:hover, .links a.act { color: var(--text); background: var(--surface-2); }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 158px 0 96px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 20s ease-in-out infinite alternate; }
.a1 { width: 640px; height: 640px; background: #22D3EE; opacity: .2; top: -240px; inset-inline-start: -180px; }
.a2 { width: 720px; height: 720px; background: #7C6CFF; opacity: .26; bottom: -320px; inset-inline-end: -200px; animation-delay: -7s; }
.a3 { width: 360px; height: 360px; background: #FBBF24; opacity: .09; top: 28%; inset-inline-start: 44%; animation-delay: -13s; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 22%, transparent 76%);
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 500 14px var(--font); color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: ping 2.2s infinite; }
h1 { margin-top: 22px; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.35; font-weight: 900; }
.rot { display: inline-block; color: var(--gold); transition: opacity .35s, transform .35s; }
.rot.out { opacity: 0; transform: translateY(10px); }
.lead { margin-top: 22px; font-size: 19px; color: var(--dim); max-width: 580px; }
.lead b { color: var(--text); font-family: var(--font-en); white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; list-style: none; }
.trust li { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--dim); font-size: 14px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* النموذج التوضيحي */
.hero-visual { position: relative; perspective: 1400px; padding-bottom: 46px; }
.mock { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }
.win { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(20, 28, 60, .92), rgba(9, 14, 32, .94)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(34, 211, 238, .3), 0 30px 80px -20px rgba(0, 0, 0, .75); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3358; }
.win-bar i:nth-child(1) { background: #F26B6B; opacity: .8; } .win-bar i:nth-child(2) { background: #F0A93A; opacity: .8; } .win-bar i:nth-child(3) { background: #2FBF71; opacity: .8; }
.win-bar span { margin-inline-start: 10px; }
.win-body { display: grid; grid-template-columns: 62px 1fr; min-height: 340px; }
.win-side { border-inline-end: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.win-side i { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); }
.win-side i.on { background: var(--grad); }
.win-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { display: block; color: var(--mute); font-size: 12px; line-height: 1.5; }
.kpi b { display: block; font: 700 22px/1.3 var(--font-en); }
.kpi em { font-style: normal; font-size: 12px; color: #4ADE80; }
.kpi.warn em { color: var(--orange); }
.chart { height: 120px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 10px; }
.chart svg { width: 100%; height: 100%; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .4s ease forwards; }
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.row span { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); }
.row b { height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.row em { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.row em.ok { color: #4ADE80; background: rgba(74, 222, 128, .12); }
.row em.wn { color: var(--orange); background: rgba(240, 169, 58, .12); }
.phone { position: absolute; inset-inline-end: -30px; bottom: 0; width: 158px; padding: 14px 12px; border-radius: 28px; background: linear-gradient(180deg, #121a3a, #0a0f22); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 5px rgba(255, 255, 255, .03); transform: translateZ(60px); animation: bob 7s ease-in-out infinite; }
.ph-top { width: 46px; height: 5px; border-radius: 4px; background: var(--line-2); margin: 0 auto 12px; }
.ph-card { padding: 10px 12px; border-radius: 14px; background: var(--grad); color: #06101f; }
.ph-card small { display: block; font-size: 11px; opacity: .75; line-height: 1.4; }
.ph-card b { font: 700 20px var(--font-en); }
.ph-bars { height: 74px; display: flex; align-items: flex-end; gap: 6px; margin: 12px 0; }
.ph-bars i { flex: 1; height: var(--h); border-radius: 5px; background: linear-gradient(180deg, var(--cyan), rgba(124, 108, 255, .4)); transform-origin: bottom; animation: grow 1.4s .8s both cubic-bezier(.2, .8, .2, 1); }
.ph-sync { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #4ADE80; padding: 7px 10px; border-radius: 10px; background: rgba(74, 222, 128, .1); }
.ph-sync i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.fchip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 12px; background: rgba(14, 20, 44, .86); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 13px; font-weight: 500; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); animation: bob 6s ease-in-out infinite; transform: translateZ(90px); }
.fchip i { width: 8px; height: 8px; border-radius: 50%; }
.fchip i.g { background: #4ADE80; box-shadow: 0 0 10px #4ADE80; } .fchip i.o { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.c1 { top: -18px; inset-inline-start: 18px; }
.c2 { top: 150px; inset-inline-start: -34px; animation-delay: -3s; }
.demo-tag { position: absolute; bottom: 8px; inset-inline-start: 4px; font-size: 12px; color: var(--mute); }

/* ---------- Sections ---------- */
.sec { padding: 92px 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, transparent, rgba(124, 108, 255, .05) 30%, rgba(34, 211, 238, .04) 70%, transparent); }
.sec-head { max-width: 740px; margin-bottom: 52px; }
.kicker { display: inline-block; margin-bottom: 14px; font: 700 15px var(--font); color: var(--cyan); }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; line-height: 1.35; }
.sec-head p { margin-top: 14px; font-size: 18px; color: var(--dim); }

/* تأثير الإضاءة اللي بيتبع الماوس */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 108, 255, .16), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ---------- Programs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 30px; }
.tab { padding: 10px 22px; border: 0; border-radius: 11px; background: transparent; color: var(--dim); font-weight: 700; cursor: pointer; transition: .25s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card { --accent: var(--cyan); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); transition: transform .35s, border-color .35s, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 120px; pointer-events: none; background: radial-gradient(300px 120px at 50% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%); }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ico svg { width: 28px; height: 28px; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.card h3 { font: 700 25px/1.3 var(--font-en); letter-spacing: -.01em; position: relative; }
.card .tag { color: var(--dim); font-size: 16px; position: relative; }
.flist { list-style: none; display: grid; gap: 9px; position: relative; }
.flist li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.flist svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.card-act { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; position: relative; z-index: 2; }
.card-act .btn { height: 46px; padding-inline: 20px; font-size: 15px; }
.card.soon { border-style: dashed; }
.card.soon .tag { margin-top: -4px; }
.soon-vis { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); position: relative; }
.soon-vis i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06) 30%, rgba(251, 191, 36, .35) 50%, rgba(255, 255, 255, .06) 70%) 100% 0 / 300% 100%; animation: shimmer 2.6s linear infinite; }
.soon-vis i:nth-child(2) { width: 78%; animation-delay: -.5s; } .soon-vis i:nth-child(3) { width: 56%; animation-delay: -1s; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.b { padding: 26px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)); border: 1px solid var(--line); transition: border-color .3s, transform .3s, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.b:hover { border-color: var(--line-2); transform: translateY(-4px); }
.b-2 { grid-column: span 2; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; }
.b h3 { font-size: 21px; font-weight: 800; margin-top: 18px; }
.b p { margin-top: 8px; color: var(--dim); font-size: 15.5px; }
.vis { height: 190px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.b-4 .vis { height: 230px; }

/* مزامنة الفروع */
.sync-svg { width: 100%; height: 100%; }
.flows path { stroke: rgba(34, 211, 238, .55); stroke-dasharray: 5 9; animation: flow 1.2s linear infinite; }
.node rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .2); }
.node text { fill: #DCE4FF; font: 500 14px var(--font); }
.pulse { transform-origin: 230px 105px; animation: pulse 2.6s ease-out infinite; }

/* فوترة */
.inv { display: grid; align-content: center; gap: 10px; padding: 20px; place-items: stretch; }
.inv-row { display: grid; grid-template-columns: 26px 1fr 44px; gap: 12px; align-items: center; opacity: 0; transform: translateX(14px); animation: slidein 4.5s infinite; }
.inv-row:nth-child(2) { animation-delay: .5s; } .inv-row:nth-child(3) { animation-delay: 1s; }
.inv-row i { height: 26px; border-radius: 8px; background: var(--surface-2); }
.inv-row b { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.inv-row s { height: 8px; border-radius: 6px; background: var(--grad); }
.inv-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line-2); color: var(--dim); font-size: 14px; }
.inv-total strong { width: 70px; height: 14px; border-radius: 6px; background: var(--grad); }

/* بدون إنترنت */
.offline { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; }
.pill { padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.off { color: var(--orange); background: rgba(240, 169, 58, .12); border: 1px solid rgba(240, 169, 58, .3); }
.pill.on { color: #4ADE80; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); }
.track { flex: 1; min-width: 30px; height: 2px; background: var(--line-2); position: relative; border-radius: 2px; }
.track i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: travel 2.4s ease-in-out infinite; }

/* تنبيهات */
.alerts { display: grid; align-content: center; gap: 16px; padding: 22px; place-items: stretch; }
.al { display: grid; gap: 7px; }
.al span { font-size: 13px; color: var(--dim); }
.al em { display: block; height: 8px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.al em::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 6px; transform-origin: right; animation: fill 2.2s cubic-bezier(.2, .8, .2, 1) both; }
.al em.o::before { background: linear-gradient(90deg, var(--orange), #f7c873); }
.al em.r::before { background: linear-gradient(90deg, var(--red), #f79a9a); }
.al em.g::before { background: linear-gradient(90deg, #22c55e, #4ADE80); }

/* قفل الترخيص */
.lock svg { width: 190px; }
.shield { fill: rgba(34, 211, 238, .08); stroke: #22D3EE; stroke-width: 3; stroke-linejoin: round; }
.tick { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s 1s ease infinite; }

/* تقارير */
.b-wide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.b-wide h3 { margin-top: 0; }
.bars { height: 170px; display: flex; align-items: flex-end; gap: 12px; padding: 18px 22px 0; border-bottom: 2px solid var(--line-2); }
.bars i { flex: 1; max-width: 46px; height: var(--h); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(124, 108, 255, .35)); transform-origin: bottom; animation: grow 1.6s both cubic-bezier(.2, .8, .2, 1); }
.bars i:nth-child(2) { animation-delay: .06s } .bars i:nth-child(3) { animation-delay: .12s } .bars i:nth-child(4) { animation-delay: .18s } .bars i:nth-child(5) { animation-delay: .24s }
.bars i:nth-child(6) { animation-delay: .3s } .bars i:nth-child(7) { animation-delay: .36s } .bars i:nth-child(8) { animation-delay: .42s } .bars i:nth-child(9) { animation-delay: .48s } .bars i:nth-child(10) { animation-delay: .54s }

/* ---------- Downloads ---------- */
.dl { display: grid; gap: 14px; }
.dl-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.dl-row:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dl-row .ico { width: 50px; height: 50px; border-radius: 14px; }
.dl-name { font: 700 19px var(--font-en); }
.dl-desc { color: var(--dim); font-size: 14.5px; }
.dl-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-meta span { padding: 5px 11px; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); background: rgba(0, 0, 0, .2); }
.dl-note { padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.step:hover { border-color: var(--line-2); }
.step span { font: 700 40px/1 var(--font-en); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { font-size: 20px; margin-top: 14px; }
.step p { color: var(--dim); font-size: 15px; margin-top: 4px; }

/* ---------- Learn ---------- */
.learn { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 44px; border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(600px 220px at 100% 0, rgba(124, 108, 255, .2), transparent 70%), var(--surface); }
.learn p { margin-top: 10px; color: var(--dim); font-size: 17px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.contact-info p { margin-top: 14px; color: var(--dim); font-size: 18px; max-width: 480px; }
.cinfo { list-style: none; display: grid; gap: 14px; margin: 32px 0 26px; }
.cinfo li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.ci { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); }
.ci svg { width: 22px; height: 22px; }
.cinfo small { display: block; color: var(--mute); font-size: 13px; line-height: 1.4; }
.cinfo a { font: 500 17px var(--font-en); }
.cinfo a:hover { color: var(--cyan); }
.form { display: grid; gap: 18px; padding: 32px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--dim); }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .28); color: var(--text); font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA6C8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: left 16px center; padding-inline-end: 16px; padding-left: 40px; }
.form select option { background: #0B1124; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.form ::placeholder { color: var(--mute); }
.hint { color: var(--mute); font-size: 13.5px; text-align: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 38px 0; background: rgba(0, 0, 0, .2); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 22px; }
.flinks { display: flex; gap: 6px; flex-wrap: wrap; }
.flinks a { padding: 6px 12px; color: var(--dim); border-radius: 8px; font-size: 15px; }
.flinks a:hover { color: var(--text); background: var(--surface-2); }
.foot p { color: var(--mute); font-size: 14px; }

/* ---------- Keyframes ---------- */
@keyframes drift { to { transform: translate3d(60px, 50px, 0) scale(1.12); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes slidein { 0%, 8% { opacity: 0; transform: translateX(14px); } 18%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes travel { 0% { inset-inline-start: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { inset-inline-start: calc(100% - 10px); opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { to { background-position: 0 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { padding: 132px 0 90px; }
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-2, .b-4 { grid-column: span 1; }
  .b-4, .b-6 { grid-column: span 2; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .sec { padding: 84px 0; }
}
@media (max-width: 900px) {
  .burger { display: block; margin-inline-start: auto; }
  .nav-cta { display: none; }
  .links { position: fixed; top: 78px; inset-inline: 0; flex-direction: column; gap: 2px; padding: 14px 20px 22px; margin: 0; background: rgba(6, 10, 22, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s; }
  .links.open { transform: none; opacity: 1; pointer-events: auto; }
  .links a { padding: 14px 16px; font-size: 17px; }
}
@media (max-width: 700px) {
  .dl-row { grid-template-columns: auto 1fr; }
  .dl-meta { grid-column: 1 / -1; }
  .dl-row .btn { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .learn { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .b-wide { grid-template-columns: 1fr; }
  .f2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .b-2, .b-4, .b-6 { grid-column: span 1; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .phone { inset-inline-end: -8px; width: 132px; }
  .c2 { display: none; }
  .cta-row .btn { width: 100%; }
  .kpis { gap: 8px; } .kpi { padding: 10px; } .kpi b { font-size: 18px; }
  .win-body { grid-template-columns: 46px 1fr; }
  .form { padding: 24px 20px; }
  .btn { padding-inline: 20px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   إضافات نسخة PHP (النموذج + الصفحات الثابتة)
   ========================================================== */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.card[hidden] { display: none; }
.hint.ok { color: #4ADE80; font-weight: 700; }
.hint.err { color: var(--red); font-weight: 700; }
.wa-follow { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
/* الأسئلة الشائعة */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); transition: border-color .3s, opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.faq details:hover, .faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 18px; line-height: 1.6; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-inline-end: 2px solid var(--cyan); border-block-end: 2px solid var(--cyan); transform: rotate(45deg); margin-top: -4px; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 18px; }
.faq .ans { padding: 0 22px 20px; color: var(--dim); font-size: 16.5px; line-height: 1.9; }
@media (max-width: 640px) { .faq summary { padding: 16px 18px; font-size: 16.5px; } .faq .ans { padding: 0 18px 18px; } }

.page-body { max-width: 820px; margin-inline: auto; padding: 36px 40px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.page-body h1 { margin: 0 0 18px; font-size: clamp(28px, 3.4vw, 40px); }
.page-content { color: var(--dim); font-size: 17px; }
.page-content > * + * { margin-top: 14px; }
.page-content h2, .page-content h3 { color: var(--text); font-size: 22px; margin-top: 26px; }
.page-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page-content ul, .page-content ol { padding-inline-start: 24px; }
@media (max-width: 640px) { .page-body { padding: 26px 20px; } }

/* ---------- المقالات ---------- */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.acard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); transition: transform .35s, border-color .35s, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.acard:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .45); }
.acard-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 26px; }
.acard.has-img .acard-body { padding: 20px 24px 24px; }
.acard-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.acard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.acard:hover .acard-img img { transform: scale(1.04); }
.acard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.acard h3 { font-size: 20px; line-height: 1.55; font-weight: 800; }
.acard p { color: var(--dim); font-size: 15.5px; line-height: 1.85; }
.acard-more { margin-top: auto; padding-top: 6px; color: var(--cyan); font-weight: 700; font-size: 15px; }
.acard-more b { display: inline-block; transition: transform .25s; }
.acard:hover .acard-more b { transform: translateX(-5px); }
.acards-all { margin-top: 34px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14.5px; color: var(--mute); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--cyan); }
header.sec-head h1 { margin-top: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.35; font-weight: 800; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 22px; font-size: 14.5px; color: var(--mute); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 26px; margin-top: 36px; padding: 26px 28px; border-radius: 20px; border: 1px solid rgba(34, 211, 238, .28); background: linear-gradient(135deg, rgba(34, 211, 238, .09), rgba(124, 108, 255, .09)); }
.cta-box h2 { margin: 0 0 6px; font-size: 21px; }
.cta-box p { margin: 0; color: var(--dim); font-size: 16px; }
.cta-box .btn { flex: none; }
.related { max-width: 880px; margin: 54px auto 0; }
.related h2 { font-size: 24px; margin-bottom: 20px; }
.related .acards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.related .acard-body, .related .acard.has-img .acard-body { padding: 16px 18px 18px; }
.related .acard h3 { font-size: 17px; }
.related .acard p, .related .acard-meta { display: none; }
@media (max-width: 640px) { .acards { grid-template-columns: 1fr; } .cta-box { padding: 22px 20px; } .cta-box .btn { width: 100%; } }

/* تصنيفات صفحة المقالات */
.catnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); font-weight: 700; font-size: 15px; transition: color .25s, border-color .25s, background .25s; }
.catnav a:hover { color: var(--text); border-color: rgba(34, 211, 238, .5); background: var(--surface-2); }
.catnav a b { min-width: 24px; padding: 0 7px; border-radius: 999px; background: rgba(34, 211, 238, .14); color: var(--cyan); font-size: 13px; text-align: center; }
.catsec { margin-top: 44px; }
.catsec h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.catdesc { margin: 4px 0 20px; color: var(--dim); font-size: 16px; }

/* محتوى المقالات: صور وتعليقات وخطوات */
.page-body.art { max-width: 880px; }
.page-content strong { color: var(--text); font-weight: 700; }
.page-content figure.shot { margin: 28px 0; }
.page-content figure.shot a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 22px 60px -28px rgba(0, 0, 0, .85); cursor: zoom-in; text-decoration: none; }
.page-content figure.shot img { width: 100%; height: auto; }
.page-content figcaption { margin-top: 10px; text-align: center; color: var(--mute); font-size: 14.5px; line-height: 1.8; }
.page-content .tip, .page-content .warn { padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(34, 211, 238, .28); background: rgba(34, 211, 238, .07); font-size: 16px; line-height: 1.9; }
.page-content .warn { border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .07); }
.page-content .tip > :first-child, .page-content .warn > :first-child { margin-top: 0; }
.page-content kbd { display: inline-block; padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); color: var(--text); font-family: var(--font-en); font-size: .86em; line-height: 1.7; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.page-content .kk { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.page-content code { display: inline-block; padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--text); font-family: var(--font-en); font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.page-content ol.steps { list-style: none; counter-reset: st; padding: 0; }
.page-content ol.steps > li { counter-increment: st; position: relative; padding-inline-start: 46px; min-height: 34px; }
.page-content ol.steps > li + li { margin-top: 14px; }
.page-content ol.steps > li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 1px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04101c; font-weight: 800; font-size: 15px; font-family: var(--font-en); }
.page-content .tbl { display: block; overflow-x: auto; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.page-content th, .page-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: right; vertical-align: top; }
.page-content th { background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 700; }
.page-content h2 { margin-top: 34px; font-weight: 800; }
.page-content h3 { margin-top: 24px; font-size: 19px; font-weight: 700; }

/* تكبير الصورة */
.lb { position: fixed; inset: 0; z-index: 400; overflow: auto; padding: 56px 18px 24px; background: rgba(3, 6, 14, .94); cursor: zoom-out; }
.lb img { display: block; margin: 0 auto; width: min(100%, 1400px); max-width: none; height: auto; border-radius: 10px; background: #fff; }
.lb-x { position: fixed; top: 12px; inset-inline-start: 14px; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.lb-x:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) { .lb img { width: 900px; } }
