/* ============================================================
   كاشير برو — تصميم الموقع التعريفي وصفحات السياسات
   Font: IBM Plex Sans Arabic ONLY
   Palette: White + Deep Maroon (#6B0F1A)
   ============================================================ */
:root {
    --brand: #6B0F1A;
    --brand-dark: #4A0812;
    --brand-light: #8F2A3A;
    --brand-soft: #FBF5F5;
    --brand-outline: #EDE3E3;
    --ink: #1A1A1A;
    --muted: #6B6570;
    --line: #EEE8E8;
    --bg: #F7F5F5;
    --white: #FFFFFF;
    --radius: 18px;
    --shadow-sm: 0 4px 18px rgba(74, 8, 18, .06);
    --shadow-md: 0 18px 45px rgba(74, 8, 18, .12);
    --shadow-lg: 0 30px 70px rgba(74, 8, 18, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* أيقونات Font Awesome تحتفظ بخطها */
.fa-solid, .fas, .fa-regular, .far, .fa-brands, .fab, .fa {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}
.fa-solid, .fas { font-weight: 900 !important; }
.fa-regular, .far { font-weight: 400 !important; }
.fa-brands, .fab { font-family: 'Font Awesome 6 Brands' !important; font-weight: 400 !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4, h5 { line-height: 1.35; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(28px, 4.4vw, 52px); }
h2 { font-size: clamp(22px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { color: var(--muted); }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; top: -60px; right: 16px; z-index: 999;
    background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px; font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header, header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container, header .container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 72px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand, .logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 19px; color: var(--brand); letter-spacing: -.2px;
}
.brand-mark, .logo-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 6px 16px rgba(107, 15, 26, .28);
}
.brand-mark-img {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: block;
    box-shadow: 0 6px 16px rgba(107, 15, 26, .28);
}
.site-header nav, header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-header nav a, header nav a {
    padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.site-header nav a:hover, header nav a:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-outline, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
    border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
    font-family: inherit; text-align: center; line-height: 1.3;
}
.btn-primary, .btn.btn-primary {
    background: var(--brand); color: #fff !important; border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(107, 15, 26, .24);
}
.btn-primary:hover, .btn.btn-primary:hover {
    background: var(--brand-dark); color: #fff !important; transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(107, 15, 26, .3);
}
.btn-outline, .btn.btn-outline {
    background: #fff; color: var(--brand) !important; border-color: var(--brand-outline);
}
.btn-outline:hover, .btn.btn-outline:hover {
    border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--ink) !important; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand) !important; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 32px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #4A0812 0%, #6B0F1A 55%, #8F2A3A 100%);
    color: #fff; padding: clamp(48px, 9vw, 104px) 0 clamp(80px, 11vw, 120px);
    border-radius: 0 0 40px 40px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px; top: -220px; left: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 68%);
}
.hero::after {
    width: 400px; height: 400px; bottom: -180px; right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 18px; letter-spacing: -.5px; }
