/* Wallet Connect Modal */
.wallet-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wallet-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wallet-modal {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Custom Scrollbar */
.wallet-modal::-webkit-scrollbar {
    width: 6px;
}

.wallet-modal::-webkit-scrollbar-track {
    background: rgba(64, 224, 208, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.wallet-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8a2be2 0%, #40E0D0 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.wallet-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #40E0D0 0%, #00CED1 100%);
}

/* Firefox Scrollbar */
.wallet-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 224, 208, 0.6) rgba(64, 224, 208, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wallet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.wallet-modal-help {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0D0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-modal-help:hover {
    background: rgba(64, 224, 208, 0.2);
    border-color: rgba(64, 224, 208, 0.5);
}

.wallet-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    text-align: center;
}

.wallet-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.wallet-modal-body {
    padding: 15px 25px;
}

.wallet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wallet-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.1);
}

.wallet-item:hover {
    background: rgba(64, 224, 208, 0.15);
    border-color: rgba(64, 224, 208, 0.3);
    transform: translateX(5px);
}

.wallet-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.wallet-logo.walletconnect {
    background: #3b99fc;
    color: #ffffff;
}

.wallet-logo.metamask {
    background: #f6851b;
    color: #ffffff;
}

.wallet-logo.phantom {
    background: #ab9ff2;
    color: #ffffff;
}

.wallet-logo.oneinch {
    background: #000000;
    color: #ffffff;
}

.wallet-logo.binance {
    background: #f3ba2f;
    color: #000000;
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wallet-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.wallet-status {
    font-size: 12px;
    font-weight: 500;
}

.wallet-status.installed {
    color: #4ade80;
}

.wallet-status.qrcode {
    color: #3b82f6;
}

.wallet-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin-left: 10px;
}

.wallet-search {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.wallet-search-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.wallet-search-input:focus-within {
    border-color: rgba(64, 224, 208, 0.6);
    background: rgba(64, 224, 208, 0.15);
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.2);
}

.wallet-search-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.wallet-search-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.wallet-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wallet-search-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 16px;
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-search-more:hover {
    background: rgba(64, 224, 208, 0.15);
    border-color: rgba(64, 224, 208, 0.4);
}

.wallet-search-more-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.wallet-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
    text-align: center;
    position: sticky;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

.wallet-modal-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.wallet-modal-footer-text a {
    color: #40E0D0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wallet-modal-footer-text a:hover {
    color: #00CED1;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .wallet-modal {
        width: 95%;
        max-height: 85vh;
    }

    .wallet-modal-header {
        padding: 20px;
    }

    .wallet-modal-body {
        padding: 15px 20px;
    }

    .wallet-modal-footer {
        padding: 15px 20px;
    }

    .wallet-item {
        padding: 14px 16px;
    }
}

