.rd-navbar-panel {
  display: flex !important;
  align-items: center !important;
}

.lang-flags {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 40px;
  box-shadow: 0 8px 22px rgba(41, 41, 58, 0.14), 0 0 0 1px rgba(205, 164, 94, 0.18);
  transition: top 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.rd-navbar--is-stuck .lang-flags,
.rd-navbar--is-clone .lang-flags {
  top: 12px;
  box-shadow: 0 6px 16px rgba(41, 41, 58, 0.16), 0 0 0 1px rgba(205, 164, 94, 0.22);
}

.lang-flags a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.lang-flags a::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-top: 4px;
  transition: background 0.25s ease;
}

.lang-flags a.active::after {
  background: #cda45e;
}

.lang-flags a:hover {
  transform: translateY(-2px) scale(1.15);
}

.flag-emoji {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.55;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.lang-flags a.active .flag-emoji,
.lang-flags a:hover .flag-emoji {
  opacity: 1;
}

.lang-flags a.active .flag-emoji {
  box-shadow: 0 0 0 2px #cda45e, 0 2px 8px rgba(205, 164, 94, 0.45);
}

.context-dark .lang-flags {
  background: rgba(41, 41, 58, 0.85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(205, 164, 94, 0.3);
}

@media (max-width: 767px) {
  .lang-flags {
    top: 10px;
    right: 12px;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 30px;
  }
  .flag-emoji {
    width: 17px;
    height: 17px;
  }
}
