.frontend-header.headroom {
  border-bottom: 1px solid rgba(74, 111, 138, 0.08);
  padding-top: 14px;
  padding-bottom: 14px;
}

.frontend-header.headroom.is-sticky {
  padding-top: 10px;
  padding-bottom: 10px;
}

.frontend-navbar {
  position: relative;
}

.frontend-nav-list {
  gap: 2px;
}

.frontend-nav-list .frontend-nav-action:first-of-type,
.frontend-nav-list .frontend-account-action {
  margin-left: auto !important;
}

.frontend-desktop-nav .navbar-brand {
  flex: 0 0 auto;
  margin-right: 20px;
}

.frontend-desktop-nav .navbar-brand img {
  display: block;
  max-height: 32px;
  width: auto;
}

.frontend-desktop-nav nav .navbar-nav li.nav-item {
  border-right-color: rgba(214, 214, 214, 0.24);
  height: 42px;
  line-height: 42px;
}

.frontend-desktop-nav nav .navbar-nav .nav-item a {
  border-radius: 6px;
  margin-left: 5px;
  margin-right: 5px;
  padding-left: 8px;
  padding-right: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.frontend-desktop-nav nav .navbar-nav .nav-item a:hover,
.frontend-desktop-nav nav .navbar-nav .nav-item a:focus {
  background-color: rgba(225, 70, 64, 0.08);
  outline: none;
}

.frontend-desktop-nav nav .navbar-nav .nav-item.active a {
  color: #e14640 !important;
  font-weight: 600;
}

.nav-dropdown-toggle {
  gap: 4px;
}

.nav-dropdown-toggle i {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.nav-custom-dropdown {
  border-radius: 8px;
  border-top-color: #e14640;
  min-width: 190px;
  padding: 8px;
}

.nav-dropdown-link {
  border-radius: 6px;
  gap: 9px;
}

.nav-dropdown-link i {
  color: #e14640;
  font-size: 17px;
}

.frontend-nav-action {
  align-items: center;
  display: flex !important;
  border-right: 0 !important;
  flex: 0 0 auto;
  height: auto !important;
  line-height: 1 !important;
  margin-left: 8px !important;
  padding: 0 !important;
}

.frontend-language-action {
  margin-left: 4px !important;
}

.frontend-nav-action:hover {
  border-right: 0 !important;
}

.frontend-account,
.frontend-lang-switch,
.frontend-profile-dropdown {
  position: relative;
}

.frontend-login-btn {
  background-color: #e14640;
  border: 1px solid #e14640;
  border-radius: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  white-space: nowrap;
}

.frontend-login-btn:hover,
.frontend-login-btn:focus {
  background-color: #c93430;
  border-color: #c93430;
  color: #fff !important;
  outline: none;
}

.frontend-profile-toggle,
.frontend-lang-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(74, 111, 138, 0.16);
  border-radius: 8px;
  color: #4a6f8a;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 38px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.frontend-profile-toggle {
  gap: 8px;
  max-width: 184px;
  padding: 4px 10px 4px 4px;
}

.profile-dropdown .frontend-profile-toggle {
  height: auto;
  overflow: visible;
  position: static;
  top: auto;
  width: auto;
}

.frontend-lang-toggle {
  height: 38px;
  padding: 0;
  width: 42px;
}

button.frontend-lang-toggle.lang_link {
  display: inline-flex;
  line-height: 1;
}

.frontend-profile-toggle:hover,
.frontend-profile-toggle:focus,
.frontend-lang-toggle:hover,
.frontend-lang-toggle:focus,
.frontend-profile-toggle[aria-expanded='true'],
.frontend-lang-toggle[aria-expanded='true'] {
  background-color: rgba(225, 70, 64, 0.08);
  border-color: rgba(225, 70, 64, 0.3);
  color: #e14640;
  outline: none;
}

.frontend-profile-avatar {
  align-items: center;
  background: rgba(73, 149, 214, 0.12);
  border-radius: 50%;
  color: #4995d6;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 13px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  width: 30px;
}

.frontend-profile-avatar-lg {
  flex-basis: 38px;
  height: 38px;
  width: 38px;
}

.frontend-profile-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frontend-profile-toggle i {
  font-size: 16px;
}

.frontend-profile-menu,
.frontend-lang-menu {
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(14, 49, 76, 0.14);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  visibility: hidden;
  z-index: 10000;
}

.frontend-profile-menu.active,
.frontend-lang-menu.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.profile-dropdown .frontend-profile-menu {
  right: 0;
  top: calc(100% + 12px);
  width: 260px;
}

.frontend-profile-menu::before,
.frontend-lang-menu::before {
  display: none;
}

.frontend-profile-head {
  align-items: center;
  border-bottom: 1px solid rgba(74, 111, 138, 0.1);
  display: flex;
  gap: 10px;
  padding: 8px 8px 12px;
}

.frontend-profile-head small,
.frontend-profile-head h5 {
  display: block;
  margin: 0;
  text-align: left;
}

.frontend-profile-head small {
  color: #8a99a8;
  font-size: 12px;
}

.profile-dropdown .frontend-profile-head h5 {
  color: #0e314c;
  font-size: 15px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown .frontend-profile-menu ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.profile-dropdown .frontend-profile-menu ul li {
  border-top: 0;
  padding: 0;
}

.profile-dropdown .frontend-profile-menu ul li:hover {
  background: transparent;
}

.frontend-account-link {
  align-items: center;
  border-radius: 6px;
  color: #4a6f8a !important;
  display: flex !important;
  gap: 10px;
  justify-content: flex-start;
  min-height: 38px;
  padding: 8px 10px !important;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.frontend-account-link i {
  color: #4995d6;
  font-size: 18px;
}

.frontend-account-link span {
  margin: 0 !important;
  padding: 0 !important;
}

.frontend-account-link:hover,
.frontend-account-link:focus {
  background: rgba(73, 149, 214, 0.1);
  color: #0e314c !important;
  outline: none;
}

.frontend-account-logout,
.frontend-account-logout i {
  color: #e14640 !important;
}

.frontend-lang-menu {
  background: #fff;
  border: 0;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 62px;
}

.frontend-lang-switch .frontend-lang-menu.active {
  top: calc(100% + 10px);
}

.frontend-lang-menu ul {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.frontend-lang-menu ul li {
  border-top: 0;
  display: block !important;
  height: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100% !important;
}

.frontend-lang-menu ul li a {
  align-items: center;
  border-radius: 5px;
  color: #4a6f8a;
  display: flex !important;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  line-height: 30px;
  min-height: 30px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.frontend-lang-menu ul li a:hover,
.frontend-lang-menu ul li a:focus {
  background: #e14640;
  color: #fff !important;
  outline: none;
}

.frontend-mobile-nav .container {
  max-width: 100%;
}

.frontend-mobile-menu {
  align-items: center;
  display: flex;
  min-height: 52px;
}

.frontend-mobile-brand {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.frontend-mobile-brand .logo {
  margin-left: 0;
  width: auto;
}

.frontend-mobile-brand a {
  display: inline-flex;
}

.frontend-mobile-brand img {
  display: block !important;
  max-height: 30px;
  max-width: 132px;
  width: auto;
}

.frontend-mobile-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
  padding-right: 44px;
}

.frontend-mobile-auth {
  display: none;
}

.frontend-mobile-menu.mean-container .mean-bar {
  min-height: 52px;
  position: static;
}

.frontend-mobile-menu.mean-container a.meanmenu-reveal {
  right: 0;
  top: 11px;
  z-index: 10002;
}

.frontend-mobile-menu.mean-container .mean-nav {
  background: #fff;
  border-top: 1px solid rgba(74, 111, 138, 0.1);
  box-shadow: 0 18px 38px rgba(14, 49, 76, 0.12);
  left: 0;
  margin-top: 12px;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  position: absolute;
  top: 58px;
  z-index: 10001;
}

.frontend-mobile-menu.mean-container .mean-nav ul li {
  border: 0;
}

.frontend-mobile-menu.mean-container .mean-nav ul li a {
  align-items: center;
  border-top: 1px solid rgba(74, 111, 138, 0.12);
  color: #4a6f8a;
  display: flex;
  float: none;
  font-size: 14px;
  font-weight: 600;
  justify-content: flex-start;
  line-height: 1.35;
  min-height: 44px;
  padding: 12px 22px;
  text-align: left;
  width: auto;
}

.frontend-mobile-menu.mean-container .mean-nav ul li a:hover,
.frontend-mobile-menu.mean-container .mean-nav ul li a:focus,
.frontend-mobile-menu.mean-container .mean-nav ul li.active > a {
  background: rgba(225, 70, 64, 0.08);
  color: #e14640;
}

.frontend-mobile-menu.mean-container .mean-nav .frontend-nav-action,
.frontend-mobile-menu.mean-container .mean-nav .others-option {
  display: none !important;
}

.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-toggle {
  pointer-events: none;
}

.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-toggle i {
  display: none;
}

.frontend-mobile-menu.mean-container .mean-nav .nav-custom-dropdown {
  background: #fff;
  border: 0;
  box-shadow: none;
  left: auto;
  min-width: 0;
  opacity: 1;
  padding: 0;
  position: static;
  transform: none;
  visibility: visible;
  width: 100%;
}

.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link {
  background: #f8fbfd;
  border-top: 1px solid rgba(74, 111, 138, 0.08);
  color: #4a6f8a !important;
  display: flex !important;
  font-size: 13px !important;
  margin: 0 !important;
  min-height: 40px;
  padding: 10px 22px 10px 34px !important;
  width: auto !important;
}

.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link:hover,
.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link:focus,
.frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-active {
  color: #e14640 !important;
}

.frontend-account-mobile .frontend-profile-name,
.frontend-account-mobile .frontend-profile-toggle i {
  display: none;
}

.frontend-account-mobile .frontend-profile-toggle {
  border-radius: 50%;
  height: 38px;
  padding: 3px;
  width: 38px;
}

.frontend-account-mobile .frontend-login-btn {
  max-width: 108px;
  overflow: hidden;
  padding: 9px 10px;
  text-overflow: ellipsis;
}

.frontend-account-mobile .frontend-profile-menu {
  max-width: calc(100vw - 20px);
  position: fixed;
  right: 10px;
  top: 70px;
  width: 260px;
}

.frontend-lang-mobile .frontend-lang-menu {
  position: fixed;
  right: 62px;
  top: 70px;
}

.theme-dark .frontend-header.headroom,
.theme-dark .frontend-desktop-nav,
.theme-dark .frontend-profile-toggle,
.theme-dark .frontend-lang-toggle,
.theme-dark .frontend-profile-menu,
.theme-dark .frontend-lang-menu {
  background-color: #0e314c;
}

.theme-dark .frontend-profile-toggle,
.theme-dark .frontend-lang-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.theme-dark .frontend-profile-head,
.theme-dark .frontend-profile-menu {
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .profile-dropdown .frontend-profile-head h5,
.theme-dark .frontend-account-link,
.theme-dark .frontend-lang-menu ul li a {
  color: #fff !important;
}

@media only screen and (max-width: 1300px) {
  .frontend-header.headroom {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .frontend-mobile-nav {
    display: block;
  }

  .frontend-mobile-nav .logo {
    margin-left: 0;
    position: relative;
    z-index: 999;
  }
}

@media only screen and (max-width: 767px) {
  #header.frontend-header {
    height: 70px;
  }

  .frontend-mobile-menu {
    justify-content: space-between;
    min-height: 50px;
    padding-right: 44px;
    position: relative;
  }

  .frontend-mobile-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 112px);
    min-width: 84px;
  }

  .frontend-mobile-brand img {
    max-width: 120px;
  }

  .frontend-mobile-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 8px;
    padding-right: 0;
    position: relative;
    z-index: 10003;
  }

  .frontend-lang-toggle {
    height: 36px;
    width: 38px;
  }

  .frontend-account-mobile .frontend-login-btn {
    align-items: center;
    display: inline-flex;
    font-size: 0;
    justify-content: center;
    max-width: 58px;
    min-height: 36px;
    padding: 0 8px;
    width: 58px;
  }

  .frontend-account-mobile .frontend-login-btn::before {
    content: 'Giriş';
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }
}

@media only screen and (max-width: 390px) {
  .frontend-mobile-brand img {
    max-width: 102px;
  }

  .frontend-mobile-actions {
    gap: 5px;
  }

  .frontend-account-mobile .frontend-login-btn {
    max-width: 50px;
    width: 50px;
  }
}

@media only screen and (max-width: 340px) {
  .frontend-mobile-brand img {
    max-width: 88px;
  }

  .frontend-lang-toggle {
    width: 34px;
  }

  .frontend-account-mobile .frontend-login-btn {
    max-width: 44px;
    padding-left: 6px;
    padding-right: 6px;
    width: 44px;
  }

  .frontend-account-mobile .frontend-login-btn::before {
    font-size: 11px;
  }
}

/* Final dark sticky header override */
html.theme-dark #header.frontend-header.headroom,
html.theme-dark #header.frontend-header.headroom.is-sticky,
html.theme-dark #header.frontend-header.headroom.headroom--pinned,
html.theme-dark #header.frontend-header .frontend-desktop-nav,
html.theme-dark #header.frontend-header .startp-nav {
  background: rgb(11 14 19) !important;
  border-bottom-color: rgb(108 108 108 / 16%);
  box-shadow: 0 14px 34px rgb(11 14 19);
  backdrop-filter: blur(14px);
}

html.theme-dark #header.frontend-header .black-logo {
  display: none !important;
}

html.theme-dark #header.frontend-header .white-logo {
  display: inline-flex !important;
}

