.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background-1);
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.nav-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-right > a,
.user-menu#tools-menu-wrap a {
  color: var(--grey-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
}

.user-dropdown a {
  font-weight: 500 !important;
  font-size: 13px !important;
}

.user-dropdown a:hover {
  color: var(--white) !important;
}

.user-menu > a:hover {
  color: var(--white);
}

.user-menu#tools-menu-wrap {
  padding: 0;
}

.nav-right > a:hover,
.nav-right .nav-link:hover,
.nav-right #tools-menu-wrap > .nav-link:hover {
  color: var(--white);
  transition: color 0.15s ease;
}

.user-menu#tools-menu-wrap:hover {
  background: transparent !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link i {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
}

.nav-link.has-notif::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 2px var(--nav-bg, #111);
  animation: notif-pulse 1s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scale(0.9);
    opacity: 1;
  }
}

.nav-link:hover {
  color: var(--white);
}

.nav-link-disabled {
  color: var(--grey-2);
  opacity: 0.55;
  cursor: not-allowed;
}

.nav-link-disabled:hover {
  color: var(--grey-2) !important;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary-1);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-2);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  user-select: none;
}

.user-menu:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-1);
  object-fit: cover;
  display: block;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--background-2);
  box-shadow: var(--box-shadow-1);
  border-radius: 8px;
  min-width: 150px;
  padding: 3px;
}

.user-dropdown.open {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--grey-1);
  text-decoration: none;
  font-size: 13px;
  border-radius: 5px;
  transition:
    background 0.15s,
    color 0.15s;
}

.user-dropdown a:hover {
  background: var(--background-3);
  color: var(--white);
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 12px;
  font-size: 14px;
}

.balance-label {
  color: var(--white);
  font-size: 13px;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #f5c542;
}

.balance-value .fa-star {
  font-size: 12px;
}

.dropdown-divider {
  height: 1px;
  background: var(--background-4);
  margin: 4px 0;
}
