
/* ALSHMALY GLOBAL DRAWER + NAV MOTION V12 */

/* Old/broken drawer stays disabled everywhere. */
#alm-drawer{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
#alm-drawer-overlay,
#alm-drawer-backdrop,
.alm-drawer-overlay,
.alm-drawer-backdrop{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

html.alm-global-drawer-open-v12,
body.alm-global-drawer-open-v12{
  overflow:hidden !important;
}

/* Very small route fade: enough to hide browser redraw, not enough to feel slow. */
html body{
  transition:opacity .11s ease !important;
}
html.alm-route-enter-v12 body{
  opacity:.92;
}
html.alm-route-leave-v12 body{
  opacity:.90;
}

#alm-global-drawer-backdrop-v12{
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:rgba(2,5,13,.72);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .20s ease,visibility .20s ease;
}

#alm-global-drawer-backdrop-v12.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#alm-global-drawer-v12{
  position:fixed;
  z-index:2147483001;
  top:0;
  left:0;
  bottom:0;
  width:min(82vw,360px);
  padding:calc(28px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  direction:rtl;
  color:#f2f4f9;
  background:
    radial-gradient(circle at 10% 90%,rgba(96,52,220,.18),transparent 35%),
    radial-gradient(circle at 85% 12%,rgba(37,83,190,.16),transparent 30%),
    linear-gradient(180deg,#091126 0%,#060b18 100%);
  border-right:1px solid rgba(93,116,193,.22);
  box-shadow:22px 0 70px rgba(0,0,0,.45);
  transform:translateX(-105%);
  visibility:hidden;
  pointer-events:none;
  transition:transform .22s cubic-bezier(.2,.75,.2,1),visibility .22s ease;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

#alm-global-drawer-v12.open{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
}

.alm-gd12-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.alm-gd12-close{
  order:2;
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  padding:0;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  color:#aeb8ca;
  background:rgba(255,255,255,.025);
  font-size:24px;
  line-height:1;
}

.alm-gd12-brand{
  order:1;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

.alm-gd12-crown{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#e6bd66;
  font-size:27px;
  border:1px solid rgba(230,189,102,.20);
  background:linear-gradient(145deg,rgba(230,189,102,.10),rgba(255,255,255,.018));
}

.alm-gd12-brand strong{
  display:block;
  font-size:16px;
  color:#f6f7fa;
  white-space:nowrap;
}

.alm-gd12-brand small{
  display:block;
  margin-top:5px;
  color:#6f7d94;
  font-size:8px;
  white-space:nowrap;
}

.alm-gd12-rule{
  height:1px;
  margin:20px 2px 17px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
}

.alm-gd12-nav{
  display:grid;
  gap:8px;
}

.alm-gd12-link{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:56px;
  padding:6px 9px 6px 12px;
  border:1px solid rgba(109,132,207,.11);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(17,28,52,.72),rgba(7,13,27,.82));
  color:#dce3ef !important;
  text-decoration:none !important;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}

.alm-gd12-link:active{
  transform:scale(.985);
}

.alm-gd12-link.active{
  color:#f0cb74 !important;
  border-color:rgba(230,189,102,.26);
  background:linear-gradient(145deg,rgba(230,189,102,.105),rgba(15,22,40,.86));
  box-shadow:
    inset -3px 0 0 rgba(230,189,102,.70),
    inset 0 1px rgba(255,255,255,.03),
    0 10px 26px rgba(0,0,0,.10);
}

.alm-gd12-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  font-size:15px;
  color:#aeb9cc;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.025);
}

.alm-gd12-link.active .alm-gd12-icon{
  color:#e8c36e;
  border-color:rgba(230,189,102,.17);
  background:rgba(230,189,102,.055);
}

.alm-gd12-label{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:800;
  color:inherit;
}

.alm-gd12-arr{
  color:#617086;
  font-size:21px;
  line-height:1;
}

.alm-gd12-soon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  color:#caaa65;
  font-size:7px;
  border:1px solid rgba(230,189,102,.13);
  background:rgba(230,189,102,.04);
}

.alm-gd12-foot{
  margin-top:22px;
  padding-top:15px;
  text-align:center;
  color:#3f4b60;
  font-size:7px;
  letter-spacing:3px;
  border-top:1px solid rgba(255,255,255,.035);
}

@media (max-width:380px){
  #alm-global-drawer-v12{width:86vw;padding-left:14px;padding-right:14px}
}
