.notifyBtn{
  position:relative;
  width:44px;
  height:44px;
  border-radius:15px;
  background:#f1f5f9;
  font-size:18px;
}
.notifyCount{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  background:#ef4444;
  color:#fff;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
}
.notifyCount.hidden{display:none}
.notificationsPanel{
  position:fixed;
  right:18px;
  top:88px;
  width:380px;
  max-width:calc(100vw - 24px);
  max-height:calc(100vh - 110px);
  overflow:auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.18);
  z-index:80;
}
.notificationsPanel.hidden{display:none}
.notifHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-bottom:1px solid #eef2f7;
  position:sticky;
  top:0;
  background:#fff;
  z-index:1;
}
.notifHead h3{margin:0}
.notifHead button{
  background:#e8f8ed;
  color:#078438;
  border-radius:12px;
  padding:9px 11px;
  font-weight:900;
}
.notificationItem{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid #eef2f7;
  cursor:pointer;
}
.notificationItem:hover{background:#f8fafc}
.notificationItem.unread{background:#f0fdf4}
.notificationAvatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#e8f8ed;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.notificationAvatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.notificationItem b{
  display:block;
  margin-bottom:4px;
}
.notificationItem p{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.35;
}
.notificationItem small{
  display:block;
  color:#94a3b8;
  margin-top:6px;
}
.activityItem{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #eef2f7;
}
.activityItem:last-child{border-bottom:0}
.activityIcon{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e8f8ed;
  display:grid;
  place-items:center;
}
.activityItem b{
  display:block;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.activityItem small{
  display:block;
  color:#64748b;
  margin-top:3px;
}
.onlineList{
  display:grid;
  gap:8px;
}
.onlineUser{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 9px;
  gap:10px;
  align-items:center;
}
.onlineAvatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#e8f8ed;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.onlineAvatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.onlineUser b{
  display:block;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.onlineUser small{
  color:#64748b;
}
.onlineDot{
  width:9px;
  height:9px;
  background:#22c55e;
  border-radius:50%;
}
@media(max-width:720px){
  .notificationsPanel{
    left:10px;
    right:10px;
    top:90px;
    width:auto;
  }
}
