/* ═══════════════════════════════════
   LANG SELECTOR
═══════════════════════════════════ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: #8888a0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.lang-btn .bi-chevron-down {
  font-size: 10px;
  transition: transform 0.2s;
}
.lang-btn[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #16161c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.lang-dropdown[hidden] { display: none; }

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #8888a0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}
.lang-dropdown a[aria-selected="true"] {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

/* RTL support */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .lang-dropdown {
    right: 0;
    left: auto;
    max-height: 280px;
  }
}
