/* ==========================================================================
   EgyHosting — صفحة «العروض» 2026  (offers.tpl)
   كل الكلاسات تبدأ بـ eho- لتجنّب أي تعارض مع bootstrap / main.css / custom.css
   وhome-2026.css. يُحمَّل من offers.tpl وحده، فكل قاعدة هنا خاصة بهذه الصفحة.
   الاتجاه: خصائص منطقية (inline-start/end) فتعمل في RTL وLTR بلا نسختين.
   التصميم = النموذج المعتمد: preview/offers-mockup/offers-mockup.html
   (عدا خلفية الهيرو: كحلي متدرّج لا صورة الأرض — نفس سبب صفحة «عن الشركة»:
    هيدر الصفحات الداخلية يحمل الصورة نفسها فتظهر أرضان متراكبتان.)
   ========================================================================== */

.eho {
  --red: #d11e2b;  --red-d: #b3141f; --red-s: #fdeced;
  --blue: #0088cc; --blue-d: #005f90; --blue-s: #e8f5fc;
  --green: #12a150; --green-d: #0b7a3b; --green-s: #e6f6ed;
  --ink: #0f2438;  --ink2: #34495e;
  /* #566b7f لا #64798d: الثاني تباينه 4.23 على #f5f8fb (مقيس في الرئيسية 20 سبتمبر) */
  --muted: #566b7f; --line: #e4ebf2; --bg: #f5f8fb;
  --r: 16px; --r-lg: 24px;
  --sh: 0 6px 24px rgba(15, 36, 56, .08);
  --sh-lg: 0 18px 48px rgba(15, 36, 56, .14);
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}
.eho *, .eho *::before, .eho *::after { box-sizing: border-box; }
.eho a { text-decoration: none; }
.eho bdi { unicode-bidi: isolate; }
.eho h1, .eho h2, .eho h3 { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.eho s { text-decoration-thickness: 1.5px; }
.eho-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* الصفحة داخل #main-body .container .main-content (عمود ضيّق). الأقسام تمتدّ
   بعرض الشاشة بهامشين سالبين متساويين — مستقلّ عن الاتجاه. */
.eho-bleed { margin-inline: calc(50% - 50vw); }
body { overflow-x: clip; }

/* سياق الموقع — نفس إصلاحات «عن الشركة» (كلها مقيسة هناك):
   عنوان pageheader.tpl يُخفى لأن الهيرو يحمل H1، وهامش الهيدر 20px يُصفَّر،
   وخلفية #main-body بلون الهيرو (خط 5px أبيض على المحمول)، وهامش main-content 60px. */
#main-body .header-lined { display: none; }
#header.whmcs-not-index-template { margin-bottom: 0; background-color: #050b1a; }
section#main-body { padding-top: 0; padding-bottom: 0; background-color: #0b1f33; }
#main-body .main-content { padding-top: 0; margin-bottom: 0; min-height: 0; }

.eho-c { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.eho-sec { padding: 72px 0; background: #fff; }
.eho-sec--bg { background: var(--bg); }
.eho-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.eho-eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--red-s); color: var(--red-d);
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 12px;
}
.eho-eyebrow--blue { background: var(--blue-s); color: var(--blue-d); }
.eho-eyebrow--green { background: var(--green-s); color: var(--green-d); }
.eho h2 { font-size: 34px; line-height: 1.35; margin: 0 0 12px; font-weight: 800; color: var(--ink); }
.eho-lead { color: var(--muted); font-size: 17px; margin: 0; }
.eho-note { margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--muted); max-width: 820px; }

