.site-notif-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    pointer-events: none;
}

.site-notif {
    --notif-primary: #007bff;
    --notif-secondary: #4fa4ff;
    --notif-glow: rgba(102, 126, 234, 0.6);

    pointer-events: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.site-notif.is-clickable {
    cursor: pointer;
}

.site-notif.is-clickable:focus-visible .site-notif-banner,
.site-notif.is-clickable:hover .site-notif-banner {
    border-color: color-mix(in srgb, var(--notif-primary) 65%, white 35%);
}

.site-notif.theme-success {
    --notif-primary: #10b981;
    --notif-secondary: #059669;
    --notif-glow: rgba(16, 185, 129, 0.6);
}

.site-notif.theme-error {
    --notif-primary: #ef4444;
    --notif-secondary: #dc2626;
    --notif-glow: rgba(239, 68, 68, 0.6);
}

.site-notif-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--notif-primary), var(--notif-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 0 30px var(--notif-glow), 0 0 0 3px var(--notif-primary);
    transition: box-shadow 0.3s ease;
}

.site-notif-logo .notif-logo-svg {
    width: 60px;
    height: 60px;
}

.site-notif.phase-logo .site-notif-logo {
    animation: notifLogoPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes notifLogoPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.site-notif-banner {
    height: 60px;
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(25, 25, 45, 0.95) 100%);
    border: 2px solid var(--notif-primary);
    border-left: none;
    border-radius: 0 12px 12px 0;
    margin-left: -15px;
    padding-left: 30px;
    padding-right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    position: relative;
    width: 0;
    opacity: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px var(--notif-glow);

    &::-webkit-scrollbar {
        background: transparent;
        height: 6px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: var(--notif-primary);
        box-shadow: 0 0 2px 2px var(--notif-glow);
    }
}

.site-notif.phase-expand .site-notif-logo {
    transform: scale(1);
    opacity: 1;
}

.site-notif.phase-expand .site-notif-banner {
    animation: notifBannerExpand 0.4s ease-out forwards;
}

@keyframes notifBannerExpand {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 320px;
        opacity: 1;
    }
}

.site-notif-title {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--notif-primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
}

.site-notif-message {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    margin-top: 4px;
    opacity: 0;
    transform: translateX(-20px);
}

.site-notif.phase-expand .site-notif-title {
    animation: notifTextSlide 0.3s ease-out 0.25s forwards;
}

.site-notif.phase-expand .site-notif-message {
    animation: notifTextSlide 0.3s ease-out 0.35s forwards;
}

@keyframes notifTextSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.site-notif-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.site-notif.phase-expand .site-notif-banner::after {
    animation: notifShimmer 0.6s ease-in-out 0.5s forwards;
}

@keyframes notifShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.site-notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.site-notif-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--notif-primary), var(--notif-secondary));
    width: 100%;
    transform-origin: right;
}

.site-notif.phase-collapse .site-notif-logo {
    transform: scale(1);
    opacity: 1;
}

.site-notif.phase-collapse .site-notif-banner {
    animation: notifBannerCollapse 0.35s ease-in forwards;
}

.site-notif.phase-collapse .site-notif-title,
.site-notif.phase-collapse .site-notif-message {
    animation: notifTextSlideOut 0.2s ease-in forwards;
}

@keyframes notifBannerCollapse {
    0% {
        width: 320px;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes notifTextSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.site-notif.phase-hide .site-notif-logo {
    animation: notifLogoHide 0.3s ease-in forwards;
}

.site-notif.phase-hide .site-notif-banner {
    width: 0;
    opacity: 0;
}

@keyframes notifLogoHide {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.site-notif.phase-expand .site-notif-logo {
    animation: notifGlowPulse 2s ease-in-out infinite;
}

@keyframes notifGlowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--notif-glow), 0 0 40px var(--notif-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--notif-glow), 0 0 60px var(--notif-glow);
    }
}

@media (max-width: 600px) {
    .site-notif-container {
        width: calc(100vw - 1rem);
        max-width: 385px;
        bottom: 1rem;
    }

    .site-notif {
        width: 100%;
        min-width: 0;
    }

    .site-notif-logo {
        width: 56px;
        height: 56px;
    }

    .site-notif-logo .notif-logo-svg {
        width: 40px;
        height: 40px;
    }

    .site-notif-banner {
        height: 52px;
        min-width: 0;
        padding-left: 24px;
        padding-right: 14px;
        overflow: hidden;
    }

    .site-notif.phase-expand .site-notif-banner {
        animation-name: notifBannerExpandMobile;
    }

    .site-notif.phase-collapse .site-notif-banner {
        animation-name: notifBannerCollapseMobile;
    }

    .site-notif-title,
    .site-notif-message {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-notif-message {
        font-size: 0.84rem;
    }
}

@keyframes notifBannerExpandMobile {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: calc(100% - 41px);
        opacity: 1;
    }
}

@keyframes notifBannerCollapseMobile {
    from {
        width: calc(100% - 41px);
        opacity: 1;
    }

    to {
        width: 0;
        opacity: 0;
    }
}
