nav {
  position: fixed;
  top: 0; width: 100%;
  height: 100px;
  background: rgba(20, 40, 80, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

nav.scrolled {
  height: 72px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 35px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-section img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin-top: 8px;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.login-btn {
  background: var(--accent);
  color: var(--white);
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(65,105,225,0.3);
  white-space: nowrap;
}

.login-btn:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65,105,225,0.45);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  min-width: 190px;
  border-radius: 10px;
  border: 1px solid var(--glass-bd);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 2000;
  overflow: hidden;
}

.dropdown-content a {
  color: rgba(255,255,255,0.85);
  padding: 13px 18px;
  font-size: 14px;
  display: block;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a::after { display: none; }
.dropdown-content a:hover { background: rgba(65,105,225,0.18); color: var(--white); }
.dropdown.open .dropdown-content { display: block; }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 100px; left: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
  }

  .nav-links.active { left: 0; }
  .mobile-menu-btn  { display: block; }

  .nav-links > a:has(.login-btn),
  .nav-links > a[href="login_simple.php"] {
    width: 80%;
    max-width: 280px;
    display: flex;
  }

  .nav-links .login-btn,
  .dropdown .login-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 16px;
    white-space: nowrap;
  }

  .dropdown {
    width: 80%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid var(--glass-bd);
    border-radius: 10px;
  }

  .dropdown.open .dropdown-content { display: block; }
}
