/* ============================================================
   شجرة الدينار — صفحة الهبوط
   الهوية: أخضر ورق الزيتون (تدرّج غامق → فاتح) على قاعدة كريمية دافئة،
   والذهبي محجوز للأسعار والمال فقط — لا يُستعمل لأي شيء آخر.
   كل الألوان معرّفة هنا مرة واحدة كمتغيّرات CSS.
   ============================================================ */

:root {
  /* --- التدرّج الأخضر (من لوحة العلامة) --- */
  --g-1: #2E4E0B;   /* أخضر غامق */
  --g-2: #4E8214;   /* أخضر وسط */
  --g-3: #7FB528;   /* أخضر فاتح */

  --primary: #5E9414;        /* الأخضر الأساسي — للعناصر لا للنص الصغير */
  --primary-dk: #3F6A0D;     /* 6.4:1 على الأبيض — للنص والروابط */
  --primary-lt: #A9D45F;     /* على الخلفيات الداكنة */

  /* --- الذهبي: للأسعار والمال حصرًا --- */
  --gold: #DFA51A;           /* على الخلفيات الداكنة (8.6:1 على الغامق) */
  --gold-dk: #8A6206;        /* 5.5:1 على الأبيض — لنص الأسعار على الفاتح */

  /* --- الحياد --- */
  --cream: #F8F7EF;          /* الكريمي الدافئ */
  --forest: #0A1206;         /* الأخضر الغابي العميق */
  --forest-2: #142008;
  --ink: #12200A;            /* عناوين */
  --body: #24301C;           /* نص الفقرات — 13.9:1 */
  --muted: #5B6B4C;          /* نص ثانوي — 5.7:1 على الأبيض و5.3:1 على الكريمي */
  --line: #E3E6D8;
  --line-2: #CFD6BE;

  /* --- برتقالي شركة برو: علامة المطوّر، ليس من هوية شجرة الدينار ---
     مستخرج من الشعار الرسمي proirq.com/img/pro-logo.png. تمييزه عن الأخضر
     مقصود كي يُقرأ كتوقيع مطوّر لا كجزء من المتجر. */
  --pro: #F86000;
  --pro-lt: #FF8A00;
  --pro-dk: #B34400;         /* 4.9:1 على الأبيض — لنصّ التوقيع على الفاتح */
  --white: #fff;

  /* على الخلفيات الداكنة */
  --on-dark: #E7EEDC;
  --on-dark-2: #B4C4A2;

  --grad: linear-gradient(135deg, var(--g-1) 0%, var(--g-2) 52%, var(--g-3) 100%);
  --grad-soft: linear-gradient(135deg, rgba(78,130,20,.10), rgba(127,181,40,.10));
  --grad-gold: linear-gradient(135deg, #C98F0C, var(--gold));

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 34px;

  --shadow-s: 0 2px 8px rgba(20, 32, 8, .06);
  --shadow: 0 18px 44px -18px rgba(20, 32, 8, .30);
  --shadow-lg: 0 44px 90px -30px rgba(20, 32, 8, .45);

  --nav-h: 68px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }

body {
  font-family: 'Tajawal', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', system-ui, sans-serif;
  font-weight: 800; line-height: 1.5; color: var(--ink);
}
.hero h1 { line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* حالة التركيز مرئية في كل مكان — شرط الوصولية */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary-dk);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* رابط «تخطَّ إلى المحتوى» — يظهر عند التركيز فقط */
.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 200;
  background: var(--primary-dk); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-family: 'Cairo', sans-serif; font-weight: 700; transition: top .2s;
}
.skip:focus { top: 0; }

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 15px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background .22s, border-color .22s;
}
.btn-1 {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 26px -8px rgba(46, 78, 11, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-1:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -10px rgba(46, 78, 11, .62), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-2 { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-s); }
.btn-2:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.975); }

/* ---------------- الشريط العلوي ---------------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(20,32,8,.32); }
/* شبكة من ٣ أعمدة تحترم dir=rtl تلقائيًا: الشعار على حافة، الروابط بالوسط،
   الإجراءات على الحافة الأخرى. عند إخفاء الروابط ينهار العمود الأوسط وحده. */
