/* =================================================================
   order.css: مسار «اطلب عرضًا» (باقتك ← الإضافات ← نشاطك ← المراجعة)
   يبني على styles.css (الألوان والأزرار والحقول ومربع الاختيار) ولا يضيف هوية جديدة.
   ألوان الحالات: النعناعي للثابت والمشمول، والرمادي لـ«يبدأ من»، والكهرماني لما يحتاج تقديرًا.
   الحالة تُكتب نصًا دائمًا، فلا يعتمد الفهم على اللون وحده.
   ================================================================= */
:root {
  --est: #FFC857;
  --est-soft: rgba(255, 200, 87, 0.09);
  --est-line: rgba(255, 200, 87, 0.34);
}

.ord-hero .lead { max-width: 40rem; }
/* على الجوال يبدأ المسار نفسه في أول شاشة: عنوان أقصر ووصف أصغر */
@media (max-width: 640px) {
  .ord-hero { padding-block: 22px 12px; }
  .ord-hero h1 { font-size: var(--fs-title); line-height: 1.35; } /* 22 أكتوبر: كان 1.7rem، فحجمه حجم عناوين الأقسام لا العرض */
  .ord-hero .lead { margin-top: 8px; font-size: var(--fs-body); line-height: 1.75; }
  .ord-hero .st-direct { margin-top: 4px; font-size: var(--fs-small); }
}
/* 30 أكتوبر (الجزء 6.1، قرار صاحب الموقع): شارة الطمأنة تحت السطر، والافتتاحية في عمود المسار نفسه على الكمبيوتر */
.ord-trust { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--text); font-size: var(--fs-small); line-height: 1.6; }
.ord-trust [data-icon] { flex: none; width: 16px; height: 16px; color: var(--accent); }
.ord-hero .container { max-width: calc(780px + var(--gutter) * 2); }
.ord { padding-bottom: clamp(48px, 8vw, 96px); }

/* ---------- مؤشر المراحل: أسماء المراحل الفعلية، بلا «الخطوة 2 من 3» ---------- */
.ord-progress { margin: 0 0 18px; }
.ord-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ord-step { position: relative; min-width: 0; }
.ord-step-btn, .ord-step.is-current { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; text-align: start; }
button.ord-step-btn { cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
button.ord-step-btn:hover { border-color: var(--line-strong); color: var(--text); }
.ord-step.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.ord-step.is-next .ord-step-btn { opacity: 0.6; }
.ord-step-dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ord-step-dot svg { width: 15px; height: 15px; }
.ord-step.is-done .ord-step-dot, .ord-step.is-current .ord-step-dot { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ord-step-text { display: grid; min-width: 0; line-height: 1.35; }
.ord-step-label { font-weight: 600; font-size: 0.9rem; }
.ord-step-val { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* الجزء 6.1 (بمهارتي apple-design وui-taste): على الجوال نقاط صغيرة يصلها خط يمتلئ حتى المرحلة الحالية، وتحت كل نقطة اسم مرحلتها
   (الأسماء باقية، بلا «الخطوة 2 من 5»). المكتملة تُضغط للرجوع إليها، ولها رد فعل لحظة اللمس */
@media (max-width: 640px) {
  .ord-progress { margin-bottom: 14px; }
  .ord-progress ol { gap: 0; }
  .ord-step-btn, .ord-step.is-current { flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 48px; padding: 2px 0; border: 0; border-radius: 0; background: none; text-align: center; }
  .ord-step.is-current { background: none; }
  .ord-step:not(:last-child)::before { content: ""; position: absolute; top: 12px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line-strong); }
  .ord-step.is-done::before { background: var(--accent); }
  .ord-step-dot { position: relative; z-index: 1; width: 22px; height: 22px; background: var(--bg); font-size: 0.72rem; transition: scale 0.1s ease-out; }
  .ord-step.is-current .ord-step-dot { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
  button.ord-step-btn:active .ord-step-dot { scale: 0.88; }
  .ord-step-text { justify-items: center; }
  .ord-step-label { font-size: 0.76rem; font-weight: 500; color: var(--text-2); }
  .ord-step.is-current .ord-step-label { color: var(--accent); font-weight: 700; }
  .ord-step.is-next .ord-step-btn { opacity: 0.55; }
  .ord-step-val { display: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .ord-step-dot { transition: none; } button.ord-step-btn:active .ord-step-dot { scale: none; } }

/* ---------- التنبيهات وسطر الإجراء ---------- */
.ord-notices { display: grid; gap: 10px; margin-bottom: 18px; }
.ord-notices:empty { display: none; }
.ord-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius-field); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-body); line-height: 1.75; }
.ord-notice b { color: var(--text); font-weight: 600; }
.ord-notice [data-icon] { margin-top: 0.3em; color: var(--accent); }
.ord-notice--warn { border-color: var(--est-line); background: var(--est-soft); }
.ord-notice--warn [data-icon] { color: var(--est); }
.ord-ref-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.ord-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-radius: var(--radius-field); background: var(--accent-soft); border: 1px solid rgba(61, 220, 151, 0.4); color: var(--text); font-size: var(--fs-body); line-height: 1.7; }
.ord-flash:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.ord-flash-text { flex: 1 1 16rem; }

.ord-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 6px; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-body); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; border-radius: 8px; }
.ord-link:hover { background: var(--accent-soft); }

/* ---------- التخطيط: عمود المسار وملخص جانبي داخل حدود الصفحة ---------- */
.ord-grid { display: grid; gap: 22px; align-items: start; }
.ord-main { min-width: 0; }
.ord-aside { order: -1; min-width: 0; }
/* في المراجعة الملخص هو الصفحة نفسها، فلا نكرره */
.ord[data-stage="review"] .ord-aside { display: none; }
@media (min-width: 980px) {
  .ord-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 40px; }
  .ord-aside { order: 0; position: sticky; top: calc(var(--header-h) + 20px); }
  .ord[data-stage="package"] .ord-grid, .ord[data-stage="review"] .ord-grid { grid-template-columns: minmax(0, 1fr); }
  .ord[data-stage="review"] .ord-main { max-width: 820px; }
  .ord[data-stage="package"] .ord-aside { display: none; }
}
.ord-stage { display: grid; gap: 18px; }
.ord-stage > div:empty { display: none; }
.ord-h { font-size: var(--fs-title); line-height: 1.4; scroll-margin-top: calc(var(--header-h) + 90px); }
.ord-h:focus { outline: none; }
.ord-sub { color: var(--text-2); margin-top: -8px; max-width: 42rem; }
.ord-fine { color: var(--text-3); font-size: var(--fs-small); }

