/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    margin: 0 auto;
    max-width: 550px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 25px;
    text-align: center;
}

.marketplace-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.marketplace-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.marketplace-option:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.marketplace-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marketplace-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: var(--icon-filter, none);
}

/* Partners Section Styling */
.marketplace-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.marketplace-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.marketplace-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

#close-modal {
    margin-top: 10px;
    align-self: center;
    min-width: 150px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .marketplace-option {
        padding: 15px;
    }
    
    .marketplace-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .marketplace-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .marketplace-name {
        font-size: 1.1rem;
    }
    
    .marketplace-price {
        font-size: 1.2rem;
    }
}