.fwc-nav .container{ position:relative; }
.fwc-notification-wrap{
  position:relative;
  display:flex;
  align-items:center;
  margin-left:auto;
  margin-right:.55rem;
}
.fwc-notification-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(15,23,42,.62);
  color:rgba(226,232,240,.55);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  position:relative;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.fwc-notification-btn:hover{ transform:translateY(-1px); color:#fff; background:rgba(30,41,59,.88); }
.fwc-notification-btn.has-unread{
  color:#fff;
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  border-color:rgba(255,255,255,.3);
  animation:fwcBellPulse 1.75s ease-in-out infinite;
}
.fwc-notification-icon{ font-size:1.18rem; line-height:1; }
.fwc-notification-count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:.72rem;
  font-weight:900;
  display:none;
  align-items:center;
  justify-content:center;
  border:2px solid #0f172a;
}
.fwc-notification-btn.has-unread .fwc-notification-count{ display:flex; }
.fwc-notification-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(360px, calc(100vw - 24px));
  background:#0b1220;
  color:#eaf2ff;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.46);
  padding:.75rem;
  z-index:1090;
  display:none;
}
.fwc-notification-wrap.is-open .fwc-notification-panel{ display:block; }
.fwc-notification-head{ display:flex; justify-content:space-between; gap:.75rem; align-items:center; padding:.25rem .25rem .6rem; border-bottom:1px solid rgba(255,255,255,.1); margin-bottom:.45rem; }
.fwc-notification-list{ max-height:360px; overflow:auto; }
.fwc-notification-item{ display:block; text-decoration:none; color:#eaf2ff; padding:.72rem .65rem; border-radius:12px; border:1px solid transparent; }
.fwc-notification-item:hover{ background:rgba(255,255,255,.07); color:#fff; }
.fwc-notification-item.is-unread{ background:rgba(37,99,235,.14); border-color:rgba(96,165,250,.2); }
.fwc-notification-item-title{ font-weight:900; font-size:.92rem; margin-bottom:.1rem; }
.fwc-notification-item-message{ font-size:.84rem; color:#cbd5e1; }
.fwc-notification-item-time{ font-size:.72rem; color:#94a3b8; margin-top:.25rem; }
.fwc-notification-empty{ color:#94a3b8; padding:1rem .65rem; font-size:.9rem; }
.fwc-notification-actions{ display:flex; justify-content:space-between; gap:.5rem; align-items:center; padding:.55rem .25rem .1rem; border-top:1px solid rgba(255,255,255,.1); margin-top:.45rem; }
.fwc-notification-link-btn{ border:0; background:transparent; color:#8fd3ff; padding:0; font-weight:800; font-size:.82rem; text-decoration:none; }
.fwc-notification-link-btn:hover{ color:#fff; }
.fwc-notification-unread{ background:rgba(37,99,235,.1); }
.wall-mention{ color:#8fd3ff; font-weight:900; }
@keyframes fwcBellPulse{
  0%,100%{ transform:rotate(0deg) scale(1); box-shadow:0 0 0 rgba(245,158,11,0); }
  20%{ transform:rotate(-8deg) scale(1.03); }
  40%{ transform:rotate(8deg) scale(1.03); box-shadow:0 0 0 7px rgba(245,158,11,.12); }
  60%{ transform:rotate(-5deg) scale(1.02); }
  80%{ transform:rotate(0deg) scale(1); }
}
@media (max-width:991.98px){
  .fwc-notification-wrap{ margin-left:.5rem; }
  .fwc-notification-panel{ right:-54px; }
}

/* Autocompletado de menciones en el muro */
.fwc-mention-suggestions{
  position:absolute;
  z-index:3000;
  background:#ffffff;
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
  overflow:hidden;
  max-height:260px;
}
.fwc-mention-suggestions[hidden]{display:none!important;}
.fwc-mention-option{
  width:100%;
  border:0;
  background:#fff;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  cursor:pointer;
}
.fwc-mention-option:hover,
.fwc-mention-option.is-active{
  background:#eef7f1;
}
.fwc-mention-username{
  font-weight:800;
  color:#0f5132;
  white-space:nowrap;
}
.fwc-mention-name{
  color:#64748b;
  font-size:.86rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fwc-notification-btn.is-empty{
  filter:grayscale(1);
  opacity:.62;
}
.fwc-notification-count:empty{display:none!important;}


/* Header fijo superior */
.fwc-nav{
  position:sticky;
  top:0;
  z-index:1080;
  width:100%;
  box-shadow:0 10px 28px rgba(2,6,23,.18);
}
.fwc-nav .container{
  min-height:62px;
}
.fwc-nav .navbar-collapse{
  z-index:1081;
}
.fwc-nav .navbar-toggler{
  z-index:1082;
}
.fwc-notification-wrap{
  z-index:1083;
}
.fwc-notification-panel{
  z-index:2100;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))){
  .fwc-nav{
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }
}
@media (max-width:991.98px){
  .fwc-nav .container{
    gap:.35rem;
  }
  .fwc-menu-panel{
    position:absolute;
    left:12px;
    right:12px;
    top:calc(100% + 8px);
    background:#0b1220;
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,.36);
    padding:.75rem;
    max-height:calc(100vh - 86px);
    overflow:auto;
  }
  .fwc-menu-panel:not(.show){
    display:none;
  }
  .fwc-menu-panel.show,
  .fwc-menu-panel.collapsing{
    display:block;
  }
}
@media (max-width:420px){
  .fwc-brand-text{
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .fwc-notification-btn{
    width:40px;
    height:40px;
  }
}
