/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-inner {
    padding: 40px;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.modal-title-section {
    flex: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Close Button */
.close {
    color: #7f8c8d;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close:hover,
.close:focus {
    color: #2c3e50;
    background: #f8f9fa;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: left 0.5s ease;
}

.wallet-option:hover::before {
    left: 100%;
}

.wallet-option:hover {
    background: #ffffff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.wallet-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wallet-icon svg,
.wallet-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wallet-details {
    flex: 1;
}

.wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.wallet-description {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 400;
}

.wallet-arrow {
    font-size: 20px;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.wallet-option:hover .wallet-arrow {
    transform: translateX(4px);
    color: #8b5cf6;
}

.wallet-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Modal Footer */
.modal-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.modal-footer p {
    font-size: 13px;
    color: #7f8c8d;
}

.footer-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 16px;
    }

    .modal-inner {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .wallet-option {
        padding: 16px;
    }

    .wallet-icon {
        width: 40px;
        height: 40px;
    }

    .wallet-icon svg {
        width: 24px;
        height: 24px;
    }

    .wallet-name {
        font-size: 15px;
    }

    .wallet-description {
        font-size: 12px;
    }
}
