/* =============================================================
   Language chooser modal (first-visit). Matches the rounded white
   card with code chips + DEFAULT badge.
   ============================================================= */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(40, 40, 40, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: lang-modal-fade 0.18s ease-out;
}

.lang-modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: lang-modal-pop 0.2s ease-out;
}

.lang-modal__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.lang-modal__sub {
  margin: 0 0 26px;
  text-align: center;
  font-size: 14px;
  color: #8a8a8a;
}

.lang-modal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-modal__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: #111;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lang-modal__item:hover,
.lang-modal__item:focus-visible {
  border-color: #c2a079;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  outline: none;
}

.lang-modal__item.is-default {
  border-color: #d9c4a6;
}

.lang-modal__code {
  min-width: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9a9a9a;
}

.lang-modal__name {
  flex: 1;
  font-weight: 500;
}

.lang-modal__namesub {
  color: #9a9a9a;
  font-weight: 400;
}

.lang-modal__default {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #b89368;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

@keyframes lang-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lang-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
