/* ============================================================
   GOVI V2 — الصفحة الرئيسية: الهوية البيضاء الرسمية (اعتُمدت 2026-10-19)
   أبيض سائد · تركوازي غامق #0c6f78 للفعل والتمييز · بترولي للعناوين · خط Cairo
   تُحمَّل من v2/home.blade.php فقط؛ بقية صفحات v2 على style.css.
   ============================================================ */

:root {
    /* الدرجة (ج) المعتمدة 2026-10-19 23:00 بطلبه: تركوازي غامق يميل للأزرق
       (الجهات الحكومية تستعمل درجة أساسية غامقة مشبعة على أبيض، لا فاتحة مخضرّة) */
    --teal: #0c6f78;
    --teal-h: #0a5c63;
    --teal-d: #084c52;
    --teal-rgb: 12, 111, 120;
    --tint: #e3eff0;
    --tint2: #f0f6f7;
    --petrol: #0b3042;
    --ink: #1b2733;
    --muted: #5a6775;
    --line: #e2e8ec;
    --surface: #f6f8f9;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 14px 34px rgba(11, 48, 66, .08);
    --shadow-h: 0 20px 44px rgba(var(--teal-rgb), .14);
    --nav-h: 72px;
}

* { box-sizing: border-box; }

/* لون التمرير الزائد أسفل الصفحة = شريط الحقوق البترولي */
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--petrol); }

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

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; }
h1, h2, h3 { letter-spacing: 0; }

::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .4); outline-offset: 2px; }

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

/* ---------- خط التمييز العلوي (لمسة الجهات الرسمية) ---------- */
.gov-line { height: 4px; background: var(--teal); }

/* ---------- الشريط العلوي ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; padding: 7px 0; }
.top .tag { font-weight: 600; color: var(--petrol); }
.top a { color: var(--muted); transition: color .2s ease; }
.top a:hover { color: var(--teal); }

/* ---------- شريط التنقل: أبيض ثابت ---------- */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.nav-wrap.scrolled { box-shadow: 0 6px 24px rgba(11, 48, 66, .08); }

.navbar { min-height: var(--nav-h); }
.nav-wrap .navbar-brand { padding-block: 0; }
.navbar-brand img { width: 140px; height: auto; display: block; }

.nav-wrap .nav-link {
    position: relative;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    margin: 0 6px;
    padding: 8px 4px;
    transition: color .2s ease;
}
.nav-wrap .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 4px;
    bottom: 2px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.nav-wrap .nav-link:hover, .nav-wrap .nav-link:focus { color: var(--teal); }
.nav-wrap .nav-link:hover::after, .nav-wrap .nav-link:focus::after { transform: scaleX(1); }

.nav-burger {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    background: #fff !important;
    box-shadow: none !important;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--petrol);
    transition: transform .28s ease, opacity .2s ease, width .28s ease;
}
.nav-burger[aria-expanded="true"] span { background: var(--teal); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- الأزرار: مسطحة بلا تدرّج ولا ظل ---------- */
.btn { border-radius: var(--radius); font-weight: 700; }

/* تدرّج رأسي خفيف جداً يعطي عمقاً بلا لمعان */
.btn-govi {
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-h) 100%) !important;
    border-color: var(--teal-h) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(var(--teal-rgb), .18);
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.btn-govi:hover, .btn-govi:focus { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(var(--teal-rgb), .26); transform: translateY(-1px); }

/* زر البطاقات: بديل روابط النص (تفاصيل الخدمة / زيارة المنصة) */
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding: 8px 16px;
    border: 1px solid rgba(var(--teal-rgb), .35);
    border-radius: var(--radius);
    background: var(--tint2);
    color: var(--teal-d);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card-btn i { font-size: 15px; transition: transform .2s ease; }
.card-btn:hover, .card-btn:focus, a:hover > .copy > .card-btn, .platform:hover .card-btn {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 6px 14px rgba(var(--teal-rgb), .22);
}
.card-btn:hover i, .platform:hover .card-btn i { transform: translateX(-3px); }

