/* Platinum/Diamond Extreme Shimmer Animation */
@keyframes diamond-glint {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Redefining Premium Badge with High-Contrast Shimmer */
.fi-sidebar-item-badge[class*="premium-gold"],
.fi-badge[class*="premium-gold"],
.premium-badge-gold {
    /* Platinum base with ultra-bright white glint */
    background: linear-gradient(90deg,
            #d1d5db 0%,
            #e5e7eb 25%,
            #ffffff 50%,
            #e5e7eb 75%,
            #d1d5db 100%) !important;
    background-size: 200% 100% !important;

    /* Elegant Dark Slate Text for Readability */
    color: #111827 !important;
    font-weight: 800 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;

    /* Modern Border & High-Intensity Glow */
    border: 1px solid #ffffff !important;
    border-radius: 6px !important;

    /* Fast, sharp shimmer for maximum visibility */
    animation: diamond-glint 1.5s infinite ease-in-out !important;

    /* Adding a constant white glow pulse */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4) !important;

    padding: 2px 12px !important;
    display: inline-block !important;
    line-height: normal !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Sparkle Effect Overlay using Psuedo-element */
.fi-sidebar-item-badge[class*="premium-gold"]::after,
.fi-badge[class*="premium-gold"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.9),
            transparent);
    transition: all 0.5s;
    animation: diamond-glint 1.5s infinite ease-in-out;
}

/* Ensure the text is visible and not hidden by the glint */
.fi-sidebar-item-badge[class*="premium-gold"] span,
.fi-badge[class*="premium-gold"] span {
    position: relative;
    z-index: 10;
    color: #111827 !important;
    text-shadow: 0 0 2px white !important;
}

/* Sidebar Item logic - Silver Icons */
.fi-sidebar-item:has(.fi-sidebar-item-badge[class*="premium-gold"]) .fi-sidebar-item-icon,
.fi-sidebar-item:has(.fi-sidebar-item-badge[class*="premium-gold"]) .fi-sidebar-item-icon svg {
    color: #e5e7eb !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 8px white);
    }

    100% {
        opacity: 0.8;
        filter: brightness(1);
    }
}