/* Wallet Modal Redesign */
.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.wallet-modal-content {
    background: #232336;
    border-radius: 24px;
    padding: 32px 24px 16px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.wallet-modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
}

.wallet-modal-section {
    margin-bottom: 24px;
}

.wallet-modal-section-title {
    color: #b3b3cc;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wallet-option {
    background: #292945;
    border-radius: 16px;
    padding: 18px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.wallet-option:hover {
    background: #35356a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1px solid #4a90e2;
}

.wallet-option img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff;
}

.wallet-option span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.wallet-modal-mev {
    background: #18182b;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 18px 0 0 0;
    color: #7ee787;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.wallet-modal-mev a {
    color: #4a90e2;
    text-decoration: underline;
    margin-left: 6px;
}

.wallet-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0 0 0;
    color: #FF3B30;
    font-size: 14px;
    display: none;
}

.wallet-error.active {
    display: block;
}

.wallet-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wallet-loading.active {
    display: flex;
}

.wallet-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #3A3A3A;
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .wallet-modal-content {
        max-width: 98vw;
        padding: 16px 4px 8px 4px;
    }
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .wallet-modal-content {
        padding: 4px 0 4px 0;
    }
    .wallet-grid {
        grid-template-columns: 1fr;
    }
} 