/* شارة الرقم في البطاقات */
.num-badge {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tint) 0%, #fff 100%);
    border: 1px solid rgba(var(--teal-rgb), .18);
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-outline-govi {
    color: var(--petrol);
    background: #fff;
    border: 1px solid #c9d3da;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-outline-govi:hover, .btn-outline-govi:focus { color: var(--teal-d); border-color: var(--teal); background: var(--tint2); box-shadow: 0 6px 14px rgba(var(--teal-rgb), .10); }
.btn-sm-govi { padding: 10px 20px; font-size: 14px; }

/* ---------- الهيرو: أبيض، عنوان معتدل، بطاقة بيانات نظامية ---------- */
.hero { position: relative; overflow: hidden; background: #fff; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }

/* شبكة خفيفة في الجهة الفارغة فقط، تتلاشى نحو النص */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--teal-rgb), .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--teal-rgb), .07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 58%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 30%, transparent 58%);
}
.hero .container { position: relative; z-index: 1; }

/* العلامة المائية: العلامة المتدرجة مقصوصة بلا هوامش (نسبتها 3:1)، تملأ يسار الهيرو
   الفارغ وطرفها يمتد قليلاً خلف الفقرة عمداً كما في الصفحة الحيّة. */
.hero-mark {
    position: absolute;
    left: clamp(20px, 5.9vw, 85px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(640px, 50vw, 820px);
    height: auto;
    opacity: .07;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 1279.98px) { .hero-mark { display: none; } }

/* المعتمد 2026-10-19: الهيرو على أرضية فاتحة بتدرّج خفيف نحو الأبيض */
.hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }

.eyebrow { display: block; color: var(--teal); font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }

h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--petrol);
    margin: 0;
}
h1 span { display: block; color: var(--teal); }

.hero-copy { max-width: 580px; color: var(--muted); font-size: 16px; line-height: 2; margin: 20px 0 0; }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-actions .btn { min-height: 50px; padding: 12px 26px; font-size: 15px; }

