/* =========================================================
   Language switcher (EN / AR / DE / FA)
   ========================================================= */
.lang-switch{
  position:relative;
  z-index:60;
}
.lang-switch-btn{
  display:flex; align-items:center; gap:8px;
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:9px 14px;
  border-radius:999px;
  font-size:13.5px;
  color:var(--text);
  cursor:pointer;
  font-family:var(--font-fa);
  transition:border-color .15s ease, color .15s ease;
}
.lang-switch-btn:hover{ border-color:var(--purple); color:var(--silver); }
.lang-switch-btn .flag{ font-size:16px; line-height:1; display:flex; }
.lang-switch-btn .flag img{ width:22px; height:16px; border-radius:3px; object-fit:cover; box-shadow:0 0 0 1px rgba(255,255,255,.12); display:block; }
.lang-switch-btn .caret{
  width:8px; height:8px;
  border-inline-end:2px solid var(--text-dim);
  border-bottom:2px solid var(--text-dim);
  transform:rotate(45deg);
  transition:transform .15s ease;
  margin-top:-3px;
}
.lang-switch.open .lang-switch-btn .caret{ transform:rotate(225deg); margin-top:3px; }

.lang-switch-menu{
  position:absolute;
  top:calc(100% + 10px);
  inset-inline-end:0;
  min-width:170px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:0 12px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(124,58,237,.08);
  padding:6px;
  display:none;
  flex-direction:column;
  gap:2px;
}
.lang-switch.open .lang-switch-menu{ display:flex; }

.lang-switch-menu button{
  display:flex; align-items:center; gap:10px;
  width:100%;
  background:none; border:0;
  padding:10px 12px;
  border-radius:8px;
  font-size:14px;
  font-family:var(--font-fa);
  color:var(--text);
  cursor:pointer;
  text-align:start;
  transition:background .15s ease, color .15s ease;
}
.lang-switch-menu button:hover{ background:var(--surface-2); color:var(--silver); }
.lang-switch-menu button.active{ background:var(--surface-2); color:var(--purple-light); }
.lang-switch-menu .flag{ font-size:17px; line-height:1; display:flex; }
.lang-switch-menu .flag img{ width:20px; height:15px; border-radius:3px; object-fit:cover; box-shadow:0 0 0 1px rgba(255,255,255,.12); display:block; }

@media (max-width:860px){
  .lang-switch-menu{ inset-inline-end:auto; inset-inline-start:0; }
}

/* Hide Google Translate's default chrome — we drive it with our own UI */
.goog-te-banner-frame{ display:none !important; }
body{ top:0 !important; }
.goog-te-gadget{ height:0; overflow:hidden; position:absolute; opacity:0; pointer-events:none; }
#google_translate_element{ position:absolute; width:0; height:0; overflow:hidden; opacity:0; pointer-events:none; }
.skiptranslate iframe{ display:none !important; }
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd{ display:none !important; }
