
#lang-switcher{
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 14px;
}
#lang-switcher .lang-label{
  opacity: 0.7;
}
#ms-lang-select.lang-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.2);
  background: white;
  cursor: pointer;
}
.lang-switch-btn{
  border: 1px solid var(--border, rgba(0,0,0,0.2));
  background: var(--card, #ffffff);
  color: var(--text, #111827);
  border-radius: 999px;
  padding: 6px 12px;
  margin-left: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav .lang-switch-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-switch-btn:hover,
.lang-switch-btn:focus-visible{
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
@media (max-width: 640px){
  .nav .lang-switch-btn{
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}
@media (prefers-color-scheme: dark){
  #lang-switcher{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #f2f2f2; }
  #ms-lang-select.lang-select{ background: #111; color: #f2f2f2; border-color: rgba(255,255,255,0.2); }
  #lang-switcher .lang-label{ opacity: 0.8; }
  .lang-switch-btn{
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #f5f5f5;
  }
  .lang-switch-btn:hover,
  .lang-switch-btn:focus-visible{
    color: #93c5ff;
    border-color: #93c5ff;
    box-shadow: 0 0 0 2px rgba(147,197,253,0.35);
  }
}