.assurance { display: flex; gap: 28px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.assurance div { display: flex; gap: 12px; align-items: center; }
/* غلاف الأيقونة: الخلفية والحد هنا لا على <i> (قناع SVG يقصّ ما يرسمه العنصر) */
.ico {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(var(--teal-rgb), .2);
    color: var(--teal);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ico i { font-size: 20px; }
.ico.ico-sm { width: 30px; height: 30px; border-radius: 8px; background: var(--tint); border: 0; }
.ico.ico-sm i { font-size: 16px; }
/* :not(.ico) إجباري: غلاف الأيقونة span أيضاً، وهذه القاعدة كانت تلغي تمركزه (الأيقونة تلتصق بالأعلى) */
.assurance span:not(.ico) { display: flex; flex-direction: column; color: var(--muted); font-size: 12.5px; }
.assurance b { color: var(--petrol); font-size: 14px; }

/* ---------- شريط الحقائق ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stat { min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 14px; border-left: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat b { font-size: 28px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1; }
.stat b.ico { width: 44px; height: 44px; }
.stat b.ico i { font-size: 24px; }
.stat span { max-width: 130px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.stat b.stat-sm { font-size: 20px; letter-spacing: .5px; }

/* ---------- هيكل الأقسام ---------- */
section.block { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-head h2, .headline { margin: 0; color: var(--petrol); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.5; }
.section-head > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.9; }

.lead-copy { color: var(--muted); line-height: 2; margin: 18px 0; }
.text-link { color: var(--teal); font-size: 13.5px; font-weight: 700; transition: color .2s ease; }
.text-link:hover { color: var(--teal-h); text-decoration: underline; }

/* ---------- من نحن ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-grid article {
    padding: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.why-grid article:hover { border-color: rgba(var(--teal-rgb), .45); box-shadow: var(--shadow); transform: translateY(-3px); }
.why-grid h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: var(--petrol); }
.why-grid h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); margin-inline-end: 10px; vertical-align: 2px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- الخدمات ---------- */
.service {
    position: relative;
    height: 100%;
    padding: 28px 26px 26px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
/* خط تمييز علوي متدرّج داخل الزاوية المدوّرة */
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-h), var(--teal) 60%, rgba(var(--teal-rgb), .35)); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: rgba(var(--teal-rgb), .45); }
.service h3 { margin: 0 0 10px; color: var(--petrol); font-size: 16px; font-weight: 700; }
.service p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.9; flex: 1; }
.services-empty { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 48px; text-align: center; color: var(--muted); background: #fff; }

/* ---------- الامتثال والحوكمة ---------- */
.standard {
    height: 100%;
    padding: 26px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.standard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(var(--teal-rgb), .45); }
.standard:hover .num-badge { background: var(--teal); color: #fff; border-color: var(--teal); }
.standard h3 { margin: 16px 0 8px; color: var(--petrol); font-size: 16.5px; font-weight: 700; }
.standard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------- المنصات والأنظمة ---------- */
.platform {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.platform:hover { border-color: rgba(var(--teal-rgb), .5); transform: translateY(-4px); box-shadow: var(--shadow-h); }
.platform .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platform:hover .num-badge { background: var(--teal); color: #fff; border-color: var(--teal); }
.platform .kind { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--teal-d); background: var(--tint); border-radius: 999px; padding: 2px 12px; }
.platform .copy { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.platform .copy b { font-size: 15.5px; color: var(--petrol); }
.platform .copy small { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin-bottom: 10px; }

/* ---------- منهجية العمل ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
    position: relative;
    padding: 28px 26px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(var(--teal-rgb), .45); }
.step:hover .num-badge { background: var(--teal); color: #fff; border-color: var(--teal); }
.step h3 { margin: 18px 0 8px; color: var(--petrol); font-size: 16px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 22px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: rgba(var(--teal-rgb), .45); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: var(--petrol); transition: color .2s ease; }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico i { transition: transform .25s ease; }
.faq details[open] summary .ico { background: var(--teal); color: #fff; }
.faq details[open] summary { color: var(--teal-d); }
.faq details[open] summary .ico i { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.9; padding: 0 0 20px; margin: 0; border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------- التواصل ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info > p { color: var(--muted); line-height: 1.9; margin: 0 0 8px; }
.contact-line { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--ink); transition: color .2s ease; }
a.contact-line:hover { color: var(--teal); }
.contact-line .ico { width: 40px; height: 40px; background: var(--tint); border-color: transparent; }
a.contact-line:hover .ico { background: var(--teal); color: #fff; }

.form { position: relative; overflow: hidden; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-h), var(--teal) 60%, rgba(var(--teal-rgb), .35)); }
.form h3 { color: var(--petrol); font-size: 18px; font-weight: 700; }
.form label { font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--petrol); }
.form .form-control {
    margin-top: 6px;
    min-height: 46px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #cdd6dc;
    color: var(--ink);
    font-family: inherit;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form .form-control::placeholder { color: #9aa6b1; }
.form .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .15); color: var(--ink); }
.form .form-control.is-invalid { border-color: #d9534f; background-image: none; }
.invalid-feedback { font-size: 12.5px; font-weight: 700; }
.form-ok { display: flex; align-items: center; gap: 10px; background: var(--tint); border: 1px solid rgba(var(--teal-rgb), .35); color: var(--teal-d); padding: 14px 18px; font-size: 13.5px; font-weight: 700; margin-bottom: 20px; }
.form-ok i { color: var(--teal); font-size: 18px; }

/* ---------- الفوتر: فاتح، وشريط حقوق بترولي ---------- */
footer.site { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.05fr 1.2fr; gap: 36px; }
.footer-grid img { width: 120px; height: auto; display: block; }
.footer-grid p { max-width: 360px; font-size: 13px; line-height: 1.9; margin: 18px 0 0; }
.footer-grid h3 { color: var(--petrol); font-size: 13.5px; font-weight: 700; margin: 0 0 4px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-grid a { transition: color .2s ease; }
.footer-grid a:hover { color: var(--teal); }

.footer-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); color: var(--petrol); margin-top: 16px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.footer-x:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-x + .footer-x { margin-inline-start: 8px; }

.copyright { background: var(--petrol); color: #c6d3da; margin-top: 44px; padding: 15px 0; font-size: 12px; }
.copyright .container { display: flex; justify-content: space-between; gap: 12px; }
.copyright a { color: #e4ecf0; }
.copyright a:hover { color: #fff; text-decoration: underline; }


/* ============================================================
   الصفحات الداخلية (الخدمة · الدخول/التسجيل · المطالبة المالية · التحقق · السياسات)
   حُوّلت إلى الهوية البيضاء 2026-10-19 — أسماء الكلاسات كما في القوالب، الألوان فقط تغيّرت.
   ============================================================ */
.eyebrow.light { color: var(--teal); }

/* رأس الصفحة الداخلية: شريط فاتح بدل الهيرو الداكن */
.svc-hero, .v2-page-hero {
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
    padding: 40px 0 36px;
}
.breadcrumb { font-size: 12.5px; font-weight: 600; margin: 0 0 14px; --bs-breadcrumb-divider-color: #9aa6b1; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .active { color: var(--muted); }
.svc-hero h1, .v2-page-hero h1, .claim-card h1, .verify-card h1, .auth-card h1 { color: var(--petrol); font-weight: 700; }
.svc-hero h1 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 12px; }
.v2-page-hero h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.v2-page-hero .meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.svc-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-d); background: var(--tint); border-radius: 999px; padding: 3px 14px; }
.svc-aud { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.svc-aud i { color: var(--teal); font-size: 17px; }

/* ---------- صفحة الخدمة ---------- */
.svc-wrap { background: var(--surface); padding: 40px 0 80px; }
.svc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.svc-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    margin-bottom: 20px;
}
.svc-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-h), var(--teal) 60%, rgba(var(--teal-rgb), .35)); }
.svc-panel h2 { color: var(--petrol); font-size: 18px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li { position: relative; padding: 12px 26px 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.9; }
.svc-list li:last-child { border-bottom: 0; }
.svc-list li::before { content: ""; position: absolute; top: 22px; right: 4px; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
.svc-desc { font-size: 15px; line-height: 2.1; color: var(--ink); margin: 0; }
.svc-empty { color: var(--muted); padding: 14px 0; }
.svc-side { position: sticky; top: 96px; }
.svc-meta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.svc-meta h3 { color: var(--petrol); font-size: 16px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.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: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-row .v.price { color: var(--teal); font-size: 17px; }
.svc-meta .btn { width: 100%; margin-top: 18px; padding: 13px; }
.svc-meta .btn-secondary.disabled { background: var(--surface); border-color: var(--line); color: var(--muted); }
.svc-back { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.svc-back:hover { color: var(--teal); }

/* ---------- الدخول والتسجيل ---------- */
.auth-hero {
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    padding: 56px 0 80px;
    min-height: calc(100vh - 420px);
    display: flex;
    align-items: center;
}
.auth-hero .container { width: 100%; }
.auth-card { max-width: 470px; margin: 0 auto; }
.auth-card .eyebrow { display: block; text-align: center; }
.auth-card h1 { font-size: 26px; text-align: center; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; text-align: center; margin: 0 0 24px; }
.auth-card .form { padding: 32px; }
.auth-alt { text-align: center; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--teal); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.auth-links a { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.auth-links a:hover { color: var(--teal); }
.auth-status { background: var(--tint); border: 1px solid rgba(var(--teal-rgb), .35); border-radius: var(--radius); color: var(--teal-d); padding: 12px 16px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.form-check-input { border-color: #b9c4cc; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .15); border-color: var(--teal); }

/* ---------- المطالبة المالية والتحقق (النموذج داخل القسم الفاتح) ---------- */
.claim-hero, .verify-hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); padding: 40px 0 80px; }
.verify-hero { min-height: calc(100vh - 420px); }
.claim-card { max-width: 780px; margin: 0 auto; }
.verify-card { max-width: 620px; margin: 0 auto; }
.claim-card .eyebrow, .verify-card .eyebrow { display: block; text-align: center; }
.claim-card h1, .verify-card h1 { font-size: 28px; text-align: center; margin: 0 0 6px; }
.claim-card .sub, .verify-card .sub { color: var(--muted); font-size: 13.5px; text-align: center; margin: 0 0 24px; line-height: 1.9; }
.claim-card .form, .verify-card .form { padding: 36px; }
.claim-card .form-group, .verify-card .form-group { margin-bottom: 18px; }
.claim-card .form label, .verify-card .form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--petrol); }
.claim-card .form .form-control, .verify-card .form .form-control { margin-top: 0; }
.req { color: #c0392b; margin-inline-end: 2px; font-weight: 800; }
.optional-label { color: var(--muted); font-weight: 400; font-size: 12px; }
.field-hint { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.8; margin-top: 6px; }
.form-icon { position: relative; }
.form-icon > i { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--teal); opacity: .7; font-size: 18px; pointer-events: none; }
.form-icon .form-control { padding-right: 42px; }
.claim-card select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230c6f78' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}
.claim-card textarea.form-control { min-height: 120px; resize: vertical; }
.category-notice { display: none; margin-top: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 12.5px; line-height: 1.9; animation: claimFadeIn .3s ease; }
.category-notice ul { margin: 8px 0 0; padding-inline-start: 20px; }
.category-notice i { margin-inline-end: 6px; }
.category-notice.notice-x { background: #fff8e6; border: 1px solid #f1d48a; color: #7a5a00; }
.category-notice.notice-order { background: var(--tint); border: 1px solid rgba(var(--teal-rgb), .35); color: var(--teal-d); }
.attachment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; animation: claimFadeIn .3s ease; }
.attachment-row .form-control-file {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px dashed #c3ced6;
    border-radius: var(--radius);
    color: var(--ink);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.attachment-row .form-control-file:hover { border-color: var(--teal); background: var(--tint2); }
.attachment-row .form-control-file::file-selector-button {
    margin-inline-end: 12px;
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--tint);
    color: var(--teal-d);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.attachment-row .form-control-file:hover::file-selector-button { background: var(--teal); color: #fff; }
.btn-add-file, .btn-remove-file {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.btn-add-file { background: var(--teal); color: #fff; }
.btn-add-file:hover { background: var(--teal-h); transform: scale(1.05); }
.btn-remove-file { background: #fdecec; border: 1px solid #f3b8b8; color: #c0392b; }
.btn-remove-file:hover { background: #f9d6d6; transform: scale(1.05); }
.file-name-preview { display: none; flex-basis: 100%; margin-top: 6px; color: var(--teal-d); font-size: 11.5px; font-weight: 600; word-break: break-all; }
.claim-card .btn-govi:disabled { opacity: .75; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.claim-spin { animation: claimSpin 1s linear infinite; vertical-align: middle; margin-inline-end: 8px; }
.claim-success { text-align: center; padding: 40px 30px; background: #fff; border: 1px solid rgba(var(--teal-rgb), .35); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.claim-success > i { color: var(--teal); font-size: 46px; }
.claim-success h2 { color: var(--petrol); font-size: 20px; font-weight: 700; margin: 16px 0 10px; }
.claim-success p { color: var(--muted); font-size: 14px; line-height: 2; margin: 0 auto; max-width: 460px; }
.claim-success .btn { margin-top: 26px; }
.claim-success .btn-outline-light { color: var(--petrol); border: 1px solid #c9d3da; background: #fff; }
.claim-success .btn-outline-light:hover { color: var(--teal-d); border-color: var(--teal); background: var(--tint2); }
@keyframes claimFadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes claimSpin { to { transform: rotate(360deg); } }

/* التحقق من الشهادات (المسار يحوّل حالياً إلى ana؛ الأنماط للاحتياط) */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-variant-numeric: tabular-nums; }
.input-code { direction: ltr !important; text-align: center !important; font-size: 20px !important; letter-spacing: 6px; font-weight: 700; }
.input-code::placeholder { letter-spacing: 6px; opacity: .5; }
.v-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; line-height: 1.9; }
.v-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.v-alert ul { margin: 0; padding-inline-start: 18px; }
.v-alert-error { background: #fdecec; border: 1px solid #f3b8b8; color: #8c2b2b; }
.v-alert-error i { color: #c0392b; }
.v-alert-warn { margin: 22px 0 0; background: #fff8e6; border: 1px solid #f1d48a; color: #7a5a00; }
.v-alert-warn i { color: #d39e00; }
.result-card { margin-top: 26px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--petrol); }
.result-sub { font-size: 12px; color: var(--muted); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.kv .k { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.kv .v { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-row .btn { min-height: 46px; padding: 11px 20px; font-size: 13.5px; }
.result-note { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.badge-success { background: var(--tint); border: 1px solid rgba(var(--teal-rgb), .4); color: var(--teal-d); }
.badge-danger { background: #fdecec; border: 1px solid #f3b8b8; color: #8c2b2b; }
.badge-info { background: #eaf1fb; border: 1px solid #bdd3f2; color: #2b4f80; }
.badge-warning { background: #fff8e6; border: 1px solid #f1d48a; color: #7a5a00; }
.badge-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* ---------- السياسات ---------- */
.policy-wrap { background: var(--surface); }
.v2-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 96px; }
.v2-toc h6 { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.v2-toc .nav-link { color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 12px; margin: 0; border-right: 2px solid transparent; border-radius: 6px; transition: all .2s ease; }
.v2-toc .nav-link:hover { color: var(--teal); background: var(--tint2); }
.v2-toc .nav-link.active { color: var(--teal-d); background: var(--tint); border-right-color: var(--teal); font-weight: 700; }
.v2-policy-sec { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; margin-bottom: 20px; scroll-margin-top: 100px; }
.v2-policy-sec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal-h), var(--teal) 60%, rgba(var(--teal-rgb), .35)); }
.v2-policy-sec > h2 { color: var(--petrol); font-size: 20px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.v2-policy-sec h3 { font-size: 15.5px; font-weight: 700; color: var(--teal-d); margin: 24px 0 8px; }
.v2-policy-sec p, .v2-policy-sec li { font-size: 14.5px; line-height: 1.95; color: var(--ink); }
.v2-policy-sec ul, .v2-policy-sec ol { padding-inline-start: 22px; }
.v2-policy-sec li { margin-bottom: 7px; }

@media print {
    .gov-line, .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; padding: 0 0 20px; }
    .policy-wrap { background: #fff; }
}

@media (max-width: 991px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-side { position: relative; top: 0; }
    .v2-toc { position: relative; top: 0; }
    .auth-hero { padding: 40px 0 56px; min-height: 0; }
}

@media (max-width: 767px) {
    .svc-hero, .v2-page-hero { padding: 28px 0 26px; }
    .claim-hero, .verify-hero { padding: 28px 0 56px; }
    .verify-hero { min-height: 0; }
    .svc-panel, .svc-meta { padding: 24px 20px; }
    .auth-card .form, .claim-card .form, .verify-card .form { padding: 26px 20px; }
    .claim-card h1, .verify-card h1 { font-size: 23px; }
    .kv-grid { grid-template-columns: 1fr; }
    .result-head { flex-direction: column; }
    .btn-row .btn { width: 100%; }
    .claim-success { padding: 32px 20px; }
    .btn-add-file, .btn-remove-file { width: 38px; height: 38px; font-size: 18px; }
    .top .d-flex.gap-3 { gap: 10px !important; font-size: 12px; }
}

/* ---------- التجاوب ---------- */
@media (max-width: 991px) {
    :root { --nav-h: 64px; }
    .nav-wrap .navbar { position: relative; min-height: 64px; padding-block: 8px; padding-inline: 20px; }
    .navbar-brand img { width: 124px; }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        z-index: 5;
        padding: 6px 20px 20px;
        max-height: calc(100dvh - var(--nav-h) - 40px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(11, 48, 66, .12);
    }
    .nav-wrap .navbar-nav .nav-link { margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
    .nav-wrap .navbar-nav .nav-link::after { display: none; }
    .nav-wrap .navbar-nav .nav-link:last-child { border-bottom: 0; }
    .nav-cta { flex-direction: column; width: 100%; gap: 10px !important; margin-top: 16px; }
    .nav-cta .btn { width: 100%; padding: 12px; }

    .hero { padding: 48px 0 48px; }
    .fact-card { margin-top: 8px; }
    .section-head { align-items: start; flex-direction: column; }
    .journey, .contact { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .top .tag { display: none; }
    .hero h1 { font-size: 27px; }
    .hero-copy { font-size: 15px; }
    .hero-actions, .assurance { flex-direction: column; }
    .assurance { gap: 14px; }
    .hero-actions .btn { width: 100%; }
    .stat { min-height: 92px; border-bottom: 1px solid var(--line); padding-inline: 10px; }
    .stat b.stat-sm { font-size: 17px; letter-spacing: 0; }
    section.block { padding: 60px 0; }
    .section-head h2, .headline { font-size: 22px; }
    .platform { padding: 20px; }

    /* المنصات سلايدر أفقي على الجوال كما في الصفحة الحيّة */
    #platforms .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline-start: var(--bs-gutter-x, 24px);
        -webkit-overflow-scrolling: touch;
        padding-bottom: 14px;
        scrollbar-width: none;
    }
    #platforms .row::-webkit-scrollbar { display: none; }
    #platforms .row > [class*="col-"] { flex: 0 0 78%; max-width: 78%; scroll-snap-align: start; }

    .form { padding: 26px 20px; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .copyright .container { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
