/* ------------------------------------------------------------------ *
 *  Language switcher (globe button + dropdown)
 * ------------------------------------------------------------------ */

.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
}
.lang-switch summary::-webkit-details-marker { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #242424;
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(255, 122, 26, 0.35);
  transition: border-color .15s ease, background-color .15s ease;
}
.lang-toggle:hover {
  border-color: #ff7a1a;
  background-color: #2c2c2c;
}
.lang-globe { font-size: 15px; }
.lang-current { font-weight: 600; letter-spacing: .4px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #ededed;
  text-decoration: none;
  font-size: 13px;
}
.lang-option:hover { background: rgba(255, 122, 26, 0.12); }
.lang-option.active {
  background: rgba(255, 122, 26, 0.16);
  color: #ff9a4d;
}
.lang-option .lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  border-radius: 6px;
  background: #2a2a2a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #ff7a1a;
}
.lang-option.active .lang-code { background: #ff7a1a; color: #1a1a1a; }
.lang-option .lang-name { font-weight: 500; }

/* Floating switcher used on auth pages (no header). */
.lang-floating {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
}
