

.alh-show-desktop{display:inherit}
.alh-show-mobile{display:inherit}
@media (max-width: 980px){
  .alh-show-desktop{display:none !important}
}
@media (min-width: 981px){
  .alh-show-mobile{display:none !important}
}

.alhhm-wrap{background:var(--alhhm-bg);border-bottom:1px solid var(--alhhm-border);color:var(--alhhm-text);position:sticky;top:0;z-index:9999}
.alhhm-wrap:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(700px 260px at 15% 0%, rgba(168,85,247,0.14), transparent 60%),radial-gradient(600px 220px at 85% 0%, rgba(168,85,247,0.10), transparent 60%)}
.alhhm-container{position:relative;max-width:var(--alhhm-w);margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.alhhm-brand{display:flex;align-items:center;gap:10px;min-width:170px}
.alhhm-mark{width:12px;height:12px;border-radius:999px;background:rgba(168,85,247,0.95);box-shadow:0 0 0 5px rgba(168,85,247,0.12)}
.alhhm-title{font-weight:900;letter-spacing:.2px;color:rgba(255,255,255,0.92);text-decoration:none !important}
.alhhm-nav{display:flex;align-items:center;gap:8px;flex:1;justify-content:var(--alhhm-justify)}
.alhhm-item{position:relative}
.alhhm-link{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;color:rgba(255,255,255,0.88);text-decoration:none !important;border:1px solid rgba(168,85,247,0.12);background:rgba(255,255,255,0.03);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap}
.alhhm-link:hover{transform:translateY(-1px);border-color:rgba(168,85,247,0.55);box-shadow:0 10px 18px rgba(0,0,0,0.22),0 0 0 4px rgba(168,85,247,0.10)}
.alhhm-icn{font-size:18px;width:18px;height:18px;color:var(--alhhm-hover)}
.alhhm-caret{font-size:14px;opacity:.8}
.alhhm-actions{display:flex;align-items:center;gap:10px}
.alhhm-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:14px;text-decoration:none !important;color:rgba(255,255,255,0.92);border:1px solid rgba(168,85,247,0.25);background:rgba(168,85,247,0.12);font-weight:800}
.alhhm-btn:hover{border-color:rgba(168,85,247,0.65);box-shadow:0 0 0 4px rgba(168,85,247,0.10)}
.alhhm-toggle{display:none;border:1px solid rgba(168,85,247,0.25);background:rgba(255,255,255,0.03);border-radius:14px;padding:10px 12px;color:rgba(255,255,255,0.92)}
.alhhm-toggle .dashicons{font-size:20px;width:20px;height:20px;color:var(--alhhm-hover)}
.alhhm-dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:220px;background:rgba(10,10,18,0.95);border:1px solid rgba(168,85,247,0.25);border-radius:16px;padding:8px;box-shadow:0 18px 34px rgba(0,0,0,0.30);display:none}
.alhhm-item:hover>.alhhm-dropdown{display:block}
.alhhm-dd-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;color:rgba(255,255,255,0.86);text-decoration:none !important;border:1px solid transparent}
.alhhm-dd-link:hover{border-color:rgba(168,85,247,0.35);background:rgba(168,85,247,0.10)}
@media (max-width:980px){
  .alhhm-toggle{display:inline-flex}
  .alhhm-nav{display:none}
  .alhhm-wrap.alhhm-open .alhhm-nav{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 16px 16px;max-width:var(--alhhm-w);margin:0 auto}
  .alhhm-container{padding:10px 16px}
  .alhhm-actions{display:flex}
  .alhhm-dropdown{position:relative;top:auto;right:auto;display:block;margin-top:8px}
}

/* تحسين الهيدر للجوال: إظهار الأزرار وتنسيقها */
@media (max-width: 980px){
  .alhhm-container{flex-wrap:wrap}
  .alhhm-actions{width:100%;justify-content:center;gap:10px;padding-bottom:6px}
  .alhhm-btn{flex:0 0 auto}
}
.alhhm-logo{display:block;border-radius:12px;box-shadow:0 0 0 4px rgba(168,85,247,0.10)}
.alhhm-logo-link{text-decoration:none !important;display:inline-flex;align-items:center}


/* ===== Level 3 sub dropdown ===== */
.alhhm-dd-item{position:relative}
.alhhm-dd-item.has-sub > .alhhm-dd-link{display:flex;align-items:center;justify-content:space-between;gap:10px}
.alhhm-sub-caret{margin-inline-start:auto;opacity:.8}
.alhhm-subdropdown{
  position:absolute;
  top:0;
  right:100%;
  min-width:260px;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(168,85,247,.25);
  background:rgba(7,7,18,.92);
  box-shadow:0 18px 44px rgba(0,0,0,.42);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  transform:translateX(-18px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:10002;
}
.alhhm-dd-item.has-sub:hover > .alhhm-subdropdown{
  opacity:1;
  visibility:visible;
  transform:translateX(-10px);
}
.alhhm-subdropdown::before{
  content:"";
  position:absolute;
  left:100%;
  top:0;
  width:16px;
  height:100%;
}
/* keep dropdown open while moving mouse */
.alhhm-dropdown{top:calc(100% + 0px)}
.alhhm-dropdown::before{height:12px}
