/* =========================
   1) متغيرات الألوان والخطوط
   ========================= */
:root{
    /* ألوان الهوية */
    --brand-primary: #0E7C66;        /* أخضر زمردي */
    --brand-primary-600:#0B6957;
    --brand-cta:     #CC5A1E;        /* برتقالي محروق */
    --brand-cta-600: #B34918;
    --brand-cta-soft:#FFF4EC;        /* برتقالي فاتح جداً */

    /* ظل موحّد للبطاقات */
    --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);

    /* ألوان الواجهات - وضع فاتح */
    --bg:            #FFFFFF;
    --surface:       #F5F7FA;
    --text:          #111827;
    --text-muted:    #6B7280;
    --border:        #E5E7EB;

    /* أحجام ومسافات */
    --radius: .75rem;
    --container-w: 1200px;

    /* خطوط */
    --font-title: "IBM Plex Sans Arabic","Almarai",system-ui,"Segoe UI",Tahoma,Arial,sans-serif;
    --font-body:  "Almarai","IBM Plex Sans Arabic",system-ui,"Segoe UI",Tahoma,Arial,sans-serif;
    /* حدود ناعمة تُستخدم في البطاقات والفواصل */
    --border-soft: #eeeeee;

    /* خلفية ناعمة لعناصر إبرازية (مثل أرقام الخطوات) */
    --brand-cta-soft: rgba(233, 90, 40, 0.08);
}

/* وضع داكن تلقائي حسب النظام */
@media (prefers-color-scheme: dark){
    :root:not([data-theme]){
        --bg:#0B0F14;
        --surface:#111827;
        --text:#F3F4F6;
        --text-muted:#9CA3AF;
        --border:#1F2937;
        --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    }
}

/* تبديل يدوي للوضع الداكن/الفاتح */
:root[data-theme="dark"]{
    --bg:#0B0F14;
    --surface:#111827;
    --text:#F3F4F6;
    --text-muted:#9CA3AF;
    --border:#1F2937;
    --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    --border-soft: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"]{
    --bg:#FFFFFF;
    --surface:#F5F7FA;
    --text:#111827;
    --text-muted:#6B7280;
    --border:#E5E7EB;
}

/* ==============
   2) أساسيات عامة
   ============== */
html { font-size: 16px; }
html[dir="rtl"] body { direction: rtl; }

body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body), sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,*::before,*::after{ box-sizing: border-box; }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; height:auto; display:block; }

/* حاوية ومقاطع */
.container{
    width: min(96%, var(--container-w));
    margin-inline: auto;
}
.section{
    padding-block: clamp(2rem, 5vw, 4rem);
}

/* ===============
   3) Grid Helpers
   =============== */
.grid{
    display:grid;
    gap: clamp(1rem, 3vw, 1.5rem);
}
.cols-1{ grid-template-columns: 1fr; }
.cols-2{ grid-template-columns: 1fr; }
.cols-3{ grid-template-columns: 1fr; }
@media (min-width: 768px){
    .cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ===========
   4) أزرار
   =========== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    padding:.85rem 1.15rem;
    border-radius: var(--radius);
    font-weight:600;
    border:1px solid transparent;
    cursor:pointer;
    transition: background .2s ease, color .2s ease,
    border-color .2s ease, box-shadow .2s ease;
}
.btn-cta{
    background:var(--brand-cta);
    color:#fff;
}
.btn-cta:hover{
    background:var(--brand-cta-600);
}
.btn-outline{
    background:#fff;
    color:var(--brand-primary);
    border-color:var(--brand-primary);
    border-width:2px;
}
.btn-outline:hover{
    background:color-mix(in srgb, var(--brand-primary) 10%, #ffffff);
}

/* ===========
   5) الهيدر
   =========== */
.header{
    position:sticky;
    inset-block-start:0;
    background: var(--bg);
    border-bottom:1px solid var(--border);
    z-index:50;
}
.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:.75rem 0;
    gap:1rem;
}
.nav .logo{
    display:flex;
    align-items:center;
    color:var(--brand-primary);
    text-decoration:none;
}

/* صورة شعار التطبيق في الهيدر */
.logo-img{
    display:block;
    height:64px;
    max-width:180px;
}

