/* ==========================================================================
   EgyHosting — Order Form 2026  ·  v1.0.0
   كل الكلاسات هنا تبدأ بـ ehc- لتجنّب التعارض مع bootstrap و all.min.css
   ومع كلاسات eh- الخاصة بالصفحة الرئيسية.
   التوكنز مطابقة لـ css/home-2026.css — أي تغيير في الهوية يحدث في الملفين معًا.
   ========================================================================== */

#order-standard_cart .ehc,
.ehc {
  --ehc-red: #d11e2b;
  --ehc-red-dark: #a3151f;
  --ehc-red-soft: #fdeced;
  --ehc-blue: #0088cc;
  --ehc-blue-dark: #005f90;
  --ehc-blue-soft: #e8f5fc;
  --ehc-green: #12a150;
  --ehc-green-soft: #e6f6ed;
  --ehc-amber: #f0a000;

  --ehc-ink: #0f2438;
  --ehc-ink-2: #34495e;
  --ehc-muted: #64798d;
  --ehc-line: #e4ebf2;
  --ehc-bg: #f5f8fb;

  --ehc-r-sm: 10px;
  --ehc-r: 16px;
  --ehc-r-pill: 999px;

  --ehc-sh-sm: 0 2px 10px rgba(15, 36, 56, .06);
  --ehc-sh: 0 6px 24px rgba(15, 36, 56, .08);
  --ehc-sh-lg: 0 18px 48px rgba(15, 36, 56, .14);
}

.ehc { color: var(--ehc-ink); }
.ehc *, .ehc *::before, .ehc *::after { box-sizing: border-box; }

/* كل الأرقام تُعزل اتجاهيًا — بدونها يقرأ RTL «36%+» كأنها «36%-» */
.ehc-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* -------------------------------------------------- 1. ترويسة المجموعة */

.ehc-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.ehc-head__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ehc-ink);
}

.ehc-head__tagline {
  font-size: 17px;
  color: var(--ehc-muted);
  margin: 0;
}

/* -------------------------------------------------- 2. مبدّل دورة الدفع */

.ehc-cycle {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

.ehc-cycle__box {
  display: inline-flex;
  background: var(--ehc-bg);
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r-pill);
  padding: 5px;
  gap: 4px;
  box-shadow: var(--ehc-sh-sm);
}

.ehc-cycle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ehc-ink-2);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 26px;
  min-height: 46px;
  border-radius: var(--ehc-r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ehc-cycle__btn:hover { color: var(--ehc-ink); }

.ehc-cycle__btn.is-active {
  background: #fff;
  color: var(--ehc-ink);
  box-shadow: var(--ehc-sh-sm);
}

.ehc-cycle__btn:focus-visible {
  outline: 2px solid var(--ehc-blue);
  outline-offset: 2px;
}

.ehc-cycle__save {
  background: var(--ehc-green-soft);
  color: #0b7a3c;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--ehc-r-pill);
  white-space: nowrap;
}

.ehc-cycle__note {
  text-align: center;
  font-size: 13px;
  color: var(--ehc-muted);
  margin: 0 0 26px;
}

/* -------------------------------------------------- 3. شبكة الباقات */

.ehc-grid {
  display: grid;
  /* cart-body لا يتجاوز ~850px بعد القائمة الجانبية، و280px كانت تسمح بعمودين فقط
     فتنزل الباقة الثالثة لصف جديد. 235px تُبقي الثلاثة في صف واحد. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 40px;
}

.ehc-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r);
  padding: 24px 18px 20px;
  box-shadow: var(--ehc-sh-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}

.ehc-plan:hover {
  box-shadow: var(--ehc-sh);
  transform: translateY(-2px);
}

.ehc-plan--featured {
  border-color: var(--ehc-red);
  border-width: 2px;
  box-shadow: var(--ehc-sh);
}

.ehc-plan__tag {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--ehc-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--ehc-r-pill);
  white-space: nowrap;
}

[dir="ltr"] .ehc-plan__tag { transform: translateX(-50%); }

.ehc-plan__name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 4px 0 6px;
  color: var(--ehc-ink);
}

/* اسم من سطرين لا يزيح سعر بطاقته لأسفل ويكسر محاذاة الصف */
@media (min-width: 768px) {
  .ehc-plan__name {
    min-height: 58px;
    display: flex;
    align-items: center;
  }
}

.ehc-plan__for {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ehc-muted);
  margin: 0 0 16px;
}

/* ------------------------------------------------ وصف المنتج القادم من WHMCS
   محتوى هذا البلوك يكتبه الأدمن في لوحة WHMCS وغالبًا يأتي كـ <ul> مع وسوم <br>
   ضائعة بين العناصر و<p> فارغة في آخره. نُحيّد كل ذلك هنا بدل تعديل كل منتج. */

.ehc-plan__desc {
  font-size: 14px;
  color: var(--ehc-ink-2);
  margin: 4px 0 0;
  flex: 1 1 auto;
}

.ehc-plan__desc br { display: none; }
.ehc-plan__desc p:empty { display: none; }
.ehc-plan__desc p { margin: 0 0 8px; }

.ehc-plan__desc ul,
.ehc-plan__desc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ehc-plan__desc li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 9px;
  line-height: 1.65;
}