.nav .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; }
.brand { grid-column: 1; display: flex; align-items: center; gap: 11px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(46,78,11,.5); }
.nav-links { grid-column: 2; justify-self: center; display: flex; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: #44523A; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--cream); color: var(--primary-dk); }
.nav-act { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 9px; }
.nav-act .btn { padding-block: 12px; line-height: 1.35; min-block-size: 44px; }
@media (min-width: 1024px) { .nav .wrap { grid-template-columns: 1fr auto 1fr; } }

/* ---------------- زر القائمة ---------------- */
.burger {
  --bar-w: 20px; --bar-h: 2px; --bar-gap: 5px;
  position: relative; isolation: isolate; flex: 0 0 auto;
  inline-size: 44px; block-size: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); border-radius: 14px;
  background: #fff; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-s);
  transition: border-color .22s ease, box-shadow .22s ease, color .22s ease,
              transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.burger::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--grad); opacity: 0; transition: opacity .26s ease;
}
.burger:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(46,78,11,.5); }
.burger:hover::before { opacity: .12; }
.burger:active { transform: translateY(0) scale(.94); }
/* الحالة المفتوحة مشتقّة من aria-expanded — فلا تنفصل الصورة عن حالة الوصولية */
.burger[aria-expanded="true"] { color: #fff; border-color: transparent; box-shadow: 0 12px 26px -8px rgba(46,78,11,.55); }
.burger[aria-expanded="true"]::before { opacity: 1; }

.burger-ico { position: relative; display: block; inline-size: var(--bar-w); block-size: calc(var(--bar-h) * 3 + var(--bar-gap) * 2); }
.burger-ico i {
  position: absolute; inset-inline: 0; block-size: var(--bar-h);
  border-radius: 99px; background: currentColor;
  transition: transform .34s cubic-bezier(.65,.05,.36,1), opacity .18s linear .16s;
}
.burger-ico i:nth-child(1) { top: 0; }
.burger-ico i:nth-child(2) { top: calc(50% - var(--bar-h) / 2); }
.burger-ico i:nth-child(3) { bottom: 0; }
.burger[aria-expanded="true"] .burger-ico i:nth-child(1) { transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg); }
.burger[aria-expanded="true"] .burger-ico i:nth-child(3) { transform: translateY(calc(-1 * (var(--bar-h) + var(--bar-gap)))) rotate(-45deg); }
.burger[aria-expanded="true"] .burger-ico i:nth-child(2) { opacity: 0; transform: scaleX(.3); transition: transform .2s ease, opacity .14s linear; }

/* ---------------- اللوح الجانبي ---------------- */
.scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 6, .58);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .32s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 101; top: 0; inset-inline-end: 0; height: 100%;
  width: min(430px, 92vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -30px 0 70px -30px rgba(10, 18, 6, .5);
  visibility: hidden;
}
.drawer.on { transform: translateX(0); visibility: visible; }

.drawer-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--grad); color: #fff; flex-shrink: 0; }
.drawer-top img { width: 44px; height: 44px; border-radius: 50%; }
.drawer-top b { font-family: 'Cairo', sans-serif; font-size: 17px; display: block; }
.drawer-top small { opacity: .88; font-size: 12.5px; }
.x-btn {
  margin-inline-start: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 21px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.x-btn:hover { background: rgba(255,255,255,.34); }

.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.d-menu { padding: 14px; }
.d-item {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 16px; margin-bottom: 7px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); text-align: start;
  transition: border-color .2s, transform .2s, background .2s;
}
.d-item:hover { border-color: var(--primary); background: #F6FAEF; transform: translateX(-4px); }
.d-item .ic { width: 40px; height: 40px; border-radius: 12px; color: var(--primary-dk); background: var(--grad-soft); display: grid; place-items: center; flex-shrink: 0; }
.d-item .ic svg { width: 21px; height: 21px; }
.d-item .ar { margin-inline-start: auto; color: var(--muted); font-size: 19px; }
.d-note { padding: 6px 18px 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------------- الواجهة (Hero) ---------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 58px) 0 84px; overflow: hidden; background: linear-gradient(180deg, #FCFDF8 0%, var(--cream) 100%); }
.hero::before {
  content: ''; position: absolute; inset-inline-end: -16%; top: -30%;
  width: 880px; height: 880px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(127,181,40,.26) 0%, rgba(78,130,20,.14) 42%, transparent 68%);
}
.hero::after {
  content: ''; position: absolute; inset-inline-start: -22%; bottom: -34%;
  width: 700px; height: 700px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(223,165,26,.14) 0%, transparent 66%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.06fr .94fr; gap: 44px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px;
  background: rgba(78, 130, 20, .1); border: 1px solid rgba(78, 130, 20, .24);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--primary-dk);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(223,165,26,.22); }

