/* === Gold Price Topbar Animation === */
#gold-price-topbar {
    display: inline-block;
    transition: all 0.3s ease;
}

#gold-price-topbar.gold-price-updated {
    animation: goldPriceUpdate 1s ease;
}

@keyframes goldPriceUpdate {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.05);
        color: #FFD700;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Loading state for gold price */
#gold-price-topbar.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Ensure topbar icon alignment */
.top-banner .d-flex.align-items-center {
    gap: 0.5rem;
}

/* Gold price emphasis on hover */
#gold-price-topbar:hover {
    color: #FFD700;
    cursor: help;
}