@media (max-width:480px){
    .logo-img{
        height:32px;
    }
}

.nav a.link{
    color: var(--text);
    font-weight:500;
    opacity:.9;
}
.nav a.link:hover{ opacity:1; }

.theme-toggle{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.5rem .7rem;
    border:1px solid var(--border);
    border-radius:.65rem;
    background: var(--surface);
    cursor:pointer;
    color: var(--text);
}
:root[data-theme="dark"] .theme-toggle{
    background:#020617;
}

/* ===========
   6) Badges
   =========== */
.badge-strip{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem 1.25rem;
    align-items:center;
}
.badge{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding:.35rem .6rem;
    border:1px dashed var(--border);
    border-radius:.5rem;
    color:#111827;
    background:#fff;
}
.badge svg{
    width:20px;
    height:20px;
    stroke: currentColor;
}

:root[data-theme="dark"] .badge{
    background:#111827;
    color:#E5E7EB;
    border-color:#374151;
}
@media (prefers-color-scheme: dark){
    :root:not([data-theme]) .badge{
        background:#111827;
        color:#E5E7EB;
        border-color:#374151;
    }
}

/* ===========
   7) بطاقات
   =========== */
.card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding:1rem;
}

/* جميع البطاقات تستخدم نفس الظل */
.card,
.hero-card,
.comparison-card,
.testimonial-card{
    box-shadow: var(--card-shadow);
}

/* ===========
   8) Hero
   =========== */
