/* =====================================================
   مدار باي - الهوية البصرية
   الفكرة: "المدار" — الأقساط نقاط على دائرة.
   الألوان من الشعار + لون كهرماني واحد للقسط/الخطوة القادمة فقط.
   حركات بسيطة: قبعات وكتب وعملات ريال تطفو، وعملة تدور على مسار الأقساط.
   ===================================================== */
:root {
    --ink: #0b3533;        /* النص والشرائط الداكنة */
    --deep: #072624;       /* خلفية البطل الليلية */
    --teal: #0a7c77;       /* اللون الأساسي */
    --teal-dark: #075e5a;
    --aqua: #5ecfc3;       /* لون الشعار الفاتح */
    --mist: #eef6f4;       /* الخلفيات الهادئة */
    --line: #d7e7e4;       /* الخطوط الفاصلة */
    --muted: #4e6b69;      /* النص الثانوي */
    --sun: #e8a33d;        /* القسط القادم / الخطوة التالية */
    --paper: #ffffff;
    --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --r-pill: 999px;
    --r-box: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
/* clip بدل hidden حتى تبقى القائمة ثابتة أعلى الصفحة عند النزول */
html, body { overflow-x: clip; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    font-size: 1.05rem;
    line-height: 1.8;
}
a { text-decoration: none; color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, h4, h5 { line-height: 1.3; text-wrap: balance; }
.text-brand { color: var(--teal) !important; }
.text-muted-2 { color: var(--muted); }
.bg-brand { background: var(--teal) !important; }
.bg-soft { background: var(--mist); }
.narrow { max-width: 860px; }
/* ===== الأزرار: دائرية مثل المدار + لمعة عند المرور ===== */
.btn { border-radius: var(--r-pill); font-weight: 700; padding-inline: 1.4rem; position: relative; overflow: hidden; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding-inline: .9rem; }
.btn-brand, .btn-sun { isolation: isolate; }
.btn-brand::after, .btn-sun::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
    z-index: -1;
}
.btn-brand:hover::after, .btn-sun:hover::after { transform: translateX(120%); }
.btn-brand:hover, .btn-sun:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn-brand { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; box-shadow: 0 8px 22px -10px var(--teal); }
.btn-outline-brand { border: 1.5px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline-brand:hover { background: var(--teal); color: #fff; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover, .btn-sun:focus { background: #f0b558; border-color: #f0b558; color: var(--ink); box-shadow: 0 10px 28px -10px var(--sun); }
.btn-ghost { border: 1.5px solid rgba(94, 207, 195, .45); color: #fff; background: rgba(94, 207, 195, .06); }
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--aqua); color: #fff; background: rgba(94, 207, 195, .14); }
.btn-light { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.link-arrow { font-weight: 700; border-bottom: 2px solid var(--aqua); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--sun); }
/* ===== الشريط التجريبي والقائمة ===== */
.demo-bar { background: var(--mist); color: var(--muted); border-bottom: 1px solid var(--line); }
.main-nav { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-block: 12px; transition: box-shadow .3s, padding .3s; }
.main-nav.scrolled { padding-block: 6px; box-shadow: 0 12px 30px -20px rgba(11, 53, 51, .5); }
.brand-name { font-weight: 700; font-size: 1.35rem; color: var(--ink); }
/* الشعار داخل حلقة مدار صغيرة تدور عند المرور */
.brand-mark { position: relative; display: inline-flex; padding: 3px; }
.brand-mark::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px dashed transparent; transition: border-color .3s; }
.navbar-brand:hover .brand-mark::after { border-color: var(--aqua); animation: orbit-spin 6s linear infinite; }
/* روابط القائمة داخل كبسولة واحدة مع "منزلق" يتبع المؤشر */
.nav-pill { position: relative; gap: 2px; padding: 5px; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); }
.nav-pill .nav-item { position: relative; z-index: 1; }
.main-nav .nav-link { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .98rem; color: var(--ink); padding: .45rem 1rem !important; border-radius: var(--r-pill); white-space: nowrap; transition: color .25s; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus-visible { color: var(--teal); }
.main-nav .nav-link.active { color: var(--teal); font-weight: 700; }
.nav-ico { display: none; }
.nav-glider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--paper); box-shadow: 0 4px 14px -6px rgba(11, 53, 51, .35), inset 0 0 0 1px var(--line); opacity: 0; transition: left .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none; }
.nav-glider.on { opacity: 1; }
/* نقطة كوكب صغيرة على الرابط الحالي */
.nav-glider::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(232, 163, 61, .2); opacity: 0; transition: opacity .2s; }
.nav-glider.at-active::after { opacity: 1; }
.nav-actions .btn { white-space: nowrap; }
.nav-login { color: var(--ink); padding-inline: .7rem; }
.nav-login:hover { color: var(--teal); }
.nav-lang { color: var(--muted); border: 1px solid var(--line); }
.nav-lang:hover { color: var(--teal); border-color: var(--aqua); background: var(--mist); }
/* زر القائمة في الجوال: ثلاثة خطوط تتحول إلى X */
.nav-burger { border: 1px solid var(--line); border-radius: 14px; width: 46px; height: 46px; padding: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger:focus { box-shadow: none; }
.nav-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-burger:not(.collapsed) span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger:not(.collapsed) span:nth-child(2) { opacity: 0; }
.nav-burger:not(.collapsed) span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199px) {
    .main-nav .navbar-collapse { margin-top: 12px; padding: 10px; border-radius: var(--r-box); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(11, 53, 51, .5); }
    .nav-pill { padding: 0; background: none; border: 0; gap: 0; }
    .nav-glider { display: none; }
    .main-nav .nav-link { padding: .8rem .9rem !important; border-radius: 14px; font-size: 1.05rem; }
    .main-nav .nav-link:hover { background: var(--mist); }
    .main-nav .nav-link.active { background: var(--mist); }
    .main-nav .nav-link.active::after { content: ""; margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
    .nav-ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 1.05rem; }
    .main-nav .nav-link.active .nav-ico, .main-nav .nav-link:hover .nav-ico { background: var(--paper); }
    .nav-actions { padding: 12px 4px 4px; margin-top: 8px; border-top: 1px solid var(--line); }
    .nav-actions .btn { flex: 1 1 auto; padding-block: .6rem; }
}
/* ===== الأقسام ===== */
.block { padding: 96px 0; }
.block-head { max-width: 640px; margin-bottom: 48px; }
.block-head p { color: var(--muted); margin: 8px 0 0; }
.section-title { font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; }
.lead-text { font-size: 1.2rem; color: var(--ink); }
p { color: var(--muted); }
/* ===== خلفية التعليم والريال (تطفو ببطء) ===== */
.edu-float { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ef { position: absolute; left: var(--x); top: var(--y); font-size: calc(var(--s) * 1.5rem); color: rgba(94, 207, 195, .32); opacity: 0; animation: ef-rise var(--t) ease-in-out infinite; animation-delay: var(--d); }
.ef.coin { width: calc(var(--s) * 40px); height: calc(var(--s) * 40px); border-radius: 50%; border: 2px solid rgba(232, 163, 61, .55); background: rgba(232, 163, 61, .08); color: rgba(232, 163, 61, .9); display: flex; align-items: center; justify-content: center; }
/* رمز الريال السعودي (صورة SVG كقناع، فيأخذ لون النص) */
.riyal { display: inline-block; width: 46%; aspect-ratio: 330 / 368; background: currentColor; -webkit-mask: url(../images/riyal.svg) center / contain no-repeat; mask: url(../images/riyal.svg) center / contain no-repeat; }
@keyframes ef-rise {
    0% { transform: translateY(40px) rotate(-8deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-80px) rotate(8deg); opacity: 0; }
}
/* ===== البطل: ليلي مع شبكة عصبية ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 80px;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(10, 124, 119, .45), transparent 70%),
        radial-gradient(40% 50% at 10% 100%, rgba(94, 207, 195, .12), transparent 70%),
        var(--deep);
    color: #fff;
}
html[dir="ltr"] .hero { background:
        radial-gradient(60% 70% at 22% 40%, rgba(10, 124, 119, .45), transparent 70%),
        radial-gradient(40% 50% at 90% 100%, rgba(94, 207, 195, .12), transparent 70%),
        var(--deep); }
.hero .container { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 1.25rem;
    color: #fff;
}
html[dir="ltr"] .hero-title { letter-spacing: -.03em; }
.hero-copy > * { animation: fade-up .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(n+4) { animation-delay: .3s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.hero-text { font-size: 1.2rem; max-width: 34rem; margin-bottom: 2rem; color: rgba(255, 255, 255, .74); }
.hero-apps { color: rgba(255, 255, 255, .6); }
.hero .store-btn { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.hero .store-btn:hover { background: rgba(94, 207, 195, .16); border-color: var(--aqua); }
/* ===== المدار ===== */
.orbit-wrap { max-width: 460px; margin-inline: auto; }
.small-orbit { max-width: 360px; }
.orbit { width: 100%; height: auto; display: block; overflow: visible; color: var(--aqua); }
.orbit-outer { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 7; }
.orbiter circle { fill: var(--sun); }
.orbiter { transform-box: view-box; transform-origin: 200px 200px; animation: orbit-spin 24s linear infinite; }
.orbit-track { fill: none; stroke: var(--line); stroke-width: 3; }
.orbit-progress { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; animation: orbit-draw 1.4s ease-out both; }
.orbit-coin circle { fill: var(--sun); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 6px rgba(232, 163, 61, .6)); }
.orbit .node { transform-box: fill-box; transform-origin: center; animation: node-in .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
.orbit .node circle { fill: var(--paper); stroke: var(--aqua); stroke-width: 2; }
.orbit .node text { font: 700 13px var(--font); fill: var(--muted); text-anchor: middle; }
.orbit .node.paid circle { fill: var(--teal); stroke: var(--teal); }
.orbit .node.paid text { fill: #fff; }
.orbit .node.next circle { fill: var(--sun); stroke: var(--sun); }
.orbit .node.next text { fill: var(--ink); }
.orbit .node.next { animation: node-in .55s var(--ease) both, node-pulse 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + 200ms), 1.4s; }
.orbit-core { fill: var(--mist); }
.orbit-core-ring { fill: none; stroke: var(--aqua); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 1 6; transform-box: view-box; transform-origin: 200px 200px; animation: orbit-spin 40s linear infinite reverse; }
.orbit-big { font: 800 30px var(--font); fill: var(--ink); text-anchor: middle; }
.orbit-small { font: 500 15px var(--font); fill: var(--muted); text-anchor: middle; }
/* المدار على خلفية البطل الداكنة */
.hero .orbit-outer { stroke: rgba(94, 207, 195, .28); }
.hero .orbit-track { stroke: rgba(94, 207, 195, .18); }
.hero .orbit-progress { stroke: var(--aqua); filter: drop-shadow(0 0 6px rgba(94, 207, 195, .7)); }
.hero .orbit .node circle { fill: var(--deep); }
.hero .orbit .node text { fill: rgba(255, 255, 255, .7); }
.hero .orbit .node.paid circle { fill: var(--teal); stroke: var(--aqua); }
.hero .orbit .node.next circle { fill: var(--sun); filter: drop-shadow(0 0 8px rgba(232, 163, 61, .8)); }
.hero .orbit-core { fill: rgba(255, 255, 255, .04); stroke: rgba(94, 207, 195, .3); }
.hero .orbit-big { fill: #fff; }
.hero .orbit-small { fill: rgba(255, 255, 255, .65); }
.orbit-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.hero .orbit-legend { color: rgba(255, 255, 255, .65); }
.orbit-legend li { display: flex; align-items: center; gap: 8px; }
.orbit-legend .lg { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--aqua); background: var(--paper); }
.hero .orbit-legend .lg { background: var(--deep); }
.orbit-legend .lg.paid, .hero .orbit-legend .lg.paid { background: var(--teal); border-color: var(--teal); }
.orbit-legend .lg.next, .hero .orbit-legend .lg.next { background: var(--sun); border-color: var(--sun); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-draw { from { stroke-dasharray: 0 942; } }
@keyframes node-pulse { 50% { transform: scale(1.14); } }
@keyframes node-in { from { opacity: 0; transform: scale(.3); } }
/* ===== الأرقام: سطر واحد بفواصل ===== */
.stats-band { border-block: 1px solid var(--line); padding: 40px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 24px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { font-size: 2.3rem; font-weight: 700; color: var(--teal); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
/* ===== الخطوات: لوحة واحدة + مسار يمتلئ ويضيء الخطوات ===== */
.track {
    --pad: 32px;
    --gap: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    position: relative;
    margin: 0;
    padding: 48px var(--pad) 40px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 28px;
}
/* الخط يربط مراكز الدوائر فقط: من الخطوة 1 إلى الخطوة 3 */
.track::before, .track::after {
    content: "";
    position: absolute;
    top: 83px;
    inset-inline: calc(var(--pad) + (100% - 2 * var(--pad) - 2 * var(--gap)) / 6);
    height: 2px;
}
.track::before { background-image: linear-gradient(90deg, var(--aqua) 50%, transparent 50%); background-size: 10px 2px; opacity: .7; }
.track::after { background: linear-gradient(90deg, var(--teal), var(--aqua), var(--teal)); background-size: 200% 100%; transform-origin: left; transition: transform 1.8s var(--ease); animation: line-shine 3s linear infinite; }
html[dir="rtl"] .track::after { transform-origin: right; }
@keyframes line-shine { to { background-position: -200% 0; } }
.track-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.track-node {
    position: relative;
    width: 72px; height: 72px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--teal);
    color: var(--teal);
    font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(94, 207, 195, .18);
    transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s;
    transition-delay: calc(var(--n) * .8s + .2s);
}
.track-node b {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sun);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--mist);
}
.track-step:last-child .track-node { background: var(--teal); color: #fff; box-shadow: 0 0 0 8px rgba(10, 124, 119, .16), 0 12px 26px -10px var(--teal); }
.track-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.track-text { margin: 0; max-width: 290px; font-size: .98rem; }
/* قبل الظهور (يضيفها main.js): الخط فارغ والدوائر مطفأة */
.track.wait::after { transform: scaleX(0); transition: none; }
.track.wait .track-node { background: var(--paper); border-color: var(--line); color: var(--muted); box-shadow: 0 0 0 8px rgba(94, 207, 195, 0); transition: none; }
/* ملاحظتان أسفل الخطوات */
.notes .note-box { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); font-weight: 500; }
.notes .note-box i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }
/* ===== أعمدة مقسومة بخط ===== */
.split-col, .trio-col { padding: 8px 40px; border-inline-start: 1px solid var(--line); }
.split-col:first-child, .trio-col:first-child { border-inline-start: 0; padding-inline-start: 0; }
.icon-dot {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--aqua);
    color: var(--teal);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.check-list li { margin-bottom: 10px; color: var(--ink); display: flex; gap: 10px; }
