.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 198, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0, 198, 255, 0.12);
}

.navbar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


.navbar-left {
  flex: 0 0 auto;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}


.navbar-brand {
  color: #ffd700;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, #00c6ff);
  transition: width 0.2s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}


.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: #e7e7e7;
  text-decoration: none;
  font-size: 16px;
}

.navbar-links a:hover {
  color: #00c6ff;
  text-shadow: 0 0 8px #00c6ff;
}


.session-timer {
  display: flex;
  align-items: center;
  margin-right: 16px;
  font-size: 14px;
  color: #e7e7e7;
  white-space: nowrap;
}

.session-timer strong {
  margin-left: 6px;
  color: #ffd700;
  font-variant-numeric: tabular-nums;
}

.session-timer.warning strong {
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
}


.avatar-menu {
  position: relative;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.avatar-btn img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd700;
  transition: transform 0.15s ease;
}

.avatar-btn:hover img {
  transform: scale(1.05);
}

.avatar-btn .chevron {
  color: #e7e7e7;
  font-size: 14px;
}


.avatar-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1001;
}

.avatar-menu .menu.open {
  display: block;
}

.avatar-menu .menu a,
.avatar-menu .menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: #e7e7e7;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}

.avatar-menu .menu a:hover,
.avatar-menu .menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.avatar-menu .menu .danger {
  color: #ff6b6b;
}


@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 12px;
  }

  .navbar-center {
    order: 3;
  }

  .navbar-right {
    order: 2;
  }

  .session-timer {
    margin-right: 0;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
