/* ---- Navbar --------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--iron-black);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--phantom-grey);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-size: 22px; font-weight: 700;
}
.navbar-logo img { height: 34px; width: auto; }

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.navbar-links a {
  font-family: var(--font-title);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 14px; border-radius: var(--radius);
  color: var(--runic-silver);
  transition: color .2s, background .2s;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--frost-cyan); background: var(--abyss-blue); }

.navbar-auth { display: flex; align-items: center; gap: 10px; }

/* ---- User dropdown -------------------------------------- */
.nav-user-dropdown { position: relative; }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--frost-cyan);
  background: rgba(184, 230, 234, 0.08);
  border: 1px solid rgba(184, 230, 234, 0.2);
  padding: 5px 10px 5px 5px; border-radius: 20px;
  cursor: pointer; transition: background .2s;
}
.nav-user:hover { background: rgba(184, 230, 234, 0.14); }

.nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; background: var(--phantom-grey);
  border: 1px solid rgba(184, 230, 234, 0.3);
}

.nav-user-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 180px;
  background: var(--phantom-grey);
  border: 1px solid rgba(184, 230, 234, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 200;
}
.nav-user-menu.open { display: block; }

.nav-user svg {
  transition: transform .2s;
}

.nav-user[aria-expanded="true"] svg {
  transform: rotate(0deg) !important;
}

.nav-user-menu-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-user-menu-name {
  font-family: var(--font-title); font-size: 15px; font-weight: 700;
  color: var(--storm-white);
}
.nav-user-menu-role {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--frost-cyan); margin-top: 2px;
}
.nav-user-menu-item {
  display: block; padding: 11px 16px;
  font-size: 14px; color: var(--runic-silver);
  transition: background .15s, color .15s;
}
.nav-user-menu-item:hover { background: rgba(255,255,255,.05); color: var(--storm-white); }
.nav-user-menu-logout { color: var(--blood-oath); border-top: 1px solid rgba(255,255,255,.06); }
.nav-user-menu-logout:hover { background: rgba(139,30,30,.15); color: #e05555; }

/* ---- Mobile -------------------------------------------- */
.navbar-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius);
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}
@media (max-width: 900px) {
  .navbar-toggle { display: flex; }
  .navbar-links {
    display: none; position: absolute; top: var(--nav-h);
    left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { border-radius: 0; padding: 12px 24px; }
}