/*
 * Modern notification toast. Overrides iziToast's default chrome for the
 * .ft-toast variant and lays out a compact card: actor avatar with the
 * reaction/kind clipped onto it as a badge (the signature element), a small
 * category eyebrow, and the message. Brand red (#cd192d) is the only accent.
 */
.iziToast.ft-toast {
  border: 0;
  border-left: 3px solid #cd192d;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 20, 28, .18), 0 2px 8px rgba(0, 0, 0, .06);
  padding: 0;
  min-height: 0;
  overflow: hidden;
}
.iziToast.ft-toast > .iziToast-body { padding: 0; margin: 0; min-height: 0; width: 100%; }
.iziToast.ft-toast .iziToast-body .iziToast-title,
.iziToast.ft-toast .iziToast-body .iziToast-icon { display: none !important; }
.iziToast.ft-toast .iziToast-body .iziToast-message { display: block; margin: 0; font-size: inherit; width: 100%; }
.iziToast.ft-toast > .iziToast-close { opacity: .45; top: 9px; right: 9px; }
.iziToast.ft-toast > .iziToast-close:hover { opacity: 1; }
.iziToast.ft-toast .iziToast-progressbar { height: 3px; background: transparent; }
.iziToast.ft-toast .iziToast-progressbar > div { background: #cd192d !important; }

.ftn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 34px 13px 14px; min-width: 290px; max-width: 380px;
}
.ftn-media { position: relative; flex: 0 0 auto; }
.ftn-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block;
  background: #eceef1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .06);
}
.ftn-avatar--empty {
  display: flex; align-items: center; justify-content: center;
  color: #9aa0a6; font-size: 18px; background: linear-gradient(135deg, #f2f3f5, #e2e4e9);
}
.ftn-badge {
  position: absolute; bottom: -3px; right: -3px; width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1; color: #fff;
  background: #cd192d; box-shadow: 0 0 0 2px #fff;
}
.ftn-badge--reaction { background: #cd192d; }
.ftn-badge--reply    { background: #2f6fed; }
.ftn-badge--mention  { background: #7c3aed; }
.ftn-badge--chat     { background: #0e9f6e; }

.ftn-body { min-width: 0; }
.ftn-eyebrow { font-size: 11px; font-weight: 600; color: #cd192d; margin-bottom: 2px; }
.ftn-text { font-size: 13.5px; line-height: 1.38; color: #262b30; }
.ftn-text b, .ftn-text strong { font-weight: 700; color: #0f1113; }
.ftn-text a { color: inherit; text-decoration: none; }

@media (max-width: 480px) {
  .ftn { min-width: 0; max-width: 82vw; }
}

/* ---- Notification bell dropdown -------------------------------------------
 * Shares the toast's visual language (avatar + kind badge, brand red) so live
 * toasts and the persistent list read as one system. */
.dropdown-menu.notifications {
  padding: 0; margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(18, 20, 28, .20), 0 2px 8px rgba(0, 0, 0, .06);
  min-width: 344px; max-width: 380px; overflow: hidden;
}
.ntf-head {
  padding: 12px 16px; font-weight: 700; font-size: 14px; color: #14171a;
  border-bottom: 1px solid #f0f1f3;
}
.ntf-list { max-height: 384px; overflow-y: auto; }

.dropdown-menu.notifications .notif-item {
  display: flex; align-items: center; gap: 12px; position: relative;
  padding: 11px 16px; white-space: normal; border-bottom: 1px solid #f4f5f6;
  transition: background .12s;
}
.dropdown-menu.notifications .notif-item:last-child { border-bottom: 0; }
.dropdown-menu.notifications .notif-item:hover,
.dropdown-menu.notifications .notif-item:focus { background: #f7f8fa; }
.dropdown-menu.notifications .notif-item.unread { background: #fdf3f4; }        /* brand tint */
.dropdown-menu.notifications .notif-item.unread:hover { background: #fbe9eb; }
.dropdown-menu.notifications .notif-item .ftn-avatar { width: 40px; height: 40px; }
.dropdown-menu.notifications .notif-item .ftn-badge { width: 18px; height: 18px; font-size: 9px; }

.ntf-media { position: relative; flex: 0 0 auto; }
.ntf-body { min-width: 0; flex: 1 1 auto; }
.ntf-text { display: block; font-size: 13px; line-height: 1.36; color: #262b30; }
.ntf-text b, .ntf-text strong { font-weight: 700; color: #0f1113; }
.ntf-text a { color: inherit; text-decoration: none; }
.ntf-time { display: block; margin-top: 2px; font-size: 11px; color: #99a0a6; }
.ntf-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #cd192d; }

.ntf-empty { padding: 26px 16px; text-align: center; color: #9aa0a6; }
.ntf-empty i { display: block; font-size: 22px; margin-bottom: 8px; color: #cfd3d8; }
