.topbar {
  --vmta-nav-accent: #a6ce39;
  --vmta-nav-panel-top: 100px;
}

.topbar > .vmta-header-hero .topbar-row {
  min-height: 88px;
  padding: 12px 0 !important;
}

.topbar .brand {
  flex: 0 1 auto;
  min-width: 0;
  transform-origin: left center;
}

.topbar .brand-logo {
  display: block;
  width: min(230px, 25vw);
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.topbar .userbox {
  flex-wrap: nowrap;
  gap: 10px;
}

.topbar .userbox > .btn-ghost,
.topbar .userbox .notif-btn,
.topbar .userbox .vmta-prefs-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 13px;
  background: rgba(18, 21, 17, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.topbar .userbox > .btn-ghost:hover,
.topbar .userbox .notif-btn:hover,
.topbar .userbox .vmta-prefs-toggle:hover {
  transform: translateY(-1px);
  background: rgba(36, 42, 28, .9);
  border-color: rgba(166, 206, 57, .38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.topbar .user-menu-toggle {
  min-height: 42px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(16, 19, 16, .72);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.topbar .user-menu-toggle:hover,
.topbar .user-menu.open .user-menu-toggle {
  border-color: rgba(166, 206, 57, .4);
  background: rgba(32, 38, 24, .92);
}

.topbar .nav {
  background: rgba(12, 14, 11, .94);
  border-top: 1px solid rgba(255, 255, 255, .055);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}

.topbar .nav-row > .nav-pill { display: none !important; }

.topbar .nav-row {
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-padding-inline: 10px;
}

.topbar .nav-row > a.navlink {
  flex: 0 0 auto;
  isolation: isolate;
  z-index: 1;
  position: relative;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  min-height: 43px;
  padding: 0 15px;
  margin: 0;
  border: 1px solid transparent !important;
  border-radius: 11px;
  gap: 9px;
  color: rgba(226, 229, 222, .68);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .05px;
  line-height: 1.25;
  transform: translateY(0) !important;
  transition: color .18s ease, background-color .18s ease !important;
}

.topbar .nav-row > a.navlink > i {
  font-size: 14px;
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
  opacity: .7;
  transition: color .2s ease, opacity .2s ease, transform .24s ease;
}

.topbar .nav-row > a.navlink::before { content: none !important; }

.topbar .nav-row > a.navlink::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  inset: 0;
  background: linear-gradient(140deg, rgba(166, 206, 57, .15), rgba(166, 206, 57, .065));
  border: 1px solid rgba(166, 206, 57, .26);
  border-radius: 11px;
  transform: scale(.96);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .24, 1);
}

.topbar .nav-row > a.navlink:hover,
.topbar .nav-row > a.navlink:focus-visible {
  color: #f4f8ec !important;
}

.topbar .nav-row > a.navlink.active {
  color: var(--vmta-nav-accent) !important;
}

.topbar .nav-row > a.navlink.active::after,
.topbar .nav-row > a.navlink:hover::after,
.topbar .nav-row > a.navlink:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.topbar .nav-row > a.navlink.active > i,
.topbar .nav-row > a.navlink:hover > i,
.topbar .nav-row > a.navlink:focus-visible > i {
  color: var(--vmta-nav-accent);
  opacity: 1;
  transform: translateY(-1px);
}

.topbar .nav-row > a.navlink:focus-visible,
.topbar .userbox button:focus-visible,
.topbar .vmta-nav-close:focus-visible {
  outline: 2px solid var(--vmta-nav-accent);
  outline-offset: 2px;
}

.topbar .mobile-menu-toggle,
.topbar .vmta-nav-mobile-head,
.topbar .vmta-nav-mobile-label,
.topbar .vmta-nav-mobile-footer,
.topbar .vmta-nav-close,
.topbar .vmta-nav-scrim {
  display: none;
}

@media (max-width: 1100px) and (min-width: 981px) {
  .topbar .nav-row { justify-content: flex-start; }
  .topbar .nav-row > a.navlink { padding-inline: 13px; }
}

@media (max-width: 980px) {
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(9, 11, 9, .98);
  }

  .topbar > .vmta-header-hero .topbar-row {
    min-height: 72px;
    padding: 10px 0 !important;
    gap: 12px;
  }

  .topbar .brand-logo {
    width: min(184px, 30vw);
    height: 56px;
    max-height: 56px;
  }

  .topbar .userbox { gap: 7px; }

  .topbar .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 1px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(166, 206, 57, .36);
    background: rgba(166, 206, 57, .11);
    color: var(--vmta-nav-accent);
    flex: 0 0 auto;
    cursor: pointer;
    transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
  }

  .topbar .mobile-menu-toggle i {
    font-size: 18px;
    transition: transform .22s ease;
  }

  .topbar .mobile-menu-toggle.active {
    background: rgba(166, 206, 57, .2);
    border-color: rgba(166, 206, 57, .58);
  }

  .topbar .mobile-menu-toggle.active i { transform: rotate(90deg); }

  .topbar .nav {
    position: static !important;
    height: 0;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar .nav-row {
    position: fixed !important;
    top: var(--vmta-nav-panel-top, 76px) !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0;
    width: min(390px, 100vw) !important;
    height: auto;
    max-height: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 22px 18px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    border-left: 1px solid rgba(166, 206, 57, .16);
    border-bottom: 0;
    border-radius: 0;
    background: linear-gradient(145deg, #171b14, #101210 60%, #0d0f0d);
    box-shadow: -24px 12px 60px rgba(0, 0, 0, .58);
    backdrop-filter: none;
    z-index: 10060 !important;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, visibility .3s;
    -webkit-overflow-scrolling: touch;
  }

  .topbar .nav-row.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .topbar .vmta-nav-mobile-head {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 70px;
    padding: 0 45px 14px 3px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .085);
  }

  .topbar .vmta-nav-mobile-heading {
    color: #f7f8f3;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
  }

  .topbar .vmta-nav-mobile-subheading {
    margin-top: 3px;
    color: rgba(240, 244, 235, .48);
    font-size: 12px;
    font-weight: 500;
  }

  .topbar .vmta-nav-close {
    position: absolute;
    right: 0;
    top: 9px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #cfd3c9;
    cursor: pointer;
  }

  .topbar .vmta-nav-mobile-label {
    display: block;
    padding: 5px 11px 9px;
    color: rgba(240, 244, 235, .4);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }

  .topbar .nav-row > a.navlink {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    min-height: 51px;
    margin: 0 !important;
    padding: 7px 11px;
    border: 1px solid transparent !important;
    border-radius: 13px;
    text-align: left;
    font-size: 14px;
    font-weight: 650;
    background: rgba(255, 255, 255, .025) !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .topbar .nav-row > a.navlink > i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-right: 2px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: rgba(245, 248, 237, .57);
    font-size: 14px;
  }

  .topbar .nav-row > a.navlink.active {
    color: var(--vmta-nav-accent) !important;
    background: rgba(166, 206, 57, .06) !important;
  }

  .topbar .nav-row > a.navlink.active > i {
    background: rgba(166, 206, 57, .16);
    color: var(--vmta-nav-accent);
  }

  .topbar .nav-row > a.navlink::after {
    background: linear-gradient(90deg, rgba(166, 206, 57, .1), rgba(166, 206, 57, .02));
    border-color: rgba(166, 206, 57, .25);
  }

  .topbar .nav-row > a.navlink:hover > i { background: rgba(166, 206, 57, .12); }

  .topbar .vmta-nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 17px;
    padding: 17px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .topbar .vmta-nav-mobile-footer > span {
    padding: 0 9px 6px;
    color: rgba(240, 244, 235, .42);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
  }

  .topbar .vmta-nav-mobile-footer > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    color: rgba(241, 245, 235, .78);
    background: rgba(255, 255, 255, .025);
    font-size: 13px;
    font-weight: 650;
  }

  .topbar .vmta-nav-mobile-footer > a:hover,
  .topbar .vmta-nav-mobile-footer > a:focus-visible {
    color: var(--vmta-nav-accent);
    border-color: rgba(166, 206, 57, .2);
  }

  .topbar .vmta-nav-mobile-footer > a > i:last-child {
    margin-left: auto;
    font-size: 10px;
    opacity: .55;
  }

  .topbar > .vmta-nav-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: var(--vmta-nav-panel-top, 76px) 0 0;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: rgba(0, 0, 0, .67);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: default;
    z-index: 10040;
    animation: vmta-nav-overlay-in .24s ease both;
  }

  body.vmta-nav-open { overflow: hidden; }

  @keyframes vmta-nav-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 600px) {
  .topbar > .vmta-header-hero .topbar-row { gap: 7px; }
  .topbar .brand-logo { width: min(150px, 30vw); height: 47px; }
  .topbar .userbox { gap: 5px; }
  .topbar .userbox .notif-btn,
  .topbar .userbox .vmta-prefs-toggle,
  .topbar .mobile-menu-toggle { width: 38px; min-width: 38px; height: 38px; border-radius: 11px; }
  .topbar .user-menu-toggle { min-height: 38px; height: 38px; padding: 5px 8px; }
  .topbar .user-menu-toggle .nick { display: none; }
  .topbar .user-menu-toggle .user-menu-arrow { font-size: 9px; }
  .topbar .vmta-header-hero .topbar-row { min-height: 65px; }
  .topbar .user-menu-dropdown,
  .topbar .notif-dropdown { max-width: calc(100vw - 20px); }
}

