#notif-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.modern-notif {
    box-sizing: border-box;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(35, 35, 37, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 320px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
}

.modern-notif.show {
    transform: translateX(0);
    opacity: 1;
}

.modern-notif.hide {
    transform: translateX(120%);
    opacity: 0;
}

.notif-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.notif-content {
    min-width: 0;
    overflow-wrap: anywhere;
    flex-grow: 1;
    line-height: 1.4;
    font-weight: 400;
}

.notif-close {
    border: 0;
    padding: 0;
    background: transparent;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-close:hover,
.notif-close:focus-visible {
    opacity: 1;
    transform: scale(1.1);
}

.notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: notifProgress var(--notif-duration, 6s) linear forwards paused;
}

.modern-notif.show .notif-progress {
    animation-play-state: running;
}

.modern-notif.success .notif-progress { background: #2ecc71; }
.modern-notif.error .notif-progress { background: #e74c3c; }
.modern-notif.warning .notif-progress { background: #f1c40f; }

@keyframes notifProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 600px) {
    #notif-container {
        top: 15px;
        left: 15px;
        right: 15px;
        align-items: center;
    }

    .modern-notif {
        width: 100%;
        max-width: 100%;

        transform: translateY(-150%);
    }

    .modern-notif.show {
        transform: translateY(0);
    }

    .modern-notif.hide {
        transform: translateY(-150%);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    #notif-container { left: 12px; right: 12px; max-width: calc(100% - 24px); }
    .modern-notif { box-sizing: border-box; width: 100%; min-width: 0; transform: translateY(12px); }
    .modern-notif.show { transform: translateY(0); }
    .modern-notif.hide { transform: translateY(-12px); }
    .notif-content { min-width: 0; overflow-wrap: anywhere; }
    .notif-icon, .notif-close { flex-shrink: 0; }
}
