/* Wallet Modal Styles */
#wallet-modal {
    z-index: 9999;
}

#wallet-modal.show {
    animation: fadeIn 0.3s ease-out;
}

#wallet-modal.hide {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#wallet-modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Wallet Option Hover Effects */
.wallet-option {
    position: relative;
    overflow: hidden;
}

.wallet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.5s;
}

.wallet-option:hover::before {
    left: 100%;
}

/* Profile Dropdown Styles */
#profile-dropdown-container {
    position: relative;
}

#profile-dropdown {
    animation: slideDown 0.2s ease-out;
}

#profile-dropdown.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#dropdown-arrow {
    transition: transform 0.2s ease;
}

#dropdown-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* Loading Animation */
.animate-bounce {
    animation: bounce 1.4s infinite;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Wallet Status Badge */
.wallet-status {
    transition: all 0.3s ease;
}

/* Custom Scrollbar for Modal */
#wallet-modal-content::-webkit-scrollbar {
    width: 6px;
}

#wallet-modal-content::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 3px;
}

#wallet-modal-content::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.5);
    border-radius: 3px;
}

#wallet-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    #wallet-modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }

    #profile-dropdown {
        right: -50px;
    }
}