/* ---------- 1) الباقات ---------- */
.ord-pkgs { display: grid; gap: 14px; }
@media (min-width: 900px) { .ord-pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.ord-pkg { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 24px); border-radius: var(--radius-card); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.ord-pkg.is-strong { border-color: rgba(61, 220, 151, 0.5); }
.ord-pkg.is-picked { border-color: var(--accent); background: linear-gradient(180deg, rgba(61, 220, 151, 0.08), var(--surface) 55%); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.35); }
.ord-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-small); font-weight: 700; }
.ord-badge--soft { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ord-badge--on [data-icon] { width: 16px; height: 16px; }
.ord-pkg-name { font-size: 1.4rem; }
/* 19 أكتوبر: صف مختصر، الاسم والسعر في سطر واحد والتفاصيل مطوية */
.ord-pkg { gap: 10px; }
.ord-pkg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ord-pkg-head .ord-pkg-name { margin: 0; }
.ord-pkg-head .ord-pkg-price strong { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); }
.ord-fold > .ord-pkg-result { padding: 0 14px 10px; }
.ord-fold > .ord-facts { margin: 0 14px 10px; }
/* الجوال: الباقات تحت بعضها، فالمرشّحة (من نموذج أو من أسئلة الرئيسية) أولًا */
@media (max-width: 899px) { .ord-pkg.is-reco { order: -1; } }
.ord-pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.ord-pkg-price strong { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ord-pkg-price span { color: var(--text-2); font-size: 0.9rem; }
.ord-pkg-line { color: var(--text-2); font-size: 0.94rem; line-height: 1.75; }
.ord-pkg-line b { color: var(--text); font-weight: 600; }
.ord-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.ord-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.ord-facts dt { color: var(--text-2); }
.ord-facts dd { margin: 0; font-weight: 500; text-align: end; }
.ord-fold { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.ord-fold summary { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: var(--fs-body); color: var(--text-2); }
.ord-fold summary:hover { color: var(--text); }
.ord-fold[open] summary { color: var(--text); }
.ord-fold .scope-list { padding: 0 14px 10px; font-size: var(--fs-body); }
.ord-fold > p { padding: 0 14px 12px; color: var(--text-2); font-size: var(--fs-small); line-height: 1.75; }
.ord-excl { padding: 0 14px 12px; color: var(--text-2); font-size: var(--fs-small); }
.ord-excl b { color: var(--text); }
.ord-pkg-actions { margin-top: auto; display: grid; gap: 6px; justify-items: center; padding-top: 4px; }
.ord-pkg-actions .btn { width: 100%; }
.ord-detail { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); }

.ord-alt { display: grid; gap: 10px; margin-top: 6px; }
.ord-alt-h { font-size: var(--fs-body); }
.ord-alt-list { display: grid; gap: 10px; }
@media (min-width: 760px) { .ord-alt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ord-alt-btn { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 64px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.12s var(--ease-out); }
.ord-alt-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.ord-alt-btn:active { transform: scale(0.98); }
.ord-alt-btn [data-icon] { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
/* سؤال مباشر قبل اختيار الباقة، وتخطي الإضافات من أعلى مرحلتها */
.ord-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--text-2); }
.ord-ask[hidden], .ord-skip[hidden] { display: none; }
.ord-ask-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ord-ask-btn [data-icon] { width: 18px; height: 18px; color: var(--accent); }
.ord-skip { margin: -4px 0 14px; }
.ord-skip .ord-link { min-height: 44px; }
.ord-alt-btn span { display: grid; gap: 2px; }
.ord-alt-btn b { font-weight: 600; font-size: var(--fs-body); line-height: 1.55; }
.ord-alt-btn small { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.ord-alt-btn.is-on, .ord-alt-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ord-alt-btn.is-reco { border-color: rgba(61, 220, 151, 0.55); }
.ord-tick { color: var(--accent); font-weight: 500; font-size: var(--fs-small); }

.ord-unsure, .ord-change { display: grid; gap: 16px; padding: clamp(16px, 2.6vw, 24px); border-radius: var(--radius-card); border: 1px solid var(--accent); background: var(--surface); }
.ord-unsure:focus, .ord-change:focus { outline: none; }
.ord-change { border-color: var(--est-line); background: linear-gradient(180deg, var(--est-soft), var(--surface) 70%); scroll-margin-top: calc(var(--header-h) + 16px); }
.ord-unsure-h, .ord-change-h { font-size: var(--fs-body); }
.ord-unsure .field legend, .ord-dec legend { font-weight: 500; margin-bottom: 8px; line-height: 1.7; }
.ord-effects { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--text-2); }
.ord-effects li::marker { color: var(--est); }
.ord-change-total { color: var(--text); font-weight: 500; }
.ord-change-total:empty { display: none; }
.ord-change-actions, .ord-reco-actions, .ord-upgrade-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ord-reco { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.ord-reco p { line-height: 1.8; }
.ord-reco .btn-ghost { white-space: normal; text-align: center; }

/* ---------- 2) الإضافات ---------- */
.ord-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: var(--radius-field); background: var(--accent-soft); color: var(--text); line-height: 1.75; font-size: var(--fs-body); }
.ord-confirm:empty { display: none; }
.ord-confirm [data-icon] { margin-top: 0.3em; color: var(--accent); }
.ord-confirm .ord-link { min-height: 0; padding: 0 4px; }
.ord-q { padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.ord-q legend { margin-bottom: 8px; font-weight: 500; }
.ord-list-h { color: var(--text-3); font-size: var(--fs-small); font-weight: 600; margin: 4px 0 -4px; }
.ord-addons { display: grid; gap: 12px; }
.ord-addon { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; scroll-margin-top: calc(var(--header-h) + 80px); }
.ord-addon.is-on { border-color: var(--accent); background: linear-gradient(180deg, rgba(61, 220, 151, 0.07), var(--surface) 60%); }
.ord-addon-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: flex-start; }
.ord-addon-text { flex: 1 1 14rem; min-width: 0; }
.ord-addon-name { font-size: var(--fs-body); line-height: 1.55; }
.ord-addon-tech { color: var(--text-3); font-size: var(--fs-small); line-height: 1.6; margin-top: 2px; }
.ord-addon-benefit { color: var(--text-2); font-size: var(--fs-body); line-height: 1.75; }
.ord-addon-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-3); font-size: var(--fs-small); line-height: 1.6; }
.ord-addon-meta span { display: inline-flex; gap: 6px; align-items: flex-start; }
.ord-addon-meta [data-icon] { margin-top: 0.15em; }
.ord-fold--small summary { min-height: 40px; font-size: var(--fs-small); }

