.notification-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none; /* Allow clicks to pass through when no notification present */
}

.notification {
    --bg: rgba(9, 0, 0, 0.85);
    --text: #fc0606;
    --duration: 4s; /* default duration overwritten by inline style */

    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    pointer-events: auto; /* Allow interactions inside the banner */

    opacity: 0;
    transform: translateX(120%);
    animation: slide-in 0.35s ease-out forwards, slide-out 0.35s ease-in forwards var(--duration);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 0.95em;
    line-height: 1.3;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-out {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}