html.theme-dark #header.frontend-header .frontend-mobile-brand .white-logo {
  display: flex !important;
}

html.theme-dark #header.frontend-header .frontend-desktop-nav nav .navbar-nav .nav-item a,
html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav ul li a {
  color: #d7e3ee !important;
}

html.theme-dark #header.frontend-header .frontend-desktop-nav nav .navbar-nav .nav-item a:hover,
html.theme-dark #header.frontend-header .frontend-desktop-nav nav .navbar-nav .nav-item a:focus,
html.theme-dark #header.frontend-header .frontend-desktop-nav nav .navbar-nav .nav-item.active a,
html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav ul li.active > a {
  color: #ff6b63 !important;
  background-color: rgba(222, 76, 67, 0.1);
}

html.theme-dark #header.frontend-header .frontend-profile-toggle,
html.theme-dark #header.frontend-header .frontend-lang-toggle,
html.theme-dark #header.frontend-header .frontend-profile-menu,
html.theme-dark #header.frontend-header .frontend-lang-menu,
html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav,
html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-custom-dropdown,
html.theme-dark #header.frontend-header .nav-custom-dropdown {
  background: #141f29 !important;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

html.theme-dark #header.frontend-header .frontend-profile-toggle,
html.theme-dark #header.frontend-header .frontend-lang-toggle,
html.theme-dark #header.frontend-header .frontend-account-link,
html.theme-dark #header.frontend-header .frontend-lang-menu ul li a,
html.theme-dark #header.frontend-header .nav-dropdown-link {
  color: #d7e3ee !important;
}

