/* ─── Language selector (landing pages) ─── */
.lang-selector {
  position: relative;
  z-index: 100;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text, #CBD5E1);
  font-size: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover {
  border-color: rgba(0,196,106,0.4);
  background: rgba(255,255,255,0.09);
}
.lang-btn svg {
  transition: transform 0.2s;
}
.lang-dropdown.open + .lang-btn svg,
.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 200;
}
@media (max-width: 640px) {
  .lang-dropdown {
    right: auto;
    left: 0;
    min-width: 150px;
  }
  .lang-selector {
    position: static;
  }
  .lang-dropdown.open {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    min-width: auto;
  }
}
.lang-dropdown.open {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text, #CBD5E1);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.lang-option:hover {
  background: rgba(0,196,106,0.12);
}
.lang-option.active {
  background: rgba(0,196,106,0.18);
  color: #00C46A;
  font-weight: 600;
}
.lang-flag {
  font-size: 20px;
  line-height: 1;
}
.lang-name {
  flex: 1;
  text-align: left;
}

/* Mobile language row */
.lang-mobile-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}
.lang-mobile-btn {
  font-size: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lang-mobile-btn:hover {
  background: rgba(0,196,106,0.15);
  border-color: rgba(0,196,106,0.3);
}
