/* Стилі для модального вікна */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.premium-modal-open-btn {
    display: none;
}
.premium-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.premium-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.premium-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.premium-modal-close:hover {
    color: var(--primary-color);
}

.premium-modal-body {
    padding: 1.5rem;
}

.modal-plan-container {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.modal-plan-card {
    display: none;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-plan-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.modal-plan-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.modal-plan-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-plan-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.modal-plan-dots {
    display: flex;
    gap: 0.5rem;
}

.modal-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-plan-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Кнопка для відкриття модального вікна */
.premium-modal-open-btn {
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.premium-modal-open-btn-desktop {
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.premium-modal-open-btn-desktop:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}



.premium-modal-open-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Адаптивність для модального вікна */
@media (max-width: 768px) {
    .premium-modal-open-btn {
        display: flex;
    }
    .premium-modal-content {
        margin: 20px auto;
    }

    .premium-modal-header {
        padding: 1rem;
    }

    .premium-modal-header h2 {
        font-size: 1.3rem;
    }

    .premium-modal-body {
        padding: 1rem;
    }

    .modal-plan-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .premium-modal {
        padding: 10px;
    }

    .premium-modal-content {
        margin: 10px auto;
    }

    .premium-modal-header {
        padding: 0.75rem;
    }

    .premium-modal-header h2 {
        font-size: 1.2rem;
    }

    .premium-modal-body {
        padding: 0.75rem;
    }

    .modal-plan-card {
        padding: 0.75rem;
    }

    .modal-plan-nav-btn {
        width: 30px;
        height: 30px;
    }

    .premium-modal-open-btn {
        display: flex;
        padding: 0.5rem 1.2rem;
        font-size: 0.5rem;
    }
}