html.theme-dark #header.frontend-header .frontend-profile-toggle:hover,
html.theme-dark #header.frontend-header .frontend-profile-toggle:focus,
html.theme-dark #header.frontend-header .frontend-lang-toggle:hover,
html.theme-dark #header.frontend-header .frontend-lang-toggle:focus,
html.theme-dark #header.frontend-header .frontend-account-link:hover,
html.theme-dark #header.frontend-header .frontend-account-link:focus,
html.theme-dark #header.frontend-header .frontend-lang-menu ul li a:hover,
html.theme-dark #header.frontend-header .frontend-lang-menu ul li a:focus,
html.theme-dark #header.frontend-header .nav-dropdown-link:hover,
html.theme-dark #header.frontend-header .nav-dropdown-link:focus {
  background: rgba(222, 76, 67, 0.12) !important;
  color: #ff6b63 !important;
}

html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav ul li a,
html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Final mobile menu scroll and login */
@media only screen and (max-width: 767px) {
  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav {
    bottom: 0 !important;
    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: 96px;
    position: fixed !important;
    right: 0 !important;
    top: 80px !important;
    width: 100vw !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-item {
    background: transparent !important;
    border: 0 !important;
    display: block !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 14px 20px 18px !important;
    width: 100% !important;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-link {
    align-items: center !important;
    background: #e14640 !important;
    border: 0 !important;
    border-radius: 8px;
    color: #fff !important;
    display: flex !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 46px;
    padding: 13px 16px !important;
    text-align: center !important;
    width: 100% !important;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-link:hover,
  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-link:focus {
    background: #c93430 !important;
    color: #fff !important;
  }
}

/* Final mobile header alignment */
@media only screen and (max-width: 767px) {
  #header.frontend-header {
    height: 80px;
  }

  #header.frontend-header .startp-responsive-nav .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  #header.frontend-header .frontend-mobile-menu {
    display: grid;
    grid-template-columns: 52px minmax(76px, 1fr) 40px;
    min-height: 58px;
    padding-right: 0;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    grid-column: 1;
    left: 0 !important;
    right: auto !important;
    top: 12px;
  }

  #header.frontend-header .frontend-mobile-brand {
    grid-column: 2;
    justify-content: center;
    max-width: none;
    min-width: 0;
    padding: 0 8px;
  }

  #header.frontend-header .frontend-mobile-brand img {
    max-height: 28px;
    max-width: 92px;
  }

  #header.frontend-header .frontend-mobile-actions {
    grid-column: 3;
    gap: 0;
    justify-self: end;
    margin-left: 0;
    min-width: 0;
  }

  #header.frontend-header .frontend-mobile-actions .frontend-account-mobile {
    display: none;
  }

  #header.frontend-header .frontend-lang-toggle {
    border-radius: 8px;
    height: 36px;
    width: 38px;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action {
    background: transparent !important;
    border-top: 1px solid rgba(74, 111, 138, 0.12);
    display: block !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    width: 100% !important;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action .frontend-account {
    display: block;
    width: 100%;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action .frontend-login-btn {
    align-items: center;
    display: flex;
    font-size: 14px;
    justify-content: center;
    max-width: none;
    min-height: 42px;
    padding: 0 16px;
    width: 100%;
  }

  #header.frontend-header .frontend-account-mobile .frontend-login-btn {
    border-radius: 8px;
    font-size: 0;
    height: 36px;
    max-width: none;
    min-height: 36px;
    padding: 0;
    width: 42px;
  }

  #header.frontend-header .frontend-account-mobile .frontend-login-btn::before {
    color: #fff;
    content: 'Gir';
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
  }
}