.hero h1 { font-size: clamp(32px, 5.2vw, 58px); font-weight: 900; letter-spacing: -.4px; margin: 20px 0 0; }
.hero h1 .u { position: relative; display: inline-block; }
.hero h1 .u::after {
  content: ''; position: absolute; inset-inline: -.04em; bottom: -.05em; height: .1em; border-radius: 6px;
  background: var(--grad-gold); opacity: .95;
}
.hero .lead { font-size: clamp(16px, .6vw + 14px, 19px); color: #3E4C33; margin: 20px 0 30px; max-width: 33em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-ticks span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #3E4C33; }
.ck { width: 20px; height: 20px; border-radius: 50%; background: rgba(63,106,13,.14); color: var(--primary-dk); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

/* ---------- مجسّم الهاتف ---------- */
.stage { position: relative; display: grid; place-items: center; perspective: 1500px; }
.phone {
  --pw: 296px;
  position: relative; width: var(--pw); aspect-ratio: 402 / 850; border-radius: 52px; padding: 11px;
  background: linear-gradient(150deg, #2C3A1C 0%, var(--forest) 46%, #1B2A0D 100%);
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.2deg);
  transform-style: preserve-3d;
  box-shadow:
    0 60px 110px -35px rgba(10, 18, 6, .6),
    0 24px 44px -22px rgba(46, 78, 11, .5),
    inset 0 0 0 1.6px rgba(255,255,255,.14);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.stage:hover .phone { transform: rotateY(-6deg) rotateX(2deg) rotateZ(0); }
.phone::before {
  content: ''; position: absolute; inset: -14% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,181,40,.42) 0%, rgba(78,130,20,.24) 45%, transparent 70%);
  filter: blur(34px);
}
.phone .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--cream); position: relative; }
.phone .notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px; background: #050902; z-index: 5;
}

/* بطاقات عائمة حول الجهاز */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 17px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 42px -18px rgba(20,32,8,.42);
  animation: bob 5.5s ease-in-out infinite;
}
.chip .e { font-size: 21px; line-height: 1; }
.chip b { display: block; font-family: 'Cairo', sans-serif; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.chip small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.chip-1 { top: 11%; inset-inline-start: -6%; }
.chip-2 { bottom: 21%; inset-inline-end: -7%; animation-delay: -2.7s; }
.chip-3 { bottom: 5%; inset-inline-start: 1%; animation-delay: -1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-13px) } }

/* ============================================================
   واجهة تخيّلية داخل الجهاز — مبنيّة بالـCSS بالكامل، بلا أي صور.
   المقاسات كلها بالـem مربوطة بعرض الجهاز، فتتقلّص معه بانتظام.
   ============================================================ */
