
/* ------------  Popup styles — dark site  ------------ */
.pf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.pf-modal__content {
    background: #000; /* чёрный фон */
    color: #fefefe; /* почти белый текст */
    width: 90%;
    max-width: 360px;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
}

pf-input, .pf-submit, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.pf-submit {
    background-color: #aaf200;
    border: none;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

.pf-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute !important;
    top: 0px;
    right: 10px;
    cursor: pointer;
    color: #fefefe;
    padding: 8px; /* зона клика 32×32 px */
    /*line-height: 1;*/
    z-index: 99999; /* выше текста формы */
}

.pf-title {
    margin-top: 2rem !important;
    margin-bottom: 1rem;
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #fefefe;
}

.pf-welcome {
    margin: 0.5rem 0 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fefefe;
    text-align: center;
}

.pf-form {
    display: flex;
    flex-direction: column;
    z-index: 1 !important;
    gap: 0rem;
    margin-top: 0rem;
}

.pf-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fefefe;
    margin-bottom: 0.3rem;
}

.pf-input {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #222;
    color: #fefefe;
    width: 100%;
}

.pf-required {
    color: #aaf200; /* фирменный зелёный */
}

.pf-note-top,
.pf-note-bottom {
    text-align: justify !important;
    color: #ccc;
    text-align: center;
    font-size: 0.85rem;
}

.pf-note-bottom a {
    color: #aaf200;
    text-decoration: underline;
}


/* Обновлённые стили для текста условий popup */


.popup-terms {
    color: white;
    font-size: 16px;
    text-align: justify !important;
    line-height: 1.6;
    margin-top: 20px;
    padding: 0 20px;
    width: 100%;
    display: block;
}



.popup-terms a {
    color: #aaf200;
    text-decoration: underline;
}

.popup-terms strong {
    font-weight: bold;
}

.pf-modal__content {
    background-image: url('../img/Probe2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 20px;
}

.pf-modal__content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.pf-modal__content > * {
    position: relative;
    z-index: 1;
}
/* --- FIX subscribe-modal background --- */
#subscribe-modal .pf-modal__content {
    position: relative; /* якорь для псевдо-элемента */
    overflow: hidden; /* обрезаем «световые» пятна по рамкам окна */
    background: #000; /* базовый чёрный, если CSS-эффекты не поддерживаются */
}

    /* цветовые «пятна» фирменных оттенков */
    #subscribe-modal .pf-modal__content::before {
        content: "";
        position: absolute;
        inset: 0; /* растягиваем на всю ширину/высоту */
        z-index: -1; /* уходим под содержимое */
        background: radial-gradient(130% 100% at 25% 20%, #0800f6 0%, rgba(8,0,246,0) 70%), radial-gradient(160% 120% at 80% 80%, rgba(170,242,0,0.55) 0%, rgba(170,242,0,0) 75%);
        filter: blur(90px); /* мягкое свечение */
        transform: translateZ(0); /* устраняем редкие глюки рендеринга */
    }

/* --- brand glow for subscribe popup only --- */
#subscribe-modal .pf-modal__content{
    position: relative;
    overflow: hidden;
    background: #000;                /* базовый чёрный */
}

#subscribe-modal .pf-modal__content::before{
    content:"";
    position:absolute;
    inset:-20%;                      /* чуть шире, чтобы свечение не обрезалось */
    background:
        radial-gradient(400px 300px at 20% 15%,  #0800f6 0%, transparent 70%),
        radial-gradient(350px 260px at 85% 65%, rgba(170,242,0,0.35) 0%, transparent 75%);
    filter: blur(80px);              /* мягкое свечение */
    opacity:.85;
    z-index:0;
}

#subscribe-modal .pf-modal__content > *{position:relative; z-index:1;}

/* --- brand glow for resume popup (matches subscribe) --- */
#resume-modal .pf-modal__content{
    position: relative;
    overflow: hidden;
    background: #000;                /* базовый чёрный */
}

#resume-modal .pf-modal__content::before{
    content:"";
    position:absolute;
    inset:-20%;                      /* чуть шире, чтобы свечение не обрезалось */
    background:
        radial-gradient(400px 300px at 20% 15%,  #0800f6 0%, transparent 70%),
        radial-gradient(350px 260px at 85% 65%, rgba(170,242,0,0.35) 0%, transparent 75%);
    filter: blur(80px);              /* мягкое свечение */
    opacity:.85;
    z-index:0;
}

#resume-modal .pf-modal__content > *{position:relative; z-index:1;}


/* --- brand glow for buy popup (matches subscribe/resume) --- */
#buy-modal .pf-modal__content{
    position: relative;
    overflow: hidden;
    background: #000;                /* базовый чёрный */
}

#buy-modal .pf-modal__content::before{
    content:"";
    position:absolute;
    inset:-20%;                      /* чуть шире, чтобы свечение не обрезалось */
    background:
        radial-gradient(400px 300px at 20% 15%,  #0800f6 0%, transparent 70%),
        radial-gradient(350px 260px at 85% 65%, rgba(170,242,0,0.35) 0%, transparent 75%);
    filter: blur(80px);              /* мягкое свечение */
    opacity:.85;
    z-index:0;
}

#buy-modal .pf-modal__content > *{position:relative; z-index:1;}

#buy-modal .pf-modal__content {
  
}
#buy-modal {
    display: none;
    align-items: center;
    }
.pf-modal.is-open {display: block;}

/* расширяем «хит-бокс» и гарантируем, что кнопка поверх всего */

.pf-modal__content {
    overflow: visible;
} /* чтобы padding не обрезался */

#buy-modal.is-open { /* без пробела */
    display: flex; /* центрирование */
    align-items: center;
    justify-content: center;
}

#buy-success-modal .pf-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 320px;
    margin: 10% auto;
    padding: 24px 20px;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

#buy-success-modal .pf-welcome {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #fff;
}

#buy-success-modal .pf-submit {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #0800f6 0%, #aaf200 100%);
    border: none;
    cursor: pointer;
}

.pf-success {
    /* по умолчанию скрыто,
       браузерное [hidden]{display:none} остаётся рабочим */
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

    /* когда JS убирает hidden → показываем блок */
    .pf-success:not([hidden]) {
        display: flex;
    }
/* --- SUCCESS STATE ------------------------------------------------- */
.step-success { /* изначально скрыт атрибутом hidden */
    display: none; /* резервная страховка */
}

    .step-success.show { /* показываем после JS-клика */
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 32px 20px 0; /* чтобы текст «отошёл» от верхней кромки */
    }
/* --- brand glow for agenda popup (совпадает с buy/subscribe/resume) --- */
#agenda-modal .pf-modal__content {
    position: relative;
    overflow: hidden;
    background: #000; /* базовый чёрный */
}

    #agenda-modal .pf-modal__content::before {
        content: "";
        position: absolute;
        inset: -20%; /* чуть шире, чтобы свечение не обрезалось */
        background: radial-gradient(400px 300px at 20% 15%, #0800f6 0%, transparent 70%), radial-gradient(350px 260px at 85% 65%, rgba(170,242,0,.35) 0%, transparent 75%);
        filter: blur(80px); /* мягкое свечение */
        opacity: .85;
        z-index: 0;
    }

    #agenda-modal .pf-modal__content > * {
        position: relative;
        z-index: 1; /* всё содержимое поверх свечения */
    }