.top-bar-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.notif-wrap {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.notif-bell-btn svg {
  fill: #ffffff;
  width: 20px;
  height: 20px;
  display: block;
}

.notif-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #ff3b30;
  border-radius: 50%;
  border: 2px solid #000;
}

.notif-panel {
  position: absolute;
  top: 34px;
  right: 0;
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
  background: rgba(255, 59, 48, 0.08);
}

.notif-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.notif-body {
  min-width: 0;
  flex: 1;
}

.notif-text {
  font-size: 13px;
  color: #fff;
}

.notif-preview {
  font-size: 12px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 11px;
  opacity: 0.4;
  margin-top: 2px;
}

/* highlight the target comment when jumped to from a notification */
.rj-highlight {
  animation: rjPulse 2.5s ease;
}

@keyframes rjPulse {
  0% { background: rgba(255, 59, 48, 0.25); }
  100% { background: transparent; }
}

.notif-header {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: .55;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: opacity .15s, background .15s, color .15s;
}

.notif-icon-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.notif-clear-all-btn:hover {
  color: #ff453a;
  background: rgba(255, 59, 48, 0.12);
}

.notif-item {
  position: relative;
  padding-right: 34px;
}

.notif-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0;
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, background .15s, color .15s;
}

.notif-item:hover .notif-delete-btn {
  opacity: .5;
}

.notif-delete-btn:hover {
  opacity: 1;
  color: #ff453a;
  background: rgba(255, 59, 48, 0.12);
}
.notif-text,
.notif-preview,
.notif-time,
.notif-empty {
  font-family: inherit;
}
