/* =========================================================
   نظام التصميم العام للمنصة
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --forest-900: #0B3D2E;
    --forest-800: #0F4A38;
    --forest-700: #146356;
    --forest-600: #1B7A67;
    --mint-50:   #F3FAF5;
    --mint-100:  #E3F3E8;
    --gold-500:  #D4A24C;
    --gold-600:  #B9853A;
    --ink-900:   #121815;
    --ink-600:   #4B5B54;
    --line:      #DCE8E1;
    --white:     #FFFFFF;
    --danger:    #C24545;
    --success:   #1F9D5A;

    --font-display: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--white);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--forest-900);
}

a { text-decoration: none; }

.text-gold   { color: var(--gold-500) !important; }
.bg-forest   { background: var(--forest-900) !important; }
.bg-mint     { background: var(--mint-50) !important; }
.text-forest { color: var(--forest-900) !important; }

/* ---------- زر أساسي ---------- */
.btn-brand {
    background: var(--forest-900);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.9rem;
    font-weight: 700;
    font-family: var(--font-display);
    transition: transform .15s ease, background .2s ease;
}
.btn-brand:hover { background: var(--forest-700); color: var(--white); transform: translateY(-2px); }

.btn-gold {
    background: var(--gold-500);
    color: var(--forest-900);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.9rem;
    font-weight: 800;
    font-family: var(--font-display);
    transition: transform .15s ease, background .2s ease;
}
.btn-gold:hover { background: var(--gold-600); color: var(--forest-900); transform: translateY(-2px); }

.btn-outline-brand {
    background: transparent;
    color: var(--forest-900);
    border: 2px solid var(--forest-900);
    border-radius: 10px;
    padding: 0.75rem 1.7rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.btn-outline-brand:hover { background: var(--forest-900); color: var(--white); }

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 999;
}
.site-nav .logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--forest-900);
}
.site-nav .logo span { color: var(--gold-500); }
.site-nav .nav-link {
    font-weight: 600;
    color: var(--ink-900) !important;
    margin: 0 .6rem;
}
.site-nav .nav-link:hover { color: var(--forest-700) !important; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1200px 600px at 85% -10%, #14634622, transparent),
                linear-gradient(180deg, var(--mint-50) 0%, var(--white) 70%);
    padding: 5.5rem 0 4rem;
    overflow: hidden;
}
.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--mint-100);
    color: var(--forest-700);
    font-weight: 700;
    font-size: .85rem;
    padding: .45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.25;
    margin-bottom: 1.1rem;
}
.hero p.lead { color: var(--ink-600); font-size: 1.15rem; }

/* ---------- بطاقة حاسبة الربح (العنصر المميز) ---------- */
.profit-card {
    background: var(--forest-900);
    border-radius: 22px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 30px 60px -25px rgba(11,61,46,.55);
    position: relative;
}
.profit-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, var(--gold-500), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.profit-card .row-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.profit-card .row-line:last-child { border-bottom: none; }
.profit-card .label { color: #BFE3D3; font-size: .95rem; }
.profit-card .value { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.profit-card .value.gold { color: var(--gold-500); font-size: 1.6rem; }

.profit-card input[type=range] {
    width: 100%;
    accent-color: var(--gold-500);
}

/* ---------- خطوات العمل ---------- */
.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(11,61,46,.25); }
.step-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--mint-100);
    -webkit-text-stroke: 1.5px var(--forest-700);
    line-height: 1;
    margin-bottom: .8rem;
}
.step-card h5 { margin-bottom: .5rem; }
.step-card p { color: var(--ink-600); font-size: .95rem; margin: 0; }

/* ---------- بطاقات المنتجات ---------- */
.product-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 20px 40px -22px rgba(11,61,46,.3); transform: translateY(-4px); }
.product-card .img-wrap {
    aspect-ratio: 1/1;
    background: var(--mint-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1.1rem; }
.product-card .price-tag {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--forest-900);
}

/* ---------- طرق الدفع ---------- */
.pay-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
}
.pay-card .icon-badge {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.accordion-button {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--forest-900);
}
.accordion-button:not(.collapsed) {
    background: var(--mint-100);
    color: var(--forest-900);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--line); }

/* ---------- CTA ختامي ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--forest-900), var(--forest-700));
    border-radius: 26px;
    padding: 3.2rem 2rem;
    color: var(--white);
    text-align: center;
}
.cta-band h2 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #C7D6CE; padding: 3rem 0 1.5rem; }
.site-footer a { color: #C7D6CE; }
.site-footer a:hover { color: var(--gold-500); }

/* ---------- عام: بطاقات ونماذج المصادقة ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--forest-900), var(--forest-700));
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.5);
}
.auth-card .form-control {
    border-radius: 10px;
    padding: .7rem 1rem;
    border: 1.5px solid var(--line);
}
.auth-card .form-control:focus {
    border-color: var(--forest-700);
    box-shadow: 0 0 0 .2rem rgba(20,99,86,.15);
}
.auth-card label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
