 /* Glassy hamburger */
#mobileNavToggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2200;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8,10,15,0.45);
}
#mobileNavToggle .bar {
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 -6px 0 0 rgba(255,255,255,0.9), 0 6px 0 0 rgba(255,255,255,0.9);
  display: block;
  border-radius: 2px;
}

/* Dim backdrop behind the glass card */
#mobileNavOverlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(6,6,6,0.55), rgba(6,6,6,0.72));
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: none;
}
#mobileNavOverlay.open { display: flex; }

/* Frosted glass panel that holds the navigation */
.mobile-nav-panel {
  width: 92%;
  max-width: 420px;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(8,10,15,0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: left;
}

.mobile-nav .nav-item {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform .12s ease, background .12s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav .nav-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}
.mobile-nav .nav-item .caret {
  opacity: 0.85;
  font-size: 14px;
  margin-left: 8px;
}

/* Dropdown submenus styled as nested frosted blocks */
.mobile-nav .dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
}
.mobile-nav .dropdown.open .dropdown-menu { display: flex; }
.mobile-nav .dropdown .dropdown-menu .nav-item {
  padding-left: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.015);
}

.mobile-nav .close-btn {
  margin-top: 6px;
  align-self: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
}

@media(min-width:900px){
  /* hide mobile toggle on larger screens */
  #mobileNavToggle, #mobileNavOverlay { display: none !important; }
}