.notification-menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-bell-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(24, 54, 82, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #17344f;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notification-bell-toggle:hover,
.notification-bell-toggle[aria-expanded="true"] {
  background: #fff6de;
  box-shadow: 0 12px 24px rgba(23, 52, 79, 0.12);
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eb5757;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(23, 52, 79, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(23, 52, 79, 0.16);
  overflow: hidden;
  z-index: 40;
}

.notification-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 52, 79, 0.08);
}

.notification-popover__header h3 {
  margin: 0;
  font-size: 16px;
  color: #17344f;
}

.notification-popover__footer {
  padding: 8px 18px;
  border-top: 1px solid rgba(23, 52, 79, 0.08);
  text-align: center;
  background: #f8fafc;
}

.notification-popover__all {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0e7490 !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s ease;
}

.notification-popover__all:hover {
  background: #e0f2fe;
  color: #064e3b !important;
}

.notification-popover__body {
  max-height: 420px;
  overflow-y: auto;
}

.notification-popover__loading,
.notification-popover__empty {
  padding: 18px;
  font-size: 14px;
  color: #5f6f7d;
}

.notification-popover__list {
  display: flex;
  flex-direction: column;
}

.notification-preview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  margin: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #17344f;
  transition: background 0.2s ease;
}

.notification-preview-item:hover {
  background: #f7fbff;
}

.notification-preview-item.is-unread {
  background: #fffaf0;
}

.notification-preview-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.notification-preview-item__title,
.notification-card__type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0e7490;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
}

.notification-preview-item__title[data-type^="follow_"],
.notification-card__type[data-type^="follow_"] {
  color: #166534;
  background: #dcfce7;
}

.notification-preview-item__title[data-type="announcement"],
.notification-card__type[data-type="announcement"] {
  color: #9f1239;
  background: #ffe4e6;
}

.notification-preview-item__message {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.notification-preview-item__time {
  font-size: 11px;
  color: #6b7b88;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
  align-self: flex-end;
}

.notifications-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

.notifications-page__header {
  margin-bottom: 28px;
}

.notifications-page__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e7490;
}

.notifications-page__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  color: #17344f;
}

.notifications-page__summary {
  margin: 10px 0 0;
  color: #5f6f7d;
}

.notifications-group {
  margin-top: 28px;
}

.notifications-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notifications-group__head h2,
.notifications-group__head span {
  margin: 0;
  color: #17344f;
}

.notifications-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid rgba(23, 52, 79, 0.1);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  color: #17344f;
  box-shadow: 0 16px 36px rgba(23, 52, 79, 0.06);
}

.notification-card.is-unread {
  border-color: rgba(244, 182, 67, 0.55);
  background: #fffaf0;
}

.notification-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.notification-card__meta time {
  font-size: 13px;
  color: #6b7b88;
}

.notification-card__message,
.notifications-empty {
  margin: 0;
  line-height: 1.6;
  color: #405261;
}

@media (max-width: 768px) {
  .notification-popover {
    right: -10px;
  }

  .notification-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
