/*
 * الصفحة الرئيسية العامة (landing.php). كل الأسماء ببادئة ld- فلا تمس باقي الصفحات.
 * الثيمان: النهاري هو الاصل (data-theme="light" يضعه head_core)، والليلي بغيابه.
 * الاتجاه: خصائص منطقية (inline-start/end) فتصلح للعربية والانجليزية بلا نسخة ثانية.
 */
:root {
    --ld-top: #0d1526; --ld-bg: #0a0f1c; --ld-hd: rgba(10, 15, 28, 0.82);
    --ld-card: #131d33; --ld-card2: #192545; --ld-line: #23304f; --ld-line2: #2d3c60;
    --ld-ink: #eef2f8; --ld-tx: #dbe3f1; --ld-mut: #8892ab; --ld-mut2: #a8b3c9;
    --ld-soft: rgba(57, 120, 232, 0.18); --ld-softc: #8fb5f5; --ld-tab: #0e1626;
    --ld-chip: rgba(57, 120, 232, 0.12); --ld-chipb: rgba(57, 120, 232, 0.32);
    --ld-ok: #4cc58f; --ld-okbg: rgba(47, 154, 107, 0.16);
    --ld-blue: #3978e8; --ld-blue2: #5b93ee;
    --ld-sh: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --ld-grad: linear-gradient(135deg, #3f7be0, #2a56a8);
}
html[data-theme="light"] {
    --ld-top: #eaf1fd; --ld-bg: #f6f8fc; --ld-hd: rgba(246, 248, 252, 0.86);
    --ld-card: #fff; --ld-card2: #f1f4fa; --ld-line: #e1e6ee; --ld-line2: #cfd9ea;
    --ld-ink: #1d2740; --ld-tx: #2b3445; --ld-mut: #6b778c; --ld-mut2: #52607a;
    --ld-soft: #e6eefc; --ld-softc: #3d6aa8; --ld-tab: #f1f4fa;
    --ld-chip: #f1f6fd; --ld-chipb: #cfdcf3;
    --ld-ok: #2f9a6b; --ld-okbg: #e6f4ee;
    --ld-sh: 0 18px 40px -20px rgba(50, 70, 100, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ld {
    margin: 0; min-height: 100vh; color: var(--ld-tx); -webkit-font-smoothing: antialiased;
    font-family: 'Tajawal', 'Cairo', 'TajawalFallback', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
    background-color: var(--ld-bg); background-image: linear-gradient(180deg, var(--ld-top) 0, var(--ld-bg) 560px); background-repeat: no-repeat;
}
.ld h1, .ld h2, .ld h3, .ld p, .ld ul, .ld ol { margin: 0; padding: 0; }
.ld ul, .ld ol { list-style: none; }
.ld a { color: inherit; text-decoration: none; }

/*
 * ⚠ لا مستطيل رمادي عند اللمس (نفس قاعدة account_ui.php لصفحات التطبيق).
 *
 * فالمتصفح على الهاتف يرسم مستطيلا شفافا حول كل رابط وزر يضغط، بشكل الصندوق لا بشكل العنصر،
 * فيخرج مربعا حول الشعار وحول الازرار الدائرية. وهذه الصفحة لا تحمل account_ui.php فكانت تظهره وحدها.
 * والشفافية تلغيه، ويبقى اثر الضغط الذي ترسمه الصفحة نفسها (.ld-bt:active وغيره).
 */
a, button, [role="button"], input, select, textarea, summary, label {
    -webkit-tap-highlight-color: transparent;
}
.ld svg { display: block; flex: none; }
.ic-sun { display: none; }
.ic-moon { display: flex; }
html[data-theme="light"] .ic-sun { display: flex; }
html[data-theme="light"] .ic-moon { display: none; }
.ld :focus-visible { outline: 2px solid var(--ld-blue); outline-offset: 3px; }
.ld-in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* ═══ الترويسة: شعار واسم بلونين وسطر صغير في بداية السطر، وايقونات بلا دوائر ═══ */
.ld-hd { position: sticky; top: 0; z-index: 50; background: var(--ld-hd); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.ld-hd.sc { border-bottom-color: var(--ld-line); }
.ld-hd-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; padding: 0 16px; }
.ld-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ld-ink); }
.ld-nm { display: flex; flex-direction: column; line-height: 1.15; }
.ld-nm b { font-size: 17px; font-weight: 800; letter-spacing: 0.1px; white-space: nowrap; text-align: start; }
.ld-nm b i { font-style: normal; color: var(--ld-blue); }
.ld-nm small { margin-top: 2px; font-size: 10px; font-weight: 500; color: var(--ld-mut2); white-space: nowrap; }
.ld-lt { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ld-blue2), var(--ld-blue)); box-shadow: 0 6px 12px -8px rgba(57, 120, 232, 0.9); }
.ld-lt img { width: 22px; height: 22px; display: block; }
.ld-nav { display: none; align-items: center; gap: 28px; font-size: 13px; font-weight: 700; color: var(--ld-mut2); }
.ld-nav a { transition: color 0.15s; white-space: nowrap; }
.ld-nav a:hover { color: var(--ld-blue); }
.ld-ha { display: flex; align-items: center; gap: 4px; }
.ld-tools { display: flex; align-items: center; gap: 2px; }
/* ايقونات الهيدر بلا دائرة ولا خلفية (انظر assets/css/hdr-icons.css)؛ هنا المقاس واللون فقط */
.ld-rc, html .ld-tools a.lang-switch.lang-globe {
    width: 38px !important; min-width: 38px !important; height: 40px !important; padding: 0 !important; cursor: pointer;
    display: inline-flex !important; align-items: center; justify-content: center; flex: none;
    border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ld-ink) !important; transition: color 0.15s, opacity 0.15s;
}
.ld-rc:hover, html .ld-tools a.lang-switch.lang-globe:hover { color: var(--ld-blue) !important; }
html .ld-tools a.lang-switch.lang-globe svg { width: 22px; height: 22px; stroke: currentColor; color: inherit; }
.ld-rc svg { width: 22px; height: 22px; }
/* الموبايل: السمة ثم اللغة ثم القائمة */
.ld-tools #themeToggle { order: -1; }