.check-list i { color: var(--teal); font-size: 1.15rem; line-height: 1.6; }
/* ===== أين يستخدم ===== */
.where-box { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.where-box i { font-size: 1.5rem; color: var(--teal); }
/* ===== عن مدار: رسالتنا (بطاقة كبيرة) + رؤيتنا + قيمنا ===== */
.mvv { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.mvv-card { position: relative; overflow: hidden; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; }
.mvv-mission { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 44px 40px; background: linear-gradient(150deg, var(--paper) 40%, #e3f4f1); }
.mvv-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 1.35rem; }
.mvv-mission .mvv-ico { width: 62px; height: 62px; background: var(--teal); color: #fff; font-size: 1.6rem; box-shadow: 0 0 0 8px rgba(10, 124, 119, .12); }
.mvv-label { font-size: 1rem; font-weight: 800; color: var(--teal); margin-bottom: 8px; }
.mvv-statement { position: relative; z-index: 1; margin: 0; max-width: 24ch; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; line-height: 1.45; color: var(--ink); }
.mvv-text { margin: 0; font-size: 1.15rem; color: var(--ink); }
.mvv-watermark { position: absolute; bottom: -30px; inset-inline-end: -10px; font-size: 11rem; line-height: 1; color: var(--aqua); opacity: .13; pointer-events: none; }
.mvv-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; }
.mvv-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font-weight: 700; }
.mvv-list i { color: var(--teal); }
@media (max-width: 991px) {
    .mvv { grid-template-columns: 1fr; }
    .mvv-mission { grid-row: auto; padding: 32px 26px; }
}
/* ===== الاعتمادات والتراخيص (صور مظللة مؤقتة) ===== */
.acc-head { max-width: 760px; }
.acc-note { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; margin-inline-end: 6px; border-radius: var(--r-pill); background: rgba(232, 163, 61, .15); color: #a8670f; font-weight: 700; font-size: .9rem; }
.acc-card { height: 100%; padding: 14px 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; text-align: center; }
.acc-img { position: relative; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: 16px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--mist) 0 12px, #e5f1ee 12px 24px); display: flex; align-items: center; justify-content: center; }
/* شكل شهادة وهمي مظلل حتى لا يُفهم أنه اعتماد حقيقي */
.acc-fake { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70%; padding: 16px 12px; background: var(--paper); border-radius: 10px; filter: blur(3px) grayscale(1); opacity: .85; box-shadow: 0 8px 20px -10px rgba(11, 53, 51, .3); }
.acc-fake i { font-size: 2.2rem; color: var(--muted); }
.acc-fake span { display: block; height: 7px; width: 100%; border-radius: 4px; background: #c9dcd8; }
.acc-fake span:nth-child(3) { width: 75%; }
.acc-fake span:nth-child(4) { width: 50%; }
.acc-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); border: 1px solid rgba(232, 163, 61, .5); color: #a8670f; font-weight: 800; font-size: .85rem; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(11, 53, 51, .35); }
.acc-name { font-size: 1.02rem; font-weight: 800; margin: 0; color: var(--ink); }
.acc-value { margin: 4px 0 0; font-weight: 700; color: var(--muted); }
/* ===== فيديو قصة فهد ===== */
.video-text { font-size: 1.15rem; max-width: 32rem; }
.video-points { margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.video-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.video-points span { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--mist); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.video-frame { position: relative; width: 100%; max-width: 340px; margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 40px; padding: 10px; background: #11201f; box-shadow: 0 50px 80px -40px rgba(11, 53, 51, .6), 0 0 0 10px rgba(94, 207, 195, .15); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: var(--mist); }
.video-play { position: absolute; inset: 10px; border: 0; border-radius: 30px; background: linear-gradient(180deg, transparent 45%, rgba(7, 38, 36, .55)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding-bottom: 34px; color: #fff; cursor: pointer; }
.video-play span { width: 76px; height: 76px; border-radius: 50%; background: var(--sun); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; box-shadow: 0 0 0 10px rgba(232, 163, 61, .25); animation: ai-ping-sun 1.8s ease-out infinite; }
.video-play b { font-size: 1.1rem; }
.video-play:hover span, .video-play:focus-visible span { transform: scale(1.06); }
.video-frame.playing .video-play { display: none; }
@keyframes ai-ping-sun { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, .55); } 100% { box-shadow: 0 0 0 18px rgba(232, 163, 61, 0); } }
/* ===== مستفيد / شريك: بطاقتان يربطهما مدار باي ===== */
.duo { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: stretch; }
.duo-card { display: flex; flex-direction: column; padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 48px -36px rgba(11, 53, 51, .45); transition: transform .25s var(--ease), border-color .25s; }
.duo-card:hover { transform: translateY(-4px); border-color: var(--aqua); }
.duo-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.duo-head small { display: block; color: var(--muted); font-size: .9rem; }
.duo-head h3 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.duo-ico { flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.ben .duo-ico { background: var(--teal); color: #fff; box-shadow: 0 0 0 7px rgba(10, 124, 119, .12); }
.par .duo-ico { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 7px rgba(232, 163, 61, .16); }
.duo-list { margin: 0 0 26px; padding: 0; }
.duo-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); border-bottom: 1px dashed var(--line); }
.duo-list li:last-child { border-bottom: 0; }
.duo-check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; background: var(--mist); color: var(--teal); }
.par .duo-check { background: rgba(232, 163, 61, .14); color: #b9771a; }
.duo-btn { margin-top: auto; align-self: flex-start; }
/* الوصلة: خط متقطع ونقطة تنتقل بين البطاقتين وشعار مدار في المنتصف */
.duo-link { position: relative; display: flex; align-items: center; justify-content: center; }
.duo-link::before { content: ""; position: absolute; inset-inline: -2px; top: 50%; border-top: 2px dashed var(--aqua); }
.duo-link::after { content: ""; position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: duo-flow 3s ease-in-out infinite alternate; }
@keyframes duo-flow { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes duo-flow-v { from { top: 0; } to { top: calc(100% - 8px); } }
.duo-hub { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 0 0 8px rgba(94, 207, 195, .15); display: flex; align-items: center; justify-content: center; }
.duo-hub img { width: 40px; height: auto; }
/* ===== الآراء ===== */
.review { position: relative; height: 100%; margin: 0; padding: 30px 28px 26px; background: var(--mist); border-radius: 24px; display: flex; flex-direction: column; }
.review-mark { position: absolute; top: 6px; inset-inline-end: 22px; font-size: 5rem; line-height: 1; font-family: Georgia, serif; color: var(--aqua); opacity: .55; }
.review blockquote { position: relative; font-size: 1.12rem; line-height: 1.85; color: var(--ink); margin: 0 0 22px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.review-avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }
.review-who { display: flex; flex-direction: column; line-height: 1.4; }
.review-who strong { color: var(--ink); }
.stars { color: var(--sun); font-size: .85rem; display: inline-flex; align-items: center; gap: 2px; }
.stars b { margin-inline-start: 6px; color: var(--muted); font-weight: 700; }
/* ===== الأسئلة ===== */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--line); --bs-accordion-btn-icon-width: 34px; --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a7c77' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M8 3v10M3 8h10'/%3e%3c/svg%3e"); --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3e%3cpath d='M3 8h10'/%3e%3c/svg%3e"); --bs-accordion-btn-icon-transform: none; }
.accordion-item { border: 1px solid var(--line) !important; border-radius: 18px !important; background: var(--paper); margin-bottom: 12px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.accordion-item:hover { border-color: var(--aqua) !important; }
.accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--aqua) !important; box-shadow: 0 14px 30px -22px rgba(10, 124, 119, .55); }
.accordion-button { gap: 14px; font-weight: 700; font-size: 1.06rem; color: var(--ink); background: transparent; padding: 20px 22px; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--teal); background: transparent; }
.accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; height: 34px; border-radius: 50%; background-color: var(--mist); background-position: center; background-size: 14px; transition: background-color .25s; }
.accordion-button:not(.collapsed)::after { background-color: var(--teal); }
.accordion-body { padding: 0 22px 22px; color: var(--muted); line-height: 1.9; }
/* ===== صندوق المساعدة (الأسئلة + التواصل) ===== */
.help-col { position: sticky; top: 110px; }
.help-box { text-align: center; padding: 30px 26px; background: var(--mist); border: 1px solid var(--line); border-radius: 24px; }
.help-face { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #13a59e, var(--teal)); box-shadow: 0 0 0 8px rgba(94, 207, 195, .2); }
.help-face .bot-face { width: 34px; height: 34px; }
/* ===== صفحة التواصل (فاتحة) ===== */
.contact-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; color: var(--ink); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.contact-tile:hover { color: var(--ink); border-color: var(--aqua); transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(10, 124, 119, .55); }
.contact-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 1.3rem; flex-shrink: 0; }
.contact-ico.sm { width: 44px; height: 44px; margin: 0; font-size: 1.1rem; }
.contact-tile small, .info-row small { color: var(--muted); font-size: .9rem; display: block; }
.contact-tile b { font-size: 1.45rem; font-weight: 800; word-break: break-word; }
.contact-act { margin-top: 10px; font-weight: 700; color: var(--teal); border-bottom: 2px solid var(--aqua); }
.contact-info { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 6px 24px; }
.info-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row b { font-size: 1.08rem; }
.contact-social { display: flex; gap: 8px; margin-top: 4px; }
.contact-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.contact-social a:hover { border-color: var(--aqua); background: var(--mist); }
@media (max-width: 991px) {
    .help-col { position: static; }
}
/* ===== شريط الدعوة ===== */
.cta-band, .page-header { position: relative; overflow: hidden; }
.cta-band { background: radial-gradient(50% 90% at 85% 50%, rgba(10, 124, 119, .5), transparent 70%), var(--ink); color: #fff; padding: 80px 0; }
.cta-band p { color: rgba(255, 255, 255, .72); }
.cta-band .container, .page-header .container { position: relative; z-index: 1; }
.deco-arcs {
    position: absolute;
    width: 460px; height: 460px;
    inset-inline-end: -140px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.deco-arcs circle { fill: none; stroke: currentColor; stroke-width: 1; }
.deco-arcs .deco-dot { fill: var(--sun); stroke: none; }
.deco-spin { transform-box: view-box; transform-origin: 200px 200px; animation: orbit-spin 30s linear infinite; }
.cta-band .deco-arcs { color: rgba(94, 207, 195, .32); }
.page-header .deco-arcs { color: var(--line); }
/* ===== عنوان الصفحات الداخلية ===== */
.page-header { background: var(--mist); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.page-sub { font-size: 1.15rem; max-width: 36rem; margin: 0; }
.crumbs a { color: var(--teal); }
.crumbs span { color: var(--muted); }
.crumbs i { font-size: .7rem; margin: 0 6px; color: var(--muted); }
/* ===== الحاسبة ===== */
.calc-panel { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, rgba(10, 124, 119, .55), transparent 70%), var(--ink); color: #fff; border-radius: var(--r-box); padding: 32px; }
.ring-box { position: relative; max-width: 260px; margin: 0 auto 20px; }
.ring-box svg { width: 100%; height: auto; display: block; }
.ring-seg { fill: none; stroke: var(--aqua); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: seg-draw .5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.ring-seg.first { stroke: var(--sun); filter: drop-shadow(0 0 6px rgba(232, 163, 61, .7)); }
@keyframes seg-draw { to { stroke-dashoffset: 0; } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center b { font-size: 2.3rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring-center small { color: rgba(255, 255, 255, .7); }
.calc-rows > div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.calc-rows span { color: rgba(255, 255, 255, .72); }
.calc-rows b { font-variant-numeric: tabular-nums; }
.calc-note { color: rgba(255, 255, 255, .6); }
/* في العربي: الرقم يبدأ من اليمين مثل باقي الصفحة */
html[dir="rtl"] #feesInput { text-align: right; }
.month-btn { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
.month-btn:hover { border-color: var(--teal); color: var(--teal); }
.month-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.form-range::-webkit-slider-thumb { background: var(--teal); }
.form-range::-moz-range-thumb { background: var(--teal); }
/* ===== لوحة الجهات (عرض) ===== */
.mock-dash { background: var(--ink); border-radius: var(--r-box); padding: 22px; color: #fff; }
.mock-top { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mini-kpi { display: flex; flex-direction: column; }
.mini-kpi small { color: rgba(255, 255, 255, .65); }
.mini-kpi b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
/* رسوم تتبدل واحدة كل مرة */
.mock-charts { position: relative; height: 190px; }
.mock-chart { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.mock-chart.is-active { opacity: 1; visibility: visible; transform: none; }
.chart-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.mock-dash .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.aqua { background: var(--aqua); }
.dot.sun { background: var(--sun); }
.dot.teal { background: #13a59e; }
.dot.rose { background: #f08a7e; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.bars span { flex: 1; background: var(--aqua); border-radius: 6px 6px 0 0; opacity: .85; transform-origin: bottom; }
.bars span:last-child { background: var(--sun); opacity: 1; }
.mock-chart.is-active .bars span { animation: bar-grow .9s var(--ease) both; }
.mock-chart.is-active .bars span:nth-child(2) { animation-delay: .06s; }
.mock-chart.is-active .bars span:nth-child(3) { animation-delay: .12s; }
.mock-chart.is-active .bars span:nth-child(4) { animation-delay: .18s; }
.mock-chart.is-active .bars span:nth-child(5) { animation-delay: .24s; }
.mock-chart.is-active .bars span:nth-child(6) { animation-delay: .3s; }
.mock-chart.is-active .bars span:nth-child(7) { animation-delay: .36s; }
.mock-chart.is-active .bars span:nth-child(8) { animation-delay: .42s; }
/* خط التحصيل: يُرسم من البداية للنهاية */
.line-chart { flex: none; width: 100%; height: 150px; overflow: visible; border-bottom: 1px solid rgba(255, 255, 255, .15); }
html[dir="rtl"] .line-chart { transform: scaleX(-1); }
.line-path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mock-chart.is-active .line-clip { animation: line-reveal 1.3s var(--ease) both; }
@keyframes line-reveal { from { width: 0; } }
@keyframes fade-in { from { opacity: 0; } }
/* حالة الطلبات: دائرة مجزأة */
.donut-wrap { flex: 1; display: flex; align-items: center; gap: 28px; }
.donut { width: 140px; height: 140px; flex-shrink: 0; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 12; }
.donut-seg { fill: none; stroke-width: 12; }
.donut-seg.s1 { stroke: var(--aqua); }
.donut-seg.s2 { stroke: var(--sun); }
.donut-seg.s3 { stroke: #f08a7e; }
.mock-chart.is-active .donut-seg { animation: donut-in 1s var(--ease) both; }
.mock-chart.is-active .donut-seg.s2 { animation-delay: .25s; }
.mock-chart.is-active .donut-seg.s3 { animation-delay: .4s; }
@keyframes donut-in { from { stroke-dasharray: 0 100; } }
.donut text { transform: rotate(90deg); transform-origin: 50px 50px; fill: #fff; font: 800 17px var(--font); text-anchor: middle; }
.donut-legend { margin: 0; padding: 0; }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.donut-legend b { margin-inline-start: auto; padding-inline-start: 16px; color: #fff; }
/* نقاط التبديل */
.mock-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.mock-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .25); transition: width .3s, background-color .3s; }
.mock-dots button.active { width: 26px; background: var(--aqua); }
@keyframes bar-grow { from { transform: scaleY(0); } }
/* ===== الشركاء: سلايدر بصفين متعاكسين ===== */
.partners-block { overflow: hidden; }
.marquee { display: flex; flex-direction: column; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.partner-card { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: 14px; padding: 12px 22px 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; white-space: nowrap; transition: border-color .2s; }
html[dir="rtl"] .partner-card { padding: 12px 14px 12px 22px; }
.partner-card:hover { border-color: var(--aqua); }
.partner-card b { font-weight: 700; color: var(--ink); }
.partner-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--mist); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
/* ===== الشريعة / التواصل ===== */
/* التوافق مع الشريعة: شريط فاتح بختم دوّار */
.sharia-banner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 36px; padding: 40px 44px; border-radius: 30px; background: linear-gradient(120deg, #fff6e6 0%, #fffaf2 45%, var(--mist) 100%); border: 1px solid rgba(232, 163, 61, .35); box-shadow: 0 30px 60px -45px rgba(232, 163, 61, .8); }
.sharia-seal { position: relative; width: 128px; height: 128px; border-radius: 50%; background: var(--paper); border: 3px solid var(--sun); color: var(--teal); font-size: 3.6rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(232, 163, 61, .14); }
.sharia-seal::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed rgba(232, 163, 61, .6); animation: orbit-spin 24s linear infinite; }
.sharia-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sharia-text { font-size: 1.12rem; color: var(--muted); max-width: 46rem; margin-bottom: 18px; }
.sharia-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.sharia-points li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.sharia-points i { color: var(--teal); }
@media (max-width: 767px) {
    .sharia-banner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 40px 22px 30px; }
    .sharia-points { justify-content: center; }
    .sharia-seal { width: 96px; height: 96px; font-size: 2.7rem; }
    .sharia-seal::after { inset: -16px; }
}
/* ===== النماذج ===== */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: 32px; }
.form-label { font-weight: 700; color: var(--ink); }
.form-control, .form-select { border-color: var(--line); border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: var(--aqua); box-shadow: 0 0 0 .2rem rgba(94, 207, 195, .25); }
/* ===== أزرار المتاجر ===== */
.store-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff;
    padding: 7px 16px; border-radius: 12px; line-height: 1.1; direction: ltr;
    transition: background-color .2s, border-color .2s;
}
.store-btn i { font-size: 1.5rem; }
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-family: Arial, sans-serif; font-size: .95rem; }
.store-btn small { font-size: .62rem; font-weight: 400; }
.store-btn:hover { color: #fff; background: var(--teal-dark); }
/* ===== الفوتر: الشعار + التواصل والعنوان + النظامي ===== */
.site-footer { background: var(--deep); color: #fff; padding: 44px 0 18px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .75); transition: color .2s; }
.site-footer a:hover { color: var(--aqua); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 32px 48px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer .foot-brand, .site-footer .foot-brand:hover { color: #fff; font-weight: 800; font-size: 1.45rem; }
.foot-about { color: rgba(255, 255, 255, .62); max-width: 26rem; margin-bottom: 16px; font-size: .92rem; }
.foot-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.foot-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.foot-info, .foot-legal { padding: 0; margin: 0; }
.foot-info li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: rgba(255, 255, 255, .75); }
.foot-info i { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(94, 207, 195, .12); color: var(--aqua); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.foot-legal li { margin-bottom: 8px; }
.foot-social { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .foot-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; }
.site-footer .foot-social a:hover { border-color: var(--aqua); }
.foot-bottom { padding-top: 16px; color: rgba(255, 255, 255, .5); font-size: .85rem; }
.site-footer .store-btn { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; padding: 5px 12px; border-radius: 10px; }
.site-footer .store-btn i { font-size: 1.2rem; }
.site-footer .store-btn span { font-size: .82rem; }
.site-footer .store-btn small { font-size: .56rem; }
.site-footer .store-btn:hover { color: #fff; background: rgba(94, 207, 195, .16); border-color: var(--aqua); }
@media (max-width: 991px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
/* ===== الدخول واللوحة ===== */
.auth-page { min-height: 70vh; }
.auth-card { max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: 36px; box-shadow: 0 30px 60px -40px rgba(11, 53, 51, .35); }
.demo-hint { background: var(--mist); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.kpi-list > div { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.kpi-list small { color: var(--muted); font-size: 1rem; }
.kpi-list b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-box); padding: 24px; }
.badge-next { background: var(--sun); color: var(--ink); }
/* ===== صفحات قيد التجهيز ===== */
.soon-box { text-align: center; padding: 56px 24px; background: var(--mist); border: 1px solid var(--line); border-radius: 28px; }
.soon-box p { max-width: 30rem; margin-inline: auto; }
.soon-orb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); color: var(--teal); font-size: 1.8rem; }
.soon-orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed var(--aqua); border-top-color: var(--sun); animation: orbit-spin 8s linear infinite; }
/* ===== نافذة "نسخة تجريبية" عند فتح الرئيسية ===== */
.demo-modal { border: 0; border-radius: 26px; padding: 36px 30px 28px; text-align: center; box-shadow: 0 40px 80px -30px rgba(7, 38, 36, .6); }
.demo-modal p { margin: 0 auto 24px; max-width: 22rem; }
.demo-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: rgba(232, 163, 61, .15); color: var(--sun); font-size: 1.7rem; box-shadow: 0 0 0 8px rgba(232, 163, 61, .07); }
.modal-backdrop.show { opacity: .65; background: var(--deep); }
/* ===== المساعد الذكي (Chatbot) ===== */
.bot-fab {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 1050;
    width: 62px; height: 62px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #13a59e, var(--teal-dark));
    color: #fff;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(10, 124, 119, .7);
    transition: transform .25s var(--ease);
}
.bot-fab:hover { transform: scale(1.06); }
.bot-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px dashed rgba(94, 207, 195, .7); animation: orbit-spin 10s linear infinite; }
.bot-fab::after { content: ""; position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--sun); transform-origin: 4px 37px; animation: orbit-spin 4s linear infinite; }
/* أيقونة المساعد: فقاعة محادثة بوجه وعينين ترمشان */
.bot-face { width: 32px; height: 32px; display: block; }
html[dir="ltr"] .bot-face { transform: scaleX(-1); }
.bot-face .bubble { fill: #fff; }
.bot-face .eye { fill: var(--teal); transform-box: fill-box; transform-origin: center; animation: bot-blink 4.5s ease-in-out infinite; }
.bot-face .smile { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
@keyframes bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.15); } }
.bot-x { display: none; width: 22px; height: 22px; }
.bot-x path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.bot-fab.open .bot-x { display: block; }
.bot-fab.open .bot-face { display: none; }
.bot-panel {
    position: fixed;
    bottom: 98px;
    inset-inline-end: 22px;
    z-index: 1050;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(7, 38, 36, .45);
    overflow: hidden;
    animation: bot-open .35s var(--ease);
}
.bot-panel[hidden] { display: none; }
@keyframes bot-open { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.bot-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: radial-gradient(90% 140% at 100% 0%, rgba(10, 124, 119, .7), transparent 70%), var(--deep); color: #fff; }
.bot-head b { display: block; font-size: 1.02rem; line-height: 1.3; }
.bot-head small { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: .8rem; }
.bot-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 6px #3ddc97; }
.bot-close { margin-inline-start: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.bot-close:hover { background: rgba(255, 255, 255, .2); }
/* كرة "الذكاء": مدار صغير بنقطة تدور */
.bot-orb { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--aqua), var(--teal) 60%, var(--teal-dark)); box-shadow: 0 0 18px rgba(94, 207, 195, .55); animation: orb-breathe 3s ease-in-out infinite; }
.bot-orb::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(94, 207, 195, .5); border-top-color: var(--sun); animation: orbit-spin 2.5s linear infinite; }
.bot-orb .bot-face { width: 24px; height: 24px; }
@keyframes orb-breathe { 50% { box-shadow: 0 0 28px rgba(94, 207, 195, .85); } }
.bot-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--mist), var(--paper) 40%); }
.bot-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.7; white-space: pre-line; word-wrap: break-word; animation: msg-in .3s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.bot-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-end-start-radius: 6px; }
.bot-msg.me { align-self: flex-end; background: var(--teal); color: #fff; border-end-end-radius: 6px; }
.bot-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bot-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); animation: dot-bounce 1s ease-in-out infinite; }
.bot-msg.typing span:nth-child(2) { animation-delay: .15s; }
.bot-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.bot-link { display: flex; width: fit-content; margin-top: 8px; padding: 4px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--teal); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.bot-link:hover { background: var(--teal); color: #fff; }
/* الأسئلة المقترحة: زر صغير، والقائمة تظهر فوقه عند المرور أو الضغط */
.bot-suggest { position: relative; padding: 8px 14px 0; border-top: 1px solid var(--line); }
.bot-suggest-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--mist); color: var(--teal); font-size: .84rem; font-weight: 700; }
.bot-suggest-arrow { font-size: .7rem; transition: transform .25s; }
.bot-chips { position: absolute; bottom: calc(100% - 2px); inset-inline: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 -12px 30px -18px rgba(11, 53, 51, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.bot-suggest:hover .bot-chips, .bot-suggest.open .bot-chips { opacity: 1; visibility: visible; transform: none; }
.bot-suggest.picked:not(.open) .bot-chips { opacity: 0; visibility: hidden; }
.bot-suggest:hover .bot-suggest-arrow, .bot-suggest.open .bot-suggest-arrow { transform: rotate(180deg); }
.bot-chip { border: 1px solid var(--line); background: var(--paper); color: var(--teal); border-radius: var(--r-pill); padding: 4px 11px; font-size: .82rem; font-weight: 700; transition: border-color .2s, background-color .2s; }
.bot-chip:hover { border-color: var(--aqua); background: var(--mist); }
.bot-form { display: flex; gap: 8px; padding: 10px 14px 14px; }
.bot-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 16px; font: inherit; font-size: .95rem; }
.bot-form input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 .2rem rgba(94, 207, 195, .25); }
.bot-form button { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.1rem; }
.bot-form button:hover { background: var(--teal-dark); }
html[dir="rtl"] .bot-form button i { display: inline-block; transform: scaleX(-1); }
@media (max-width: 575px) {
    .bot-fab { bottom: 16px; inset-inline-end: 16px; width: 56px; height: 56px; }
    .bot-fab::after { transform-origin: 4px 34px; }
    .bot-panel { inset-inline: 16px; bottom: 84px; width: auto; height: 70vh; }
}
/* ===== الجوال ===== */
@media (max-width: 991px) {
    .block { padding: 64px 0; }
    .hero { padding: 56px 0 64px; }
    .split-col, .trio-col { padding: 28px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
    .split-col:first-child, .trio-col:first-child { border-top: 0; padding-top: 0; }
    .duo { grid-template-columns: 1fr; }
    .duo-link { height: 92px; }
    .duo-link::before { inset-inline: auto; top: 0; bottom: 0; left: 50%; border-top: 0; border-left: 2px dashed var(--aqua); }
    .duo-link::after { left: calc(50% - 3px); animation-name: duo-flow-v; }
}
@media (max-width: 767px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .track { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
    .track::before, .track::after { display: none; }
    .track-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; text-align: start; }
    .track-node { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.35rem; }
    .track-title { margin: 4px 0 4px; }
    .track-step:not(:last-child)::before { content: ""; position: absolute; top: 64px; bottom: -20px; inset-inline-start: 27px; border-inline-start: 2px dashed var(--aqua); }
    .deco-arcs { width: 300px; height: 300px; inset-inline-end: -150px; }
    .calc-panel, .form-card { padding: 22px; }
    .ef:nth-child(even) { display: none; }
    .video-frame { max-width: 280px; border-radius: 34px; }
    .contact-tile { padding: 20px; }
    .contact-tile .contact-ico { width: 44px; height: 44px; margin-bottom: 8px; }
    .contact-tile b { font-size: 1.25rem; }
}
/* ===== تقليل الحركة ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .orbiter, .orbit-core-ring, .deco-spin, .bot-fab::before, .bot-fab::after, .bot-orb, .bot-orb::after, .soon-orb::after, .bot-face .eye, .duo-link::after { animation: none !important; }
    .marquee-track, .sharia-seal::after, .mock-chart *, .video-play span { animation: none !important; }
    .marquee-row { overflow-x: auto; }
    .orbit-coin { display: none; }
    .ef { animation: none !important; opacity: 1; }
}
