/* ============================================================
   GOVI V2 — الهوية الثالثة (تصميم العميل + تدقيق ورتوش)
   Editorial Navy/Purple — خط Cairo — Bootstrap 5.3 RTL
   ============================================================ */

:root {
    --navy: #0d1729;
    --navy2: #09101f;
    --panel: #111e33;
    --purple: #4C3177;          /* بنفسجي الشعار (مطابق لـ logo1.svg) */
    --purple-h: #3d2760;        /* درجة الهوفر */
    --purple-t: #b9a6ff;        /* تينت فاتح للخلفيات الداكنة */
    --teal: #00A09D;            /* تركوازي الشعار */
    --teal-t: #4fd8d5;          /* تينت فاتح للخلفيات الداكنة */
    --soft: #efe9f8;
    --ink: #152038;
    --muted: #55627b;
    --line: #dde3ec;
    --surface: #f5f7fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Cairo', 'Tajawal', Tahoma, sans-serif;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; }

::selection { background: var(--purple); color: #fff; }

:focus-visible {
    outline: 3px solid rgba(76, 49, 119, .45);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -60px;
    right: 16px;
    z-index: 2000;
    background: var(--purple);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    transition: top .2s ease;
}

.skip-link:focus { top: 12px; color: #fff; }

/* ---------- الشريط العلوي ---------- */
.top { background: var(--navy2); color: #aeb8ca; font-size: 12.5px; padding: 9px 0; }
.top a { transition: color .2s ease; }
.top a:hover { color: #fff; }

/* ---------- شريط التنقل ---------- */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: box-shadow .25s ease;
}

.nav-wrap.scrolled { box-shadow: 0 10px 30px rgba(13, 23, 41, .08); }
.navbar { min-height: 78px; }
.navbar-brand img { width: 136px; height: auto; }

.nav-link {
    color: #40506a;
    font-size: 14.5px;
    font-weight: 600;
    margin: 0 8px;
    transition: color .2s ease;
}

.nav-link:hover, .nav-link:focus { color: var(--purple); }

/* زر القائمة (جوال) — شرطات نظيفة بلا مربع ولا إطار */
.nav-burger {
    width: 34px;
    padding: 6px 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.nav-burger:focus-visible { outline: 2px solid rgba(76, 49, 119, .45); outline-offset: 4px; border-radius: 4px; }

.nav-burger span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .28s ease, opacity .2s ease, width .28s ease, background .2s ease;
}

.nav-burger span:nth-child(2) { width: 18px; }

.nav-burger[aria-expanded="true"] span { background: var(--purple); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.btn { border-radius: 8px; font-weight: 700; }

.btn-login { color: #40506a; border: 1px solid var(--line); background: #fff; }
.btn-login:hover { color: var(--purple); border-color: var(--purple); background: var(--soft); }

.btn-govi {
    background: var(--purple) !important;
    border-color: var(--purple) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(76, 49, 119, .28);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-govi:hover {
    background: var(--purple-h) !important;
    border-color: var(--purple-h) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(76, 49, 119, .36);
}

/* ---------- الهيرو ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 96px 0; }

.hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    left: -150px;
    top: -250px;
    border: 110px solid rgba(76, 49, 119, .22);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 17px;
}

.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--purple-t); }

h1 {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.35;
    /* ملاحظة: أُزيل التباعد السالب — يكسر اتصال الحروف العربية */
    letter-spacing: 0;
}

h1 span { display: block; color: var(--purple-t); }

.hero-copy { max-width: 620px; color: #b8c3d5; font-size: 17px; line-height: 2; margin: 25px 0 0; }
.hero-actions { display: flex; gap: 13px; margin-top: 32px; }
.hero-actions .btn { min-height: 54px; padding: 14px 24px; }

.btn-outline-light:hover { color: var(--navy); }

.assurance {
    display: flex;
    gap: 35px;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.assurance div { display: flex; gap: 11px; align-items: center; }
.assurance i { color: var(--teal-t); font-size: 19px; }
.assurance span { display: flex; flex-direction: column; color: #97a4b8; font-size: 13px; }
.assurance b { color: #fff; font-size: 14.5px; }

/* لوحة المؤشرات */
.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid #2b3b55;
    border-top: 3px solid var(--purple);
    padding: 30px;
    box-shadow: 0 38px 80px rgba(0, 0, 0, .3);
}

.panel-head, .score, .metric-head, .panel-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-head {
    color: #bec8d6;
    font-size: 12.5px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.live { color: var(--teal-t); display: inline-flex; align-items: center; gap: 7px; }

.live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-t);
    box-shadow: 0 0 0 0 rgba(79, 216, 213, .55);
    animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 216, 213, .55); }
    70% { box-shadow: 0 0 0 9px rgba(79, 216, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 216, 213, 0); }
}

.score { padding: 26px 0; }
.score small { display: block; color: #8491a5; font-size: 13px; }
.score strong { font-family: 'Cairo', sans-serif; font-size: 64px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.score strong em { font-size: 21px; color: var(--purple-t); font-style: normal; }

.ring {
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    border: 9px solid rgba(76, 49, 119, .35);
    border-top-color: var(--purple-t);
    border-left-color: var(--teal-t);
    border-radius: 50%;
}

.ring span {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--purple);
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.metric { margin-bottom: 18px; }
.metric-head { font-size: 12px; color: #aeb9c9; margin-bottom: 7px; }
.metric-head b { font-variant-numeric: tabular-nums; }
.bar { height: 5px; background: #26354d; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-t), var(--purple)); }

.panel-foot {
    margin: 25px -30px -30px;
    padding: 14px 30px;
    background: #0c1728;
    color: #73819a;
    font-size: 11px;
}

.panel-foot span:first-child { color: var(--teal-t); }
/* ---------- المشهد المداري في الهيرو ---------- */
.orbit-scene {
    position: relative;
    width: min(100%, 470px);
    height: 470px;
    margin-inline: auto;
}

.orbit-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 49, 119, .35) 0%, rgba(0, 160, 157, .12) 45%, transparent 70%);
    filter: blur(6px);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.orbit-ring-1 { width: 244px; height: 244px; margin: -122px 0 0 -122px; animation: orbitSpin 70s linear infinite; }
.orbit-ring-2 { width: 392px; height: 392px; margin: -196px 0 0 -196px; animation: orbitSpin 110s linear infinite reverse; }

.orbit-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--teal-t);
    box-shadow: 0 0 12px 2px rgba(79, 216, 213, .65);
}

.orbit-spark-1 { animation: sparkSpin1 26s linear infinite; }
.orbit-spark-2 { background: var(--purple-t); box-shadow: 0 0 12px 2px rgba(185, 166, 255, .6); animation: sparkSpin2 38s linear infinite reverse; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes sparkSpin1 { from { transform: rotate(0deg) translateY(-122px); } to { transform: rotate(360deg) translateY(-122px); } }
@keyframes sparkSpin2 { from { transform: rotate(0deg) translateY(-196px); } to { transform: rotate(360deg) translateY(-196px); } }

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 118px;
    height: 118px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg, var(--purple), var(--teal), var(--purple-t), var(--purple));
    animation: corePulse 4.5s ease-in-out infinite;
    z-index: 2;
}

.orbit-core b,
.orbit-core small { position: absolute; left: 50%; transform: translateX(-50%); }

.orbit-core::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--panel);
}

.orbit-core b {
    top: 24px;
    font-family: 'Cairo', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.orbit-core small { bottom: 22px; width: 100%; text-align: center; color: #a9b5c7; font-size: 11.5px; font-weight: 700; }

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 49, 119, .45); }
    50% { box-shadow: 0 0 34px 6px rgba(76, 49, 119, .45); }
}

.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
    z-index: 3;
}

.orbit-node .chip {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #16233a;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    animation: chipFloat 5.5s ease-in-out infinite;
    animation-delay: var(--d);
    transition: border-color .25s ease, background .25s ease;
}

.orbit-node .chip i { font-size: 24px; color: var(--teal-t); transition: color .25s ease; }

.orbit-node:hover .chip { border-color: var(--purple-t); background: rgba(76, 49, 119, .35); }
.orbit-node:hover .chip i { color: #fff; }

.orbit-node small {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    color: #d6dded;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

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

.orbit-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 0;
    color: #97a4b8;
    font-size: 13.5px;
    font-weight: 600;
}

.orbit-caption i { color: var(--teal-t); font-size: 17px; }

@media (max-width: 575px) {
    .orbit-scene { transform: scale(.74); height: 470px; margin-block: -60px -50px; }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-ring, .orbit-spark, .orbit-core, .orbit-node .chip { animation: none; }
}

/* ---------- الإحصائيات ---------- */
.stats { border-bottom: 1px solid var(--line); }

.stat {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-left: 1px solid var(--line);
}

.stat:last-child { border: 0; }
.stat b { font-family: 'Cairo', sans-serif; font-size: 30px; font-weight: 800; color: var(--purple); font-variant-numeric: tabular-nums; }
.stat span { max-width: 120px; color: #46536a; font-size: 13.5px; line-height: 1.7; }

/* ---------- هيكل الأقسام ---------- */
section.block { padding: 105px 0; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 52px;
}

.section-head h2, .headline {
    margin: 0;
    color: var(--navy2);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0; /* لا تباعد سالب مع العربية */
}

.section-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- المنصات والأنظمة (عمودان) ---------- */
.platform {
    display: grid;
    grid-template-columns: 38px 1fr 40px;
    gap: 16px;
    align-items: start;
    height: 100%;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    position: relative;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.platform:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(18, 32, 55, .08);
}

.platform .num {
    font-family: 'Cairo', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--purple);
    line-height: 1;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
    transition: color .25s ease;
}

.platform:hover .num { color: var(--teal); }

.platform .visit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--purple);
    opacity: .65;
    transition: color .2s ease, opacity .2s ease;
}

