/* ── HEAVENSY NAV ── */
.hv-nav {
  position: sticky; top: 0; z-index: 1000;
  height: 54px;
  background: #5a79d4;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(150, 175, 255, 0.16);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  box-shadow: 0 2px 20px rgba(10, 20, 70, 0.4);
}

/* Brand */
.hv-nav-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.hv-nav-logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #9961FF 0%, #5b8dee 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(153, 97, 255, 0.4);
}
.hv-nav-name {
  font-size: 16px; font-weight: 400; color: #fff;
  font-family: 'Poppins', sans-serif; letter-spacing: .2px;
}

.hv-nav-links {
  display: flex; align-items: center; gap: 6px;
}
.hv-nav-link {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none; padding: 4px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.hv-nav-link:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* Center button */
.hv-nav-center-btn {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 5px 14px; border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap; display: flex; align-items: center;
}
.hv-nav-center-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* Right section */
.hv-nav-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

/* Bell */
.hv-nav-bell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.75);
  flex-shrink: 0;
}
.hv-nav-bell:hover { color: #fff; }
.hv-nav-bell-dot {
  position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #9961FF;
  border: 1.5px solid rgba(70, 90, 180, 0.96);
  font-size: 9px; font-weight: 700; color: #fff;
  font-family: Arial, sans-serif;
  display: grid; place-items: center;
  line-height: 0;
}

/* Status */
.hv-nav-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}
.hv-nav-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 7px rgba(74, 222, 128, 0.8);
  flex-shrink: 0;
}

/* Divider */
.hv-nav-divider {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* User */
.hv-nav-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 3px 4px 3px 4px;
  border-radius: 22px;
  transition: background .2s;
}
.hv-nav-user:hover { background: rgba(255,255,255,0.09); }
.hv-nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #9961FF, #5b8dee);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.hv-nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hv-nav-user-name {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.hv-nav-chevron { color: rgba(255,255,255,0.45); flex-shrink: 0; transition: transform .2s; }
.hv-nav-user.open .hv-nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.hv-nav-user-wrap { position: relative; }
.hv-nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(30, 40, 105, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(150,175,255,0.2);
  border-radius: 12px; min-width: 170px;
  box-shadow: 0 8px 28px rgba(10,20,80,0.45);
  overflow: hidden; z-index: 2000;
}
.hv-nav-dropdown.open { display: block; }
.hv-nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; transition: background .15s;
  font-family: 'Poppins', sans-serif;
}
.hv-nav-dropdown a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.hv-nav-dropdown a.danger { color: rgba(255,100,100,0.85); }
.hv-nav-dropdown a.danger:hover { background: rgba(255,80,80,0.1); color: #ff7070; }
.hv-nav-dropdown-sep { height: 1px; background: rgba(150,175,255,0.15); margin: 4px 0; }

/* Mobile */
@media (max-width: 600px) {
  .hv-nav { padding: 0 14px; gap: 10px; }
  .hv-nav-status { display: none; }
  .hv-nav-divider { display: none; }
  .hv-nav-link { padding: 5px 10px; font-size: 11.5px; }
  .hv-nav-user-name { display: none; }
}