@media (max-width: 375px) {
  .topbar .brand-logo { width: min(128px, 31vw); height: 42px; }
  .topbar .userbox { gap: 4px; }
  .topbar .userbox .notif-btn,
  .topbar .userbox .vmta-prefs-toggle,
  .topbar .mobile-menu-toggle { width: 35px; min-width: 35px; height: 35px; }
  .topbar .user-menu-toggle { min-height: 35px; height: 35px; padding: 4px 6px; }
  .topbar .nav-row { padding: 16px 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .nav-row,
  .topbar .nav-row > a.navlink,
  .topbar .nav-row > a.navlink::after,
  .topbar .nav-row > a.navlink > i,
  .topbar .mobile-menu-toggle,
  .topbar .mobile-menu-toggle i,
  .topbar .vmta-nav-scrim { animation: none !important; transition: none !important; }
}

@media (min-width: 981px) {
 .topbar .nav-row > a.navlink {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  isolation: isolate;
  z-index: 1;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  gap: 9px;
  border: 1px solid transparent !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(231, 235, 225, .63) !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06px;
  line-height: 1.25;
  transform: none !important;
  transition: color .22s ease !important;
}

.topbar .nav-row > a.navlink > i {
  flex: 0 0 16px;
  width: 16px;
  height: auto;
  font-size: 14px;
  text-align: center;
  line-height: 1;
  color: rgba(223, 230, 218, .48);
  opacity: 1;
  background: none !important;
  transform: translateY(0);
  transition: color .22s ease, transform .24s ease;
}

.topbar .nav-row > a.navlink::before {
  content: "" !important;
  position: absolute;
  inset: 2px 0 2px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(166, 206, 57, .065), rgba(166, 206, 57, .018));
  transform: scale(.95);
  transition: opacity .22s ease, transform .22s ease;
}

.topbar .nav-row > a.navlink::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: -9px;
  top: auto;
  inset: auto 27% -9px;
  width: auto;
  z-index: 2;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  border: 0 !important;
  border-radius: 3px;
  background: #a6ce39;
  box-shadow: 0 -3px 12px rgba(166, 206, 57, .36);
  transform: scaleX(.2);
  transform-origin: center;
  transition: opacity .23s ease, transform .3s cubic-bezier(.2, .7, .25, 1);
}

