/* Фаза 2 личного кабинета: кнопки «Войти в ЛК / Купить VPN» в шапке (телефон) и подвале, «Мой IP», окно оплаты.
   Подключается после landing.css; цвета и радиусы — из его :root. Только внешний файл (CSP: style-src 'self'). */

/* ---------- общий индикатор ожидания (как в кабинете) ---------- */
.acc-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(56, 189, 248, 0.25); border-top-color: var(--blue); border-radius: 50%; animation: acc-rot 0.9s linear infinite; }
@keyframes acc-rot { to { transform: rotate(360deg); } }

/* ---------- шапка: две кнопки на телефоне ---------- */
.header-actions { display: none; }

@media (max-width: 760px) {
    .header-button { display: none; }
    .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
}

@media (max-width: 520px) {
    .header-actions .button-small { min-height: 39px; padding: 0 12px; font-size: 11px; }
}

@media (max-width: 420px) {
    .header-inner { gap: 10px; }
    .header-inner .logo-text { display: none; }          /* остаётся значок ❄: двум кнопкам нужно место */
    .header-actions { gap: 6px; }
    .header-actions .button-small { padding: 0 10px; }
}

/* ---------- подвал: две заметные кнопки рядом ---------- */
.footer-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0 4px;
}

.footer-cta .button { min-width: 210px; }

@media (max-width: 520px) {
    .footer-cta { gap: 10px; padding-top: 24px; }
    .footer-cta .button { flex: 1 1 0; min-width: 0; padding: 0 12px; }
}

/* ---------- «Мой IP» ---------- */
.ip-result {
    margin: 0 auto 22px;
    max-width: 520px;
    padding: 14px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ip-result[hidden] { display: none; }
.ip-result code { color: var(--text); font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.ip-result .ip-verdict { margin-top: 4px; font-weight: 700; color: var(--text); }
.ip-result.is-ok { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.08); }
.ip-result.is-ok .ip-verdict { color: #5FE0AE; }
.ip-result.is-warn { border-color: rgba(244, 201, 93, 0.45); background: rgba(244, 201, 93, 0.07); }
.ip-result.is-warn .ip-verdict { color: #F4C95D; }
.ip-result.is-err { border-color: rgba(255, 107, 107, 0.4); }

.footer-share:disabled { opacity: 0.6; cursor: default; }

/* ---------- окно оплаты ---------- */
html.pay-lock { overflow: hidden; }

.pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;

    background: rgba(3, 8, 16, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.pay-dialog {
    width: 100%;
    max-width: 470px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: linear-gradient(145deg, #112239, #0A1424);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.pay-head h2 { font-size: 20px; letter-spacing: -0.4px; }

.pay-x {
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary); font-size: 22px; line-height: 1; cursor: pointer;
}
.pay-x:hover { color: var(--text); border-color: rgba(56, 189, 248, 0.4); }

.pay-lead { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.pay-note { color: var(--text-muted); font-size: 12px; line-height: 1.7; margin-top: 14px; }
.pay-error { color: #FF8A8A; font-size: 13px; line-height: 1.6; margin-top: 10px; }
.pay-error:empty { display: none; }
.pay-disc { margin-top: 10px; color: #F4C95D; font-size: 12px; font-weight: 700; }
.pay-disc[hidden] { display: none; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; color: var(--text-secondary); font-size: 14px; }

.pay-title { margin: 20px 0 10px; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue); font-weight: 800; }

.pay-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pay-seg-btn, .pay-term {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-seg-btn { padding: 11px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pay-seg-btn b { font-size: 13px; }
.pay-seg-btn small { color: var(--text-muted); font-size: 11px; }

.pay-terms { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pay-term { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-size: 14px; text-align: left; }
.pay-term-name { font-weight: 700; }
.pay-term-price s { color: var(--text-muted); font-size: 12px; margin-right: 4px; }
.pay-term-price strong { font-size: 15px; }

.pay-seg-btn:hover:not(:disabled), .pay-term:hover:not(:disabled) { border-color: rgba(56, 189, 248, 0.4); }
.pay-seg-btn.is-active, .pay-term.is-active { border-color: var(--blue); background: rgba(56, 189, 248, 0.11); }
.pay-seg-btn:disabled, .pay-term:disabled { opacity: 0.55; cursor: default; }
.pay-seg-btn:focus-visible, .pay-term:focus-visible, .pay-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.pay-method { margin-top: 10px; }
.pay-title + .pay-method { margin-top: 0; }
.pay-dialog .button:disabled { opacity: 0.6; cursor: default; transform: none; }

@media (max-width: 520px) {
    .pay-overlay { align-items: flex-end; padding: 0; }
    .pay-dialog { max-width: none; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; padding: 20px 18px 26px; }
}

/* ссылки на документы: подвал и подпись в окне оплаты */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0 0 22px; }
.footer-legal a { color: var(--text-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--text); }
.pay-legal { color: var(--text-muted); font-size: 11.5px; line-height: 1.6; margin-top: 12px; }
.pay-legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* напоминание о продлении (шапка сайта и кабинет) */
.sc-renew {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
    padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.4;
    color: #1b1300; background: linear-gradient(90deg, #F4C95D, #FFB347);
}
.sc-renew.is-expired { color: #fff; background: linear-gradient(90deg, #C2410C, #DC2626); }
.sc-renew-btn {
    padding: 7px 16px; border: 0; border-radius: 10px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 800; color: #fff; background: rgba(4, 13, 26, 0.88);
}
.sc-renew-btn:hover { background: #000; }
.sc-renew-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ACTIVATION_V2: блок с кодом активации */
.pay-code-out, .acc-code-out { margin-top: 14px; }
.pay-code-out .acc-key { text-align: center; font-size: 18px; letter-spacing: 2px; }