@media only screen and (max-width: 380px) {
  #header.frontend-header .frontend-mobile-menu {
    grid-template-columns: 48px minmax(64px, 1fr) 36px;
  }

  #header.frontend-header .frontend-mobile-brand {
    padding-left: 4px;
    padding-right: 4px;
  }

  #header.frontend-header .frontend-mobile-brand img {
    max-width: 78px;
  }

  #header.frontend-header .frontend-lang-toggle {
    width: 34px;
  }

  #header.frontend-header .frontend-account-mobile .frontend-login-btn {
    width: 38px;
  }
}

/* Final mobile dark menu cleanup */
@media only screen and (max-width: 767px) {
  html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav,
  html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-custom-dropdown,
  html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link,
  .theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav,
  .theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-custom-dropdown,
  .theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .nav-dropdown-link {
    background: #111418 !important;
    color: #d7e3ee !important;
  }

  html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action,
  .theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  html.theme-dark
    #header.frontend-header
    .frontend-mobile-menu.mean-container
    .mean-nav
    .frontend-account-action
    .frontend-login-btn,
  .theme-dark
    #header.frontend-header
    .frontend-mobile-menu.mean-container
    .mean-nav
    .frontend-account-action
    .frontend-login-btn {
    background: #e14640 !important;
    border-color: #e14640 !important;
    color: #fff !important;
  }
}

