/* ── NOTIFICATIONS: bell, dropdown panel, toasts ── */
.pf-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pf-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border, #e8e3e2);
  background: var(--bg, #fff);
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pf-notif-bell:hover { background: var(--surface, #f8f6f5); border-color: var(--crimson-mid, #d4a0a0); }
.pf-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--crimson, #8B1A1A);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-family: 'DM Sans', Arial, sans-serif;
}

.pf-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: 420px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e3e2);
  border-radius: var(--r-lg, 12px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.14));
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 5000;
  font-family: 'DM Sans', Arial, sans-serif;
}
.pf-notif-panel.open { display: flex; }

.pf-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border, #e8e3e2);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink, #1a1a1a);
}
.pf-notif-markall {
  background: none;
  border: none;
  color: var(--crimson, #8B1A1A);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.pf-notif-markall:hover { text-decoration: underline; }

.pf-notif-list {
  overflow-y: auto;
  flex: 1;
}
.pf-notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--mid, #6b6b6b);
  font-size: .82rem;
}
.pf-notif-item {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border, #e8e3e2);
  cursor: pointer;
  max-height: 200px;
  overflow: hidden;
  transition: background .12s, opacity .2s, max-height .2s, padding .2s;
}
.pf-notif-item:last-child { border-bottom: none; }
.pf-notif-item:hover { background: var(--surface, #f8f6f5); }
.pf-notif-item.unread { background: var(--crimson-light, #fdf0f0); }
.pf-notif-item.unread:hover { background: var(--crimson-light, #fdf0f0); }
.pf-notif-item.removing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.pf-notif-item-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin-bottom: 2px;
}
.pf-notif-item-msg {
  font-size: .78rem;
  color: var(--mid, #6b6b6b);
  line-height: 1.4;
  margin-bottom: 4px;
}
.pf-notif-item-time {
  font-size: .68rem;
  color: var(--muted, #9a9a9a);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── TOASTS ── */
.pf-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(340px, calc(100vw - 32px));
}
.pf-toast {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e8e3e2);
  border-left: 4px solid var(--crimson, #8B1A1A);
  border-radius: var(--r, 10px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.14));
  padding: .75rem .9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .25s, transform .25s;
  font-family: 'DM Sans', Arial, sans-serif;
}
.pf-toast.show { opacity: 1; transform: translateX(0); }
.pf-toast-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin-bottom: 2px;
}
.pf-toast-msg {
  font-size: .78rem;
  color: var(--mid, #6b6b6b);
  line-height: 1.4;
}

@media (max-width: 520px) {
  .pf-notif-panel { position: fixed; top: 64px; right: 8px; left: 8px; width: auto; }
}
