/* Balance display styles */
.balance {
    position: relative;
}

.balance-amount {
    font-weight: 600;
    transition: all 0.3s ease;
}

.balance-amount.loading {
    color: #999;
    font-style: italic;
}

.balance-amount.error {
    color: #ff4444;
    font-size: 0.9em;
}

/* Loading animation */
.balance-amount.loading::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 4px;
    border-radius: 50%;
    background: #999;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive balance display */
@media (max-width: 768px) {
    .balance {
        font-size: 0.9em;
    }
    
    .balance-amount.error {
        font-size: 0.8em;
    }
}

/* Login popup styles */
#login-popup input:focus {
    outline: none;
    border-color: #5c68ca !important;
    box-shadow: 0 0 0 3px rgba(92, 104, 202, 0.1);
}

#login-popup button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#login-popup button[type="submit"]:hover {
    background: #4a56b8 !important;
}

#login-popup button#cancel-login:hover {
    background: #d1d5db !important;
}
