/* ═══ LANGUAGE SWITCHER ═══ */
.h-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #3F3F3F;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #C9C9C9;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.h-lang-switcher:hover {
  border-color: #04C1FF;
  box-shadow: 0 0 0 3px rgba(4,193,255,0.1);
}
.h-lang-switcher .globe-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.h-lang-switcher .current-flag {
  font-size: 14px;
  line-height: 1;
}
.h-lang-switcher .arrow {
  margin-left: 2px;
  transition: transform 0.2s;
  font-size: 10px;
  color: #636363;
}
.h-lang-switcher.open .arrow {
  transform: rotate(180deg);
}
.h-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid #eee;
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 100;
}
.h-lang-switcher.open .h-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.h-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #3F3F3F;
  transition: background 0.15s;
}
.h-lang-option:hover {
  background: #f0f8ff;
}
.h-lang-option.active {
  background: #e6f7ff;
  color: #04C1FF;
}
.h-lang-option .flag {
  font-size: 16px;
  line-height: 1;
}
.h-lang-option .lang-name {
  flex: 1;
}
.h-lang-option .check {
  opacity: 0;
  color: #04C1FF;
  font-size: 14px;
}
.h-lang-option.active .check {
  opacity: 1;
}
.h-lang-translating {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #04C1FF;
}
.h-lang-translating.show {
  display: flex;
}
.h-lang-translating .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e0e0e0;
  border-top-color: #04C1FF;
  border-radius: 50%;
  animation: langSpin 0.6s linear infinite;
}
@keyframes langSpin {
  to { transform: rotate(360deg); }
}

/* ── Mobile ── */
@media (max-width: 1023px) {
  .h-lang-switcher {
    padding: 4px 8px;
    font-size: 12px;
    gap: 4px;
  }
  .h-lang-switcher .globe-icon {
    width: 14px;
    height: 14px;
  }
  .h-lang-switcher .lang-label {
    display: none;
  }
  .h-lang-dropdown {
    z-index: 200;
    right: -4px;
    min-width: 150px;
  }
}
