/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #0a0a0a;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #a855f7;
}

.modal-duration {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-price {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.modal-price small {
    font-size: 20px;
    font-weight: 600;
}

.modal-perks-title {
    font-size: 16px;
    color: #ccc;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.modal-perks-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.modal-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
}

.modal-perk-icon {
    color: #a855f7;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.modal-buy-btn:hover {
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.modal-buy-btn.demo-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    cursor: not-allowed;
}

.modal-buy-btn.demo-btn:hover {
    box-shadow: none;
    transform: none;
}