.ord-price { flex: none; display: grid; justify-items: end; gap: 0; margin: 0; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); text-align: end; line-height: 1.35; }
.ord-price b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ord-price small { color: var(--text-3); font-size: var(--fs-small); }
.ord-kind { font-size: var(--fs-small); font-weight: 600; color: var(--text-3); }
.ord-price--fixed { border-color: rgba(61, 220, 151, 0.35); }
.ord-price--fixed b { color: var(--accent); }
.ord-price--from b { color: var(--text); }
.ord-price--est { border-style: dashed; border-color: var(--est-line); background: var(--est-soft); }
.ord-price--est .ord-kind, .ord-price--est b { color: var(--est); }
.ord-price--monthly { border-style: dashed; }
.ord-kind--inc { display: inline-block; margin-inline-start: 6px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-small); }
@media (max-width: 420px) { .ord-price { justify-items: start; text-align: start; } }

.ord-opts { display: grid; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.ord-opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.ord-opt legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--text); }
.ord-opts .choices, .ord-inc .choices { gap: 8px; }
.ord-opts .choice input + span, .ord-inc .choice input + span, .ord-unsure .choice input + span, .ord-change .choice input + span, .ord-q .choice input + span { min-height: 44px; padding: 6px 14px; font-size: var(--fs-small); line-height: 1.5; border-radius: 14px; text-align: start; }
.ord-hint { color: var(--text-3); font-size: var(--fs-small); line-height: 1.7; }
.ord-inorder { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: var(--fs-small); line-height: 1.75; color: var(--text-2); }
.ord-inorder b { color: var(--text); }
.ord-checkline { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; line-height: 1.6; font-size: var(--fs-body); }
.ord-checkline input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.ord-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-stepper-label { flex: 1 1 100%; font-size: 0.9rem; font-weight: 500; }
@media (min-width: 520px) { .ord-stepper-label { flex: 0 1 auto; margin-inline-end: 8px; } }
.ord-step-b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.2s, transform 0.12s var(--ease-out); }
.ord-step-b:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.ord-step-b:active:not(:disabled) { transform: scale(0.94); }
.ord-step-b:disabled { opacity: 0.35; cursor: not-allowed; }
.ord-stepper-v { min-width: 2.2em; text-align: center; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.ord-addon-foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.ord-addon-foot > .ord-fold, .ord-foot-gap { flex: 1 1 12rem; min-width: 0; }
.ord-addon-foot > .ord-fold:not([open]) { border-color: transparent; background: none; }
.ord-addon-foot > .ord-fold:not([open]) summary { padding-inline: 0; }
.ord-addon-foot .ord-state { min-height: 40px; }
.ord-addon-foot .ord-origin { align-self: center; }
.ord-state { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-weight: 600; font-size: var(--fs-small); }
.ord-state--off { color: var(--text-3); font-weight: 400; }
.ord-origin { color: var(--text-3); font-size: var(--fs-small); }
.ord-toggle { min-width: 9.5rem; }
.ord-toggle [data-icon] { width: 18px; height: 18px; }

.ord-included { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(61, 220, 151, 0.45); background: var(--accent-soft); }
.ord-included-h { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-body); line-height: 1.6; }
.ord-included-h [data-icon] { margin-top: 0.25em; color: var(--accent); }
.ord-inc { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(61, 220, 151, 0.25); }

