.notifications {
  position: fixed;
  top: 76px;
  right: 20px;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.notif-card {
  position: relative;
  padding: 14px 44px 14px 16px;
  color: #ffffff;
  background: #111111;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  font: 600 14px/1.45 Inter, system-ui, sans-serif;
  overflow-wrap: anywhere;
  animation: notification-in 0.2s ease;
  pointer-events: auto;
}

.notif-card.success { border-left: 5px solid #4ade80; }
.notif-card.warning { border-left: 5px solid #f59e0b; }
.notif-card.error { border-left: 5px solid #ef4444; }
.notif-card.info { border-left: 5px solid #9ca3af; }

.notif-message {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.notif-message:hover { text-decoration: underline; }

.notif-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #d1d5db;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.notif-close:hover,
.notif-close:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.notif-card.leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: 0.18s ease;
}

@keyframes notification-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
  .notifications {
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notif-card { animation: none; }
}
