.wf-lang-switch{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:4px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(109,40,217,.16);
  box-shadow:0 8px 22px rgba(76,29,149,.08);
}
.wf-lang-switch a{
  min-width:34px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  color:#5b1c83;
  text-decoration:none;
}
.wf-lang-switch a.active{
  color:#fff;
  background:linear-gradient(135deg,#8b2ff3,#5b13b9);
}
html[dir="rtl"] .wf-lang-switch{direction:ltr}
@media(max-width:760px){
  .wf-lang-switch a{min-width:31px;height:28px;font-size:.72rem}
}

/* Mobile header polish for language switcher */
@media(max-width:760px){
  .wf-home-header-inner{
    gap:8px;
  }

  .wf-home-brand img{
    max-width:112px;
    height:auto;
  }

  .wf-home-header-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
  }

  .wf-lang-switch{
    padding:3px;
    gap:2px;
  }

  .wf-lang-switch a{
    min-width:28px;
    height:26px;
    font-size:.7rem;
  }

  .wf-home-login{
    min-width:auto;
    padding:10px 12px;
    font-size:.82rem;
    white-space:nowrap;
  }

  .wf-home-menu-toggle{
    flex-shrink:0;
  }
}

@media(max-width:380px){
  .wf-home-brand img{
    max-width:96px;
  }

  .wf-home-login{
    padding:9px 10px;
    font-size:.76rem;
  }

  .wf-lang-switch a{
    min-width:26px;
    height:25px;
    font-size:.68rem;
  }
}



/* force single language circle */
.wf-lang-switch{display:none!important}
.wf-lang-circle{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  background:linear-gradient(135deg,#8b2ff3,#5b13b9)!important;
  text-decoration:none!important;
  font-weight:900!important;
  font-size:.82rem!important;
  box-shadow:0 10px 24px rgba(91,19,185,.22)!important;
}
html[dir="rtl"] .wf-lang-circle{direction:ltr!important}
@media(max-width:380px){
  .wf-lang-circle{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
  }
}


/* Wfarhali clean mobile header v2 */
.wf-home-header-v2 .wf-home-header-inner{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 64px!important;
  align-items:center!important;
  gap:10px!important;
}

.wf-home-header-v2 .wf-home-brand{
  justify-self:center!important;
  min-width:0!important;
}

.wf-home-header-v2 .wf-home-brand img{
  max-width:168px!important;
  width:100%!important;
  height:auto!important;
}

.wf-home-header-v2 .wf-home-menu-toggle{
  justify-self:start!important;
}

.wf-home-header-v2 .wf-lang-circle{
  justify-self:end!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  background:linear-gradient(135deg,#8b2ff3,#5b13b9)!important;
  text-decoration:none!important;
  font-weight:900!important;
  font-size:.86rem!important;
  box-shadow:0 10px 24px rgba(91,19,185,.22)!important;
  direction:ltr!important;
}

html[dir="rtl"] .wf-home-header-v2 .wf-home-header-inner{
  direction:rtl!important;
}

html[dir="rtl"] .wf-home-header-v2 .wf-home-menu-toggle{
  justify-self:start!important;
}

html[dir="rtl"] .wf-home-header-v2 .wf-lang-circle{
  justify-self:end!important;
}

.wf-home-header-v2 .wf-home-header-actions,
.wf-home-header-v2 .wf-lang-switch{
  display:none!important;
}

@media(max-width:760px){
  .wf-home-header-v2 .wf-home-header-inner{
    grid-template-columns:54px minmax(0,1fr) 54px!important;
    gap:8px!important;
  }
  .wf-home-header-v2 .wf-home-brand img{
    max-width:150px!important;
  }
  .wf-home-header-v2 .wf-lang-circle,
  .wf-home-header-v2 .wf-home-menu-toggle{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }
}

@media(max-width:380px){
  .wf-home-header-v2 .wf-home-brand img{
    max-width:128px!important;
  }
  .wf-home-header-v2 .wf-lang-circle,
  .wf-home-header-v2 .wf-home-menu-toggle{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
  }
}
