/* ── Bell badge ─────────────────────────────────────────────────────────── */

.notification-bell,
.messages-header-link {
  position: relative;
}

.notification-bell-count,
.message-badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-header-link.has-notifications,
.notification-bell.has-notifications {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* ── Toast notifications ─────────────────────────────────────────────────── */

.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.notification-toast--fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.notification-toast__thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-toast__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-toast__icon-placeholder {
  width: 20px;
  height: 20px;
  background: #a0aec0;
  border-radius: 50%;
}

.notification-toast--message .notification-toast__icon-placeholder {
  background: #3b82f6;
}

.notification-toast__body {
  flex: 1;
  min-width: 0;
}

.notification-toast__headline {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-toast__subtext {
  margin: 0;
  font-size: 12px;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  color: #a0aec0;
  cursor: pointer;
  align-self: flex-start;
}

.notification-toast__close:hover {
  color: #4a5568;
}

/* Dark-mode support */
@media (prefers-color-scheme: dark) {
  .notification-toast {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .notification-toast__headline {
    color: #f7fafc;
  }

  .notification-toast__subtext {
    color: #a0aec0;
  }

  .notification-toast__close {
    color: #718096;
  }

  .notification-toast__close:hover {
    color: #e2e8f0;
  }
}

/* ── Push enable banner ──────────────────────────────────────────────────── */

.push-enable-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ebf8ff;
  border-bottom: 1px solid #bee3f8;
  border-radius: 10px 10px 0 0;
}

.push-enable-banner__text {
  font-size: 13px;
  color: #2b6cb0;
}

.push-enable-banner__btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  background: #3182ce;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.push-enable-banner__btn:hover {
  background: #2b6cb0;
}

@media (prefers-color-scheme: dark) {
  .push-enable-banner {
    background: #1a365d;
    border-color: #2a4a7f;
  }

  .push-enable-banner__text {
    color: #90cdf4;
  }
}