.ord-upgrade { display: grid; gap: 12px; padding: clamp(16px, 2.6vw, 22px); border-radius: var(--radius-card); border: 1px solid var(--accent); background: linear-gradient(160deg, rgba(61, 220, 151, 0.12), var(--surface) 55%); }
.ord-upgrade-h { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-body); line-height: 1.55; }
.ord-upgrade-h [data-icon] { margin-top: 0.2em; color: var(--accent); }
.ord-upgrade-why { color: var(--text-2); line-height: 1.8; }
.ord-cmp { display: grid; gap: 10px; }
@media (min-width: 600px) { .ord-cmp { grid-template-columns: 1fr 1fr; } }
.ord-cmp-col { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.ord-cmp-col--to { border-color: rgba(61, 220, 151, 0.5); }
.ord-cmp-col h4 { margin: 0; font-size: var(--fs-small); color: var(--text-2); font-weight: 600; }
.ord-cmp-num { display: grid; margin: 4px 0 6px; font-family: var(--font-display); font-size: var(--fs-sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.ord-cmp-num small { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; color: var(--text-2); }
.ord-cmp-col ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.ord-cmp-diff { font-weight: 600; }
.ord-cmp-list { color: var(--text-2); font-size: var(--fs-body); line-height: 1.75; }
.ord-cmp-list b { color: var(--text); }

.ord-more { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ord-more > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 52px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.ord-more-n { color: var(--text-3); font-weight: 400; font-size: var(--fs-small); }
.ord-more[open] > summary { border-bottom: 1px solid var(--line); }
.ord-more > .ord-addons { padding: 14px; }
.ord-more .ord-addon { background: var(--bg); }

.ord-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.ord-nav .btn-lg { flex: 1 1 auto; max-width: 22rem; }
@media (max-width: 480px) { .ord-nav .btn-ghost { order: 2; } .ord-nav .btn-lg { flex-basis: 100%; max-width: none; } }

/* شريط الجوال: السعر المعروف والخطوة التالية، فوق المساحة الآمنة ولا يغطي المحتوى (padding للصفحة بقدره) */
.ord-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line-strong); background: rgba(18, 25, 53, 0.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.ord-bar[hidden] { display: none; }
.ord-bar-total { flex: 1; display: grid; min-width: 0; margin: 0; line-height: 1.35; }
.ord-bar-total b { font-variant-numeric: tabular-nums; font-size: var(--fs-body); }
.ord-bar-total small { color: var(--text-2); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-bar-next { flex: none; min-height: 48px; padding-inline: 18px; }
body.ord-has-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.ord-typing .ord-bar { display: none; }
@media (min-width: 980px) { .ord-bar { display: none !important; } body.ord-has-bar { padding-bottom: 0; } }
@media (prefers-reduced-transparency: reduce) { .ord-bar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- الملخص: جانبي على الكمبيوتر، قابل للطي على الجوال ---------- */
.ord-sumbox { border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); }
.ord-sum-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; }
.ord-sum-toggle::-webkit-details-marker { display: none; }
.ord-sum-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; margin-inline-start: auto; }
.ord-sumbox[open] .ord-sum-toggle::after { transform: translateY(2px) rotate(-135deg); }
.ord-sum-t1 { font-weight: 600; }
.ord-sum-t2 { color: var(--accent); font-size: var(--fs-small); }
.ord-sum { display: grid; gap: 12px; padding: 0 18px 18px; }
@media (min-width: 980px) {
  .ord-sum-toggle { display: none; }
  .ord-sum { padding-top: 18px; }
}
.ord-sum-h { font-size: var(--fs-body); }
.ord-sum-ref, .ord-sum-empty, .ord-sum-note, .ord-sum-sub { color: var(--text-2); font-size: var(--fs-small); line-height: 1.7; }
.ord-sum-ref b { color: var(--text); }
.ord-sum-base { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ord-sum-list, .ord-sum-tot { display: grid; margin: 0; }
.ord-sum-list > div, .ord-sum-tot > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; font-size: var(--fs-small); line-height: 1.6; }
.ord-sum-list dt { color: var(--text-2); }
.ord-sum-list dd, .ord-sum-tot dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.ord-sum-list .k-estimate dd, .ord-sum-tot .k-estimate dd { color: var(--est); }
.ord-sum-list .k-included dd { color: var(--accent); }
.ord-sum-tot { padding-top: 6px; border-top: 1px solid var(--line-strong); }
.ord-sum-tot .k-fixed dd, .ord-sum-tot .k-total dd { font-weight: 600; font-size: var(--fs-body); }
.ord-sum-tot .k-total dd { color: var(--accent); }
.ord-sum-tools { margin: -6px 0 0; }

/* ---------- 3) معلومات النشاط ---------- */
.ord-form { gap: 22px; }
.ord-optional > summary { font-weight: 500; }
.ord-optional-body { display: grid; gap: 20px; padding: 16px 18px; }
.ord-keep { color: var(--text-3); font-size: var(--fs-small); line-height: 1.7; }

/* ---------- 4) المراجعة ---------- */
/* v30: سطر مساعدة هادئ تحت زر واتساب، لا صندوق تحذير فوق الملخص */
.ord-unsent { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--text-2); font-size: var(--fs-small); line-height: 1.7; }
/* 28 أكتوبر (المرحلة 3): وعد الرد تحت زر الإرسال، وسطر «متجر موثّق» تحت صندوق الطمأنة (كما في ختام الرئيسية) */
.ord-reply { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--text); font-size: var(--fs-small); line-height: 1.7; }
.ord-reply [data-icon] { flex: none; width: 16px; height: 16px; margin-top: 0.3em; color: var(--accent); }
.verified-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; color: var(--text-2); font-size: var(--fs-small); }
.verified-line [data-icon] { flex: none; width: 18px; height: 18px; color: var(--accent); }
.verified-line .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: 4px; }
.ord-unsent [data-icon] { flex: none; margin-top: 0.25em; color: var(--text-3); }
.ord-review { display: grid; gap: 12px; }
.ord-rv { padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.ord-rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.ord-rv-head h3 { font-size: var(--fs-body); scroll-margin-top: calc(var(--header-h) + 20px); }
.ord-rv-head h3:focus { outline: none; }
.ord-edit { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 4px 10px; border: 0; border-radius: 10px; background: none; color: var(--accent); font: inherit; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ord-edit:hover { background: var(--accent-soft); }
.ord-rv-list { display: grid; margin: 6px 0 0; }
.ord-rv-list > div { display: grid; grid-template-columns: minmax(7em, 0.42fr) 1fr; gap: 2px 14px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ord-rv-list dt { color: var(--text-3); font-size: var(--fs-small); }
.ord-rv-list dd { margin: 0; overflow-wrap: anywhere; line-height: 1.75; }
/* 30 أكتوبر (الجزء 6.7، قرار صاحب الموقع): على الجوال كإعدادات الآيفون: العنوان في أول السطر والقيمة في آخره،
   والقيمة الطويلة (مثل وصف النشاط) تحت عنوانها */
@media (max-width: 420px) {
  .ord-rv-list > div { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding: 10px 0; }
  .ord-rv-list dd { text-align: end; }
  .ord-rv-list > div.is-long { grid-template-columns: 1fr; }
  .ord-rv-list > div.is-long dd { text-align: start; }
}
.ord-copy { margin: 10px 0 0; }
.ord-rv-plain { padding: 8px 0 2px; font-size: var(--fs-body); }
.ord-rv--cost { border-color: var(--line-strong); }
.ord-rv-list .k-fixed dd, .ord-rv-list .k-total dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.ord-rv-list .k-total dd { color: var(--accent); font-size: var(--fs-body); }
.ord-rv-list .k-estimate dd, .ord-rv-list .k-estimate dt { color: var(--est); }
.ord-rv-list .k-ext dd, .ord-rv-list .k-monthly dd, .ord-rv-list .k-final dd { color: var(--text-2); }
.ord-thumb { position: relative; margin: 10px 0 4px; max-width: 320px; }
.ord-thumb img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.ord-thumb figcaption { display: none; color: var(--text-3); font-size: var(--fs-small); }
.ord-thumb.is-broken img { display: none; }
.ord-thumb.is-broken figcaption { display: block; }
.ord-send { display: grid; gap: 10px; padding: clamp(16px, 2.6vw, 22px); border-radius: var(--radius-card); border: 1px solid var(--accent); background: var(--surface); }
.ord-send-actions { margin-top: 0; align-items: center; }
.ord-send-actions .btn-lg { white-space: normal; text-align: center; }
/* 26 أكتوبر: «أرسل الطلب لفريق نواة» أساسي وواتساب ثانٍ. السهم يشير لجهة الإرسال في العربية */
.ord-send-site svg { transform: scaleX(-1); }
/* الجزء 6.8: سطر تحت كل زر، ودائرة تدور مكان الأيقونة أثناء الإرسال، ومربع الخطأ */
.ord-send-opt { display: grid; justify-items: start; gap: 4px; }
.ord-send-opt:has(> #wa-link[hidden]) { display: none; }
.ord-send-cap { padding-inline: 8px; color: var(--text-3); font-size: var(--fs-small); }
.ord-send-site.is-busy [data-icon] { display: none; }
.ord-send-site.is-busy::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: ord-spin 0.7s linear infinite; }
@keyframes ord-spin { to { rotate: 360deg; } }
.ord-send-site:disabled { opacity: 0.85; cursor: progress; }
.ord-send-err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255, 138, 128, 0.45); border-radius: var(--radius-field); background: rgba(255, 138, 128, 0.08); color: var(--text); font-size: var(--fs-body); line-height: 1.7; }
.ord-send-err[hidden] { display: none; }
.ord-send-err [data-icon] { flex: none; margin-top: 0.3em; color: var(--danger); }
.ord-send-err p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .ord-send-site.is-busy::before { animation-duration: 2s; } }
.ord-send-hint { margin: 0; color: var(--text-2); font-size: var(--fs-small); line-height: 1.7; }
.ord-sent-link { margin: 0; }
.ord-fallback { color: var(--text-2); font-size: var(--fs-small); line-height: 1.75; }
.ord-message pre { margin: 0; padding: 14px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.8; max-height: 360px; overflow: auto; user-select: text; }
.ord-restart { margin: 0; }
.ord-after { padding-bottom: var(--section-space); }
.ord-after .info-card { max-width: 780px; margin-inline: auto; } /* بعرض عمود الخطوات وفي وسطه، لا مزاحًا عنه */

