.alx-lang-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10000;
  width: 280px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-family: Onest, sans-serif;
}

.alx-lang-popup--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.alx-lang-popup__arrow {
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: rgba(39, 37, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.alx-lang-popup__body {
  position: relative;
  padding: 16px;
  background: rgba(39, 37, 36, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.37),
    0 0 0 0.5px rgba(255, 255, 255, 0.1) inset;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.alx-lang-popup__body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0) 50%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  border-radius: 14px;
}

.alx-lang-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  z-index: 1;
}

.alx-lang-popup__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.alx-lang-popup__content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 20px;
}

.alx-lang-popup__flag {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  margin-top: 2px;
}

.alx-lang-popup__text {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.alx-lang-popup__switch {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: #f05243;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.alx-lang-popup__switch:hover {
  background: #d94437;
  color: #fff;
  text-decoration: none;
}

/* Mobile: fixed bottom bar */
.alx-lang-popup--mobile {
  position: fixed;
  bottom: 16px;
  left: 12px;
  right: 12px;
  top: auto;
  width: auto;
  z-index: 99999;
  transform: translateY(100%);
}

.alx-lang-popup--mobile.alx-lang-popup--visible {
  transform: translateY(0);
}

.alx-lang-popup--mobile .alx-lang-popup__arrow {
  display: none;
}
