/* Wallet Connection Popup Styles */
.wallet-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.wallet-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wallet-popup-content {
    background: linear-gradient(145deg, #0a1218 0%, #02050a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 127, 255, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
    text-align: center;
}

.wallet-popup-overlay.active .wallet-popup-content {
    transform: translateY(0);
}

.wallet-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #007fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.wallet-popup-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.wallet-highlight {
    color: #007fff;
    font-weight: 600;
}

.wallet-connect-btn {
    background: linear-gradient(90deg, #021a30, #000000);
    color: white;
    border: 1px solid #003366;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 52, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.wallet-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 52, 102, 0.6);
    background: linear-gradient(90deg, #002e54, #101010);
}

.wallet-connect-btn:active {
    transform: translateY(0);
}

.wallet-connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

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

.wallet-icon {
    margin-right: 10px;
    font-size: 18px;
}

.wallet-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wallet-popup-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.fee-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Pulse animation for button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 52, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 52, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 52, 102, 0);
    }
}

.wallet-connect-btn {
    animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .wallet-popup-content {
        padding: 20px;
    }
    
    .wallet-popup-title {
        font-size: 24px;
    }
    
    .wallet-popup-message {
        font-size: 14px;
    }
    
    .wallet-connect-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