@media (prefers-reduced-motion: reduce) {
  /* حركات الدخول والوميض والعدّ عبر Web Animations في start.js، وتُتخطى هناك مع تقليل الحركة */
  .ord-alt-btn, .ord-step-b, .ord-sum-toggle::after { transition: none; }
}
@media (prefers-contrast: more) {
  .ord-addon, .ord-pkg, .ord-rv, .ord-step-btn { border-color: rgba(255, 255, 255, 0.5); }
}

/* ---------- المراجعة (21 أكتوبر، تجربة العميل): الإرسال أعلى التفاصيل ----------
   المجموع وزر واتساب أول ما يراه العميل في المراجعة، والتفاصيل تحتهما، وبقية أدوات الإرسال في الأسفل.
   على الجوال يظهر شريط واتساب الثابت فقط حين يخرج زر الأعلى من الشاشة، فلا يتكرر الزر أمامه */
.ord-send--top { margin-bottom: 18px; }
.ord-send-total { margin: 0; color: var(--text-2); }
.ord-send-total:empty { display: none; }
.ord-send-total b { color: var(--text); font-family: var(--font-display); font-size: var(--fs-sub); font-variant-numeric: tabular-nums; }
.ord-send--more { margin-top: 18px; border-color: var(--line); background: transparent; }
.ord-send-top-visible .ord-bar.is-send { display: none; }
.ord-bar.is-send .ord-bar-next { background: var(--accent); }

/* ---------- 21 أكتوبر: السلسلة الخفيفة ----------
   الإضافات أسطر بلمسة (الاسم والفائدة والسعر)، والمشمول شرائح، والمجموع والزر في شريط ثابت أسفل كل خطوة */
