/*Контент для подписчиков*/
/* Контейнер закрытого видео */
.vp-video-locked {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Сохраняем пропорции 16:9 */
.vp-video-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
}

/* Видео растягивается */
.vp-video-inner iframe,
.vp-video-inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) brightness(0.6);
    pointer-events: none;
}

/* Затемнение поверх */
.vp-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    z-index: 5;
}

/* Кнопка play */
.vp-locked-play {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform .2s ease;
}

.vp-locked-play svg {
    width: 80px;   /* уменьшили размер */
    height: 80px;
}

.vp-locked-play:hover {
    transform: scale(1.1);
}

/* ============================= */
/* 📱 МОБИЛЬНАЯ ВЕРСИЯ */
/* ============================= */

@media (max-width: 768px) {

    /* Убираем aspect-ratio и делаем старую проверенную схему */
    .vp-video-inner {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 */
        border-radius: 10px;
        overflow: hidden;
    }

    /* Жёстко прижимаем iframe */
    .vp-video-inner iframe,
    .vp-video-inner video {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    /* Оверлей всегда поверх */
    .vp-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vp-locked-play svg {
        width: 60px;
        height: 60px;
    }

}

@media (max-width: 480px) {

    .vp-locked-play svg {
        width: 52px;
        height: 52px;
    }

}

@keyframes vpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.vp-locked-play {
    animation: vpPulse 2.5s infinite ease-in-out;
}

/*Модальное окно*/
.vp-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.vp-modal.active {
    display: block;
}

.vp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.vp-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.vp-modal-btn {
    display: block;
    font-size: 16px;
    margin-top: 15px;
    padding: 12px;
    background: #111;
    color: white;
    border-radius: 999px;
    text-decoration: none;
}

.vp-modal-btn.vp-outline {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

/* Страницы входа и регистрации */
/* =========================
   AUTH DESKTOP (Изолированная версия)
   ========================= */

body.page-login,
body.page-register,
body.page-lost-password {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4b6cff, #5b2cff);
}

/* Контейнер */
.vp-auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* Карточка */
.vp-auth-box {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.18);
    text-align: center;
}

.vp-auth-box h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.vp-auth-box input {
    width: 100%;
    font-size: 16px; 
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Кнопка */
.vp-auth-box button {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    margin-top: 8px;
    border-radius: 999px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* Кнопка забыли пароль */
.vp-forgot {
    margin-top: 14px;
    font-size: 14px;
}

.vp-forgot a {
    color: #555;
    text-decoration: none;
}

.vp-forgot a:hover {
    text-decoration: underline;
}

/* =========================
   MOBILE AUTH (Login/Register)
   ========================= */

@media (max-width: 768px) {

    /* Фон */
    body.page-login,
    body.page-register,
    body.page-lost-password {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: linear-gradient(180deg, #4b6cff, #5b2cff);
    }

    /* Карточка */
    .vp-auth-box {
        width: 100%;
        max-width: 420px;
        padding: 26px 20px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    }

    /* Заголовок */
    .vp-auth-box h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Поля ввода */
    .vp-auth-box input {
        font-size: 16px; /* важно: чтобы iOS не увеличивал экран */
        padding: 14px 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    /* Кнопка */
    .vp-auth-box button {
        font-size: 16px;
        padding: 14px;
        margin-top: 8px;
        border-radius: 999px;
    }

    /* Ссылки под формой */
    .vp-auth-box p {
        font-size: 14px;
        margin-top: 18px;
    }

    .vp-auth-box a {
        font-weight: 600;
    }

}

@media (max-width: 768px) {
    .vp-auth-box {
        animation: fadeUp .4s ease;
    }

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


/* ===== Новый кабинет (Lemmony style) ===== */

/* Обёртка */
.vp-account-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Шапка */
.vp-account-header {
    background: #fff;
    padding: 30px 30px 0 30px;
    border-bottom: 1px solid #e5e5e5;
}

/* Линия пользователь + иконка */
.vp-user-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 25px 0;
}

.vp-user-icon svg {
    width: 42px;
    height: 42px;
    fill: #111;
}

.vp-user-name {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

/* Табы */
.vp-account-tabs {
    display: flex;
    gap: 30px;
}

.vp-account-tabs a {
    display: inline-block;
    padding: 12px 0;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.vp-account-tabs a.active {
    color: #000;
    border-bottom-color: #000;
}

/* Контентная зона */
.vp-account-content {
    background: #f5f6f7;
    padding: 30px;
    border-radius: 12px;
    min-height: 400px;
}

/* Общий контейнер */
.vp-subscription-tab {
    display: flex;
    flex-direction: column;
}

/* Группа тарифов — НЕ центрируем */
.vp-subscription-plans {
    width: 100%;
}

/* Карточка текущей подписки */
.vp-current-sub-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.vp-current-sub-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.vp-sub-price {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}

.vp-sub-dates {
    color: #666;
    font-size: 14px;
}

.vp-sub-cancel {
    margin-top: 15px;
    background: #eee;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* Заголовок смены тарифа */
.vp-other-plans-title {
    margin-top: 10px;
}

/* Сетка тарифов */
.vp-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Современная карточка тарифа */
.vp-plan-card-modern {
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.vp-plan-card-modern form {
    display: flex;
}

.vp-plan-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.vp-plan-period {
    font-weight: 600;
    color: #666;
}

.vp-plan-price {
    font-size: 26px;
    font-weight: 800;
    margin: 10px 0 20px;
}

.vp-plan-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 20px 20px;
    cursor: pointer;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;

    transition: background .2s ease;
}

.vp-plan-btn:hover {
    background: #333;
}

.vp-sub-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 0 0 40px 0;
}

/* Особенности подписки */

.vp-subscription-features {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ВНУТРЕННИЙ контейнер */
.vp-subscription-features-inner {
    max-width: 520px;
    text-align: center;
}

.vp-subscription-features-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

.vp-subscription-features-inner p {
    margin: 8px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.vp-subscription-features {
    padding-bottom: 20px;
}

/* Карточки внутри */
.vp-card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

/* Заголовок секции */
.vp-section-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Настройки */
.vp-settings-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.vp-settings-form button {
    padding: 10px 18px;
    background: #ff5a5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/*НАСТЯ УБЕРИ ЭТО и под ним тоже до мобилы*/
.vp-cancel-subscription-placeholder{
    text-align:center;
    margin:40px 0;
}

.vp-sub-cancel-fake{
        background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 20px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;

    transition: background .2s ease;
}

/* ===== Мобильная версия ===== */

@media (max-width: 768px) {

    .vp-account-wrapper {
        grid-template-columns: 1fr;
    }

    .vp-account-header {
        padding: 20px 16px 0 16px;
    }

    .vp-user-line {
        gap: 10px;
        padding-bottom: 18px;
    }

    .vp-user-name {
        font-size: 18px;
    }

    .vp-user-icon svg {
        width: 34px;
        height: 34px;
    }

    .vp-account-tabs {
        gap: 18px;
        font-size: 14px;
    }

    .vp-account-content {
        padding: 16px;
    }

    .vp-plans-grid {
        grid-template-columns: 1fr;
    }

    .vp-current-sub-info {
        flex-direction: column;
        gap: 12px;
    }

    .vp-plan-card-modern {
        padding: 18px;
    }

    .vp-plan-price {
        font-size: 22px;
    }

    .vp-sub-features-title {
        font-size: 15px;
    }

    .vp-sub-features-text p {
        font-size: 13px;
    }
}
