.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 69, 99, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: fadeIn 0.3s ease-out;
}

.subscription-modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(41, 69, 99, 0.3);
    border: 2px solid #e0e7ff;
    animation: slideInUp 0.3s ease-out;
}

.subscription-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f8fafd;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.subscription-modal-close:hover {
    background: #294563;
    color: white;
    transform: rotate(90deg);
}

.subscription-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    margin-bottom: 1rem;
}

.modal-title {
    color: #294563;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.subscription-modal-body {
    text-align: center;
    margin-bottom: 2rem;
}

.course-title {
    color: #294563;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.modal-message {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.benefits-list {
    background: linear-gradient(135deg, #f8fafd 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e0e7ff;
}

.benefits-title {
    color: #294563;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.benefits-list li {
    color: #1F2937;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.subscription-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #006bb3);
    color: white;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #006bb3, #004d7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.tariffs-button .btn-tariffs {
    background: linear-gradient(135deg, #294563, #3b82f6);
    color: white;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.tariffs-button .btn-tariffs:hover {
    background: linear-gradient(135deg, #1e3149, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 69, 99, 0.4);
    color: white;
    text-decoration: none;
}

.btn-close-modal {
    background: #f8fafd;
    color: #6B7280;
    border: 1px solid #e0e7ff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: #e0e7ff;
    color: #294563;
    border-color: #3b82f6;
}

body.modal-open {
    overflow: hidden;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .subscription-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .course-title {
        font-size: 1.1rem;
    }

    .modal-message {
        font-size: 0.9rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        min-width: auto;
        width: 100%;
    }

    .benefits-list {
        padding: 1rem;
    }

    .benefits-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .subscription-modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .course-title {
        font-size: 1rem;
    }

    .subscription-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
    }
}

.subscription-modal-overlay[data-type="expired"] .subscription-modal-content {
    border-left: 6px solid #dc3545;
}

.subscription-modal-overlay[data-type="expiring"] .subscription-modal-content {
    border-left: 6px solid #ffc107;
}

.subscription-modal-overlay[data-type="no_access"] .subscription-modal-content {
    border-left: 6px solid #3b82f6;
}