.ord-confirm { display: block; padding: 0; background: none; color: var(--text-2); font-size: var(--fs-body); }
.ord-included { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0; border: 0; background: none; }
.ord-included-h { display: inline; color: var(--text-2); font-size: var(--fs-small); }
.ord-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; border: 1px solid rgba(61, 220, 151, 0.4); background: var(--accent-soft); color: var(--text); font-size: var(--fs-small); line-height: 1.4; }
.ord-rows { gap: 8px; }
.ord-row { gap: 0; padding: 0; border-radius: 16px; }
.ord-row-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ord-row-btn:hover { background: rgba(170, 185, 255, 0.04); }
.ord-row-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ord-row-tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--text-3); color: var(--on-accent); transition: background-color 0.15s, border-color 0.15s; }
.ord-row-tick svg { width: 16px; height: 16px; }
.ord-row.is-on .ord-row-tick { border-color: var(--accent); background: var(--accent); }
.ord-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ord-row-text b { font-size: var(--fs-body); line-height: 1.5; }
.ord-row-text small { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.ord-row-price { flex: none; display: grid; justify-items: end; text-align: end; line-height: 1.35; }
.ord-row-price b { font-size: var(--fs-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-row-price small { color: var(--text-3); font-size: var(--fs-small); white-space: nowrap; }
.ord-row-price--est b { color: var(--text-2); }
.ord-row > .ord-origin, .ord-row > .ord-opts, .ord-row > .ord-row-note { margin: 0 16px 12px; }
.ord-row > .ord-opts { padding-top: 12px; }
.ord-row-note { display: flex; gap: 8px; align-items: flex-start; color: var(--text-3); font-size: var(--fs-small); line-height: 1.65; }
.ord-row-note [data-icon] { flex: none; margin-top: 0.2em; }
.ord-row > .ord-origin { color: var(--accent); font-size: var(--fs-small); }
.ord-more--quiet { border: 0; background: none; }
.ord-more--quiet > summary { min-height: 44px; padding: 6px 2px; color: var(--accent); }
.ord-more--quiet[open] > summary { border-bottom: 0; }
.ord-more--quiet > .ord-addons { padding: 4px 0 0; }
.ord-more--quiet .ord-addon { background: var(--surface); }
.ord-later { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); line-height: 1.7; }
.ord-later [data-icon] { flex: none; margin-top: 0.25em; color: var(--accent); }
@media (max-width: 420px) { .ord-row-btn { gap: 10px; padding-inline: 12px; } }

/* الشريط الثابت: المجموع حتى الآن، ثم «رجوع» والخطوة التالية */
.ord-nav { position: sticky; bottom: 0; z-index: 30; justify-content: space-between; gap: 10px 16px; margin-top: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(11, 16, 34, 0.94); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.ord-nav:empty { display: none; }
.ord-nav-total { display: grid; min-width: 0; margin: 0; line-height: 1.35; }
.ord-nav-total span { color: var(--text-3); font-size: var(--fs-small); }
.ord-nav-total b { font-size: var(--fs-sub); font-variant-numeric: tabular-nums; }
.ord-nav-total small { color: var(--text-2); font-size: var(--fs-small); }
.ord-nav-btns { display: flex; align-items: center; gap: 10px; }
.ord-nav .btn-lg { flex: none; max-width: none; }
.ord-stage .ord-row, .ord-stage .input, .ord-stage .textarea { scroll-margin-bottom: 120px; } .ord-stage .error-text { scroll-margin-bottom: 170px; }
.ord-typing .ord-nav { position: static; }
@media (max-width: 480px) {
  .ord-nav { margin-inline: -4px; padding-inline: 12px; }
  .ord-nav-btns { flex: 1 1 auto; justify-content: flex-end; }
  .ord-nav-btns .btn-ghost { order: 0; min-height: 48px; padding-inline: 12px; }
  .ord-nav-btns .btn-lg { flex: 0 1 auto; flex-basis: auto; min-height: 48px; padding-inline: 16px; }
}
@media (prefers-reduced-transparency: reduce) { .ord-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* 26 أكتوبر (ملاحظة صاحب الموقع على شاشة 1920): الشريط مصمم ليلتصق بأسفل شاشة الجوال (زوايا علوية وبلا حد سفلي).
   على الكمبيوتر الخطوة غالبًا أقصر من الشاشة، فيقف الشريط وسط الصفحة ويبدو مقطوعًا: نجعله بطاقة كاملة في مكانه */
@media (min-width: 980px) {
  .ord-nav { position: static; border-bottom: 1px solid var(--line-strong); border-radius: 18px; padding-bottom: 12px; margin-top: 16px; }
}
/* السلسلة على الجوال: الحلقة المكتملة تُظهر ما اخترته تحت اسمها، والشريط الثابت يغني عن صندوق الملخص */
@media (max-width: 640px) {
  .ord-step.is-done .ord-step-val { display: block; max-width: 100%; font-size: 0.7rem; }
}
@media (max-width: 979px) { .ord-aside { display: none; } }

/* ---------- 22 أكتوبر: «ماذا تحتاج؟» ----------
   بطاقات اختيار حقيقية (radio) لما تحتاجه ونشاطك، وحجم واحد كأزرار متجاورة، وخيارات بمربعات اختيار.
   العمود أضيق ووسط الصفحة بعد إزالة الملخص الجانبي (لا أسعار داخل الطلب) */
.ord-progress, .ord-notices, .ord-main { max-width: 780px; margin-inline: auto; }
.ord-main { display: block; }
.ord-cards { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ord-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ord-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 16px 16px 16px 40px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, scale 0.1s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.ord-card:hover { border-color: rgba(61, 220, 151, 0.5); }
.ord-card-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ord-card::after { content: ""; position: absolute; top: 14px; inset-inline-end: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.ord-card.is-on, .ord-card:has(.ord-card-in:checked) { border-color: var(--accent); background: rgba(61, 220, 151, 0.07); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.35); }
.ord-card.is-on::after, .ord-card:has(.ord-card-in:checked)::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23062A1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ord-card:has(.ord-card-in:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ord-card-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--accent); }
.ord-card.is-on .ord-card-ic, .ord-card:has(.ord-card-in:checked) .ord-card-ic { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ord-card-t { font-size: var(--fs-body); line-height: 1.5; }
.ord-card-l { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.ord-card-s { margin-top: 4px; color: var(--accent); font-size: var(--fs-small); line-height: 1.5; }
.ord-card--other { grid-column: 1 / -1; padding-block: 12px; }
.ord-cards--small .ord-card { padding-block: 12px; }
/* 30 أكتوبر (الجزء 6.2، قرار صاحب الموقع، بمهارتي apple-design وemil-design-eng): سؤال نوع التطبيق مطلوب، فإطاره عادي لا منقّط
   (المنقّط لمساعد «لست متأكدًا؟» الاختياري)، وينزل بهدوء من تحت البطاقة حين يظهر. «تقليل الحركة»: يظهر بلا حركة */
.ord-reveal { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), translate 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
@starting-style { .ord-reveal { opacity: 0; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .ord-reveal { transition: none; } }
.ord-reveal[hidden] { display: none; }
.ord-reveal-h { margin: 0; color: var(--text-2); font-size: var(--fs-body); }
.ord-other { margin: 0; }
.ord-other[hidden] { display: none; }
.ord-fs { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ord-legend { margin-bottom: 8px; padding: 0; color: var(--text-2); font-size: var(--fs-body); }
.ord-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; }
.ord-seg-o { position: relative; display: grid; place-items: center; min-height: 48px; padding: 8px 6px; border-inline-start: 1px solid var(--line-strong); color: var(--text-2); font-size: var(--fs-small); line-height: 1.4; text-align: center; cursor: pointer; transition: background-color 0.15s, color 0.15s, scale 0.1s var(--ease-out); }
.ord-seg-o:first-child { border-inline-start: 0; }
.ord-seg-o input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ord-seg-o:hover { color: var(--text); }
.ord-seg-o.is-on, .ord-seg-o:has(input:checked) { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.ord-seg-o:has(input:focus-visible) { box-shadow: inset 0 0 0 3px var(--text); }
.ord-pick { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, scale 0.1s var(--ease-out); }
.ord-pick:hover { background: rgba(170, 185, 255, 0.04); }
.ord-pick.is-on, .ord-pick:has(.ord-check:checked) { border-color: var(--accent); background: rgba(61, 220, 151, 0.06); }
.ord-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ord-pick:has(.ord-check:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ord-pick .ord-row-tick svg { opacity: 0; }
.ord-pick.is-on .ord-row-tick, .ord-pick:has(.ord-check:checked) .ord-row-tick { border-color: var(--accent); background: var(--accent); }
.ord-pick.is-on .ord-row-tick svg, .ord-pick:has(.ord-check:checked) .ord-row-tick svg { opacity: 1; }
.ord-rows { display: grid; gap: 8px; }
.ord-price-note { color: var(--text-2); font-size: var(--fs-body); line-height: 1.8; }
.ord .error-text:empty { display: none; }
@media (max-width: 420px) {
  .ord-card { padding: 14px 12px 14px 34px; }
  .ord-card::after { top: 12px; inset-inline-end: 10px; }
  .ord-card-ic { width: 36px; height: 36px; }
  .ord-card-t { font-size: var(--fs-body); }
  .ord-card-l { font-size: var(--fs-small); }
  .ord-seg-o { font-size: var(--fs-small); }
}
@media (prefers-reduced-motion: reduce) { .ord-card, .ord-seg-o, .ord-pick { transition: none; } }
/* 30 أكتوبر (خطة-التطوير-حبة-حبة.md، الجزء 6.5، قرار صاحب الموقع، بمهارات apple-design وios-hig-design وemil-design-eng):
   1) الخيارات بطاقة مجمّعة واحدة كإعدادات الآيفون: فواصل تبدأ من أول النص، والمختار بلون خفيف
   2) شريط الحجم مقسّم كالآيفون: قطعة مدوّرة داخل الشريط تنزلق إلى الحجم المختار (transform، 250ms) */
/* الجزء 6.6 (قرار صاحب الموقع): خانة الوصف تكبر مع الكتابة (start.js)، و✓ بجانب عنوان الحقل حين يكتمل */
.textarea--grow { resize: none; overflow-y: auto; transition: height 0.15s ease-out; }
.field.is-ok > label::after { content: ""; display: inline-block; width: 18px; height: 18px; margin-inline-start: 8px; vertical-align: -3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B1022' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; animation: ok-pop 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes ok-pop { from { opacity: 0; scale: 0.6; } }
@media (prefers-reduced-motion: reduce) { .textarea--grow { transition: none; } .field.is-ok > label::after { animation: none; } }
#ord-opts.ord-rows { gap: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
#ord-opts .ord-pick { position: relative; border: 0; border-radius: 0; background: none; }
#ord-opts .ord-pick + .ord-pick::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; height: 1px; background: var(--line); }
#ord-opts .ord-pick.is-on, #ord-opts .ord-pick:has(.ord-check:checked) { background: rgba(61, 220, 151, 0.07); }
#ord-opts .ord-pick:has(.ord-check:focus-visible) { outline-offset: -2px; }
.ord-seg { position: relative; gap: 0; padding: 3px; border-color: var(--line); background: var(--surface); }
.ord-seg::before { content: ""; position: absolute; inset-block: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / 3); border-radius: 11px; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); transform: translateX(calc(var(--i, 0) * -100%)); transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
.ord-seg:has(.ord-seg-o:nth-child(2) input:checked) { --i: 1; }
.ord-seg:has(.ord-seg-o:nth-child(3) input:checked) { --i: 2; }
.ord-seg:not(:has(input:checked))::before { opacity: 0; }
.ord-seg-o { z-index: 1; min-height: 44px; border-inline-start: 0; border-radius: 11px; transition: color 0.2s; }
.ord-seg-o.is-on, .ord-seg-o:has(input:checked) { background: none; }
.ord-seg-o:active { scale: 0.96; }
@media (prefers-reduced-motion: reduce) { .ord-seg::before { transition: none; } .ord-seg-o:active { scale: none; } }
/* 30 أكتوبر (خطة-التطوير-حبة-حبة.md، الجزء 6.4، بمهارات ios-hig-design وmobile-ios-design وemil-design-eng وui-taste):
   على الجوال الأنشطة صفوف قائمة كالآيفون: الأيقونة في أول السطر، والاسم وسطره و«نموذجنا» بجانبها، ودائرة الاختيار في آخره بمنتصفه */
.ord-card-s { display: inline-block; text-decoration: none; }
a.ord-card-s:hover .ord-card-s-go { text-decoration: underline; text-underline-offset: 3px; }
.ord-card-s-go { font-weight: 700; }
@media (max-width: 640px) {
  #ord-types.ord-cards--2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #ord-types .ord-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; padding-inline-end: 48px; }
  #ord-types .ord-card::after { top: 50%; inset-inline-end: 14px; translate: 0 -50%; }
  #ord-types .ord-card-ic { grid-row: 1 / span 3; align-self: center; width: 40px; height: 40px; margin: 0; }
  #ord-types .ord-card-t, #ord-types .ord-card-l, #ord-types .ord-card-s { grid-column: 2; }
  #ord-types .ord-card-s { margin-top: 2px; }
  #ord-types .ord-card:active { scale: 0.985; }
  #ord-types .ord-card--other { grid-template-columns: minmax(0, 1fr); }
  #ord-types .ord-card--other > * { grid-column: 1; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { #ord-types .ord-card:active { scale: none; } }

/* =================================================================
   22 أكتوبر (خطة «نواة الحيّة»، المرحلة 6): لحظة الختام (start.js)
   حلقات الطلب الخمس نقاط تمتد أقواسًا ثم تلتحم مدارًا واحدًا حول النواة، والنواة تضيء مرة. أقل من ثانية، بلا احتفال
   ================================================================= */
.ord-orbit { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ord-orbit[hidden] { display: none; }
.ord-orbit svg { flex: none; width: 64px; height: 64px; overflow: visible; }
.ord-orbit-glow { fill: var(--accent); opacity: 0.16; }
.ord-orbit-back { fill: none; stroke: var(--accent); stroke-opacity: 0.22; stroke-width: 2; }
.ord-orbit-core { fill: var(--accent); }
.ord-orbit-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 20 0; }
.ord-orbit-t { font-family: var(--font-display); font-size: var(--fs-sub); font-weight: 700; line-height: 1.4; color: var(--text); }
/* 23 أكتوبر (بعد إعادة التقييم): «طلبك في مداره» وحدها قد تُفهم أن الطلب وصل؛ السطر تحتها يقول ما بقي */
.ord-orbit-s { margin-top: 2px; color: var(--text-2); font-size: var(--fs-body); line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .ord-orbit.is-closing .ord-orbit-ring { animation: orbit-close 0.8s cubic-bezier(0.3, 0, 0.2, 1) both; }
  .ord-orbit.is-closing :is(.ord-orbit-core, .ord-orbit-glow) { transform-origin: 32px 32px; }
  .ord-orbit.is-closing .ord-orbit-core { animation: orbit-core 0.5s cubic-bezier(0.2, 0.7, 0.1, 1) 0.55s both; }
  .ord-orbit.is-closing .ord-orbit-glow { animation: orbit-glow 0.9s ease-out 0.55s both; }
  .ord-orbit.is-closing :is(.ord-orbit-t, .ord-orbit-s) { animation: orbit-t 0.5s cubic-bezier(0.2, 0.7, 0.1, 1) 0.6s both; }
  .ord-orbit.is-closing .ord-orbit-s { animation-delay: 0.72s; }
}
/* خمس نقاط (pathLength=100: خمس دورات من 20) تصير أقواسًا بفجوات، ثم تلتحم */
@keyframes orbit-close { 0% { stroke-dasharray: 0 20; } 60% { stroke-dasharray: 15 5; } 100% { stroke-dasharray: 20 0; } }
@keyframes orbit-core { from { transform: scale(0.7); opacity: 0.5; } }
@keyframes orbit-glow { 0% { transform: scale(0.5); opacity: 0; } 45% { opacity: 0.5; } 100% { transform: scale(1); opacity: 0.16; } }
@keyframes orbit-t { from { opacity: 0; transform: translateY(4px); } }

/* 25 أكتوبر: ملاحظة الحفظ في الحساب تحت زر واتساب */
.ord-acc-note { margin-top: 8px; color: var(--text-2); font-size: var(--fs-small); }

/* 28 أكتوبر (المرحلة 4 من خطة-تحليل-ونقد-الموقع.md، البند ج): «لست متأكدًا؟» مساعد مطوي تحت اختيار الخطوة الأولى،
   بإطار متقطع كصندوق نوع التطبيق، والإجابات حبوب تختار واحدة في كل سؤال */
.ord-helper { border: 1px dashed rgba(61, 220, 151, 0.45); border-radius: 16px; }
.ord-helper > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; font-weight: 600; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; transition: opacity 0.1s; }
.ord-helper > summary::-webkit-details-marker { display: none; }
.ord-helper > summary [data-icon] { flex: none; width: 22px; height: 22px; color: var(--accent); }
.ord-helper > summary::after { content: ""; flex: none; margin-inline-start: auto; width: 8px; height: 8px; border: solid var(--text-2); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); transition: transform 0.2s var(--ease-out); }
.ord-helper[open] > summary::after { transform: translateY(2px) rotate(135deg); }
.ord-helper > summary:active { opacity: 0.65; }
.ord-helper > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.ord-helper-body { display: grid; gap: 18px; padding: 4px 16px 18px; }
.ord-hq { display: flex; flex-wrap: wrap; gap: 8px; }
.ord-hq-o { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-small); line-height: 1.4; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background-color 0.2s, color 0.2s, scale 0.1s var(--ease-out); }
.ord-hq-o input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ord-hq-o:hover { color: var(--text); border-color: rgba(61, 220, 151, 0.5); }
.ord-hq-o:active { scale: 0.97; }
.ord-hq-o:has(input:checked) { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.ord-hq-o:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* الجزء 6.3: سؤال واحد في المرة: «سؤال 1 من 3»، والإجابات أزرار صغيرة للتعديل، والسؤال الجديد يدخل من جهة التقدّم بهدوء */
.ord-hq-head { display: grid; gap: 8px; }
.ord-hq-step { margin: 0; color: var(--accent); font-size: var(--fs-small); font-weight: 700; }
.ord-hq-step[hidden], .ord-hq-sum[hidden], .ord-fs[data-hq][hidden] { display: none; }
.ord-hq-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ord-hq-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid rgba(61, 220, 151, 0.4); border-radius: 999px; background: var(--accent-soft); color: var(--text); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.ord-hq-chip[aria-current="true"] { border-color: var(--accent); }
.ord-hq-chip:active { scale: 0.96; }
.ord-fs[data-hq] { transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), translate 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
@starting-style { .ord-fs[data-hq] { opacity: 0; translate: -12px 0; } }
@media (prefers-reduced-motion: reduce) { .ord-fs[data-hq] { transition: none; } .ord-hq-chip:active { scale: none; opacity: 0.8; } }
.ord-helper-out { display: grid; gap: 10px; }
.ord-helper-wait { margin: 0; color: var(--text-2); font-size: var(--fs-small); }
.ord-helper-t { display: grid; gap: 2px; margin: 0; }
.ord-helper-t span { color: var(--text-2); font-size: var(--fs-small); }
.ord-helper-t b { font-family: var(--font-display); font-size: var(--fs-sub); line-height: 1.5; color: var(--accent); }
.ord-helper-why { margin: 0; max-width: 42rem; color: var(--text-2); line-height: 1.75; }
.ord-helper-go { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .ord-helper > summary::after { transition: none; } .ord-hq-o:active { scale: 1; } }

/* 28 أكتوبر (المرحلة 4، البند ح): «وصل طلبك» تحل محل «طلبك جاهز» بعد الإرسال داخل نواة: المدار يكتمل، ورمز الطلب، وثلاث خطوات، وزر واحد.
   قسم «وبعدها، ماذا يحدث؟» تحت المسار يختفي لأن الشاشة تقوله */
.ord-stage.is-sent > :not(.ord-done) { display: none; }
.ord-done { display: grid; gap: 20px; max-width: 640px; }
.ord-done[hidden] { display: none; }
.ord-done-mark { margin-top: 0; }
.ord-done-h { margin: 0; }
.ord-done-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--text-2); }
.ord-done-code b { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: var(--fs-sub); letter-spacing: 0.14em; color: var(--text); }
.ord-done-code small { flex-basis: 100%; font-size: var(--fs-small); }
.ord-done-steps { margin-top: 0; }
/* الجزء 6.9: زر نسخ الرمز، والخطوات متتبّع: خط يصل الأيقونات، والحالية بعلامة «الآن» ونبضة هادئة */
.ord-code-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-inline-start: auto; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.ord-code-copy [data-icon] { width: 16px; height: 16px; }
.ord-code-copy:active { scale: 0.96; }
.ord-code-copy.is-done { border-color: var(--accent); color: var(--accent); }
.ord-done-steps li { position: relative; }
.ord-done-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: -14px; inset-inline-start: 11px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.ord-done-steps li.is-now [data-icon] { border-radius: 50%; box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); animation: ord-now 2.4s ease-out infinite; }
.ord-now { margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-small); font-style: normal; font-weight: 700; }
@keyframes ord-now { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }
@media (prefers-reduced-motion: reduce) { .ord-done-steps li.is-now [data-icon] { animation: none; } .ord-code-copy:active { scale: none; } }
.ord-done-actions { margin: 0; }
.ord-done-more { margin: 0; color: var(--text-2); font-size: var(--fs-small); }
.ord-sent .ord-after { display: none; }