/* Final override: mobile menu owns its login row */
@media only screen and (max-width: 767px) {
  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-account-action,
  #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-language-action {
    display: none !important;
  }

  html.theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-link,
  .theme-dark #header.frontend-header .frontend-mobile-menu.mean-container .mean-nav .frontend-mobile-login-link {
    background: #e14640 !important;
    color: #fff !important;
  }
}

/* Final mobile auth bar */
@media only screen and (max-width: 767px) {
  #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    background: #fff;
    border-top: 1px solid rgba(74, 111, 138, 0.12);
    bottom: 0;
    display: block;
    left: 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 10005;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth-link {
    align-items: center;
    background: #e14640;
    border-radius: 8px;
    color: #fff !important;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    text-align: center;
    text-decoration: none;
    width: 100%;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth-link:hover,
  #header.frontend-header.mobile-menu-open .frontend-mobile-auth-link:focus {
    background: #c93430;
    color: #fff !important;
    outline: none;
  }

  html.theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-auth,
  .theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    background: #111418;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
}

/* Final mobile menu visibility fix */
@media only screen and (max-width: 767px) {
  html.frontend-mobile-menu-open,
  html.frontend-mobile-menu-open body {
    overflow: hidden;
  }

  #header.frontend-header.mobile-menu-open {
    height: 80px !important;
    left: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    z-index: 10060 !important;
  }

  #header.frontend-header.mobile-menu-open .startp-responsive-nav,
  #header.frontend-header.mobile-menu-open .frontend-mobile-menu {
    background: #fff;
    min-height: 80px;
    position: relative;
    transform: none !important;
    z-index: 10065;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    color: #0e314c !important;
    display: block !important;
    left: 18px !important;
    position: fixed !important;
    right: auto !important;
    text-indent: 0 !important;
    top: 18px !important;
    z-index: 10090 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal span {
    background: #0e314c !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container .mean-nav {
    bottom: 0 !important;
    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;
    top: 80px !important;
    transform: none !important;
    z-index: 10050 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    bottom: 0 !important;
    position: fixed !important;
    top: auto !important;
    transform: none !important;
    z-index: 10080 !important;
  }

  html.theme-dark #header.frontend-header.mobile-menu-open .startp-responsive-nav,
  html.theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu,
  .theme-dark #header.frontend-header.mobile-menu-open .startp-responsive-nav,
  .theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu {
    background: #0b0e13;
  }

  html.theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal,
  .theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    color: #d7e3ee !important;
  }

  html.theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal span,
  .theme-dark #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal span {
    background: #d7e3ee !important;
  }
}

