.language-switcher {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(200,163,95,0.28);
  color: #d8d3ca;
  background: rgba(255,255,255,0.035);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: #f5f0e6;
  border-color: rgba(200,163,95,0.72);
  background: rgba(200,163,95,0.16);
  outline: none;
}

.language-switcher a[aria-current="true"] {
  color: #101010;
  background: #c8a35f;
  border-color: #c8a35f;
}

.language-switcher--nav {
  position: relative;
  flex-wrap: nowrap;
  width: 36px;
}

.language-switcher--nav a {
  min-width: 36px;
  height: 30px;
}

.language-switcher--nav a:not(:first-child) {
  display: none;
  position: absolute;
  left: 0;
  z-index: 20;
  background: rgba(10,10,10,0.96);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.language-switcher--nav:hover,
.language-switcher--nav:focus-within,
.language-switcher--nav.is-open {
  z-index: 40;
}

.language-switcher--nav:hover a:not(:first-child),
.language-switcher--nav:focus-within a:not(:first-child),
.language-switcher--nav.is-open a:not(:first-child) {
  display: inline-flex;
}

.language-switcher--nav a:nth-child(2) { top: 100%; }
.language-switcher--nav a:nth-child(3) { top: calc(100% + 30px); }
.language-switcher--nav a:nth-child(4) { top: calc(100% + 60px); }
.language-switcher--nav a:nth-child(5) { top: calc(100% + 90px); }
.language-switcher--nav a:nth-child(6) { top: calc(100% + 120px); }

.navbar .container {
  gap: 18px;
}

.navbar .nav-links {
  gap: 22px;
}

.language-switcher--mobile {
  display: none;
}

.language-switcher--footer {
  margin-top: 12px;
}

.language-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  color: #8a8a85;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.language-suggestion {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(200,163,95,0.34);
  background: rgba(10,10,10,0.94);
  color: #f5f0e6;
  box-shadow: 0 18px 70px rgba(0,0,0,0.46);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.language-suggestion[hidden] {
  display: none;
}

.language-suggestion__title {
  margin: 0 0 5px;
  color: #c8a35f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.language-suggestion__text {
  margin: 0;
  color: #d8d3ca;
  font-size: 14px;
  line-height: 1.45;
}

.language-suggestion__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.language-suggestion__primary,
.language-suggestion__secondary {
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(200,163,95,0.42);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.language-suggestion__primary[lang="ar"],
.language-suggestion__secondary[lang="ar"] {
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

.language-suggestion__primary {
  color: #101010;
  background: #c8a35f;
}

.language-suggestion__secondary {
  color: #d8d3ca;
  background: transparent;
}

.language-suggestion__primary:hover,
.language-suggestion__primary:focus-visible {
  background: #d4b977;
  outline: none;
}

.language-suggestion__secondary:hover,
.language-suggestion__secondary:focus-visible {
  color: #f5f0e6;
  border-color: rgba(200,163,95,0.72);
  outline: none;
}

.language-profile-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10,10,10,.94);
  border-bottom: 1px solid rgba(200,163,95,.28);
}

.language-profile-nav__inner,
.language-profile-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 24px;
}

.language-profile-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.language-profile-brand {
  color: #f5f0e6;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.language-profile-footer {
  border-top: 1px solid rgba(111,77,20,.22);
}

@media (max-width: 1180px) {
  .navbar .nav-links {
    gap: 16px;
  }

  .navbar .nav-links a {
    letter-spacing: 1px;
  }

  .language-switcher a {
    min-width: 30px;
    padding-left: 6px;
    padding-right: 6px;
    letter-spacing: .7px;
  }

  .language-switcher--nav {
    width: 30px;
  }
}

@media (max-width: 820px) {
  .navbar .language-switcher--nav {
    display: none;
  }

  .language-switcher--mobile {
    display: inline-flex;
    justify-content: center;
  }

  .language-footer {
    justify-content: center;
  }

  .language-profile-nav__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-suggestion {
    left: 12px;
    right: 12px;
    bottom: 104px;
    width: auto;
  }
}
