.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 300;
}
.nav-logo img {
  height: 36px;
  object-fit: contain;
  display: block;
}
.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
}
.nav-a {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.nav-a:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-a.active {
  background: var(--accent2);
  color: var(--accent);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7fa8, #2aafd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.notif-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  transition: background 0.15s;
  text-decoration: none;
}
.notif-btn:hover {
  background: var(--surface2);
}
.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  border: 1.5px solid #fff;
}
/* Unread notification count badge */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.mainMenuToggle {
  display: none;
}

@media screen and (max-width: 767px) {
  .mainMenuToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 120px;
    right: 0;
    background-color: var(--accent);
    color: #fff;
    border-radius: 100px 0 0 100px;
    padding: 10px;
    height: 40px;
    width: 60px;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    gap: 8px;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.01rem;
    font-weight: 500;
  }
  .mainMenuToggle:hover,
  .mainMenuToggle:focus,
  .mainMenuToggle:active {
    background-color: #033648;
  }
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 170px;
    right: 0;
    background-color: var(--accent);
    padding: 10px;
    border-radius: 8px 0 0 8px;
  }
  .nav-links.active a.nav-a {
    color: #fff;
  }
  .nav-links.active a.nav-a.active {
    color: var(--accent);
  }
}