.eho-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 1.5px solid transparent; text-align: center; line-height: 1.3;
}
.eho-btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.eho-btn--block { display: flex; width: 100%; }
.eho-btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(209, 30, 43, .28); }
.eho-btn--red:hover, .eho-btn--red:focus { background: var(--red-d); color: #fff; }
.eho-btn--blue { background: #0077b3; color: #fff; }
.eho-btn--blue:hover, .eho-btn--blue:focus { background: var(--blue-d); color: #fff; }
.eho-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.eho-btn--ghost:hover, .eho-btn--ghost:focus { background: rgba(255, 255, 255, .1); color: #fff; }
.eho a:focus-visible, .eho summary:focus-visible { outline: 3px solid #8fd3ff; outline-offset: 2px; }

/* السعر */
.eho-pr { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.eho-pr s { color: var(--muted); font-size: 18px; }
.eho-pr strong { font-size: 38px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.eho-pr span { color: var(--muted); font-size: 14px; }
.eho-save {
  display: inline-block; background: var(--green-s); color: var(--green-d);
  font-weight: 800; border-radius: 8px; padding: 2px 10px; margin: 8px 0 4px; font-size: 15px;
}
.eho-autocode { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 10px 0 0; flex-wrap: wrap; }
.eho-autocode code {
  font-family: inherit; font-weight: 800; color: var(--ink); background: var(--bg);
  border: 1.5px dashed #b9c8d6; border-radius: 6px; padding: 0 8px; font-size: 13px;
}

/* العدّاد — يُرسم LTR دائمًا (أيام ← ثوانٍ) */
.eho-cd { display: flex; gap: 8px; margin: 6px 0 12px; direction: ltr; justify-content: center; }
.eho-cd[hidden] { display: none; }
.eho-cd div { background: var(--ink); color: #fff; border-radius: 10px; min-width: 62px; text-align: center; padding: 6px 4px 4px; }
.eho-cd b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.eho-cd small { font-size: 11px; color: #9fb6cc; }
.eho-cd-label { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.eho-cd-label b { color: var(--ink); }

/* ① الهيرو */
.eho-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 30%, rgba(209, 30, 43, .22) 0%, rgba(209, 30, 43, 0) 70%),
    linear-gradient(180deg, #0b1f33 0%, #0f2438 100%);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
[dir="ltr"] .eho-hero {
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(209, 30, 43, .22) 0%, rgba(209, 30, 43, 0) 70%),
    linear-gradient(180deg, #0b1f33 0%, #0f2438 100%);
}
.eho-hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 44px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.eho-crumb { font-size: 14px; color: #b9cde0; margin-bottom: 22px; }
.eho-crumb a { color: #fff; }
.eho-crumb span { margin-inline: 8px; opacity: .6; }
.eho-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(18, 161, 80, .18); color: #8ff0b6;
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 12px;
}
.eho-live i { width: 8px; height: 8px; border-radius: 50%; background: #35d27a; box-shadow: 0 0 0 4px rgba(53, 210, 122, .25); }
.eho-hero h1 { font-size: 50px; line-height: 1.25; margin: 4px 0 16px; font-weight: 900; color: #fff; text-wrap: balance; }
.eho-hero h1 em { font-style: normal; color: #ff5a64; }
.eho-hero__sub { font-size: 18px; color: #d6e4f0; margin: 0 0 26px; max-width: 620px; }
.eho-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.eho-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #d6e4f0; margin: 0; padding: 0; list-style: none; }
.eho-assure li { display: inline-flex; align-items: center; gap: 6px; }
.eho-assure li::before {
  content: ''; width: 14px; height: 8px; margin-top: -4px;
  border-left: 2.5px solid #35d27a; border-bottom: 2.5px solid #35d27a; transform: rotate(-45deg);   /* علامة ✓ — لا تنعكس مع الاتجاه */
}

/* تذكرة العرض الأقوى */
.eho-ticket { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; position: relative; }
.eho-ticket__top { background: linear-gradient(135deg, var(--red) 0%, #8f0f19 100%); color: #fff; padding: 20px 24px 18px; }
.eho-ticket__top small { display: block; font-size: 13px; opacity: .88; font-weight: 600; }
.eho-ticket__top b { font-size: 22px; font-weight: 800; }
.eho-ticket__pct {
  position: absolute; inset-inline-end: 20px; top: 16px;
  background: #fff; color: var(--red); font-weight: 900; font-size: 26px; border-radius: 14px; padding: 4px 12px; line-height: 1.3;
}
.eho-ticket__body { padding: 20px 24px 22px; }
.eho-perday { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* ② شريط الثقة */
.eho-trustbar { background: var(--ink); color: #cfe0ee; font-size: 14px; }
.eho-trustbar .eho-c { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-top: 14px; padding-bottom: 14px; }
.eho-trustbar span { display: inline-flex; align-items: center; gap: 6px; }
.eho-trustbar span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8fd3ff; flex: none; }
.eho-trustbar b { color: #fff; }

/* ③ عرض الأيام */
.eho-weekly {
  background: linear-gradient(90deg, #1a0b3d 0%, #3b1275 60%, #5b1a9e 100%); color: #fff;
  border-radius: var(--r-lg); padding: 20px 26px; margin: -24px 0 44px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; box-shadow: var(--sh-lg);
}
.eho-weekly__tag { background: #ffd23f; color: #2a1257; font-weight: 900; border-radius: 12px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.eho-weekly__txt { flex: 1; min-width: 240px; }
.eho-weekly__txt b { font-size: 18px; display: block; line-height: 1.5; }
.eho-weekly__txt small { color: #d9c8ff; font-size: 14px; }
.eho-weekly__next {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px; padding: 8px 16px; font-weight: 700; white-space: nowrap;
}
.eho-weekly .eho-cd { margin: 0; }
.eho-weekly .eho-cd div { background: rgba(255, 255, 255, .12); }
.eho-weekly .eho-cd small { color: #d9c8ff; }

/* ④ الباقات */
.eho-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-top: 8px; }
.eho-plan {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 22px; display: flex; flex-direction: column; position: relative; box-shadow: var(--sh);
}
.eho-plan--pop { border: 2px solid var(--blue); box-shadow: 0 18px 48px rgba(0, 136, 204, .2); transform: translateY(-10px); }
.eho-plan__pop {
  position: absolute; top: -15px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 16px; white-space: nowrap;
}
[dir="ltr"] .eho-plan__pop { transform: translateX(-50%); }
.eho-plan__badge { position: absolute; top: 18px; inset-inline-end: 18px; background: var(--red); color: #fff; font-weight: 900; border-radius: 10px; padding: 2px 10px; font-size: 15px; }
.eho-plan h3 { font-size: 24px; margin: 0; font-weight: 800; color: var(--ink); }
.eho-plan__for { color: var(--muted); font-size: 14px; margin: 2px 0 16px; min-height: 48px; }
.eho-plan .eho-pr strong { font-size: 36px; }
.eho-renew { font-size: 13px; color: var(--muted); margin: 2px 0 16px; }
.eho-renew b { color: var(--ink2); }
.eho-plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; flex: 1; }
.eho-plan li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.eho-plan li:last-child { border-bottom: 0; }
.eho-plan li::before {
  content: ''; flex: none; width: 12px; height: 7px; margin-top: 9px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

/* ⑤ عروض أخرى */
.eho-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.eho-ocard { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh); }
.eho-ocard__hd { padding: 22px 24px 14px; display: flex; gap: 16px; align-items: flex-start; }
.eho-ocard__pct { background: var(--red-s); color: var(--red); font-weight: 900; font-size: 24px; border-radius: 14px; padding: 6px 12px; line-height: 1.3; flex: none; }
.eho-ocard__hd h3 { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 800; color: var(--ink); }
.eho-ocard__hd p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.eho-ocard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); padding: 0 24px 12px; }
.eho-ocard__meta b { color: var(--ink2); }
.eho-rows { border-top: 1px solid var(--line); flex: 1; }
.eho-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.eho-row:last-child { border-bottom: 0; }
.eho-row small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.eho-row__n small { display: block; }
/* السعران رقمان متجاوران: بلا عزل يندمجان في مقطع LTR واحد فيظهر «3,2002,560»
   والمشطوب في الجهة الخطأ (مقيس). isolate يجعل كلًّا منهما وحدة مستقلة. */
.eho-row__p { font-variant-numeric: tabular-nums; }
.eho-row__p s, .eho-row__p strong { unicode-bidi: isolate; }
.eho-row__p small { display: block; }
.eho-row__from { color: var(--muted); font-size: 13px; }
.eho-row s { color: var(--muted); font-size: 13px; margin-inline-end: 4px; }
.eho-row strong { font-weight: 800; color: var(--ink); }
.eho-row a { background: var(--blue-s); color: var(--blue-d); font-weight: 700; border-radius: 999px; padding: 6px 16px; font-size: 14px; white-space: nowrap; }
.eho-row a:hover, .eho-row a:focus { background: var(--blue); color: #fff; }
.eho-ocard__ft { background: var(--bg); padding: 12px 24px; font-size: 13px; color: var(--muted); margin: 0; }
.eho-ocard__cta { padding: 4px 24px 24px; }

/* ⑥ هتدفع كام وإمتى */
.eho-timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; border: 1.5px solid var(--line);
}
.eho-timeline li { padding: 26px 24px; border-inline-start: 1px solid var(--line); }
.eho-timeline li:first-child { border-inline-start: 0; }
.eho-timeline small { color: var(--muted); font-weight: 700; font-size: 13px; }
.eho-timeline b { display: block; font-size: 26px; font-weight: 900; margin: 4px 0; color: var(--ink); }
.eho-timeline p { margin: 0; color: var(--muted); font-size: 14px; }
.eho-timeline .eho-tl--now b { color: var(--green-d); }

/* ⑦ الآراء */
.eho-quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eho-q { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--line); margin: 0; }
.eho-stars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.eho-q blockquote { margin: 0; padding: 0; border: 0; font-size: 15.5px; flex: 1; color: var(--ink); }
.eho-q figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.eho-q figcaption i { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-s); color: var(--blue-d); display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
.eho-q figcaption small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }

/* ⑧ الضمانات */
.eho-guar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.eho-g { background: #fff; border-radius: var(--r); padding: 22px 20px; border: 1.5px solid var(--line); text-align: center; }
.eho-g svg { width: 44px; height: 44px; color: var(--blue); margin: 0 auto 10px; display: block; }
.eho-g h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.eho-g p { margin: 0; color: var(--muted); font-size: 14px; }

/* ⑨ الأسئلة */
.eho-faq { max-width: 820px; margin: 0 auto; }
.eho-faq details { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 0 20px; }
.eho-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.eho-faq summary::-webkit-details-marker { display: none; }
.eho-faq summary::after { content: '+'; color: var(--blue); font-weight: 900; font-size: 22px; line-height: 1; }
.eho-faq details[open] summary::after { content: '−'; }
.eho-faq details p { margin: 0 0 16px; color: var(--ink2); }

/* ⑩ النداء الأخير */
.eho-final { background: linear-gradient(135deg, var(--blue-d) 0%, #0a3d5c 55%, var(--ink) 100%); color: #fff; text-align: center; padding: 64px 0; }
.eho .eho-final h2 { color: #fff; }
.eho-final p { color: #cfe0ee; margin: 0 0 20px; font-size: 17px; }
.eho-final .eho-cd { margin-bottom: 26px; }
.eho-final .eho-cd div { background: rgba(255, 255, 255, .12); }
.eho-final .eho-cd small { color: #cfe0ee; }

/* شريط الشراء الثابت — المحمول وحده */
.eho-sticky { display: none; }

@media (max-width: 991px) {
  .eho-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .eho-plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .eho-plan--pop { transform: none; order: -1; margin-top: 10px; }
  .eho-offers { grid-template-columns: 1fr; }
  .eho-quotes { grid-template-columns: 1fr 1fr; }
  .eho-guar { grid-template-columns: 1fr 1fr; }
  .eho-timeline { grid-template-columns: 1fr; }
  .eho-timeline li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .eho-timeline li:first-child { border-top: 0; }
}
@media (max-width: 767px) {
  .eho-sec { padding: 52px 0; }
  .eho h2 { font-size: 26px; }
  .eho-hero__grid { padding-top: 22px; padding-bottom: 44px; }
  .eho-crumb { margin-bottom: 14px; }
  .eho-hero h1 { font-size: 34px; }
  .eho-hero__sub { font-size: 16px; }
  .eho-ctas { flex-direction: column; }
  .eho-ctas .eho-btn { width: 100%; }
  .eho-ticket__top b { font-size: 19px; }
  .eho-pr strong, .eho-plan .eho-pr strong { font-size: 32px; }
  .eho-cd div { min-width: 54px; }
  .eho-weekly { padding: 18px; gap: 14px; }
  .eho-row { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .eho-row__p { grid-column: 1; grid-row: 2; }
  .eho-row a { grid-row: 1 / span 2; grid-column: 2; }
  .eho-ocard__hd, .eho-ocard__meta, .eho-ocard__ft { padding-inline: 18px; }
  .eho-quotes, .eho-guar { grid-template-columns: 1fr; }
  .eho-trustbar .eho-c { justify-content: flex-start; }

  /* فوق شريط «اتصل الآن» الثابت (#contact-us-button، ارتفاعه 44px على المحمول — مقيس
     على 375px)، وزر واتساب (#whatsapp-button، bottom 50px) يرتفع فوقه ما دام ظاهرًا. */
  .eho-sticky:not([hidden]) {
    display: flex; position: fixed; inset-inline: 0; bottom: 44px; z-index: 998;
    align-items: center; gap: 12px; padding: 10px 14px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 36, 56, .12);
  }
  .eho-sticky div { flex: 1; font-size: 13px; line-height: 1.4; }
  .eho-sticky b { font-size: 16px; }
  .eho-sticky s { color: var(--muted); }
  .eho-sticky .eho-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  /* bottom مكتوب inline في footer.tpl، فلا يغلبه إلا !important */
  body.eho-has-sticky #whatsapp-button { bottom: 118px !important; }
  body.eho-has-sticky #whatsapp-popup { bottom: 170px !important; }
}
@media (max-width: 400px) {
  .eho-hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .eho-plan--pop { transform: none; }
}