.hero p { color: rgba(255, 255, 255, .88); font-size: clamp(15px, 1.9vw, 18px); max-width: 660px; margin-bottom: 28px; }
.hero .btn-primary { background: #fff; color: var(--brand) !important; border-color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.hero .btn-primary:hover { background: #FFF6F7; color: var(--brand) !important; }
.hero .btn-outline { background: rgba(255, 255, 255, .1); color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge, .hero .badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
    color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    margin-bottom: 18px;
}

/* ---------- Sections ---------- */
section { padding: clamp(44px, 7vw, 88px) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 15.5px; }
.eyebrow {
    display: inline-block; color: var(--brand); font-weight: 800; font-size: 12.5px;
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px;
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card, .feature-card, .step-card, .faq-item {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .feature-card:hover, .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-outline); }
.card h3, .feature-card h3, .step-card h3 { margin-bottom: 10px; color: var(--ink); }
.card p, .feature-card p, .step-card p { font-size: 14.5px; margin: 0; }
.card-icon, .feature-icon, .step-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand); font-size: 21px; margin-bottom: 16px;
    border: 1px solid var(--brand-outline);
}
.step-num {
    width: 34px; height: 34px; border-radius: 999px; background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 14px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.stat {
    text-align: center; padding: 24px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--brand); line-height: 1.15; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- Tables (policies) ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table-wrap, .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
th { background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; padding: 13px 14px; text-align: right; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FCFAFA; }

/* ---------- Lists ---------- */
ul, ol { padding-inline-start: 22px; }
li { margin-bottom: 8px; color: var(--ink); font-size: 14.8px; }
li::marker { color: var(--brand); }

/* ---------- Policy page layout ---------- */
.policy-hero {
    background: linear-gradient(150deg, #4A0812 0%, #6B0F1A 100%);
    color: #fff; padding: clamp(40px, 6vw, 68px) 0 clamp(34px, 5vw, 52px);
    border-radius: 0 0 32px 32px;
}
.policy-hero h1 { color: #fff; margin-bottom: 10px; }
.policy-hero p { color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs i { font-size: 9px; opacity: .6; }

.policy-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.policy-body {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(24px, 4vw, 48px); margin-top: -28px; position: relative;
    box-shadow: var(--shadow-md);
}
.policy-body h2 {
    font-size: 21px; margin: 32px 0 12px; padding-top: 8px; color: var(--brand);
    display: flex; align-items: center; gap: 10px;
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 { font-size: 16.5px; margin: 22px 0 8px; color: var(--ink); }
.policy-body p { margin-bottom: 14px; font-size: 14.8px; color: #3F3A40; }
.policy-body ul, .policy-body ol { margin: 0 0 16px; }
.policy-body strong { color: var(--ink); font-weight: 800; }
.policy-body a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.policy-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.policy-body blockquote {
    border-inline-start: 4px solid var(--brand); background: var(--brand-soft);
    padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; color: #4A4550;
}
.policy-body code {
    background: #F3EFF0; color: var(--brand); padding: 2px 7px; border-radius: 6px; font-size: 13px;
}

/* ---------- TOC ---------- */
.toc {
    background: var(--brand-soft); border: 1px solid var(--brand-outline); border-radius: 14px;
    padding: 18px 22px; margin-bottom: 28px;
}
.toc strong { display: block; margin-bottom: 10px; color: var(--brand); font-size: 14px; }
.toc ol { margin: 0; padding-inline-start: 20px; }
.toc li { margin-bottom: 5px; font-size: 14px; }
.toc a { color: #4A4550; }
.toc a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
footer, .site-footer {
    background: #2A0A0E; color: rgba(255, 255, 255, .72);
    padding: clamp(36px, 5vw, 56px) 0 24px; margin-top: 60px;
}
footer a, .site-footer a { color: rgba(255, 255, 255, .82); }
footer a:hover, .site-footer a:hover { color: #fff; }
footer h4, .site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer ul, .site-footer ul { list-style: none; padding: 0; }
footer li, .site-footer li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 32px; padding-top: 18px;
    text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ---------- Forms ---------- */
.form-control, input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], select, textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107, 15, 26, .09); }
label { font-weight: 700; font-size: 13.5px; color: var(--ink); display: block; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; border: 1px solid var(--brand-outline); background: var(--brand-soft); color: #4A4550; }
.alert-info { border-color: #CFE3F7; background: #F0F7FE; color: #1E4E79; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 28px; }
.d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.align-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.text-brand { color: var(--brand); } .text-muted { color: var(--muted); }
.fw-bold { font-weight: 800; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .site-header .container, header .container { min-height: 64px; }
    .site-header nav a, header nav a { padding: 8px 11px; font-size: 13.5px; }
    section { padding: 42px 0; }
    .hero { border-radius: 0 0 28px 28px; }
}
@media (max-width: 767.98px) {
    .container { padding: 0 16px; }
    .site-header .container, header .container { flex-wrap: wrap; gap: 10px; }
    .site-header nav, header nav { width: 100%; justify-content: center; order: 3; gap: 2px; }
    .site-header nav a, header nav a { padding: 7px 10px; font-size: 12.5px; }
    .policy-body { padding: 22px 18px; border-radius: 16px; margin-top: -20px; }
    .policy-body h2 { font-size: 18px; }
    .policy-body p, li { font-size: 14px; }
    .grid { gap: 14px; }
    .card, .feature-card, .step-card { padding: 20px; }
    .btn, .btn-primary, .btn-outline { padding: 11px 20px; font-size: 14px; }
    .hero-actions .btn { flex: 1 1 100%; }
    table { min-width: 560px; }
    th, td { padding: 10px; font-size: 13px; }
}
@media (max-width: 479.98px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   أنماط مطابقة للكلاسات الفعلية في الصفحات
   ============================================================ */

/* --- Brand (اسم + سطر صغير) --- */
.brand span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-size: 9.5px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }

/* --- Header actions --- */
.header-actions { display: flex; align-items: center; gap: 9px; }
.nav-toggle {
    display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
    width: 42px; height: 42px; color: var(--brand); font-size: 17px; cursor: pointer;
    align-items: center; justify-content: center; flex-shrink: 0;
}
/* أزرار الدخول داخل قائمة الجوال (مخفية على الديسكتوب) */
.main-nav .nav-cta { display: none; }

/* --- Legal hero (صفحات السياسات) --- */
.legal-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #4A0812 0%, #6B0F1A 60%, #8F2A3A 100%);
    color: #fff; padding: clamp(38px, 6vw, 66px) 0 clamp(56px, 8vw, 84px);
    border-radius: 0 0 34px 34px;
}
.legal-hero::before {
    content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    top: -200px; left: -120px; background: radial-gradient(circle, rgba(255,255,255,.13) 0%, transparent 68%);
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero h1 { color: #fff; margin-bottom: 10px; }
.legal-hero > .container > p { color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 720px; margin-bottom: 14px; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 16px;
}
.breadcrumb a { color: #fff; font-weight: 600; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb i { font-size: 9px; opacity: .55; }

.meta-line {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff;
}

/* --- Legal layout --- */
.legal-wrap {
    display: grid; grid-template-columns: 280px 1fr; gap: 30px;
    max-width: 1180px; margin: -44px auto 0; position: relative; z-index: 3;
    padding-bottom: 20px;
}
.legal-toc {
    position: sticky; top: 90px; align-self: start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-sm); max-height: calc(100vh - 120px); overflow-y: auto;
}
.legal-toc h4 { font-size: 13.5px; color: var(--brand); margin-bottom: 12px; font-weight: 800; }
.legal-toc ol { margin: 0; padding-inline-start: 18px; }
.legal-toc li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.5; }
.legal-toc a { color: #4A4550; font-weight: 600; }
.legal-toc a:hover { color: var(--brand); }

.legal-body {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(22px, 3.4vw, 44px); box-shadow: var(--shadow-md);
    min-width: 0;
}
.legal-body section { padding: 0 0 6px; scroll-margin-top: 96px; }
.legal-body h2 {
    display: flex; align-items: center; gap: 11px;
    font-size: 20px; color: var(--brand); margin: 30px 0 12px;
}
.legal-body section:first-child h2 { margin-top: 0; }
.legal-body h2 .n {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.legal-body h3 { font-size: 16px; margin: 20px 0 8px; color: var(--ink); }
.legal-body p { margin-bottom: 13px; font-size: 14.8px; color: #3F3A40; }
.legal-body ul, .legal-body ol { margin: 0 0 15px; padding-inline-start: 22px; }
.legal-body li { font-size: 14.6px; color: #3F3A40; margin-bottom: 7px; }
.legal-body strong { color: var(--ink); font-weight: 800; }
.legal-body a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.note {
    border-inline-start: 4px solid var(--brand); background: var(--brand-soft);
    padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0;
    font-size: 14px; color: #4A4550; line-height: 1.8;
}
.note strong { color: var(--brand); }

.legal-table { min-width: 560px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; margin-bottom: 16px; }

.legal-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px;
    padding-top: 22px; border-top: 1px solid var(--line);
}

/* --- Landing: hero extras --- */
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px;
}
.hero .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.stat .ico {
    width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 auto 12px;
    border: 1px solid var(--brand-outline);
}

/* --- Steps --- */
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .step-num { flex-shrink: 0; margin-bottom: 0; }
.step h3 { margin-bottom: 6px; }

/* --- Policy cards (landing) --- */
.policy-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.policy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-outline); }
.policy-card .ico {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
    background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-outline);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.policy-card h3 { font-size: 15.5px; margin: 0 0 3px; }
.policy-card p { font-size: 13px; margin: 0; }
.policy-card .arrow { margin-inline-start: auto; color: var(--brand); opacity: .55; transition: transform .2s, opacity .2s; }
.policy-card:hover .arrow { opacity: 1; transform: translateX(-4px); }

/* --- Tags / pills --- */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-outline);
    padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
}

/* --- Footer grid --- */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-about p { font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .68); }
.footer-col h4 { margin-bottom: 13px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.footer-contact i { color: #D9A7B0; width: 16px; text-align: center; }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Responsive additions --- */
@media (max-width: 991.98px) {
    .legal-wrap { grid-template-columns: 1fr; gap: 18px; margin-top: -32px; }
    .legal-toc { position: static; max-height: none; order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-header .container, header .container { position: relative; flex-wrap: nowrap; gap: 10px; }
    .header-actions { display: none; }          /* الأزرار تنتقل داخل القائمة على الجوال */
    .nav-toggle { margin-inline-start: auto; }   /* الزر يلتصق بالطرف */
    .main-nav {
        display: none !important;
        position: absolute; top: 100%; right: 0; left: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 10px 14px 16px;
        flex-direction: column; align-items: stretch; gap: 2px;
        box-shadow: 0 18px 40px rgba(74, 8, 18, .14);
        z-index: 120;
        max-height: 70vh; overflow-y: auto;
    }
    .main-nav a {
        padding: 13px 14px; border-radius: 10px; text-align: right;
        font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line);
    }
    .main-nav a:last-of-type { border-bottom: 0; }
    .main-nav a:hover, .main-nav a:active { background: var(--brand-soft); color: var(--brand); }
    /* أزرار الدخول/التسجيل داخل القائمة على الجوال */
    .main-nav .nav-cta {
        display: none; margin-top: 10px; gap: 8px; flex-direction: column;
    }
    .main-nav .nav-cta .btn { width: 100%; }
    /* الحالة المفتوحة — نستهدف الـ header والـ nav معاً */
    header.nav-open .main-nav,
    .site-header.nav-open .main-nav,
    .main-nav.open { display: flex !important; animation: navDrop .22s ease; }
    header.nav-open .main-nav .nav-cta,
    .site-header.nav-open .main-nav .nav-cta { display: flex !important; }
    @keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

    /* 🖼️ محادثة واتساب (موبايل) */
    .chat-bubble { max-width: 88% !important; }
    .chat-flow { grid-template-columns: 1fr !important; }
}
@media (max-width: 575.98px) {
    .legal-wrap { margin-top: -26px; }
    .legal-body { padding: 20px 16px; }
    .legal-body h2 { font-size: 17px; gap: 9px; }
    .legal-body h2 .n { width: 26px; height: 26px; font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-actions .btn-outline { display: none; }
    .step { flex-direction: column; gap: 8px; }
}


/* ============================================================
   💬 محادثة واتساب + 🤖 المستشار الذكي
   ============================================================ */
.chat-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}
.chat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.chat-head {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-head.ai { background: linear-gradient(135deg, #4A0812, #8F2A3A); }
.chat-head .avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
    font-size: 19px; position: relative;
}
.chat-head .avatar .online {
    position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px;
    background: #25D366; border: 2px solid #075E54; border-radius: 50%;
}
.chat-head.ai .avatar .online { background: #FFD166; border-color: #4A0812; }
.chat-head .who { line-height: 1.35; }
.chat-head .who b { display: block; font-size: 15px; font-weight: 800; }
.chat-head .who span { font-size: 11.5px; opacity: .85; }

.chat-body {
    padding: 18px 16px;
    background: #ECE5DD;
    background-image: radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
    background-size: 18px 18px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 330px;
}
.chat-card.ai-card .chat-body { background: #F7F2F3; }

.chat-bubble {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    position: relative;
    word-break: break-word;
    animation: bubbleIn .32s ease both;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-bubble .time {
    display: block; font-size: 10px; color: #8a8a8a; text-align: left; margin-top: 4px;
}
.chat-bubble.customer {
    align-self: flex-start;
    background: #fff;
    border-top-right-radius: 4px;
}
.chat-bubble.bot {
    align-self: flex-end;
    background: #DCF8C6;
    border-top-left-radius: 4px;
}
.chat-card.ai-card .chat-bubble.bot { background: #FBF0F2; border: 1px solid #F0DDE1; }
.chat-card.ai-card .chat-bubble.customer { background: #fff; border: 1px solid #EEE8E8; }
.chat-bubble b { color: #075E54; }
.chat-card.ai-card .chat-bubble b { color: var(--brand); }

/* مؤشر الكتابة */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i {
    width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; display: inline-block;
    animation: typingDot 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* فقاعات النجاح */
.chat-bubble.success {
    background: #E7F6EC !important; border: 1px solid #BEE7C9 !important;
}
.chat-bubble.success b { color: #15803D !important; }

.chat-foot {
    padding: 10px 14px; background: #fff; border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted);
}
.chat-foot i { color: var(--brand); }

/* شارات المزايا تحت الشات */
.chat-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.chat-badges .tag { font-size: 12px; padding: 7px 14px; }

/* ============================================================
   ❓ الأسئلة الشائعة — تصميم أفضل
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--brand-outline); box-shadow: var(--shadow-md); }
.faq-item:hover { border-color: var(--brand-outline); }
.faq-q {
    width: 100%; text-align: right; background: transparent; border: 0; cursor: pointer;
    padding: 18px 20px; display: flex; align-items: center; gap: 14px;
    font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.faq-q .q-ico {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-outline);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.faq-q .q-text { flex: 1; }
.faq-q .chev {
    color: var(--brand); font-size: 13px; transition: transform .25s ease; flex-shrink: 0;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 480px; padding-bottom: 20px; }
.faq-a p { font-size: 14.5px; line-height: 1.9; margin: 0; color: #4A4550; }
.faq-a ul { margin: 10px 0 0; }
.faq-a li { font-size: 14px; }

/* ---------- Print ---------- */@media print {
    .site-header, header, footer, .site-footer, .hero-actions, .skip-link { display: none !important; }
    .policy-body { box-shadow: none; border: 0; margin-top: 0; padding: 0; }
    .policy-hero { background: #fff !important; color: #000 !important; border-radius: 0; padding: 0 0 16px; }
    .policy-hero h1, .policy-hero p, .crumbs, .crumbs a { color: #000 !important; }
    body { background: #fff; }
}