.topbar .nav-row > a.navlink:hover,
.topbar .nav-row > a.navlink:focus-visible {
  color: #f4f6f0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.topbar .nav-row > a.navlink:hover::before,
.topbar .nav-row > a.navlink:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.topbar .nav-row > a.navlink.active {
  color: #e7f2d3 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.topbar .nav-row > a.navlink.active::before {
  opacity: .85;
  transform: scale(1);
}

.topbar .nav-row > a.navlink.active::after,
.topbar .nav-row > a.navlink:hover::after,
.topbar .nav-row > a.navlink:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar .nav-row > a.navlink.active > i,
.topbar .nav-row > a.navlink:hover > i,
.topbar .nav-row > a.navlink:focus-visible > i {
  color: #a6ce39;
  transform: translateY(-1px);
}

.topbar .nav-row > a.navlink:focus-visible,
.topbar .userbox button:focus-visible,
.topbar .vmta-nav-close:focus-visible {
  outline: 2px solid var(--vmta-nav-accent);
  outline-offset: 2px;
}

  .topbar .nav-row { gap: 5px; padding-block: 9px; }
  .topbar .nav-row > a.navlink.active > span { font-weight: 720; }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .topbar .nav-row > a.navlink { padding-inline: 12px; gap: 7px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .nav-row > a.navlink,
  .topbar .nav-row > a.navlink > i,
  .topbar .nav-row > a.navlink::before,
  .topbar .nav-row > a.navlink::after { transition: none !important; }
}

.topbar > .vmta-header-hero.vmta-header-has-image {
  border-bottom: 0;
}

.topbar > .nav {
  border-top: 0;
}