.ehc-plan__desc li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  color: var(--ehc-green);
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  font-size: 12px;
}

.ehc-plan__desc strong {
  font-weight: 700;
  color: var(--ehc-ink);
}

.ehc-plan__desc li.is-extra { display: none; }
.ehc-plan__desc ul.is-open li.is-extra { display: block; }

.ehc-plan__stock {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ehc-amber);
  margin-bottom: 8px;
}

/* -------------------------------------------------- 4. بلوك السعر */

.ehc-price {
  border-top: 1px solid var(--ehc-line);
  border-bottom: 1px solid var(--ehc-line);
  padding: 16px 0;
  margin: 14px 0 16px;
}

.ehc-price__state[hidden] { display: none; }

.ehc-badge {
  display: inline-block;
  background: var(--ehc-red-soft);
  color: var(--ehc-red);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--ehc-r-pill);
  margin-bottom: 10px;
}

.ehc-price__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ehc-price__num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--ehc-ink);
  direction: ltr;
  unicode-bidi: isolate;
}

.ehc-price__num--sm {
  font-size: 26px;
  font-weight: 800;
}

.ehc-price__unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ehc-muted);
}

.ehc-price__sub {
  font-size: 14px;
  color: var(--ehc-ink-2);
  margin-top: 10px;
  line-height: 1.8;
}

.ehc-price__sub b { font-weight: 800; }

.ehc-price__old {
  text-decoration: line-through;
  color: var(--ehc-muted);
  margin-inline-start: 6px;
}

.ehc-price__save {
  display: inline-block;
  background: var(--ehc-green-soft);
  color: #0b7a3c;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--ehc-r-pill);
  margin-inline-start: 4px;
}

.ehc-price__renew,
.ehc-price__only {
  font-size: 12.5px;
  color: var(--ehc-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.ehc-price__only {
  background: var(--ehc-blue-soft);
  color: var(--ehc-blue-dark);
  border-radius: var(--ehc-r-sm);
  padding: 8px 12px;
  font-weight: 600;
}

.ehc-price__setup {
  display: block;
  font-size: 12.5px;
  color: var(--ehc-muted);
  margin-top: 6px;
}

/* -------------------------------------------------- 5. الأزرار */

.ehc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: var(--ehc-r-pill);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ehc-btn:focus-visible {
  outline: 2px solid var(--ehc-blue);
  outline-offset: 2px;
}

.ehc-btn--primary {
  background: var(--ehc-red);
  border-color: var(--ehc-red);
  color: #fff;
}

.ehc-btn--primary:hover,
.ehc-btn--primary:focus {
  background: var(--ehc-red-dark);
  border-color: var(--ehc-red-dark);
  color: #fff;
  text-decoration: none;
}

.ehc-btn--ghost {
  background: #fff;
  border-color: var(--ehc-blue);
  color: var(--ehc-blue-dark);
}

.ehc-btn--ghost:hover,
.ehc-btn--ghost:focus {
  background: var(--ehc-blue);
  border-color: var(--ehc-blue);
  color: #fff;
  text-decoration: none;
}

.ehc-plan__note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ehc-green);
  font-weight: 700;
  margin: 10px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ehc-line);
}

/* -------------------------------------------------- 6. المميزات */

