header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .5s, backdrop-filter .5s, box-shadow .5s;
}

header.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo-fallback {
  display: none;
  font-family: 'Playfair Display', serif;
  color: var(--gold-500);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: rgba(255,255,255,.65);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-icon-btn {
  color: rgba(255,255,255,.65);
  transition: color .25s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-icon-btn:hover {
  color: var(--gold-500);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
}

.nav-intranet {
  color: var(--gold-500);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-profile {
  position: relative;
}

.nav-profile-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.88);
}

.nav-profile-summary::-webkit-details-marker {
  display: none;
}

.nav-avatar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.4);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.22) 0 23%, transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255,255,255,.16) 0 34%, transparent 35%),
    rgba(255,255,255,.07);
}

.nav-profile-name {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .75rem);
  min-width: 280px;
  background: rgba(12,12,12,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  z-index: 80;
}

.nav-profile-link {
  display: block;
  padding: .8rem 1rem;
  text-decoration: none;
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.05);
}
.nav-profile-link-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-profile-link:first-child {
  border-top: 0;
}

.nav-profile-link:hover {
  color: var(--gold-500);
  background: rgba(212,175,55,.08);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-inner {
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.05);
  padding: 1rem;
  min-width: 200px;
}

.dropdown-link {
  display: block;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.65);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}

.dropdown-link:hover {
  color: var(--gold-500);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.65);
}

.mobile-menu-btn:hover {
  color: var(--gold-500);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.05);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  padding: 2rem 1.5rem;
}

.mobile-nav-link {
  display: block;
  padding: .75rem 0;
  color: rgba(255,255,255,.65);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.mobile-nav-link:hover {
  color: var(--gold-500);
}

.mobile-nav-link-highlight {
  color: var(--gold-500);
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-intranet { display: none; }
  .nav-profile { display: none; }
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.nav-live-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 120;
}
.nav-live-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2rem));
  border: 1px solid rgba(255,255,255,.1);
  background: #111;
  z-index: 121;
  padding: 1rem;
}
.nav-live-modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:.8rem; }
.nav-live-modal-head h3 { color:#fff; font-family:'Playfair Display',serif; font-size:1.3rem; }
.nav-live-close { background:transparent; border:0; color:rgba(255,255,255,.8); cursor:pointer; }
.nav-live-form { display:grid; gap:.65rem; }
.nav-live-input { width:100%; background:#171717; border:1px solid rgba(255,255,255,.16); color:#fff; padding:.65rem .75rem; }
.nav-live-form textarea.nav-live-input { min-height:88px; resize:vertical; }
.nav-live-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.nav-live-tag { border:1px solid rgba(201,169,98,.35); background:rgba(201,169,98,.08); color:var(--gold-500); font-size:.66rem; padding:.2rem .45rem; cursor:pointer; }
.nav-live-submit { width:fit-content; padding:.75rem 1rem; border:1px solid var(--gold-500); background:var(--gold-500); color:#111; cursor:pointer; }

/* Live indicator dot + white text */
.nav-link-live {
  color: #fff !important;
  font-weight: 600;
}
.nav-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53935;
  margin-right: 5px;
  animation: live-dot-pulse 1.2s infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

/* Floating live notification toast */
.live-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  max-width: 360px;
  width: calc(100vw - 48px);
  background: rgba(12,12,12,.97);
  border: 1px solid rgba(201,164,92,.22);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: live-toast-in .35s ease-out;
}
@keyframes live-toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-toast-inner {
  padding: 1.1rem 1.2rem;
}
.live-toast-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
}
.live-toast-badge {
  color: #c9a45c;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.live-toast-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 .3rem;
  line-height: 1.25;
}
.live-toast-topic {
  color: rgba(255,255,255,.52);
  font-size: .75rem;
  line-height: 1.5;
  margin: 0 0 .85rem;
}
.live-toast-actions {
  display: flex;
  gap: .55rem;
}
.live-toast-btn {
  flex: 1;
  text-align: center;
  padding: .55rem 0;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.live-toast-btn-connect {
  background: var(--gold-500);
  color: #111;
  border-color: var(--gold-500);
}
.live-toast-btn-connect:hover {
  background: transparent;
  color: var(--gold-500);
}
.live-toast-btn-dismiss {
  background: transparent;
  color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.12);
}
.live-toast-btn-dismiss:hover {
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

@media (max-width: 480px) {
  .live-toast {
    right: 12px;
    bottom: 12px;
  }
}
