.fl-neon {
    --neon-bg-light: rgba(255, 255, 255);
    --neon-bg-dark: rgba(15, 23, 42);
    --neon-text-light: #334155;
    --neon-text-dark: #f1f5f9;
    --neon-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --neon-shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.25);
    --neon-border-radius: 4px;
    --neon-success: #10b981;
    --neon-info: #3b82f6;
    --neon-warning: #f59e0b;
    --neon-error: #ef4444;
    --neon-glow-strength: 10px;
    --neon-animation-duration: 0.35s;
}
@keyframes neonEntrance {
    0% {
        opacity: 0;
        transform: translateY(-15px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@keyframes neonGlow {
    0%, 100% {
        filter: drop-shadow(0 0 var(--neon-glow-strength) currentColor);
    }
    50% {
        filter: drop-shadow(0 0 calc(var(--neon-glow-strength) * 0.7) currentColor);
    }
}
.fl-neon {
    background-color: var(--neon-bg-light);
    color: var(--neon-text-light);
    border-radius: var(--neon-border-radius) var(--neon-border-radius) 0 0;
    box-shadow: var(--neon-shadow);
    padding: 14px 18px;
    margin: 12px 0;
    position: relative;
    animation: neonEntrance var(--neon-animation-duration) ease-out;
    font-family: 'Inter', var(--fl-font), sans-serif;
    will-change: transform, opacity, filter;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    .fl-icon-box {
        position: absolute;
        top: -12px;
        left: 16px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: neonGlow 3s ease-in-out infinite;
        &::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            opacity: 0.4;
        }
        &::after {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: relative;
            z-index: 1;
        }
    }
    .fl-content {
        display: flex;
        align-items: center;
    }
    .fl-message {
        flex: 1;
        font-size: 0.9375rem;
        line-height: 1.5;
        font-weight: 500;
    }
    .fl-close {
        background: none;
        border: none;
        padding: 0;
        margin-left: 16px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        opacity: 0.6;
        transition: all 0.2s ease;
        font-size: 1.2rem;
        flex-shrink: 0;
        &:hover, &:focus {
            opacity: 1;
            background-color: rgba(0, 0, 0, 0.06);
        }
    }
    .fl-progress-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        overflow: hidden;
        border-radius: 0 0 var(--neon-border-radius) var(--neon-border-radius);
        .fl-progress {
            height: 100%;
            width: 100%;
        }
    }
    &.fl-success {
        .fl-icon-box {
            color: var(--neon-success);
            &::before { background-color: var(--neon-success); }
            &::after { background-color: var(--neon-success); }
        }
        .fl-progress { background-color: var(--neon-success); }
    }
    &.fl-info {
        .fl-icon-box {
            color: var(--neon-info);
            &::before { background-color: var(--neon-info); }
            &::after { background-color: var(--neon-info); }
        }
        .fl-progress { background-color: var(--neon-info); }
    }
    &.fl-warning {
        .fl-icon-box {
            color: var(--neon-warning);
            &::before { background-color: var(--neon-warning); }
            &::after { background-color: var(--neon-warning); }
        }
        .fl-progress { background-color: var(--neon-warning); }
    }
    &.fl-error {
        .fl-icon-box {
            color: var(--neon-error);
            &::before { background-color: var(--neon-error); }
            &::after { background-color: var(--neon-error); }
        }
        .fl-progress { background-color: var(--neon-error); }
    }
    &.fl-rtl {
        direction: rtl;
        .fl-icon-box {
            left: auto;
            right: 16px;
        }
        .fl-close {
            margin-left: 0;
            margin-right: 16px;
        }
        .fl-progress {
            transform-origin: right center;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        animation: none;
        .fl-icon-box {
            animation: none;
        }
    }
}
body.fl-dark .fl-neon,
html.fl-dark .fl-neon,
.fl-neon.fl-auto-dark {
    background-color: var(--neon-bg-dark);
    color: var(--neon-text-dark);
    box-shadow: var(--neon-shadow-dark);
    .fl-close:hover, .fl-close:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
}