.ehc-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  flex: 1 1 auto;
}

.ehc-feats li {
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ehc-ink-2);
  padding-inline-start: 26px;
  margin-bottom: 10px;
}

.ehc-feats li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  color: var(--ehc-green);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  font-size: 12px;
}

.ehc-feats li.is-extra { display: none; }
.ehc-feats.is-open li.is-extra { display: block; }

.ehc-feats__val { font-weight: 800; color: var(--ehc-ink); }

.ehc-more {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ehc-blue-dark);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  text-align: start;
  width: 100%;
}

.ehc-more:hover { text-decoration: underline; }

/* -------------------------------------------------- 7. مبدّل العملة */

.ehc-currency {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.ehc-currency select {
  max-width: 220px;
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r-sm);
  min-height: 44px;
}

/* -------------------------------------------------- 8. أقسام المميزات المشتركة */

.ehc-common {
  margin: 0 0 34px;
}

.ehc-common__title {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: var(--ehc-red);
  margin: 0 0 16px;
}

.ehc-common__box {
  background: #fff;
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r);
  box-shadow: var(--ehc-sh-sm);
  padding: 22px;
}

.ehc-common__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 22px;
}

.ehc-common__list li {
  font-size: 14px;
  color: var(--ehc-ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ehc-common__list i {
  color: var(--ehc-blue);
  width: 20px;
  text-align: center;
  flex: 0 0 auto;
}

/* -------------------------------------------------- 9. Google Workspace */

.ehc-gw__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.ehc-gw__intro h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
}

.ehc-gw__intro p {
  color: var(--ehc-muted);
  line-height: 1.9;
  margin: 0;
}

.ehc-gw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

/* ehc-tile وليس .card — إعادة تعريف .card عالميًا كانت تُشوّه القائمة الجانبية */
.ehc-tile {
  background: #fff;
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r);
  box-shadow: var(--ehc-sh-sm);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ehc-tile:hover {
  box-shadow: var(--ehc-sh);
  transform: translateY(-3px);
}

.ehc-tile i {
  font-size: 34px;
  color: var(--ehc-red);
  margin-bottom: 12px;
  display: block;
}

.ehc-tile h5 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ehc-tile p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ehc-muted);
  margin: 0;
}

/* -------------------------------------------------- 10. CTA التسعير الخاص */

.ehc-cta {
  background: var(--ehc-bg);
  border: 1px solid var(--ehc-line);
  border-radius: var(--ehc-r);
  padding: 30px 24px;
  text-align: center;
  margin-bottom: 30px;
}

.ehc-cta h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ehc-red);
  margin: 0 0 8px;
  line-height: 1.5;
}

.ehc-cta p {
  color: var(--ehc-blue-dark);
  font-size: 15px;
  margin: 0 0 18px;
}

.ehc-cta .ehc-btn { width: auto; min-width: 240px; }

/* -------------------------------------------------- 11. الموبايل */

@media (max-width: 767px) {
  .ehc-head__title { font-size: 25px; }
  .ehc-head { margin-bottom: 16px; }
  .ehc-head__tagline { font-size: 15px; }
  .ehc-currency { margin-bottom: 12px; }

  /* المبدّل يلتصق أعلى الشاشة أثناء تصفّح الباقات — هيدر الموقع غير ثابت
     على الموبايل، تحقّقنا من ذلك على السيرفر قبل إضافة sticky. */
  .ehc-cycle {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    padding: 10px 0 8px;
    margin-bottom: 0;
  }

  .ehc-cycle__note { margin: 0 0 18px; }

  .ehc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* «الأكثر طلبًا» أولًا على الموبايل — نفس ترتيب الصفحة الرئيسية */
  .ehc-plan--featured { order: -1; }

  .ehc-plan { padding: 22px 16px 18px; }
  .ehc-price__num { font-size: 34px; }
  .ehc-plan__name { font-size: 20px; }
  .ehc-plan__desc li { margin-bottom: 8px; }

  .ehc-cycle__box { width: 100%; }
  .ehc-cycle__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 10px;
    font-size: 14px;
  }
  .ehc-cycle__save { font-size: 11px; padding: 2px 7px; }

  .ehc-common__list { grid-template-columns: 1fr; }
}
