/* Popup Modal Manager Styles */

/* Overlay background */
.pmm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999998;
}

.pmm-modal-overlay.show {
    display: block;
}

.pmm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #2c3e50;
    max-width: 700px;
    width: 90%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pmm-modal.show {
    display: block;
    animation: pmmFadeIn 0.3s ease-out;
}

@keyframes pmmFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.pmm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
    z-index: 10001;
}

.pmm-modal-close:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.pmm-modal-close::before,
.pmm-modal-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #2c3e50;
    border-radius: 1px;
}

.pmm-modal-close::before {
    transform: rotate(45deg);
}

.pmm-modal-close::after {
    transform: rotate(-45deg);
}

.pmm-modal-content {
    padding: 40px;
    position: relative;
}

.pmm-modal-logo {
    text-align: center;
    margin-bottom: 30px;
}

.pmm-modal-logo img {
    max-width: 200px;
    height: auto;
}

.pmm-modal-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 0 0 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.pmm-modal-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

.pmm-modal-price {
    font-size: 1.5rem;
    color: #e67e22;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 30px;
    padding: 15px 30px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 12px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.pmm-modal-description {
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
    color: #34495e;
}

.pmm-modal-coach {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 30px 0 20px;
    border-left: 4px solid #3498db;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 0 10px 10px 0;
}

.pmm-modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmm-modal-features li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.pmm-modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.pmm-modal .highlight {
    background: linear-gradient(120deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.1) 100%);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Body overlay when modal is open */
body.pmm-modal-open {
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .pmm-modal {
        width: 95%;
        max-width: none;
    }

    .pmm-modal-content {
        padding: 25px;
    }

    .pmm-modal-title {
        font-size: 1.8rem;
    }

    .pmm-modal-price {
        font-size: 1.3rem;
        padding: 12px 20px;
    }

    .pmm-modal-close {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .pmm-modal-close::before,
    .pmm-modal-close::after {
        width: 12px;
    }
}