:root{
  --egx-font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;

  --egx-bg: #f3f6fb;
  --egx-ink: #0b1220;

  --egx-blue: #1d4ed8;
  --egx-orange: #f97316;

  --egx-card: rgba(255,255,255,.78);
  --egx-stroke: rgba(15,23,42,.10);

  --egx-shadow: 0 10px 26px rgba(2,8,23,.10);

  --egx-h: 54px;
  --egx-radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ font-family: var(--egx-font); background: var(--egx-bg); color: var(--egx-ink); }

/* ===== Mobile Header ===== */
.egx-mh{
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.04));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.egx-mh__wrap{
  width: min(1220px, calc(100% - 20px));
  margin-inline: auto;
  height: var(--egx-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--egx-radius);
  background: var(--egx-card);
  border: 1px solid var(--egx-stroke);
  box-shadow: var(--egx-shadow);
}

/* Right: burger + brand */
.egx-mh__right{ display:flex; align-items:center; gap:10px; }

.egx-mh__burger{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 14px rgba(2,8,23,.08);
  display:grid; place-items:center;
  cursor:pointer; padding:0;
}
.egx-mh__burger span{
  display:block; width: 18px; height: 2px;
  background: rgba(15,23,42,.75);
  border-radius: 99px;
}
.egx-mh__burger span:nth-child(2){ width: 14px; opacity:.85; }
.egx-mh__burger span:nth-child(3){ width: 10px; opacity:.75; }

.egx-mh__brand{ display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.egx-mh__logo{
  width:36px;height:36px;
  border-radius: 12px;
  overflow:hidden;
  background: radial-gradient(circle at 20% 15%, rgba(96,165,250,.45), rgba(29,78,216,.10));
  border: 1px solid rgba(29,78,216,.14);
  box-shadow: 0 10px 18px rgba(29,78,216,.14);
  display:grid; place-items:center;
}
.egx-mh__logo img{ width:100%; height:100%; object-fit:cover; }
.egx-mh__brandText{ font-weight: 900; font-size: 13px; white-space: nowrap; color: rgba(15,23,42,.88); }

/* Icons (reduced gap) */
.egx-mh__icons{ display:flex; align-items:center; gap:6px; }

.egx-mh__ic{
  width: 42px; height: 42px;
  border-radius: 14px;
  display:grid; place-items:center;
  text-decoration:none;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 8px 14px rgba(2,8,23,.08);
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.egx-mh__ic:hover{ transform: translateY(-1px); border-color: rgba(29,78,216,.22); }
.egx-mh__ic svg{ width:18px;height:18px; }

.egx-mh__ic--wa svg{ fill: #16a34a; }
.egx-mh__ic--call svg{ fill: #0ea5e9; }
.egx-mh__ic--user svg{ fill: #475569; }
.egx-mh__ic--notif svg{ fill: var(--egx-blue); }

/* Hot badge دائم */
.egx-mh__badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
  color:#fff;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 10px 18px rgba(220,38,38,.25);
}
.egx-mh__badge--hot{ animation: egxPulse 1.6s infinite; }
@keyframes egxPulse{ 0%{transform:scale(1);} 50%{transform:scale(1.15);} 100%{transform:scale(1);} }

/* ===== Drawer ===== */
.egx-mh__overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
}

.egx-mh__drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 340px);
  background: rgba(255,255,255,.98);
  border-left: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 40px rgba(2,8,23,.20);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
}
.egx-mh--open .egx-mh__drawer{ transform: translateX(0); }

.egx-mh__drawerHead{
  height: 64px;
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(29,78,216,.10), rgba(15,23,42,.02));
}
.egx-mh__drawerTitle{ font-weight: 900; font-size: 14px; color: rgba(15,23,42,.85); }
.egx-mh__close{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  display:grid; place-items:center;
}
.egx-mh__close svg{ width:18px;height:18px; fill: rgba(15,23,42,.70); }

.egx-mh__drawerBrand{ text-align:center; padding: 14px 10px 10px; }
.egx-mh__drawerBrand img{
  width: 50px; height: 50px;
  border-radius: 16px;
  display:block;
  margin: 0 auto 6px;
  box-shadow: 0 10px 18px rgba(2,8,23,.10);
}
.egx-mh__drawerBrand strong{ display:block; font-weight: 900; font-size: 14px; color: rgba(15,23,42,.88); }

/* CTAs */
.egx-mh__drawerCTAs{ display:grid; gap:10px; padding: 10px 12px 4px; }
.egx-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  border-radius: 16px;
  color:#fff;
  font-weight: 900;
  font-size: 14px;
  text-decoration:none;
  box-shadow: 0 14px 22px rgba(2,8,23,.10);
}
.egx-btn--blue{ background: linear-gradient(135deg, #0b2a5a, var(--egx-blue)); }
.egx-btn--orange{ background: linear-gradient(135deg, #c2410c, var(--egx-orange)); }

/* Stats */
.egx-mh__stats{
  padding: 10px 12px 8px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.egx-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(29,78,216,.06);
  border: 1px solid rgba(29,78,216,.10);
  font-weight: 800;
  font-size: 13px;
  color: rgba(15,23,42,.85);
}
.egx-pill b{ font-weight: 900; }
.egx-pillIco{ opacity:.95; }

/* Menu */
.egx-mh__nav{ padding: 10px 10px 14px; overflow:auto; flex: 1; }
.egx-mh__menu,
.egx-mh__menu ul{ list-style:none; margin:0; padding:0; }
.egx-mh__menu > li{ border-bottom: 1px solid rgba(15,23,42,.06); }
.egx-mh__menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 10px;
  text-decoration:none;
  color: rgba(15,23,42,.88);
  font-weight: 800;
  font-size: 13.5px;
}
.egx-mh__menu a:hover{ background: rgba(29,78,216,.06); }
.egx-mh__menu li ul a{
  padding-inline-start: 18px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.76);
}

/* Lock scroll */
.egx-mh-lock, .egx-mh-lock body{ overflow:hidden; }

@media (max-width: 380px){
  :root{ --egx-h: 52px; }
  .egx-mh__brandText{ display:none; }
  .egx-mh__ic, .egx-mh__burger{ width: 40px; height: 40px; border-radius: 13px; }
}