.ui {
  position: absolute; inset: 0; overflow: hidden;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: calc(var(--pw) * .0345);   /* ≈ 10px عند 296px */
  line-height: 1.5; color: var(--ink); background: var(--cream);
  display: flex; flex-direction: column;
}
.ui-bar { height: 4.6em; flex-shrink: 0; }               /* مكان النوتش */
.ui-top { background: var(--grad); color: #fff; padding: .2em 1.3em 1.3em; flex-shrink: 0; }
.ui-top .row { display: flex; align-items: center; gap: .7em; }
.ui-logo { width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 1em; flex-shrink: 0; }
.ui-top b { font-family: 'Cairo', sans-serif; font-size: 1.25em; }
.ui-top .sm { font-size: .95em; opacity: .85; margin-inline-start: auto; }
.ui-search { margin-top: 1em; background: rgba(255,255,255,.94); border-radius: 999px; padding: .6em 1.1em; color: var(--muted); font-size: 1.05em; display: flex; align-items: center; gap: .6em; overflow: hidden; white-space: nowrap; }
.ui-search span { flex: 0 0 auto; }
.ui-body { flex: 1; overflow: hidden; padding: 1.1em 1.1em 0; }
.ui-h { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.15em; color: var(--ink); margin: .3em 0 .7em; display: flex; align-items: center; justify-content: space-between; }
.ui-h span { font-size: .8em; font-weight: 700; color: var(--primary-dk); }

.ui-cats { display: flex; gap: .6em; }
.ui-cats i { flex: 1 1 0; min-width: 0; height: 4.4em; border-radius: 1.1em; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 1.5em; }
.ui-promo { margin: 1em 0; height: 6.2em; border-radius: 1.2em; background: var(--grad); position: relative; overflow: hidden; padding: 1em 1.2em; color: #fff; }
.ui-promo b { font-family: 'Cairo', sans-serif; font-size: 1.15em; display: block; }
.ui-promo small { font-size: .95em; opacity: .9; }
.ui-promo::after { content: ''; position: absolute; inset-inline-start: -1.5em; bottom: -2.5em; width: 7em; height: 7em; border-radius: 50%; background: rgba(255,255,255,.14); }

.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 1.1em; overflow: hidden; }
.ui-card .im { height: 5.2em; background: linear-gradient(140deg, #EDF3E2, #DDE9C8); display: grid; place-items: center; font-size: 1.9em; }
.ui-card .tx { padding: .55em .7em .75em; }
.ui-card .nm { font-size: .95em; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-price { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.05em; color: var(--gold-dk); }
.ui-price s { color: var(--muted); font-weight: 400; font-size: .8em; margin-inline-start: .4em; }

.ui-tabs { flex-shrink: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding: .55em 0 .8em; }
.ui-tabs i { flex: 1; text-align: center; font-style: normal; font-size: 1.5em; opacity: .35; }
.ui-tabs i.on { opacity: 1; }

/* شاشة المنتج */
.ui-hero-im { height: 12em; background: linear-gradient(140deg, #EDF3E2, #DDE9C8); display: grid; place-items: center; font-size: 3.2em; flex-shrink: 0; position: relative; }
.ui-back { position: absolute; top: .35em; inset-inline-start: .4em; width: 1em; height: 1em; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: .9em; }
.ui-tiers { border: 1px solid var(--line); border-radius: 1em; overflow: hidden; margin-top: .8em; background: #fff; }
.ui-tiers div { display: flex; justify-content: space-between; padding: .5em .9em; font-size: 1em; border-bottom: 1px solid var(--line); }
.ui-tiers div:last-child { border-bottom: 0; }
.ui-tiers div.on { background: rgba(223,165,26,.1); }
.ui-tiers b { color: var(--gold-dk); font-family: 'Cairo', sans-serif; }
.ui-cta { margin: .9em 0; background: var(--grad); color: #fff; border-radius: 999px; text-align: center; padding: .75em; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.1em; }

/* شاشة السلة */
.ui-line { display: flex; align-items: center; gap: .7em; background: #fff; border: 1px solid var(--line); border-radius: 1em; padding: .6em; margin-bottom: .6em; }
.ui-line .im { width: 3.4em; height: 3.4em; border-radius: .8em; background: linear-gradient(140deg, #EDF3E2, #DDE9C8); display: grid; place-items: center; font-size: 1.5em; flex-shrink: 0; }
.ui-line .tx { flex: 1; min-width: 0; }
.ui-line .nm { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-sum { background: #fff; border: 1px solid var(--line); border-radius: 1em; padding: .8em 1em; margin-top: .4em; }
.ui-sum div { display: flex; justify-content: space-between; font-size: 1em; color: var(--muted); }
.ui-sum div.tot { color: var(--ink); font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.15em; border-top: 1px dashed var(--line-2); margin-top: .5em; padding-top: .5em; }
.ui-sum div.tot b { color: var(--gold-dk); }
.ui-cod { margin-top: .7em; background: rgba(78,130,20,.1); border: 1px solid rgba(78,130,20,.22); color: var(--primary-dk); border-radius: .9em; padding: .6em .9em; font-size: 1em; font-weight: 700; }

/* شاشة الطلبات */
.ui-track { background: #fff; border: 1px solid var(--line); border-radius: 1.1em; padding: .9em 1em; }
.ui-track .hd { display: flex; justify-content: space-between; font-size: 1em; margin-bottom: .8em; }
.ui-track .hd b { font-family: 'Cairo', sans-serif; }
.ui-step { display: flex; gap: .8em; position: relative; padding-bottom: 1.1em; }
.ui-step:last-child { padding-bottom: 0; }
.ui-step i { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--line); flex-shrink: 0; font-style: normal; display: grid; place-items: center; font-size: .9em; color: #fff; }
.ui-step.done i { background: var(--primary); }
.ui-step::before { content: ''; position: absolute; inset-inline-start: .68em; top: 1.5em; bottom: .1em; width: 2px; background: var(--line); }
.ui-step.done::before { background: var(--primary); }
.ui-step:last-child::before { display: none; }
.ui-step .tx { font-size: 1em; line-height: 1.4; }
.ui-step .tx small { display: block; color: var(--muted); font-size: .85em; }

/* ---------------- شريط البانر ---------------- */
.banner-strip { padding: 0 0 6px; background: var(--cream); }
.banner-strip .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #fff;
}
.banner-strip img { width: 100%; height: auto; }

/* ---------------- شريط الأرقام ---------------- */
.stats { background: var(--forest); color: #fff; padding: 62px 0; position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; inset: 0; opacity: .55;
  background: radial-gradient(700px 300px at 78% -30%, rgba(127,181,40,.5), transparent 62%),
              radial-gradient(560px 260px at 12% 130%, rgba(78,130,20,.5), transparent 62%);
}
.stats .wrap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stats .n { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(24px, 3.2vw, 38px); color: #fff; line-height: 1.25; }
.stats .n em { font-style: normal; background: linear-gradient(120deg, var(--primary-lt), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .l { font-size: 13.5px; color: var(--on-dark-2); margin-top: 4px; }

/* ---------------- ترويسات الأقسام ---------------- */
section { padding: 86px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.sec-tag {
  display: inline-block; padding: 6px 15px; border-radius: 999px; margin-bottom: 13px;
  background: rgba(63, 106, 13, .12); color: var(--primary-dk);
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 12.5px;
}
.sec-head h2 { font-size: clamp(25px, 3.6vw, 39px); }
.sec-head p { color: var(--muted); font-size: clamp(15px, .35vw + 13.7px, 17px); margin-top: 12px; }

/* ---------------- الأقسام ---------------- */
.cats { background: var(--cream); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  background: #fff; border-radius: var(--r); border: 1px solid var(--line);
  padding: 24px 16px; text-align: center;
  box-shadow: var(--shadow-s); transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.cat:hover { transform: translateY(-7px); border-color: rgba(94,148,20,.42); box-shadow: var(--shadow); }
.cat .ic {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 13px; display: grid; place-items: center;
  color: var(--primary-dk); background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(78,130,20,.14), inset 0 1px 0 rgba(255,255,255,.7);
}
.cat .ic svg { width: 26px; height: 26px; }
.cat .nm { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.cats .more { text-align: center; margin-top: 32px; color: var(--muted); font-size: 15px; }

/* ---------------- كيف تتسوّق ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 22px 26px; box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.step .no {
  position: absolute; top: -17px; inset-inline-start: 22px; width: 46px; height: 46px; border-radius: 15px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 18px;
  box-shadow: 0 12px 24px -10px rgba(46,78,11,.7);
}
.step h3 { font-size: 17px; margin: 16px 0 7px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------------- داخل التطبيق ---------------- */
.inside { background: var(--cream); overflow: hidden; }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; margin-bottom: 76px; }
.shot-row:last-child { margin-bottom: 0; }
.shot-row.flip .shot-txt { order: 2; }
.shot-txt .sec-tag { margin-bottom: 10px; }
.shot-txt h3 { font-size: clamp(21px, 2.7vw, 29px); margin-bottom: 12px; }
.shot-txt p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.shot-txt ul { display: grid; gap: 10px; }
.shot-txt li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 600; color: #3E4C33; }
.shot-txt li .ck { background: var(--grad); color: #fff; width: 21px; height: 21px; font-size: 11px; margin-top: 3px; }

.shot-fig { display: grid; place-items: center; perspective: 1400px; }
.shot-fig .phone { --pw: 262px; transform: rotateY(12deg) rotateX(4deg); }
.shot-row.flip .shot-fig .phone { transform: rotateY(-12deg) rotateX(4deg); }
.shot-fig .phone:hover { transform: rotateY(0) rotateX(0); }
.mock-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 34px; }

/* ---------------- المزايا ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat:hover { transform: translateY(-7px); border-color: rgba(94,148,20,.42); box-shadow: var(--shadow); }
.feat .ic, .cc .ic {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--primary-dk); background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(78,130,20,.14), inset 0 1px 0 rgba(255,255,255,.7);
}
.feat .ic svg, .cc .ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); }
/* البطاقة الذهبية — الذهبي للسعر والمال فقط */
.feat.money .ic { color: var(--gold-dk); background: linear-gradient(145deg, rgba(223,165,26,.15), rgba(223,165,26,.08)); box-shadow: inset 0 0 0 1px rgba(223,165,26,.22); }
.feat.money:hover { border-color: rgba(223,165,26,.5); }

/* ---------------- التحميل ---------------- */
.dl { background: var(--cream); }
.dl-box {
  background: var(--grad); border-radius: var(--r-lg); padding: 54px 44px; color: #fff;
  text-align: center; position: relative; overflow: hidden; box-shadow: 0 40px 80px -34px rgba(46,78,11,.75);
}
.dl-box::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(620px 300px at 84% -20%, rgba(255,255,255,.3), transparent 58%);
}
.dl-box > * { position: relative; }
.dl-box h2 { color: #fff; font-size: clamp(25px, 3.4vw, 37px); }
.dl-box p { color: #fff; font-size: 16px; margin: 13px auto 30px; max-width: 42em; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
/* الأزرار معطّلة عمدًا: التطبيق لم يُنشر بعد، فلا رابط وهمي يوهم الزائر */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: 17px;
  background: rgba(10,18,6,.62); color: #fff; border: 1px solid rgba(255,255,255,.24);
  position: relative; cursor: default;
}
.store svg { width: 27px; height: 27px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; opacity: .82; line-height: 1.5; }
.store b { display: block; font-family: 'Cairo', sans-serif; font-size: 16.5px; line-height: 1.3; }
.store .soon {
  position: absolute; top: -10px; inset-inline-start: 12px;
  background: var(--grad-gold); color: #1F1602; border-radius: 999px; padding: 2px 11px;
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 11.5px; line-height: 1.6;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
}
.dl-note { margin-top: 26px; font-size: 14.5px; color: #fff; opacity: .92; }
.dl-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.dl-links a {
  white-space: nowrap; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 13.5px;
  transition: background .2s;
}
.dl-links a:hover { background: rgba(255,255,255,.3); }

/* ---------------- تواصل ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cc:hover { transform: translateY(-7px); border-color: rgba(94,148,20,.42); box-shadow: var(--shadow); }
.cc .ic { margin: 0 auto 15px; }
.cc h3 { font-size: 16px; margin-bottom: 6px; }
.cc a, .cc span.v { padding-block: 8px; font-size: 15px; color: var(--primary-dk); font-weight: 700; direction: ltr; display: inline-block; overflow-wrap: anywhere; }
.cc small { display: block; color: var(--muted); font-size: 13px; margin-top: 7px; }
/* قيمة لم تُملأ بعد — تُعرض بوضوح كخانة فارغة لا كرقم حقيقي */
.todo { color: var(--muted); font-weight: 700; font-size: 14px; background: repeating-linear-gradient(45deg, #F3F1E4, #F3F1E4 6px, #EAE7D6 6px, #EAE7D6 12px); border: 1px dashed var(--line-2); border-radius: 10px; padding: 6px 14px; display: inline-block; }

/* ---------------- التذييل ---------------- */
footer { background: var(--forest); color: var(--on-dark-2); padding-block: clamp(56px, 6vw, 86px) 30px; }
.f-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand img { width: 48px; height: 48px; border-radius: 50%; }
.f-brand b { font-family: 'Cairo', sans-serif; font-size: 19px; color: #fff; }
.f-top p { font-size: 14.5px; max-width: 30em; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.f-col a { display: block; padding-block: 8px; margin-bottom: 2px; color: var(--on-dark-2); font-size: 14.5px; transition: color .2s; }
.f-col a:hover { color: #fff; }
.f-bot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13.5px; }

/* ---------------- الصفحات الداخلية (وثائق) ---------------- */
.doc { padding-top: calc(var(--nav-h) + 46px); padding-bottom: 70px; }
.doc .wrap { max-width: 880px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); }
.doc h2 { font-size: clamp(19px, 2.2vw, 24px); margin: 34px 0 10px; color: var(--primary-dk); }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 10px 0; }
.doc ul li { list-style: disc; margin-bottom: 6px; }
.doc ol li { list-style: arabic-indic; margin-bottom: 6px; }
.doc .en ol li { list-style: decimal; }
.doc .meta { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.doc .lead { font-size: 17px; color: #3E4C33; margin-top: 14px; }
.doc a:not(.btn):not(.brand):not(.d-item) { color: var(--primary-dk); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.doc .card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin: 16px 0; }
.doc .card h3 { margin-top: 0; }
.doc .warn { background: #FDF6E7; border-color: rgba(223,165,26,.4); }
.doc .en { direction: ltr; text-align: left; border-top: 2px dashed var(--line-2); margin-top: 46px; padding-top: 26px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.doc .en ul, .doc .en ol { padding-inline-start: 22px; }
.doc-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--primary-dk); font-weight: 700; }

/* ---------------- ظهور تدريجي عند التمرير ----------------
   القاعدة: المحتوى ظاهر افتراضيًا. لا نخفيه إلا بعد ما يؤكّد الجافاسكربت
   أنه يعمل (يضيف .js على <html> قبل أول رسم) — فلا صفحة بيضاء أبدًا. */
.js .rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  /* شبكة أمان بالـCSS وحده: لو حُمّل السكربت ثم انهار يظهر المحتوى بعد ٢٫٥ ثانية */
  animation: rv-failsafe 0s linear 2.5s forwards;
}
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }
.js .rv.in { opacity: 1; transform: none; animation: none; }

/* ============================================================
   الاستجابة — ≥1200 حاسوب واسع · 1024–1199 حاسوب ضيّق
   768–1023 لوحي · 561–767 هاتف كبير · ≤560 هاتف · ≤380 هاتف صغير
   ============================================================ */

@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  .phone { --pw: 320px; }
}

@media (max-width: 1199px) {
  :root { --wrap: 1000px; }
  .nav-links a { padding: 8px 11px; font-size: 13.5px; }
  .phone { --pw: 264px; }
  .shot-fig .phone { --pw: 242px; }
  .hero .wrap { gap: 32px; }
  .shot-row { gap: 38px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .hero-txt { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-btns, .hero-ticks { justify-content: center; }
  .stage { order: -1; width: min(100%, 420px); margin-inline: auto; }
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 66px; }
  .phone { --pw: 290px; }
  .chip-1 { top: 9%; inset-inline-start: -4%; }
  .chip-2 { bottom: 18%; inset-inline-end: -4%; }

  .shot-row, .shot-row.flip { grid-template-columns: 1fr; gap: 30px; }
  .shot-row .shot-txt, .shot-row.flip .shot-txt { order: 1; text-align: center; }
  .shot-row .shot-fig { order: 0; }
  .shot-txt p { margin-inline: auto; max-width: 40em; }
  .shot-txt ul { max-width: 26em; margin-inline: auto; text-align: start; }
  .shot-fig .phone, .shot-row.flip .shot-fig .phone { --pw: 268px; transform: none; }

  .steps, .feat-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --nav-h: 62px; }
  section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .nav-act .btn { padding: 11px 18px; font-size: 13.5px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .shot-row { margin-bottom: 54px; }
  .banner-strip .frame { border-radius: var(--r); }
}

@media (max-width: 560px) {
  section { padding: 54px 0; }
  .hero { padding-bottom: 52px; }
  .phone, .shot-fig .phone, .shot-row.flip .shot-fig .phone { --pw: min(258px, 74vw); }
  .feat-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .cat { padding: 20px 10px; }
  .stats { padding: 48px 0; }
  .chip { padding: 9px 12px; border-radius: 14px; }
  .chip .e { font-size: 18px; }
  .chip b { font-size: 12.5px; } .chip small { font-size: 11.5px; }
  .chip-1 { inset-inline-start: -2%; top: 8%; }
  .chip-2 { inset-inline-end: -2%; bottom: 16%; }
  .chip-3 { display: none; }
  .dl-box { padding: 38px 18px; border-radius: 26px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .hero-ticks { gap: 8px 16px; }
  .hero-ticks span { font-size: 13px; }
  .f-top { grid-template-columns: 1fr; gap: 26px; }
  .f-bot { justify-content: center; text-align: center; }
  .doc h2 { margin-top: 28px; }
}

@media (max-width: 380px) {
  .nav-act .btn { padding: 10px 13px; font-size: 12.5px; }
  .cat .nm { font-size: 13px; }
}
@media (max-width: 344px) { .brand { font-size: 0; gap: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .rv, .js .rv.in { opacity: 1; transform: none; }
  .stage:hover .phone, .shot-fig .phone:hover { transform: none; }
}


/* ======================= توقيع المطوّر: شركة برو ======================= */
.pro-credit{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.5rem .75rem .5rem .6rem;
  border-radius:14px; text-decoration:none;
  border:1px solid color-mix(in srgb, var(--pro) 42%, transparent);
  background:linear-gradient(to left,
    color-mix(in srgb, var(--pro) 16%, transparent),
    color-mix(in srgb, var(--pro) 6%, transparent));
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.pro-credit:hover,.pro-credit:focus-visible{
  transform:translateY(-1px);
  border-color:var(--pro);
  background:linear-gradient(to left,
    color-mix(in srgb, var(--pro) 24%, transparent),
    color-mix(in srgb, var(--pro) 10%, transparent));
}
/* الشعار على قرص أبيض: يضمن ثبات قراءته فوق التذييل الغامق والفاتح معًا */
.pro-credit .pc-logo{
  display:grid; place-items:center;
  padding:.32rem .5rem; border-radius:9px;
  background:rgba(255,255,255,.95);
}
.pro-credit .pc-logo img{display:block; height:15px; width:auto}
.pro-credit .pc-txt{display:flex; flex-direction:column; line-height:1.25}
.pro-credit .pc-main{font-weight:800; font-size:.82rem; color:var(--pro-lt)}
.pro-credit .pc-sub{font-weight:700; font-size:.72rem; color:var(--pro);
  opacity:.9; direction:ltr}
.pro-credit .pc-arrow{font-size:.8rem; color:var(--pro); opacity:.9}
/* على خلفية فاتحة (لو استُعمل خارج التذييل) نستخدم الدرجة الداكنة للتباين */
.on-light .pro-credit .pc-main{color:var(--pro-dk)}
@media (prefers-reduced-motion:reduce){
  .pro-credit,.pro-credit:hover{transform:none; transition:none}
}
