.lang-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: langModalFadeIn 0.2s ease;
}

@keyframes langModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lang-modal-panel {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  font-family: 'Public Sans', sans-serif;
  text-align: center;
}

.lang-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #8a8a7d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.lang-modal-close:hover {
  background: #F2F1EA;
  color: #3A3A32;
}

.lang-modal-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #2b2b26;
  margin: 0 0 22px 0;
}

.lang-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 420px) {
  .lang-modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lang-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #F7F9F2;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 16px 10px;
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.lang-modal-card:hover {
  border-color: #5F7350;
  transform: translateY(-2px);
}

.lang-modal-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.lang-modal-name {
  font-weight: 600;
  color: #2b2b26;
  font-size: 0.95rem;
}

.lang-modal-current {
  border-color: #DCE3CE;
  background: #EEF1E8;
}

.lang-modal-suggested {
  border-color: #5F7350;
}

.lang-modal-badge {
  position: absolute;
  top: -9px;
  right: -6px;
  background: #5F7350;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
