.notification-menu {
  position: relative;
  z-index: 8200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.notification-popover[hidden],
.notification-empty[hidden],
.notification-row[hidden],
.notification-clear-button[hidden],
.notification-badge[hidden] {
  display: none;
}

.notification-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(248, 250, 252, 0.96);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
}

.notification-popover-head span {
  color: var(--lf-color-text, #0f172a);
  font-size: 14px;
  font-weight: 900;
}

.notification-popover-head small,
.notification-row-copy span,
.notification-row em {
  color: var(--lf-color-muted, #64748b);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.notification-list-panel {
  display: grid;
  gap: 8px;
}

.notification-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--lf-color-text, #0f172a);
  text-decoration: none;
  background: transparent;
}

.notification-row:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(239, 246, 255, 0.72);
}

.notification-row.is-due {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.06);
}

.notification-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.notification-row.is-due .notification-row-icon {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.notification-row-icon svg {
  width: 18px;
  height: 18px;
}

.notification-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.notification-row-copy strong,
.notification-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-row-copy strong {
  color: var(--lf-color-text, #0f172a);
  font-size: 12px;
  font-weight: 900;
}

.notification-empty {
  display: grid;
  gap: 5px;
  padding: 18px 12px;
  text-align: center;
  color: var(--lf-color-muted, #64748b);
}

.notification-empty strong {
  color: var(--lf-color-text, #0f172a);
  font-size: 13px;
}

.notification-empty span {
  font-size: 12px;
  line-height: 1.35;
}

.notification-popover-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.notification-popover-link,
.notification-clear-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.notification-popover-link {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.notification-clear-button {
  padding: 0 12px;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  cursor: pointer;
}

.notification-popover-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.notification-clear-button:hover {
  color: #fff;
  background: #7c3aed;
}
