.nx-notification-dd.nx-open .nx-notification-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nx-notification-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: unset !important;
  right: 0;
  min-width: 320px;
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  overflow: hidden;
  z-index: 100;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.95);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .nx-notification-menu {
    min-width: 0;
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    right: 0;
  }
}

.nx-notification-menu .nx-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: transparent;
  color: inherit;
}

.nx-notification-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nx-link-btn {
  border: 0;
  background: transparent;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}

.nx-link-btn:hover,
.nx-link-btn:focus-visible {
  color: #bfdbfe;
}

.nx-notification-list {
  max-height: min(48vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: grid;
  gap: 6px;
  padding: 6px;
  box-sizing: border-box;
}

.nx-notification-dd::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.nx-notification-empty {
  padding: 16px 12px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.nx-notification-item {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #f1f5f9;
  text-align: left;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nx-notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nx-notification-item-title {
  font-size: 12.5px;
  line-height: 1.3;
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nx-notification-item-text {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nx-notification-item-compact {
  display: none;
}

.nx-notification-item-meta {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nx-bell-dot[hidden] {
  display: none !important;
}

.nx-bell-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  background: #ef4444;
  color: transparent;
  border: 1.5px solid rgba(15, 23, 42, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 400;
  line-height: 0;
}

@media (max-width: 768px) {
  .nx-nav-tools-mobile .nx-dropdown-menu.nx-notification-menu {
    width: min(300px, calc(100vw - 16px));
    min-width: 0;
    max-width: calc(100vw - 16px);
    max-height: min(62vh, 440px);
  }

  .nx-notification-menu .nx-dropdown-header {
    min-height: 38px;
    padding: 7px 8px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .nx-notification-menu .nx-dh-name {
    font-size: 0.8rem;
  }

  .nx-notification-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nx-notification-list {
    gap: 3px;
    padding: 4px;
  }

  .nx-notification-item {
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
  }

  .nx-notification-item-title,
  .nx-notification-item-text {
    display: none !important;
  }

  .nx-notification-item-compact {
    display: -webkit-box !important;
    min-width: 0;
    overflow: hidden;
    color: #f1f5f9;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .nx-notification-item-meta {
    font-size: 0;
    white-space: nowrap;
  }

  .nx-notification-item-meta::after {
    content: attr(data-mobile-time);
    color: #94a3b8;
    font-size: 10px;
  }
}
