/* Full Qimah brand supplied by the owner, cropped optically for the shared header. */
#main-header .qimah-header__brand{position:relative;display:grid;width:72px;min-width:72px;min-height:72px;padding:0;margin-inline:0 3px;place-items:center;overflow:hidden;border:0;border-radius:16px;background:#fff;isolation:isolate}
#main-header .qimah-header__brand::before{position:absolute;z-index:0;inset:7px;border-radius:15px;background:radial-gradient(circle,rgba(8,114,201,.1),transparent 72%);content:"";opacity:0;transform:scale(.78);transition:opacity 180ms ease,transform 180ms ease}
#main-header .qimah-header__brand-logo{position:absolute;z-index:1;top:50%;left:50%;display:block;width:82px!important;max-width:none!important;height:82px!important;max-height:none!important;object-fit:contain;filter:drop-shadow(0 7px 13px rgba(7,61,124,.12));transform:translate(-50%,-50%) scale(1.12);transform-origin:center;animation:qimah-full-logo-arrive 680ms cubic-bezier(.22,1,.36,1);transition:filter 180ms ease,transform 180ms ease}
#main-header .qimah-header__brand:hover::before,#main-header .qimah-header__brand:focus-visible::before{opacity:1;transform:scale(1)}
#main-header .qimah-header__brand:hover .qimah-header__brand-logo,#main-header .qimah-header__brand:focus-visible .qimah-header__brand-logo{filter:drop-shadow(0 9px 16px rgba(7,61,124,.2));transform:translate(-50%,-51.5%) scale(1.16)}
#main-header .qimah-header__brand:focus-visible{outline:3px solid rgba(8,114,201,.28);outline-offset:2px}
@keyframes qimah-full-logo-arrive{from{opacity:0;transform:translate(-50%,-58%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1.12)}}
@media(max-width:47.99875rem){#main-header .qimah-header__brand{width:58px;min-width:58px;min-height:64px;margin-inline:0;border-radius:14px}#main-header .qimah-header__brand-logo{width:72px!important;height:72px!important}}
@media(prefers-reduced-motion:reduce){#main-header .qimah-header__brand-logo{animation:none;transition:none}#main-header .qimah-header__brand::before{transition:none}}

/* Mobile visual order (RTL): brand, account, then menu at the far left. */
@media(max-width:73.75rem){
  #main-header .qimah-header__brand{order:0}
  #main-header .qimah-header__account{order:1}
  #main-header .qimah-header__menu{order:2}
}

/* Direction-safe centering: remains centered in both RTL and LTR. */
#main-header .qimah-header__brand-logo{position:relative;top:auto;right:auto;bottom:auto;left:auto;grid-area:1/1;transform:scale(1.12);animation:qimah-full-logo-arrive-centered 680ms cubic-bezier(.22,1,.36,1)}
#main-header .qimah-header__brand:hover .qimah-header__brand-logo,#main-header .qimah-header__brand:focus-visible .qimah-header__brand-logo{transform:translateY(-1px) scale(1.16)}
@keyframes qimah-full-logo-arrive-centered{from{opacity:0;transform:translateY(-7px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1.12)}}
#main-header .qimah-header__brand-logo{justify-self:center;align-self:center}
#main-header .qimah-header__brand{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