.hero{
    padding-block: clamp(3rem, 7vw, 5rem);
}
.hero-grid{
    align-items: center;
}
.hero-title{
    font-family: var(--font-title), sans-serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    margin: 0 0 .75rem;
}
.hero-subtitle{
    font-size: 1.02rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

/* شعارات VaydaERP + LAC داخل الـ Hero */
.hero-brand{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-bottom: 1rem;
}

.hero-logo-app{
    height: 40px;
    max-width: 220px;
}

.hero-brand-by{
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.hero-brand-by-text{
    white-space: nowrap;
}

.hero-logo-company{
    height: 26px;
    max-width: 180px;
    opacity: .95;
}

@media (max-width: 480px){
    .hero-logo-app{
        height: 34px;
    }
    .hero-logo-company{
        height: 22px;
    }
}

.hero-pill{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding:.3rem 1rem;
    border-radius:999px;
    background:var(--brand-cta-soft);
    color:var(--brand-cta-600);
    font-size:.95rem;
    margin-top:.5rem;
    margin-bottom:.85rem;
}
.hero-pill strong{ font-weight:600; }
.hero-pill .icon{ font-size:1rem; }

.hero-cta{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    align-items:center;
    margin-top:1.25rem;
}
.hero-cta .btn-cta{
    min-width: 210px;
    justify-content:center;
}

.hero-badges{ margin-top:1rem; }

.hero-note{
    margin-top:.9rem;
    font-size:.95rem;
    color:var(--text-muted);
}

.hero-visual{
    display:flex;
    justify-content:center;
}
.hero-card{
    max-width: 420px;
    border-radius: 1rem;
}

/* استجابة للموبايل */
@media (width < 768px) {
    .hero{
        padding-block: 2.25rem;
    }
    .hero-grid{
        gap: 2rem;
    }
}

/* ===========
   9) Footer
   =========== */
.footer-grid{
    display:flex;
    flex-wrap:wrap;
    gap:2rem;
    justify-content:space-between;
    padding-block:2.25rem 1.75rem;
}
.footer-column strong{
    display:block;
    margin-bottom:.5rem;
}
.footer-column ul{
    list-style:none;
    margin:0;
    padding:0;
}
.footer-column li{
    margin-bottom:.35rem;
}
.footer-column a{
    color:var(--text-muted);
    font-size:.9rem;
}
.footer-column a:hover{
    color:var(--brand-primary);
}

.footer-bottom{
    border-top:1px solid var(--border);
    padding-block:1.75rem 2.5rem;
}
.footer-badges{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem 1.25rem;
    justify-content:center;
}
.footer-badges .badge{
    background: transparent;              /* بدون خلفية */
    border: 0;                            /* بدون إطار */
    padding: .15rem .4rem;                /* أنحف قليلاً */
    font-size: .8rem;                     /* أصغر قليلاً */
    color: var(--text-muted);             /* رمادي أنعم */
    opacity: 0.9;
}

.footer-note{
    margin-top:1rem;
    color:var(--text-muted);
    font-size:.9rem;
    text-align:center;
}

.footer-brand{
    margin-top:1.25rem;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:.5rem;
    font-size:.9rem;
    color:var(--text-muted);
}

.footer-logo-company{
    height:52px;
    max-width:180px;
    opacity:.95;
    /* تجعل الأبيض يندمج مع الخلفية وتُبقي لون الشعار */
    mix-blend-mode: multiply;
}

@media (max-width:480px){
    .footer-brand{
        flex-direction:column;
        text-align:center;
    }
}

/* ===========================
   10) Section Headers عامة
=========================== */
.section-header{
    max-width: 720px;
    margin-inline:auto;
    margin-bottom:2rem;
}
.section-header--center{
    text-align:center;
}
.section-header--left{
    text-align:right;
}
.section-header h2{
    font-family: var(--font-title), sans-serif;
    font-weight:700;
    font-size:1.9rem;
    margin:0 0 .75rem;
}
.section-header p{
    font-size:1.02rem;
    color:var(--text-muted);
    margin:0;
}

/* ===========================
   11) قسم المقارنة / Pain Points
=========================== */

.section-pain{
    background:#020617;
    color:#F9FAFB;
}
.section-pain .section-header p{
    color:#CBD5F5;
}

.comparison-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:1.5rem;
    max-width:960px;
    margin:0 auto;
}
@media (max-width:900px){
    .comparison-grid{
        grid-template-columns: 1fr;
    }
}

.comparison-card{
    position:relative;
    border-radius:14px;
    padding:1.75rem 1.75rem 1.75rem 1.5rem;
    background:#020D27;
    overflow:hidden;
}
.comparison-card::before{
    content:"";
    position:absolute;
    inset-block:0;
    inset-inline-end:0;
    width:6px;
    border-radius:14px 0 0 14px;
}
.comparison-card--bad::before{ background:#F97373; }
.comparison-card--good::before{ background:#22C55E; }

.pill{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    padding:.25rem .7rem;
    border-radius:999px;
    font-size:.85rem;
    font-weight:600;
}
.pill--danger{
    background:rgba(248,113,113,.08);
    color:#FCA5A5;
}
.pill--success{
    background:rgba(34,197,94,.08);
    color:#BBF7D0;
}

/* قوائم */
.list{
    list-style:none;
    margin:0;
    padding:0;
}
.list--bullets li{
    position:relative;
    padding-inline-end:1.2rem;
    margin-bottom:.4rem;
    font-size:.95rem;
    color:#E5E7EB;
    line-height:1.7;
}
.list--bullets li::before{
    content:"•";
    position:absolute;
    inset-inline-end:0;
    top:.1rem;
    font-size:1.1rem;
}

/* Pain في الوضع الداكن (already dark لكن لثبات السلوك) */
:root[data-theme="dark"] .section-pain{
    background:#020617;
}
@media (prefers-color-scheme: dark){
    :root:not([data-theme]) .section-pain{
        background:#020617;
    }
}

/* ===========================
   12) قسم المخزون / Stock
=========================== */

.section-stock{
    background:#F9FAFB;
}
/* وضع داكن لقسم المخزون */
:root[data-theme="dark"] .section-stock{
    background:#020617;
}

:root[data-theme="dark"] .section-stock .section-header p{
    color:#E5E7EB;
}

:root[data-theme="dark"] .section-stock .list--check li{
    color:#E5E7EB;
}

:root[data-theme="dark"] .section-stock .list--check li::before{
    color:#22C55E; /* لون ✓ أوضح على الخلفية الداكنة */
}

.list--check li{
    position:relative;
    padding-inline-start:1.6rem;
    padding-inline-end:0;
    margin-bottom:.5rem;
    font-size:.95rem;
    line-height:1.7;
}
.list--check li::before{
    content:"✓";
    position:absolute;
    inset-inline-start:0;
    inset-inline-end:auto;
    top:.1rem;
    font-size:.9rem;
    font-weight:700;
    color:var(--brand-primary);
}

/* لمن يعتمد على تفضيل النظام بدون data-theme */
@media (prefers-color-scheme: dark){
    :root:not([data-theme]) .section-stock{
        background:#020617;
    }
    :root:not([data-theme]) .section-stock .section-header p{
        color:#E5E7EB;
    }
    :root:not([data-theme]) .section-stock .list--check li{
        color:#E5E7EB;
    }
    :root:not([data-theme]) .section-stock .list--check li::before{
        color:#22C55E;
    }
}
.stock-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr);
    gap:2.5rem;
    align-items:center;
}
@media (max-width:900px){
    .stock-grid{
        grid-template-columns:1fr;
    }
}

.stock-card img{
    display:block;
    max-width:100%;
    height:auto;
    border-radius:16px;
}

.stock-text .section-header{
    text-align:right;
    margin-bottom:1.25rem;
}

/* قائمة بعلامة ✓ */
.list--check{
    list-style:none;
    margin:0;
    padding:0;
}
.list--check li{
    position:relative;
    padding-inline-end:1.6rem;
    margin-bottom:.5rem;
    font-size:.95rem;
    line-height:1.7;
}
.list--check li::before{
    content:"✓";
    position:absolute;
    inset-inline-end:0;
    top:.1rem;
    font-size:.9rem;
    font-weight:700;
    color:var(--brand-primary);
}

/* ===========================
   13) قسم الشهادات / Testimonials
=========================== */

.section-testimonials{
    background:#F3F4F6;
}

.testimonials-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:1.5rem;
}
@media (max-width:992px){
    .testimonials-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}