.platform .visit i { font-size: 14px; }
.platform:hover .visit { color: var(--teal); opacity: 1; }
.platform .copy { display: flex; flex-direction: column; gap: 6px; }
.platform .copy b { font-size: 16px; }
.platform .copy .kind {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 800;
    color: var(--teal);
    background: rgba(0, 160, 157, .10);
    padding: 2px 10px;
    margin-bottom: 2px;
}
.platform .copy small { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.platform .arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--purple);
    align-self: center;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.platform:hover .arrow { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- الخدمات (داكنة) ---------- */
.services { background: var(--navy2); }
.services .section-head h2 { color: #fff; }
.services .section-head > p { color: #9eabbd; }

.service {
    height: 100%;
    min-height: 305px;
    padding: 28px;
    background: var(--navy);
    border: 1px solid #24334a;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, border-color .25s ease;
}

.service:hover { transform: translateY(-5px); border-color: var(--purple); }

.service h3 { margin: 0 0 12px; color: #fff; font-size: 17px; font-weight: 800; }
.service p { color: #a7b4c7; font-size: 14.5px; line-height: 1.9; flex: 1; }

.service .svc-link { color: var(--purple-t); font-size: 13px; font-weight: 700; transition: color .2s ease; }
.service:hover .svc-link { color: var(--teal-t); }

.services-empty {
    border: 1px dashed #2b3b55;
    padding: 48px;
    text-align: center;
    color: #9eabbd;
}

/* ---------- آلية العمل ---------- */
.journey-bg { background: var(--surface); }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); }
.step { min-height: 235px; padding: 34px; border-left: 1px solid var(--line); }
.step:last-child { border: 0; }

.step > span {
    display: inline-block;
    color: var(--purple);
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    border-bottom: 3px solid var(--purple);
    padding-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.step h3 { margin-top: 28px; font-size: 17px; font-weight: 800; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* ---------- صفحة تفاصيل الخدمة ---------- */
.svc-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 56px 0 48px; }

.svc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}

.svc-hero .container { position: relative; z-index: 1; }
.svc-hero .breadcrumb { font-size: 12.5px; font-weight: 600; margin-bottom: 14px; --bs-breadcrumb-divider-color: #56637a; }
.svc-hero .breadcrumb a { color: var(--purple-t); }
.svc-hero .breadcrumb .active { color: #8996aa; }
.svc-hero h1 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin: 10px 0 14px; }

.svc-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--purple-t);
    border: 1px solid rgba(185, 166, 255, .35);
    padding: 4px 16px;
}

.svc-aud { display: inline-flex; align-items: center; gap: 8px; color: #a9b5c7; font-size: 13px; }
.svc-aud i { color: var(--teal-t); }

.svc-wrap { background: var(--surface); padding: 48px 0 90px; }
.svc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }

.svc-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--purple);
    padding: 32px 30px;
    margin-bottom: 22px;
}