/* قائمة الثلاث شرط (موبايل) */
.ld-mn .ic-close { display: none; }
.ld-mn[aria-expanded="true"] { color: var(--ld-blue) !important; }
.ld-mn[aria-expanded="true"] .ic-open { display: none; }
.ld-mn[aria-expanded="true"] .ic-close { display: flex; }
.ld-mn svg { width: 24px; height: 24px; }
.ld-mw { position: relative; padding: 0; }
.ld-menu { position: absolute; top: 6px; inset-inline: 12px; z-index: 60; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 24px; background: var(--ld-card); border: 1px solid var(--ld-line); box-shadow: var(--ld-sh); transform-origin: top; animation: ldMenuIn 0.16s ease-out; }
.ld-menu[hidden] { display: none; }
.ld-menu > a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ld-tx); transition: background 0.15s, color 0.15s; }
.ld-menu > a svg { color: var(--ld-mut2); }
.ld-menu > a:hover, .ld-menu > a:focus-visible { background: var(--ld-chip); color: var(--ld-blue); }
.ld-menu > a:hover svg { color: var(--ld-blue); }
.ld-mbt { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ld-line); }
.ld-mbt .ld-bt { flex: 1; height: 42px; padding: 0 12px; }
@keyframes ldMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ld-dk { display: none !important; }

