.vault-preview-header {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(215, 168, 47, .34);
  background: #080b11;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .32);
}

.vault-nav-inner {
  display: flex;
  width: min(calc(100% - 2rem), 1280px);
  min-height: 92px;
  margin-inline: auto;
  align-items: center;
  gap: 1.35rem;
}

.vault-nav-logo-link {
  flex: 0 1 285px;
  min-width: 180px;
}

.vault-nav-logo {
  display: block;
  width: min(285px, 100%);
  height: auto;
}

.vault-mobile-toggle {
  display: none;
  min-height: 46px;
  margin-left: auto;
  align-items: center;
  gap: .6rem;
  border: 1px solid #69758a;
  border-radius: 10px;
  background: #151c27;
  color: #f7f8fa;
  padding: .68rem .9rem;
  font-weight: 850;
  cursor: pointer;
}

.vault-mobile-toggle-lines,
.vault-mobile-toggle-lines::before,
.vault-mobile-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #f0cf70;
}

.vault-mobile-toggle-lines {
  position: relative;
}

.vault-mobile-toggle-lines::before,
.vault-mobile-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.vault-mobile-toggle-lines::before { top: -6px; }
.vault-mobile-toggle-lines::after { top: 6px; }

.vault-primary-nav {
  margin-left: auto;
}

.vault-primary-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  list-style: none;
}

.vault-primary-list > li {
  position: relative;
  min-width: 0;
}

.vault-nav-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid #3f4b5e;
  border-radius: 10px;
  background: #151c27;
  color: #f5f6f8;
  padding: .68rem .95rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.vault-nav-control:hover,
.vault-nav-control:focus-visible,
.vault-dropdown-toggle[aria-expanded="true"] {
  border-color: #d7a82f;
  background: #202838;
  color: #f0cf70;
}

.vault-nav-control:focus-visible,
.vault-dropdown-link:focus-visible,
.vault-mobile-toggle:focus-visible {
  outline: 3px solid #f0cf70;
  outline-offset: 3px;
}

.vault-nav-control[aria-current="page"] {
  border-color: #d7a82f;
  box-shadow: inset 0 -2px 0 #d7a82f;
}

.vault-shop-priority {
  min-height: 48px;
  border-color: #f0cf70;
  background: #d7a82f;
  color: #15120a;
  box-shadow: 0 7px 20px rgba(215, 168, 47, .22);
  font-weight: 950;
}

.vault-shop-priority:hover,
.vault-shop-priority:focus-visible,
.vault-shop-priority[aria-current="page"] {
  border-color: #fff0b8;
  background: #f0cf70;
  color: #0d0d0d;
  box-shadow: 0 8px 24px rgba(215, 168, 47, .3), inset 0 -2px 0 #7d5c0d;
}

.vault-shop-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.vault-chevron {
  width: .58rem;
  height: .58rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.vault-dropdown-toggle[aria-expanded="true"] .vault-chevron {
  transform: translateY(2px) rotate(225deg);
}

.vault-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + .65rem);
  left: 0;
  width: min(330px, calc(100vw - 2rem));
  margin: 0;
  padding: .55rem;
  border: 1px solid #556175;
  border-radius: 13px;
  background: #0e141e;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .48);
  list-style: none;
}

.vault-resources-menu {
  right: 0;
  left: auto;
}

.vault-dropdown-menu[hidden] { display: none; }

.vault-dropdown-menu li + li { margin-top: .3rem; }

.vault-dropdown-link {
  display: flex;
  min-height: 45px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #151c27;
  color: #f2f4f7;
  padding: .7rem .8rem;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.vault-dropdown-link:hover,
.vault-dropdown-link:focus-visible {
  border-color: #d7a82f;
  background: #222b3a;
  color: #f0cf70;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .vault-nav-inner { gap: .8rem; }
  .vault-nav-logo-link { flex-basis: 220px; min-width: 170px; }
  .vault-nav-control { padding-inline: .7rem; font-size: .74rem; }
  .vault-primary-list { gap: .36rem; }
}

@media (max-width: 900px) {
  .vault-nav-inner {
    min-height: 82px;
    flex-wrap: wrap;
    padding-block: .8rem;
  }

  .vault-nav-logo-link { flex: 0 1 270px; }
  .vault-mobile-toggle { display: inline-flex; }

  .vault-primary-nav {
    display: none;
    width: 100%;
    margin: 0;
    padding-top: .25rem;
  }

  .vault-primary-nav[data-open="true"] { display: block; }

  .vault-primary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .vault-primary-list > li { width: 100%; }
  .vault-nav-control { width: 100%; min-height: 48px; justify-content: space-between; padding: .78rem .9rem; font-size: .88rem; text-align: left; }
  .vault-shop-priority { justify-content: flex-start; min-height: 52px; }

  .vault-dropdown-menu,
  .vault-resources-menu {
    position: static;
    width: 100%;
    margin-top: .45rem;
    border-color: #3d4859;
    border-radius: 10px;
    box-shadow: none;
  }

  .vault-dropdown-link { min-height: 48px; padding: .78rem .9rem; }
}

@media (max-width: 520px) {
  .vault-nav-inner { width: min(calc(100% - 1.2rem), 1280px); gap: .65rem; }
  .vault-nav-logo-link { flex-basis: min(235px, calc(100% - 104px)); min-width: 0; }
  .vault-mobile-toggle { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vault-nav-control,
  .vault-chevron { transition: none; }
}
