/* Revert forum header look; keep only logged-in user badge/dropdown */

.coalition-topbar,
.coalition-brand,
.coalition-main-nav,
.coalition-header-actions{
  all:unset;
}

/* Restore/augment original right header layout */
.site-header{
  display:grid !important;
  grid-template-columns: 260px 1fr 360px;
  align-items:center;
  gap:24px;
  min-height:112px;
  padding:18px 28px;
  border-bottom:1px solid rgba(201,160,82,.16);
  background:rgba(5,7,9,.92);
  position:relative;
  z-index:50;
}

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
}

.header-motto{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:right;
}

/* Small login/register fallback */
.auth-mini-links{
  display:flex;
  align-items:center;
  gap:10px;
}

.auth-mini-links a{
  border:1px solid rgba(201,160,82,.35);
  border-radius:999px;
  padding:8px 12px;
  color:#d2aa45;
  text-decoration:none;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* User badge only */
.account-mini-menu{
  position:relative;
  z-index:200;
}

.account-mini-menu summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  color:#f4f1e8;
  user-select:none;
}

.account-mini-menu summary::-webkit-details-marker{
  display:none;
}

.user-avatar-wrap{
  width:42px;
  height:42px;
  border:1px solid rgba(210,170,69,.9);
  border-radius:50%;
  position:relative;
  display:grid;
  place-items:center;
  background:#07090d;
  box-shadow:0 0 0 2px rgba(210,170,69,.08);
}

.user-avatar-img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}

.user-avatar-fallback{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#1b1f27,#05070a);
  color:#d2aa45;
  font-weight:900;
  font-size:15px;
  font-family:Inter,Arial,sans-serif;
}

.online-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2bd36b;
  border:2px solid #06080c;
  position:absolute;
  right:0;
  bottom:2px;
}

.account-name{
  color:#f4f1e8;
  font-weight:800;
  font-size:14px;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:Inter,Arial,sans-serif;
}

.chevron{
  color:#f4f1e8;
  font-size:15px;
  margin-left:2px;
}

.account-dropdown{
  position:absolute;
  top:54px;
  right:0;
  min-width:245px;
  padding:8px 0;
  border:1px solid rgba(201,160,82,.28);
  border-radius:7px;
  background:
    linear-gradient(180deg,rgba(36,35,29,.96),rgba(15,16,17,.98));
  box-shadow:0 20px 50px rgba(0,0,0,.55);
  overflow:hidden;
}

.account-dropdown a{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:42px;
  padding:0 18px;
  color:#f4f1e8;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  text-decoration:none;
  position:relative;
}

.account-dropdown a span{
  width:20px;
  color:#f4f1e8;
  opacity:.92;
}

.account-dropdown a:hover,
.account-dropdown a.active{
  background:rgba(210,170,69,.13);
  color:#d2aa45;
}

.account-dropdown a.active span{
  color:#d2aa45;
}

.account-dropdown hr{
  border:0;
  height:1px;
  background:rgba(255,255,255,.10);
  margin:8px 18px;
}

.dropdown-badge{
  margin-left:auto;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:99px;
  background:#d2aa45;
  color:#111;
  font-size:11px;
  display:grid;
  place-items:center;
}

@media(max-width:900px){
  .site-header{
    grid-template-columns:1fr auto;
    min-height:82px;
    padding:14px 16px;
  }

  .observatory{
    display:none;
  }

  .site-title{
    justify-self:start;
  }

  .header-right{
    gap:10px;
  }

  .header-motto{
    display:none;
  }

  .account-name{
    display:none;
  }

  .user-avatar-wrap{
    width:38px;
    height:38px;
  }

  .user-avatar-img,
  .user-avatar-fallback{
    width:32px;
    height:32px;
  }

  .account-dropdown{
    right:0;
    min-width:230px;
  }
}


/* v74 private-message notification indicators */
.user-avatar-wrap.has-unread-pm{
  box-shadow:0 0 0 2px rgba(210,170,69,.08),0 0 18px rgba(255,46,46,.18);
}

.pm-notify-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff3030;
  border:2px solid #06080c;
  position:absolute;
  right:-3px;
  top:0;
  box-shadow:0 0 12px rgba(255,48,48,.82),0 0 22px rgba(255,48,48,.26);
}

.account-dropdown a.has-unread-pm{
  background:linear-gradient(90deg,rgba(110,12,12,.24),rgba(210,170,69,.06));
}

.account-dropdown a .dropdown-label{
  font-style:normal;
  flex:1;
}

.dropdown-unread-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ff3030;
  box-shadow:0 0 10px rgba(255,48,48,.8);
  margin-left:auto;
}

.dropdown-badge.pm-unread-badge{
  margin-left:8px;
  background:#ff3030;
  color:#fff;
  border:1px solid rgba(255,185,185,.34);
  box-shadow:0 0 12px rgba(255,48,48,.32);
}