/* الأزرار: كبسولات */
.ld-bt {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform 0.12s, filter 0.15s, border-color 0.15s;
}
.ld-bt:hover { filter: brightness(1.04); }
.ld-bt:active { transform: scale(0.98); }
.ld-bt.p { color: #fff; background: linear-gradient(135deg, var(--ld-blue2), var(--ld-blue)); box-shadow: 0 8px 16px -10px rgba(57, 120, 232, 0.9); }
.ld-bt.o { color: var(--ld-tx); background: var(--ld-card); border-color: var(--ld-line2); }
.ld-bt.o:hover { border-color: var(--ld-blue); }
.ld-bt.s { color: var(--ld-softc); background: var(--ld-soft); border-color: var(--ld-chipb); }
.ld-bt.wh { color: #2f5fb3; background: #fff; }
.ld-bt.gh { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
html[dir="rtl"] .ld-bt svg { transform: none; }
html[dir="ltr"] .ld-bt .ld-arrow, html[dir="ltr"] .ld-bt.p svg, html[dir="ltr"] .ld-bt.wh svg { transform: scaleX(-1); }

/* ═══ البداية ═══ */
.ld-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--ld-chipb); background: var(--ld-chip); color: var(--ld-softc); font-size: 12px; font-weight: 700; line-height: 1.6; }
.ld-chip.w { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ld-hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 44px; padding: 20px 18px 44px; }
.ld-ht { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ld h1 { font-size: 30px; line-height: 1.55; font-weight: 800; color: var(--ld-ink); }
.ld h1 em { font-style: normal; color: var(--ld-blue); }
.ld-ht p { font-size: 13.5px; line-height: 2.1; color: var(--ld-mut2); font-weight: 500; }
.ld-hb { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ld-hb .ld-bt { height: 46px; padding: 0 24px; width: 100%; font-size: 13.5px; }
.ld-hb.c { align-items: center; }
.ld-hg { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 440px; }
.ld-hg .ld-bt { height: 46px; padding: 0 20px; font-size: 14px; font-weight: 800; }
.ld-hg .ld-bt.p { box-shadow: 0 6px 14px -8px rgba(57, 120, 232, 0.55); }
.ld-hr { display: flex; gap: 10px; }
.ld-hr .ld-bt { flex: 1; min-width: 0; }
.ld .ld-dc { align-self: stretch; max-width: 440px; display: flex; align-items: center; gap: 7px; margin-top: -4px; padding-top: 14px; border-top: 1px solid var(--ld-line); color: var(--ld-blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.ld-dc svg { flex: none; }
.ld-dc small { font-size: 11px; font-weight: 500; color: var(--ld-mut); }
.ld .ld-dc:hover { text-decoration: underline; }
.ld-dc[hidden] { display: none; }
.ld-hk { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ld-mut2); }
.ld-hk li { display: flex; align-items: center; gap: 8px; }
.ld-hk svg { color: var(--ld-blue); }

/* ═══ لوحة الراوتر التوضيحية ═══ */
.ld-dw { position: relative; width: 100%; }
.ld-db { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 26px; background: var(--ld-card); border: 1px solid var(--ld-line); box-shadow: var(--ld-sh); }
.ld-dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld-dn { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ld-dn b { display: block; font-size: 14px; font-weight: 800; color: var(--ld-ink); white-space: nowrap; }
.ld-dn small { display: block; font-size: 11px; color: var(--ld-mut); white-space: nowrap; }
.ld-tl { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--ld-soft); color: var(--ld-softc); }
.ld-tl.s38 { width: 38px; height: 38px; border-radius: 13px; }
.ld-tl.s46 { width: 46px; height: 46px; border-radius: 15px; }
.ld-lv { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ld-okbg); color: var(--ld-ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ld-lv i { width: 8px; height: 8px; border-radius: 50%; background: var(--ld-ok); box-shadow: 0 0 0 3px rgba(47, 154, 107, 0.2); animation: ldLive 2.4s ease-in-out infinite; }
@keyframes ldLive { 50% { box-shadow: 0 0 0 6px rgba(47, 154, 107, 0.04); } }

.ld-tb { display: flex; padding: 4px; border-radius: 999px; background: var(--ld-tab); border: 1px solid var(--ld-line); }
.ld-tb button { flex: 1; min-width: 0; padding: 9px 4px; border: 0; border-radius: 999px; background: none; color: var(--ld-mut); font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ld-tb button.on { background: var(--ld-card); color: var(--ld-ink); box-shadow: 0 3px 8px -2px rgba(50, 70, 100, 0.25); }
html:not([data-theme="light"]) .ld-tb button.on { background: var(--ld-card2); }
.ld-pn { display: none; flex-direction: column; gap: 14px; }
.ld-pn.on { display: flex; animation: ldIn 0.22s ease-out; }
@keyframes ldIn { from { opacity: 0; transform: translateY(4px); } }

.ld-sxs { display: flex; gap: 10px; }
.ld-sx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 8px; border-radius: 18px; border: 1px solid var(--ld-line); background: var(--ld-card); }
.ld-sx small { font-size: 11px; color: var(--ld-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-sx b { font-size: 20px; line-height: 1.5; color: var(--ld-ink); font-weight: 800; direction: ltr; text-align: start; unicode-bidi: isolate; }
.ld-sx em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ld-ok); white-space: nowrap; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.ld-sx.hot { border-color: var(--ld-chipb); background: linear-gradient(180deg, var(--ld-chip), var(--ld-card)); }
.ld-spk { width: 100%; height: 30px; }
.ld-spk .a { fill: #5b93ee; opacity: 0.14; }
.ld-spk .l { fill: none; stroke: #5b93ee; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.ld-cc { padding: 14px 14px 8px; border-radius: 18px; border: 1px solid var(--ld-line); }
.ld-cch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ld-cch b { font-size: 13px; font-weight: 800; color: var(--ld-ink); }
.ld-cch small { font-size: 11px; color: var(--ld-mut); }
.ld-ch { position: relative; height: 150px; padding-bottom: 22px; direction: ltr; touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.ld-ch svg { position: absolute; inset: 0 0 22px 0; width: 100%; height: calc(100% - 22px); overflow: visible; animation: ldWipe 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s both; }
@keyframes ldWipe { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px -4px -4px 0); } }
.ld-ch .g { stroke: var(--ld-line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ld-ch .ar { fill: url(#ldAg); }
.ld-ch .ln { fill: none; stroke: var(--ld-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ld-ch .mk { position: absolute; top: 4px; bottom: 22px; left: var(--x, 90%); width: 0; border-inline-start: 1.2px dashed var(--ld-blue); opacity: 0.8; }
.ld-ch .dt { position: absolute; left: var(--x, 90%); top: calc((100% - 22px) * var(--y, 0.2)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ld-card); border: 2.4px solid var(--ld-blue); transition: box-shadow 0.15s; }
.ld-ch.press .dt { box-shadow: 0 0 0 9px rgba(57, 120, 232, 0.18), 0 0 0 10px rgba(57, 120, 232, 0.4); }
.ld-ch .tip { position: absolute; top: 0; left: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: #1d2740; color: #fff; line-height: 1.6; white-space: nowrap; pointer-events: none; direction: inherit; box-shadow: 0 8px 18px -8px rgba(29, 39, 64, 0.5); }
html:not([data-theme="light"]) .ld-ch .tip { background: #2a3a63; }
html[dir="rtl"] .ld-ch .tip { direction: rtl; }
.ld-ch .tip b { font-size: 11px; color: #b9c6e0; font-weight: 700; }
.ld-ch .tip span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.ld-ch .tip i { width: 8px; height: 8px; border-radius: 50%; background: #7fb0ff; }
.ld-ch .tip em { font-style: normal; }
.ld-ch .ax { position: absolute; inset: auto 0 0 0; height: 18px; }
.ld-ch .ax span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11px; color: var(--ld-mut); white-space: nowrap; }

.ld-tg { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ld-ovt { display: none; }
.ld-tq { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--ld-line); background: var(--ld-card); color: inherit; font-family: inherit; text-align: start; cursor: pointer; transition: transform 0.12s, border-color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; }
.ld-tq .tx { min-width: 0; }
.ld-tq b { display: block; font-size: 12px; font-weight: 800; line-height: 1.7; color: var(--ld-ink); white-space: nowrap; }
.ld-tq small { display: block; font-size: 11px; line-height: 1.7; color: var(--ld-mut); white-space: nowrap; }
.ld-tq:hover { border-color: var(--ld-chipb); }
.ld-tq.press, .ld-tq:active { transform: scale(0.97); border-color: var(--ld-blue); background: var(--ld-chip); }
.ld-tq.sel { border-color: var(--ld-blue); background: var(--ld-chip); }
.ld-tq.sel .ld-tl { background: var(--ld-blue); color: #fff; }

.ld-ul { display: flex; flex-direction: column; border: 1px solid var(--ld-line); border-radius: 18px; overflow: hidden; }
.ld-ul li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.ld-ul li + li { border-top: 1px solid var(--ld-line); }
.ld-ul .tx { flex: 1; min-width: 0; }
.ld-ul b { display: block; font-size: 12.5px; font-weight: 800; color: var(--ld-ink); text-align: start; line-height: 1.6; }
.ld-ul small { display: block; font-size: 11px; color: var(--ld-mut); line-height: 1.6; }
.ld-ul .tm { font-size: 11px; font-weight: 700; color: var(--ld-ok); white-space: nowrap; }
.ld-ul .n { direction: ltr; display: inline-block; unicode-bidi: isolate; }

.ld-float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ld-card); border: 1px solid var(--ld-line); box-shadow: 0 10px 22px -12px rgba(50, 70, 100, 0.45); font-size: 12px; font-weight: 700; color: var(--ld-ink); white-space: nowrap; }
.ld-float svg { color: var(--ld-blue); }
.ld-float i { width: 8px; height: 8px; border-radius: 50%; background: var(--ld-ok); box-shadow: 0 0 0 3px rgba(47, 154, 107, 0.2); }
.ld-float.f1 { top: -18px; inset-inline-end: 14px; }
.ld-float.f2 { bottom: -18px; inset-inline-start: 14px; }

/* ═══ الاقسام ═══ */
.ld-sec { padding-top: 44px; scroll-margin-top: 72px; }
.ld-sec > .ld-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ld h2 { font-size: 19px; line-height: 1.6; font-weight: 800; color: var(--ld-ink); text-align: center; }
.ld-fg { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; margin-top: 14px; }
.ld-fe { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--ld-card); border: 1px solid var(--ld-line); transition: border-color 0.15s, transform 0.15s; }
.ld-fe:hover { border-color: var(--ld-chipb); }
.ld-fe b { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 800; color: var(--ld-ink); }
.ld-fe small { display: block; font-size: 11.5px; line-height: 1.8; color: var(--ld-mut); }

/* الخطوات: خط متقطع متصل بين الدوائر (نفس لغة مراحل تفعيل الجهاز) */
.ld-sg { display: flex; flex-direction: column; width: 100%; margin-top: 14px; counter-reset: ld; }
.ld-sp { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 0 0 26px; }
.ld-sp:last-child { padding-bottom: 0; }
.ld-sp .n {
    position: relative; z-index: 1; width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 14px; font-weight: 800; color: var(--ld-blue); background: var(--ld-card); border: 2px solid var(--ld-blue); box-shadow: 0 0 0 5px var(--ld-soft);
}
.tx2 { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 2px; }
.tx2 b { font-size: 14px; font-weight: 800; color: var(--ld-ink); }
.tx2 small { font-size: 11.5px; color: var(--ld-mut); }
.ld-sp:not(:last-child)::after {
    content: ""; position: absolute; inset-block: 42px 4px; inset-inline-start: 17.5px; width: 3px; background: var(--ld-blue); opacity: 0.55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='14'%3E%3Crect width='3' height='7' rx='1.5'/%3E%3C/svg%3E") 0 0 / 3px 14px repeat-y;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='14'%3E%3Crect width='3' height='7' rx='1.5'/%3E%3C/svg%3E") 0 0 / 3px 14px repeat-y;
    animation: ldDashV 1.4s linear infinite;
}
@keyframes ldDashV { to { -webkit-mask-position: 0 14px; mask-position: 0 14px; } }

.ld-qg { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; margin-top: 10px; align-items: start; }
.ld-fq { border-radius: 26px; background: var(--ld-card); border: 1px solid var(--ld-line); transition: border-color 0.15s; }
.ld-fq[open] { border-color: var(--ld-chipb); }
.ld-fq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 22px; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--ld-ink); cursor: pointer; list-style: none; }
.ld-fq summary::-webkit-details-marker { display: none; }
.ld-fq summary svg { color: var(--ld-mut); transition: transform 0.2s; }
.ld-fq[open] summary svg { transform: rotate(180deg); color: var(--ld-blue); }
.ld-fq p { padding: 0 22px 18px; font-size: 12.5px; line-height: 2; color: var(--ld-mut2); font-weight: 500; }

.ld-ctaw { padding-top: 52px; }
.ld-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 32px 18px; border-radius: 28px; background: var(--ld-grad); color: #fff; }
.ld-cta h3 { font-size: 17px; line-height: 1.6; font-weight: 800; text-align: center; }
.ld-cta .ld-hb { max-width: 340px; }

/* ═══ التذييل ═══ */
.ld-ft { margin-top: 48px; padding: 26px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ld-card); border-top: 1px solid var(--ld-line); }
.ld-ft > .ld-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ld-frw { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.ld-frw .fb { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ld-frw .fb small { display: none; }
.ld-frw .fc { display: none; }
.ld-fl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-fl a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--ld-chip); color: var(--ld-softc); font-size: 12px; font-weight: 700; transition: background 0.15s, color 0.15s; }
.ld-fl a:hover { background: var(--ld-blue); color: #fff; }
.ld-ft .cp { font-size: 12px; font-weight: 500; color: var(--ld-mut2); text-align: center; }
.ld-ft .cp .n, .ld-ft .cp .fc-nm { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ld-ft .cp .fc-nm { font-weight: 800; color: var(--ld-ink); }
.ld-ft .cp .fc-nm i { font-style: normal; color: var(--ld-blue); }

/* ═══ 560 فأكثر ═══ */
@media (min-width: 560px) {
    .ld-in { padding: 0 28px; }
    .ld-tg { grid-template-columns: 1fr 1fr; }
    .ld-fg { grid-template-columns: 1fr 1fr; }
    .ld-hb { flex-direction: row; flex-wrap: wrap; width: auto; }
    .ld-hb .ld-bt { width: auto; }
    .ld-hero-in { padding-inline: 28px; }
}

/* ═══ الكمبيوتر ═══ */
@media (min-width: 900px) {
    .ld-in { padding: 0 40px; }
    .ld-hd-in { height: 68px; padding: 0 40px; }
    .ld-nav { display: flex; }
    .ld-dk { display: inline-flex !important; }
    .ld-mb { display: none !important; }
    .ld-mn, .ld-mw { display: none !important; }
    .ld-hd-in .ld-bt { height: 38px; padding: 0 18px; }
    .ld-ha { gap: 10px; }
    .ld-ha .ld-bt { margin-inline-start: 2px; }
    .ld-tools #themeToggle { order: 0; }
    .ld-hero-in { flex-direction: row; align-items: center; gap: 44px; padding: 34px 40px 60px; }
    .ld-ht { flex: 1; }
    .ld-dw { flex: 1.15; width: auto; min-width: 0; }
    .ld h1 { font-size: 42px; }
    .ld-ht p { font-size: 14px; max-width: 440px; }
    .ld-hk { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .ld-hg > .ld-bt { align-self: flex-start; padding: 0 26px; }
    .ld-ovt { display: grid; }
    .ld-ch { height: 170px; }
    .ld-float.f1 { inset-inline-end: 26px; }
    .ld-float.f2 { inset-inline-start: 10px; }
    .ld-sec { padding-top: 56px; }
    .ld h2 { font-size: 26px; }
    .ld-fg { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .ld-sg { flex-direction: row; }
    .ld-sp { flex: 1; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 8px; }
    .tx2 { align-items: center; padding-top: 0; }
    .ld-sp:not(:last-child)::after {
        inset-block: auto; top: 18.5px; height: 3px; width: auto; inset-inline: 50% -50%;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='3'%3E%3Crect width='7' height='3' rx='1.5'/%3E%3C/svg%3E") 0 0 / 14px 3px repeat-x;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='3'%3E%3Crect width='7' height='3' rx='1.5'/%3E%3C/svg%3E") 0 0 / 14px 3px repeat-x;
        animation-name: ldDashH;
    }
    html[dir="rtl"] .ld-sp:not(:last-child)::after { animation-name: ldDashHr; }
    .ld-qg { grid-template-columns: 1fr 1fr; }
    .ld-ctaw { padding-top: 64px; }
    .ld-cta { padding: 40px 24px; }
    .ld-cta h3 { font-size: 24px; }
    .ld-cta .ld-hb { max-width: none; justify-content: center; }
    .ld-ft { padding: 34px 0 22px; }
    .ld-ft > .ld-in { align-items: stretch; gap: 24px; }
    .ld-frw { flex-direction: row; align-items: flex-start; gap: 34px; }
    .ld-frw .fb { flex: 1.6; align-items: flex-start; }
    .ld-frw .fb small { display: block; font-size: 12px; color: var(--ld-mut); }
    .ld-frw .fc { flex: 1; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: var(--ld-mut2); }
    .ld-frw .fc b { font-size: 13px; color: var(--ld-ink); }
    .ld-frw .fc a:hover { color: var(--ld-blue); }
    .ld-fl { display: none; }
}
@keyframes ldDashH { to { -webkit-mask-position: 14px 0; mask-position: 14px 0; } }
@keyframes ldDashHr { to { -webkit-mask-position: -14px 0; mask-position: -14px 0; } }
@media (min-width: 900px) and (max-width: 1099px) {
    .ld-sx b { font-size: 18px; }
}
@media (max-width: 359px) {
    .ld h1 { font-size: 26px; }
    .ld-sx b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ld-ch svg, .ld-pn.on, .ld-lv i, .ld-sp::after { animation: none !important; }
}