.svc-panel h2 { font-size: 18px; font-weight: 800; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 0 0 20px; }

.svc-list { list-style: none; padding: 0; margin: 0; }

.svc-list li {
    position: relative;
    padding: 13px 26px 13px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14.5px;
    color: #3d4658;
    line-height: 1.9;
}

.svc-list li:last-child { border-bottom: 0; }

.svc-list li::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--teal);
}

.svc-desc { font-size: 15px; line-height: 2.1; color: #3d4658; margin: 0; }

.svc-side { position: sticky; top: 96px; }
.svc-meta { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); padding: 28px; }
.svc-meta h3 { font-size: 16px; font-weight: 800; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }

.svc-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.svc-row .k { color: var(--muted); font-weight: 600; }
.svc-row .v { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-row .v.price { color: var(--purple); font-size: 17px; }

.svc-meta .btn { width: 100%; margin-top: 18px; padding: 13px; }
.svc-back { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; transition: color .2s ease; }
.svc-back:hover { color: var(--purple); }

.svc-empty { color: var(--muted); padding: 18px 0; }

/* ---------- لماذا GOVI ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.why-grid article {
    padding: 30px;
    min-height: 205px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .25s ease;
}

.why-grid article:hover { background: var(--surface); }
.why-grid h3 { margin: 0 0 9px; font-size: 16px; font-weight: 800; }
.why-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.lead-copy { color: var(--muted); line-height: 2; margin: 24px 0; }

.text-link { color: var(--purple); font-size: 13.5px; font-weight: 800; transition: color .2s ease; }
.text-link:hover { color: var(--teal); }

/* ---------- المعايير ---------- */
.standards { background: var(--surface); }

.standard {
    height: 100%;
    min-height: 235px;
    padding: 30px;
    background: #fff;
    border-top: 4px solid var(--navy);
    box-shadow: 0 12px 35px rgba(18, 32, 55, .07);
    transition: transform .25s ease, border-color .25s ease;
}

.standard:hover { transform: translateY(-5px); border-top-color: var(--purple); }
.standard span { display: inline-block; color: var(--purple); font-family: 'Cairo', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.standard h3 { margin: 24px 0 12px; font-size: 18px; font-weight: 800; }
.standard p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- الأسئلة الشائعة ---------- */
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 15.5px;
    transition: color .2s ease;
}

.faq summary:hover { color: var(--purple); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--purple); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary { color: var(--purple); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; line-height: 1.9; padding-bottom: 22px; margin: 0; }

/* ---------- التواصل ---------- */
.contact-bg { background: var(--navy); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; color: #fff; }
.contact-info { padding: 60px; }
.contact-info h2 { color: #fff; }
.contact-info > p { color: #a9b5c7; line-height: 1.9; }

.contact-line { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: 13px; transition: color .2s ease; }
a.contact-line:hover { color: var(--teal-t); }

.contact-line i {
    width: 26px;
    text-align: center;
    color: var(--teal-t);
    font-size: 20px;
    flex-shrink: 0;
}

/* نموذج زجاجي فوق الخلفيات الداكنة */
.form {
    margin: 16px;
    padding: 45px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .10);
    color: #fff;
}

@supports not (backdrop-filter: blur(1px)) {
    .form { background: rgba(17, 30, 51, .95); }
}

.form h3 { color: #fff; }
.form label { font-size: 13px; font-weight: 700; margin-bottom: 18px; color: #dbe2ec; }

.form .form-control {
    margin-top: 7px;
    min-height: 48px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form .form-control::placeholder { color: #8996aa; }

.form .form-control:focus {
    border-color: var(--purple-t);
    box-shadow: 0 0 0 4px rgba(185, 166, 255, .15);
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.form .form-control.is-invalid { border-color: #ff8fa0; background-image: none; }
.form .invalid-feedback { color: #ffb3c0; }
.invalid-feedback { font-size: 12.5px; font-weight: 700; }

.form-check-input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.form-check-input:checked { background-color: var(--purple); border-color: var(--purple); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(185, 166, 255, .2); }

.form-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 203, 199, .12);
    border: 1px solid rgba(0, 203, 199, .35);
    color: #bff1ef;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-ok i { color: var(--teal-t); font-size: 18px; }

/* ---------- صفحات الدخول والتسجيل ---------- */
.auth-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: 80px 0;
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
}

.auth-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    left: -150px;
    top: -250px;
    border: 110px solid rgba(76, 49, 119, .22);
    border-radius: 50%;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}

.auth-hero .container { position: relative; z-index: 1; }
.auth-card { max-width: 470px; margin: 0 auto; }
.auth-card .form { margin: 0; }
.auth-card .eyebrow { justify-content: center; }
.auth-card h1 { font-size: 26px; color: #fff; text-align: center; margin: 0 0 6px; }
.auth-card .sub { color: #a9b5c7; font-size: 13.5px; text-align: center; margin: 0 0 26px; }

.auth-alt { text-align: center; margin: 22px 0 0; font-size: 13px; color: #a9b5c7; }
.auth-alt a { color: var(--purple-t); font-weight: 800; }
.auth-alt a:hover { color: #fff; }

.auth-links { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.auth-links a { color: #a9b5c7; font-size: 12.5px; font-weight: 600; }
.auth-links a:hover { color: var(--purple-t); }

.auth-status {
    background: rgba(0, 203, 199, .12);
    border: 1px solid rgba(0, 203, 199, .35);
    color: #bff1ef;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* ---------- الفوتر ---------- */
footer.site { background: #070d18; color: #8d9aae; padding: 65px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; }
.footer-grid img { width: 112px; height: auto; filter: brightness(0) invert(1); }
.footer-grid p { max-width: 380px; font-size: 12.5px; line-height: 1.9; margin-top: 20px; }
.footer-grid h3 { color: #fff; font-size: 13.5px; font-weight: 800; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; }
.footer-grid a { transition: color .2s ease; }
.footer-grid a:hover { color: var(--teal-t); }

.footer-x {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #10192b;
    color: #aeb8ca;
    margin-top: 18px;
    transition: background .25s ease, color .25s ease;
}

.footer-x:hover { background: var(--purple); color: #fff; }
.footer-x + .footer-x { margin-inline-start: 10px; }

.copyright {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #1b2535;
    margin-top: 45px;
    padding-top: 20px;
    font-size: 11.5px;
}

.copyright a:hover { color: var(--teal-t); }

/* ---------- صفحة السياسات ---------- */
.v2-page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 62px 0 52px; }

.v2-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}

.v2-page-hero .container { position: relative; z-index: 1; }
.v2-page-hero .breadcrumb { font-size: 12.5px; font-weight: 600; margin-bottom: 14px; --bs-breadcrumb-divider-color: #56637a; }
.v2-page-hero .breadcrumb a { color: var(--purple-t); }
.v2-page-hero .breadcrumb .active { color: #8996aa; }
.v2-page-hero h1 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.v2-page-hero .meta { color: #8996aa; font-size: 13px; font-weight: 600; }

.policy-wrap { background: var(--surface); }

.v2-toc {
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    position: sticky;
    top: 96px;
}

.v2-toc h6 { font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 12px; }

.v2-toc .nav-link {
    color: #40506a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    margin: 0;
    border-right: 2px solid transparent;
    transition: all .2s ease;
}

.v2-toc .nav-link:hover { color: var(--purple); background: var(--surface); }

.v2-toc .nav-link.active {
    color: var(--purple);
    background: var(--soft);
    border-right-color: var(--purple);
    font-weight: 800;
}

.v2-policy-sec {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--purple);
    padding: 34px 32px;
    margin-bottom: 24px;
    scroll-margin-top: 100px;
}

.v2-policy-sec > h2 {
    font-size: 20px;
    font-weight: 800;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.v2-policy-sec h3 { font-size: 15.5px; font-weight: 800; color: var(--purple); margin: 24px 0 8px; }
.v2-policy-sec p, .v2-policy-sec li { font-size: 14.5px; line-height: 1.95; color: #3d4658; }
.v2-policy-sec ul, .v2-policy-sec ol { padding-inline-start: 22px; }
.v2-policy-sec li { margin-bottom: 7px; }

/* ---------- طباعة ---------- */
@media print {
    .top, .nav-wrap, footer.site, .v2-toc-col { display: none !important; }
    .v2-policy-sec { border: none; padding: 0 0 24px; }
    .v2-page-hero { background: none; color: #000; padding: 0 0 20px; }
    .v2-page-hero h1, .v2-page-hero .meta { color: #000; }
    .policy-wrap { background: #fff; }
}

/* ---------- التجاوب ---------- */
@media (max-width: 991px) {
    /* لوحة القائمة في الجوال */
    .nav-wrap .navbar { min-height: 66px; padding-block: 8px; padding-inline: 20px; }
    .navbar-brand img { width: 120px; }

    .navbar-collapse {
        margin-top: 12px;
        padding: 12px 0 20px;
        border-top: 1px solid var(--line);
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 13px 2px;
        border-bottom: 1px solid #eef1f6;
        font-size: 15px;
    }

    .navbar-nav .nav-link:last-child { border-bottom: 0; }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus { color: var(--purple); padding-inline-start: 6px; }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
        margin-top: 16px;
    }

    .nav-cta .btn { width: 100%; padding: 13px; }

    .hero { padding: 75px 0; }
    .panel { margin-top: 35px; }
    .section-head { align-items: start; flex-direction: column; }
    .journey, .contact { grid-template-columns: 1fr; }
    .step { border-left: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .v2-toc { position: relative; top: 0; }
    .svc-grid { grid-template-columns: 1fr; }
    .svc-side { position: relative; top: 0; }
    .auth-hero { padding: 56px 0; min-height: 0; }
}

@media (max-width: 767px) {
    .top .tag { display: none; }
    .hero h1 { font-size: 38px; }
    .hero-actions, .assurance { flex-direction: column; }
    .assurance { gap: 16px; }
    .hero-actions .btn { width: 100%; }
    .stat { min-height: 95px; border-bottom: 1px solid var(--line); }
    section.block { padding: 72px 0; }
    .section-head h2, .headline { font-size: 30px; }
    .platform { grid-template-columns: 52px 1fr; padding: 22px; }
    .platform .arrow { display: none; }
    .service { min-height: 275px; }
    .contact-info, .form { padding: 30px; }
    .form { margin: 12px; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .copyright { flex-direction: column; gap: 10px; }
    .svc-panel, .svc-meta { padding: 24px 20px; }
    .auth-card .form { padding: 30px 24px; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