/* Final open mobile menu topbar order */
@media only screen and (max-width: 767px) {
  #header.frontend-header.mobile-menu-open .frontend-mobile-brand,
  #header.frontend-header.mobile-menu-open .frontend-mobile-actions {
    display: none !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    background: transparent !important;
    border: 0 !important;
    bottom: auto !important;
    display: block !important;
    left: auto !important;
    padding: 0 !important;
    position: fixed !important;
    right: 16px !important;
    top: 12px !important;
    width: auto !important;
    z-index: 10090 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth-link {
    min-height: 42px;
    padding: 0 18px;
    width: auto;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    left: 18px !important;
    right: auto !important;
    top: 18px !important;
  }
}

/* Final closed mobile menu guard */
@media only screen and (max-width: 767px) {
  #header.frontend-header:not(.mobile-menu-open) .frontend-mobile-menu.mean-container .mean-nav {
    background: transparent !important;
    box-shadow: none !important;
    bottom: auto !important;
    display: none !important;
    height: 0 !important;
    left: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: auto !important;
    top: 80px !important;
    visibility: hidden !important;
    width: 0 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container .mean-nav {
    display: block !important;
    left: 0 !important;
    pointer-events: auto !important;
    right: 0 !important;
    visibility: visible !important;
    width: 100vw !important;
  }
}

/* Final mobile header height */
@media only screen and (max-width: 767px) {
  #header.frontend-header,
  #header.frontend-header.headroom,
  #header.frontend-header.headroom.is-sticky,
  #header.frontend-header.headroom.headroom--pinned {
    height: 80px !important;
    min-height: 80px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  #header.frontend-header .startp-responsive-nav,
  #header.frontend-header .startp-responsive-menu,
  #header.frontend-header .frontend-mobile-menu,
  #header.frontend-header .frontend-mobile-menu.mean-container .mean-bar {
    min-height: 80px !important;
  }

  #header.frontend-header .frontend-mobile-menu {
    align-items: center !important;
  }

  #header.frontend-header .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    top: 23px !important;
  }

  #header.frontend-header:not(.mobile-menu-open) .frontend-mobile-menu.mean-container .mean-nav {
    top: 80px !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container .mean-nav {
    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;
    top: 80px !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    top: 19px !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-menu.mean-container a.meanmenu-reveal {
    top: 30px !important;
  }
}

/* Keep the language switcher usable while the mobile menu is open. */
@media only screen and (max-width: 767px) {
  #header.frontend-header .frontend-lang-mobile .frontend-lang-menu {
    position: fixed !important;
    right: 16px !important;
    top: 68px !important;
    z-index: 10110 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-actions {
    align-items: center !important;
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    right: 16px !important;
    top: 22px !important;
    z-index: 10100 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-lang-mobile {
    display: block !important;
    position: relative !important;
    z-index: 10100 !important;
  }

  #header.frontend-header.mobile-menu-open .frontend-mobile-auth {
    right: 66px !important;
  }
}
