/* ═══════════════════════════════════════════════════════════════════
   صفحات الشروحات — جلد SALES: ابيض ورمادي فاتح، اخضر زمردي، بطاقات بحدود.
   ═══════════════════════════════════════════════════════════════════ */
.gd {
    --g: #10b981; --gd: #059669; --gp: #047857;
    --mint: #ecfdf5; --mintb: #a7f3d0;
    --ink: #0f172a; --mut: #64748b; --line: #e5e7eb; --bg: #f8fafc;
    background: var(--bg); color: var(--ink);
    font-family: Cairo, system-ui, -apple-system, sans-serif;
}
.gd * { box-sizing: border-box; }
.gd-wrap { max-inline-size: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }

/* ── الترويسة ── */
.gd-hero { background: linear-gradient(150deg, #f0fdf9 0%, #ecfdf5 45%, #e8f7f1 100%); padding-block: 2.6rem 3rem; border-block-end: 1px solid #dcfce7; text-align: center; }
.gd-hero .gd-crumbs { justify-content: center; }
.gd-hero .gd-hero__meta { justify-content: center; }
.gd-hero .gd-hero__cta { justify-content: center; }
.gd-hero--index { padding-block: 3.2rem 3.4rem; text-align: center; }
.gd-crumbs { font-size: .8rem; color: var(--mut); display: flex; align-items: center; gap: .4rem; margin-block-end: 1rem; flex-wrap: wrap; }
.gd-crumbs a { color: var(--gd); text-decoration: none; }
.gd-crumbs a:hover { text-decoration: underline; }
.gd-crumbs i { font-size: .7rem; color: #94a3b8; }
.gd-badge { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--mintb); color: var(--gp); border-radius: 999px; padding: .32rem .9rem; font-size: .84rem; font-weight: 700; }
.gd-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.32; margin: 1rem 0 .7rem; letter-spacing: -.02em; }
.gd-hero h1 b { color: var(--g); }
.gd-hero > .gd-wrap > p { color: #475569; font-size: 1.02rem; line-height: 1.85; max-inline-size: 62ch; margin: 0 auto; }
.gd-hero--index p { margin-inline: auto; }
.gd-hero__meta { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-block-start: 1.2rem; }
.gd-hero__meta span { font-size: .84rem; color: var(--mut); display: inline-flex; align-items: center; gap: .35rem; }
.gd-hero__meta i { color: var(--gd); }
.gd-hero__cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-block-start: 1.5rem; }
.gd-hero--index .gd-hero__cta, .gd-end .gd-hero__cta { justify-content: center; }

.gd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; block-size: 48px; padding-inline: 1.5rem; border-radius: 12px; font-weight: 800; font-size: .98rem; text-decoration: none; transition: transform .15s, background .15s; }
.gd-btn--go { background: var(--g); color: #fff; box-shadow: 0 8px 22px rgba(16,185,129,.3); }
.gd-btn--go:hover { background: var(--gd); color: #fff; transform: translateY(-1px); }
.gd-btn--ghost { background: #fff; color: var(--gp); border: 1px solid var(--mintb); }
.gd-btn--ghost:hover { background: var(--mint); color: var(--gp); }

/* ── دورة العمل ── */
.gd-flow { background: #fff; padding-block: 2.6rem; border-block-end: 1px solid var(--line); }
.gd-h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .4rem; text-align: center; }
.gd-sub { color: var(--mut); text-align: center; margin: 0 0 1.8rem; font-size: .92rem; }
.gd-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; counter-reset: c; }
.gd-chain a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .16s, border-color .16s, box-shadow .16s; block-size: 100%; }
.gd-chain a:hover { transform: translateY(-3px); border-color: var(--mintb); box-shadow: 0 10px 26px rgba(6,95,70,.1); }
.gd-chain__n { inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--mint); border: 1px solid var(--mintb); color: var(--gp); font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.gd-chain i { font-size: 1.15rem; color: var(--gd); }
.gd-chain b { font-size: .84rem; font-weight: 800; line-height: 1.35; }
.gd-chain a > span:last-child { font-size: .72rem; color: var(--mut); line-height: 1.45; }

/* ── الجسم ── */
.gd-body { padding-block: 2.5rem 3.5rem; }
.gd-cols { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }

.gd-toc { position: sticky; inset-block-start: 90px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.gd-toc > b { display: block; font-size: .9rem; margin-block-end: .7rem; }
.gd-toc ol { margin: 0; padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.gd-toc a { font-size: .84rem; color: #475569; text-decoration: none; line-height: 1.5; }
.gd-toc a:hover { color: var(--gd); }
.gd-toc__cta { display: block; margin-block-start: 1rem; text-align: center; background: var(--mint); border: 1px solid var(--mintb); color: var(--gp); border-radius: 10px; padding: .55rem; font-size: .84rem; font-weight: 800; text-decoration: none; }
.gd-toc__cta:hover { background: #d1fae5; color: var(--gp); }

.gd-steps { display: flex; flex-direction: column; gap: 1.6rem; min-inline-size: 0; }
.gd-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; scroll-margin-block-start: 90px; }
.gd-step__h { display: flex; gap: .9rem; align-items: flex-start; margin-block-end: 1.2rem; }
.gd-step__n { inline-size: 42px; block-size: 42px; flex: none; border-radius: 12px; background: linear-gradient(135deg, var(--g), var(--gp)); color: #fff; font-size: 1.1rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.gd-step__h h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .25rem; line-height: 1.4; }
.gd-step__h p { margin: 0; color: var(--mut); font-size: .9rem; line-height: 1.7; }

/* ── لقطة الشاشة ── */
.gd-shot { margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.gd-shot__bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: #f1f5f9; border-block-end: 1px solid var(--line); }
.gd-shot__dots { display: inline-flex; gap: .28rem; }
.gd-shot__dots i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: #cbd5e1; }
.gd-shot__url { font-size: .74rem; color: var(--mut); direction: ltr; font-family: ui-monospace, monospace; display: inline-flex; align-items: center; gap: .3rem; }
.gd-shot img { display: block; inline-size: 100%; block-size: auto; }
.gd-shot__fallback { display: none; }
.gd-shot.is-missing img { display: none; }
.gd-shot.is-missing .gd-shot__fallback {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    padding: 3rem 1rem; background: repeating-linear-gradient(135deg, #f8fafc 0 12px, #f1f5f9 12px 24px); color: var(--mut);
}
.gd-shot__fallback i { font-size: 2rem; color: var(--mintb); }
.gd-shot__fallback b { color: var(--ink); font-size: .95rem; }
.gd-shot__fallback span { font-size: .78rem; font-family: ui-monospace, monospace; direction: ltr; }
.gd-shot figcaption { padding: .65rem .9rem; font-size: .8rem; color: var(--mut); background: #fff; border-block-start: 1px solid var(--line); line-height: 1.6; }

/* ── بطاقتا لماذا وكيف ── */
.gd-step__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .9rem; }
.gd-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.gd-card b { display: flex; align-items: center; gap: .4rem; font-size: .88rem; margin-block-end: .55rem; }
.gd-card--why { background: #fffbeb; border-color: #fde68a; }
.gd-card--why b { color: #92400e; }
.gd-card--why p { margin: 0; font-size: .86rem; line-height: 1.85; color: #78350f; }
.gd-card--how { background: #f8fafc; }
.gd-card--how b { color: var(--gp); }
.gd-card--how ol { margin: 0; padding-inline-start: 1.15rem; display: flex; flex-direction: column; gap: .45rem; }
.gd-card--how li { font-size: .86rem; line-height: 1.75; color: #334155; }
.gd-card--how li::marker { color: var(--g); font-weight: 800; }

.gd-tip { display: flex; gap: .7rem; align-items: flex-start; margin-block-start: .9rem; padding: .85rem 1rem; background: var(--mint); border: 1px solid var(--mintb); border-radius: 12px; }
.gd-tip i { color: var(--gp); font-size: 1.05rem; margin-block-start: .1rem; }
.gd-tip b { display: block; font-size: .84rem; color: var(--gp); margin-block-end: .15rem; }
.gd-tip span { font-size: .85rem; color: #065f46; line-height: 1.75; }

.gd-screens { margin-block-start: 1rem; padding-block-start: .9rem; border-block-start: 1px dashed var(--line); }
.gd-screens > b { display: block; font-size: .8rem; color: var(--mut); margin-block-end: .5rem; }
.gd-screens__row { display: flex; flex-wrap: wrap; gap: .4rem; }
.gd-chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .28rem .7rem; font-size: .79rem; color: #334155; }
.gd-chip i { color: var(--gd); }
.gd-chip code { font-size: .7rem; color: #94a3b8; direction: ltr; background: #f8fafc; border-radius: 5px; padding: 0 .3rem; }

/* ── الاسئلة ── */
.gd-faq { display: flex; flex-direction: column; gap: .5rem; }
.gd-faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.gd-faq summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; font-size: .9rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "+"; color: var(--g); font-size: 1.15rem; font-weight: 800; }
.gd-faq details[open] summary::after { content: "−"; }
.gd-faq details[open] summary { border-block-end: 1px solid var(--line); background: #f8fafc; }
.gd-faq p { margin: 0; padding: .9rem 1rem; font-size: .87rem; line-height: 1.9; color: #475569; }

.gd-end { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; }
.gd-end h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .5rem; }
.gd-end p { color: var(--mut); margin: 0 auto; max-inline-size: 56ch; line-height: 1.8; font-size: .95rem; }

/* ── فهرس الشروحات ── */
.gd-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gd-gcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--ink); transition: transform .16s, border-color .16s, box-shadow .16s; }
.gd-gcard:not(.is-soon):hover { transform: translateY(-4px); border-color: var(--mintb); box-shadow: 0 14px 34px rgba(6,95,70,.1); color: var(--ink); }
.gd-gcard__ic { inline-size: 48px; block-size: 48px; border-radius: 14px; background: var(--mint); border: 1px solid var(--mintb); color: var(--gp); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.gd-gcard b { font-size: 1.02rem; font-weight: 800; line-height: 1.45; }
.gd-gcard__d { font-size: .85rem; color: var(--mut); line-height: 1.75; flex: 1; }
.gd-gcard__go { color: var(--gd); font-weight: 800; font-size: .86rem; display: inline-flex; align-items: center; gap: .3rem; }
.gd-gcard.is-soon { opacity: .72; }
.gd-gcard__soon { align-self: flex-start; font-size: .74rem; font-weight: 800; color: var(--mut); background: #f1f5f9; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }

/* ── الاستجابة ── */
@media (max-width: 1080px) {
    .gd-chain { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .gd-cols { grid-template-columns: 1fr; }
    .gd-toc { position: static; order: -1; }
    .gd-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); }
    .gd-step__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .gd-chain { grid-template-columns: repeat(2, 1fr); }
    .gd-step { padding: 1.1rem; }
    .gd-toc ol { grid-template-columns: 1fr; }
    .gd-btn { inline-size: 100%; }
}

/* ═══ صفحات الأنظمة ═══ */
.sy { background: var(--bg, #f8fafc); color: #0f172a; font-family: Cairo, system-ui, sans-serif; }
.sy * { box-sizing: border-box; }
.sy-for { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.1rem 1.3rem; }
.sy-for > b { display: block; font-size: .95rem; margin-block-end: .7rem; }
.sy-for__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sy-for__row span { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; color: #334155; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 999px; padding: .3rem .8rem; }
.sy-for__row i { color: #10b981; }

.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.sy-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .16s, border-color .16s, box-shadow .16s; }
.sy-card:hover { transform: translateY(-3px); border-color: #a7f3d0; box-shadow: 0 12px 30px rgba(6,95,70,.1); }
.sy-card__ic { inline-size: 46px; block-size: 46px; border-radius: 13px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.sy-card b { font-size: .98rem; font-weight: 800; }
.sy-card > span:last-child { font-size: .86rem; color: #64748b; line-height: 1.8; }

.sy-out { margin-block-start: 1.5rem; background: linear-gradient(140deg, #ecfdf5, #f0fdf9); border: 1px solid #a7f3d0; border-radius: 16px; padding: 1.3rem 1.4rem; }
.sy-out > b { display: flex; align-items: center; gap: .45rem; font-size: 1rem; color: #047857; margin-block-end: .7rem; }
.sy-out ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sy-out li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; color: #065f46; line-height: 1.8; }
.sy-out li i { color: #10b981; margin-block-start: .2rem; }
