.navbar,
.navbar * {
  box-sizing: border-box;
}

body.has-meowfin-nav {
  margin: 0;
  padding: 0 !important;
  display: block !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 82px;
  padding: 12px max(22px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(211, 173, 112, .22);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(184, 137, 70, .14), transparent 48%),
    rgba(12, 10, 7, .92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
}

.navbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c69a58 24%, rgba(198, 154, 88, .1) 63%, transparent);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 11px;
  color: var(--paper, #f5f0e7);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 760;
}

.nav-logo img {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: radial-gradient(circle, rgba(211, 173, 112, .16), transparent 72%);
  filter: drop-shadow(0 3px 12px rgba(184, 137, 70, .18));
  object-fit: contain;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-brand small {
  color: #b79a6c;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .21em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-center a,
.nav-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #bdb4a7;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-center a i {
  color: #b89a6c;
}

.nav-center a:hover,
.nav-action:hover {
  color: #fff3de;
  background: rgba(211, 173, 112, .08);
}

.nav-center a[aria-current="page"] {
  color: #f4d6a1;
  background: rgba(184, 137, 70, .12);
}

.nav-center a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 2px;
  background: var(--gold-hi, #e3bd82);
  box-shadow: 0 0 12px rgba(211, 173, 112, .4);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-actions .lang-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #a79c8d;
  background: transparent;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 750;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-actions .lang-btn:hover,
.nav-actions .lang-btn.active {
  border-color: rgba(211, 173, 112, .25);
  color: #f4d6a1;
  background: rgba(184, 137, 70, .12);
}

.nav-actions .lang-btn:focus-visible,
.nav-action:focus-visible,
.nav-center a:focus-visible,
.nav-logo:focus-visible {
  outline: 2px solid var(--gold-hi, #e3bd82);
  outline-offset: 3px;
}

.nav-action {
  margin-left: 0;
  border-color: rgba(211, 173, 112, .24);
  color: var(--gold-hi, #e3bd82);
}

@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-center {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 70px;
    padding-inline: 14px;
  }

  .nav-logo {
    gap: 8px;
    font-size: .92rem;
  }

  .nav-logo img {
    width: 38px;
    height: 38px;
  }

  .nav-brand small {
    font-size: .44rem;
    letter-spacing: .14em;
  }

  .nav-center {
    justify-content: space-between;
    gap: 3px;
    overflow-x: auto;
  }

  .nav-center a {
    min-height: 35px;
    padding: 0 8px;
    font-size: .72rem;
  }

  .nav-center a i {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .lang-btn {
    min-width: 29px;
    min-height: 31px;
    padding-inline: 5px;
    font-size: .64rem;
  }

  .nav-action {
    padding: 0 9px;
    font-size: .72rem;
  }

  .nav-action span {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-center a {
    padding-inline: 6px;
    font-size: .68rem;
  }

  .nav-actions .lang-btn {
    min-width: 27px;
    padding-inline: 3px;
  }
}
