.modern-nav {
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
}

.container-fluid {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.top-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.brand-icon {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon img {
  height: 16px !important;
}

.navbar-nav {
  gap: 2px;
}

.nav-link {
  color: white;
  font-weight: 400;
  font-size: 14px;
  position: relative;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #fff;
  opacity: 1;
  text-decoration: none !important;
}

.nav-link.active {
  color: #fff !important;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-toggle::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  border: none;
  vertical-align: middle;
  margin-left: 5px;
  font-size: 10px;
  transition: transform 0.3s;
}

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

.dropdown-menu {
  background: white;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.4rem;
  margin-top: 5px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 180px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-item {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  padding: 0.7rem;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  color: #000;
  font-weight: 700;
}

.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-link-highlight {
  font-weight: 700;
}

.nav-actions .btn-subtle {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
  border: 1px solid #fff;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
}

.nav-actions .btn-subtle:hover {
  opacity: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-actions .btn-primary-dark {
  background-color: #fff;
  color: #000;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.nav-actions .btn-primary-dark:hover {
  background: #e0e0e0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .modern-nav {
    padding: 1rem 0;
  }

  .navbar-collapse {
    background: #000;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
  }

  .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    background: white;
    border: none;
    box-shadow: none;
    transform: none !important;
    padding-left: 1.5rem;
    margin-top: 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item:hover {
    transform: none;
  }

  .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: none;
  }

  .dropdown-toggle::after {
    margin-left: auto;
    float: right;
  }

  .nav-actions {
    flex-direction: column;
    margin-top: 1.5rem;
    align-items: flex-start !important;
    gap: 1rem;
  }
}