@media (max-width:640px){
    .testimonials-grid{
        grid-template-columns:1fr;
    }
}

.testimonial-card{
    background:#FFFFFF;
    border-radius:14px;
    padding:1.5rem 1.5rem 1.75rem;
    box-shadow:var(--card-shadow);
    text-align:right;
    transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.testimonial-header{
    display:flex;
    gap:.75rem;
    align-items:center;
    justify-content:flex-end;
    margin-bottom:.75rem;
}

.testimonial-avatar{
    width:32px;
    height:32px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:.9rem;
    background:rgba(14,124,102,.1);
    color:#047857;
    margin-inline-start:auto;
    margin-inline-end:0;
}

.testimonial-name{
    font-weight:600;
}
.testimonial-role{
    font-size:.85rem;
    color:var(--text-muted);
}
.testimonial-text{
    font-size:.95rem;
    line-height:1.7;
    margin-top:.35rem;
}
.testimonial-meta{
    margin-top:.75rem;
    font-size:.85rem;
    color:var(--text-muted);
}
.testimonial-note{
    margin-top:1.5rem;
    font-size:.85rem;
    color:var(--text-muted);
    text-align:center;
}

/* وضع داكن للشهادات */
:root[data-theme="dark"] .section-testimonials{
    background:#020617;
}
:root[data-theme="dark"] .testimonial-card{
    background:#111827;
    box-shadow:0 14px 40px rgba(0,0,0,.65);
}
@media (prefers-color-scheme: dark){
    :root:not([data-theme]) .section-testimonials{
        background:#020617;
    }
    :root:not([data-theme]) .testimonial-card{
        background:#111827;
        box-shadow:0 14px 40px rgba(0,0,0,.65);
    }
}

/* ===========================
   Pricing + FAQ
=========================== */

.section-pricing{
    background: var(--surface);
}

.section-pricing .section-header-center{
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

/* تخطيط البطاقة + الـFAQ */
.pricing-layout{
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 960px){
    .pricing-layout{
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

/* بطاقة التسعير */
.pricing-card{
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.pricing-pill{
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--brand-cta-soft);
    color: var(--brand-cta-600);
    margin-bottom: 0.9rem;
}

.pricing-price{
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.pricing-amount{
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-title), sans-serif;
}

.pricing-period{
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-note{
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-divider{
    height: 1px;
    background: var(--border);
    margin: 0.9rem 0 1rem;
}

.pricing-annual-label{
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.3rem;
}

.pricing-annual-row{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.pricing-annual-sublabel{
    color: var(--text-muted);
}

.pricing-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.pricing-secondary{
    font-size: 0.9rem;
}

.pricing-card .pricing-list li{
    position: relative;
    padding-inline-start: 1.4rem;  /* مساحة من جهة اليمين */
    padding-inline-end: 0;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.pricing-card .pricing-list li::before{
    content: "✓";
    position: absolute;
    inset-inline-start: 0;         /* ضع العلامة في بداية السطر (يمين) */
    inset-inline-end: auto;
    top: 0.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.pricing-vat-note{
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-title{
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.faq-items{
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border);
    padding: 0.9rem 1rem;
}

.faq-item{
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child{
    border-bottom: none;
}

.faq-item summary{
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-inline-end: 1.3rem;
}

.faq-item summary::-webkit-details-marker{
    display: none;
}

.faq-item summary::after{
    content: "＋";
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-item[open] summary::after{
    content: "－";
    color: var(--brand-primary);
}

.faq-item p{
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* وضع داكن للتسعير + FAQ */
:root[data-theme="dark"] .section-pricing{
    background: #020617;
}

:root[data-theme="dark"] .pricing-card{
    background: #020d27;
    box-shadow: 0 18px 45px rgba(0,0,0,.75);
}

:root[data-theme="dark"] .faq-items{
    background: rgba(15, 23, 42, 0.7);
    border-color: #1F2937;
}

@media (prefers-color-scheme: dark){
    :root:not([data-theme]) .section-pricing{
        background: #020617;
    }
    :root:not([data-theme]) .pricing-card{
        background: #020d27;
        box-shadow: 0 18px 45px rgba(0,0,0,.75);
    }
    :root:not([data-theme]) .faq-items{
        background: rgba(15, 23, 42, 0.7);
        border-color: #1F2937;
    }
}

/* صفحات قانونية (سياسة الخصوصية / الشروط) */
.legal-page{
    max-width: 860px;
    margin-inline: auto;
}

.legal-title{
    font-family: var(--font-title), sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.legal-intro{
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.legal-heading{
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 .5rem;
}

.legal-list{
    margin: 0 0 1rem;
    padding-inline-start: 1.2rem;
    padding-inline-end: 0;
}

.legal-list li{
    margin-bottom: .4rem;
    font-size: .95rem;
    line-height: 1.7;
}

.legal-disclaimer{
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* نماذج التسجيل / Signup */
.signup-card{
    max-width: 780px;
    margin: 0 auto;
    border-radius: 1rem;
}

.form-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

@media (max-width: 768px){
    .form-grid{
        grid-template-columns: 1fr;
    }
}

.form-field{
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.form-field label{
    font-size: .9rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea{
    padding: .55rem .75rem;
    border-radius: .6rem;
    border: 1px solid var(--border);
    background: #ffffff;
    font: inherit;
}

/* وضع داكن للنموذج */
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea{
    background: #020617;
    border-color: #1F2937;
    color: var(--text);
}

.signup-actions{
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
}

.signup-note{
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--text-muted);
}

/* حقل ملاحظة صغيرة تحت المدخل */
.field-hint{
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

/* شبكة الموديولات في الخطوة الثالثة */
.modules-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}

@media (max-width: 768px){
    .modules-grid{
        grid-template-columns: 1fr;
    }
}

.module-option{
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .75rem .85rem;
    border-radius: .85rem;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.module-option input[type="checkbox"]{
    align-self: flex-start;
    width: 18px;
    height: 18px;
}

.module-title{
    font-size: .95rem;
    font-weight: 600;
}

.module-desc{
    font-size: .85rem;
    color: var(--text-muted);
}

:root[data-theme="dark"] .module-option{
    background: #020617;
    border-color: #1F2937;
}

/* ============ Legal Pages (Privacy + Terms) ============ */

/* حاوية أضيق للصفحات القانونية */
.container--narrow {
    max-width: 900px;
}

/* الكارت التمهيدي في أعلى الصفحة */
.intro-card {
    margin-bottom: 2rem;
    border-inline-start: 5px solid var(--brand-primary);
}

/* الصندوق الرئيسي للمحتوى القانوني */
.legal-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* كل قسم داخل الصفحة القانونية */
.legal-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-section p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* قائمة منسّقة بنقطة ملوّنة – تُستخدم في Privacy و Terms */
.list-styled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-styled li {
    position: relative;
    padding-inline-start: 1.5rem; /* مهم: نفس جهة الـ bullet (inline-start) */
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.list-styled li::before {
    content: "•";
    color: var(--brand-cta);
    font-weight: bold;
    position: absolute;
    inset-inline-start: 0; /* بداية السطر (يمين في العربية) */
    font-size: 1.2rem;
    line-height: 1;
}

/* وضع داكن للصفحات القانونية */
[data-theme="dark"] .legal-content {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .legal-section {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ############################################### */

.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-visuals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
}

/* تنسيق المعلومات القانونية */
.legal-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.03); /* خلفية خفيفة جداً */
    padding: 0.35rem 1rem;
    border-radius: 50px; /* شكل كبسولة */
    border: 1px solid rgba(0,0,0,0.05);
}

.legal-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* تمييز سنة التأسيس بلون خفيف */
.highlight-year {
    color: var(--brand-primary);
    font-weight: 700;
}

.separator {
    color: #ccc;
    font-size: 0.8rem;
}

.location-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
}

/* إخفاء الأيقونات التعبيرية واستبدالها إذا كنت تستخدم مكتبة أيقونات، أو اتركها */
.legal-item i {
    font-style: normal;
    opacity: 0.7;
}

/* ######### */
.section-trust {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-trust .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.trust-card {
    padding: 1.75rem;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.trust-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* وضع داكن */
[data-theme="dark"] .trust-card {
    background: var(--surface);
}

/* ===== Hero Steps Card ===== */

.hero-steps-card {
    padding: 1.75rem 1.75rem 1.5rem;
}

.hero-steps-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* قائمة الخطوات مرقمة بشكل أنيق */
.hero-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    counter-reset: heroSteps;
}

.hero-steps-list li {
    position: relative;
    padding-inline-start: 2.5rem; /* مسافة للرقم الدائري في الـ RTL */
    margin-bottom: 1rem;
}

.hero-steps-list li::before {
    counter-increment: heroSteps;
    content: counter(heroSteps);
    position: absolute;
    inset-inline-start: 0;         /* بداية السطر حسب اتجاه اللغة */
    top: 0.15rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-cta-soft, rgba(233, 90, 40, 0.08));
    color: var(--brand-cta);
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-steps-list h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    color: var(--text);
}

.hero-steps-list p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-steps-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-soft, #eee);
    padding-top: 0.75rem;
}

/* وضع داكن */
[data-theme="dark"] .hero-steps-card {
    background: var(--surface);
}

/* ================= Header Styling ================= */

/* 1. الحاوية الرئيسية للهيدر */
.site-header {
    position: sticky; /* يلتصق بالأعلى */
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9); /* شفافية */
    backdrop-filter: blur(12px); /* تأثير ضبابي حديث */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-block: 0.75rem;
    transition: all 0.3s ease;
}

/* الوضع الداكن للهيدر */
[data-theme="dark"] .site-header {
    background-color: rgba(11, 15, 20, 0.9);
    border-bottom-color: rgba(255,255,255,0.05);
}

/* 2. توزيع العناصر (Flexbox) */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* توزيع: يمين - وسط - يسار */
}

/* 3. الشعار */
.logo-img {
    height: 40px; /* حجم ثابت ومناسب */
    width: auto;
}

/* 4. الروابط (Navigation) */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-block: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary);
}

/* تأثير خط تحت الرابط عند الهوفر */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 5. منطقة الأزرار */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* زر الثيم (دائري وبسيط) */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.theme-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--surface);
}

/* زر الاشتراك المصغر */
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* ================= Mobile Responsiveness ================= */

/* إخفاء القائمة في الجوال */
@media (max-width: 992px) {
    .d-none-mobile {
        display: none;
    }

    .mobile-menu-btn {
        display: flex; /* يظهر زر القائمة فقط في الجوال */
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 0.25rem;
    }
}

@media (min-width: 993px) {
    .mobile-menu-btn {
        display: none; /* إخفاء زر القائمة في الكمبيوتر */
    }
}
