html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
    background-color: #0b0f12; /* чтобы никогда не было белых полос */
    color: #ecf0f1;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Для страниц-вкладок: страница НЕ скроллится, скролл только внутри umodal__body */
body.no-page-scroll {
    overflow: hidden;
}

/* Убираем резерв под scrollbar на "нескроллящихся" страницах (иначе белая полоса справа) */
html.no-page-scroll {
    overflow: hidden;
    scrollbar-gutter: auto;
}

body.no-page-scroll {
    scrollbar-gutter: auto;
}

/* Единый универсальный контейнер для всех страниц */
.page-center {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 576px) {
    .page-center {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Центровка содержимого внутри page-center (без влияния на ширину) */
.page-center--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Фон */
.background-image {
    background-size: cover;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

/* Контент всегда поверх фонового слоя */
body > :not(.background-image) {
    position: relative;
    z-index: 1;
}

.bordered-text {
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
}


.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    font-size: 1.8rem;
    color: #f1c40f;
    margin-left: 0;
    display: flex;
    align-items: center;
}
/* мобэло */
@media (min-width: 768px) {
    .navbar-brand img {
        width: 150px; /* на планшетах и шире */
    }
}
/* Не сдвигаем лого отрицательными margin — это ломает центрирование страницы */


.navbar-nav {
    flex-wrap: nowrap; /* Запрещаем перенос */
    overflow-x: auto;  /* Если меню не помещается, будет горизонтальная прокрутка */
}

.navbar-nav--centered {
    justify-content: center;
}

.navbar-nav .nav-link {
    padding-left: 18px;
    padding-right: 18px;
}

.navbar-nav .nav-item {
    margin: 0 18px;
}

/* Адаптив: планшеты/мобилки */
@media (max-width: 991.98px) {
    .navbar-layout {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .navbar-brand {
        order: 1;
        font-size: 1.55rem;
    }

    .navbar-toggler {
        order: 2;
        margin-left: auto;
    }

    .navbar-social {
        order: 3;
        margin-left: 0;
    }

    /* Меню на мобилках становится отдельной строкой и не "ломает" шапку */
    .navbar-center {
        order: 4;
        width: 100%;
        margin: 6px 0 0 0;
    }

    .navbar-nav {
        justify-content: center;
        width: 100%;
        padding: 6px 0;
    }

    .navbar-nav .nav-item {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.35rem;
    }

    .navbar-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-item {
        margin: 0 6px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
}

.navbar-nav::-webkit-scrollbar {
    height: 6px; /* Небольшая полоска прокрутки */
}

.navbar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    color: #705c1a;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.alert {
    background-color: rgba(231, 76, 60, 0.8);
    border-color: #c0392b;
}

.server-btn {
    margin: 10px 5px;
}

.footer {
    text-align: center;
    padding: 15px;
    width: 100%;
    color: #ecf0f1; /* Цвет текста */
    font-size: 0.9rem;
    background-color: transparent; /* Убираем фон */
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 576px) {
    .footer {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .footer .bordered-text {
        display: inline-block;
        max-width: 100%;
        line-height: 1.35;
        padding: 8px 10px;
    }
}

.footer p span {
    color: #f1c40f;
}

.buy_btn {
    background-color: #27ae60;
    border: none;
    font-size: 1rem;
}

.buy_btn:hover {
    background-color: #2ecc71;
}

/* Стиль для основного контента */
.content-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 45px;
    margin: 20px auto; /* Центрирование */
    max-width: 720px; /* Ограничение ширины */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Главная: улучшенный блок покупки */
.purchase-card {
    background: rgba(16, 18, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
    padding: 22px 22px;
}

@media (max-width: 576px) {
    .purchase-card {
        padding: 18px 16px;
    }

    .purchase-title {
        font-size: 1.2rem;
    }

    .purchase-subtitle {
        font-size: 0.95rem;
    }
}

.purchase-title {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #3bcca8;
    letter-spacing: 0.01em;
}

.purchase-subtitle {
    margin: 0 0 18px 0;
    color: rgba(215, 221, 230, 0.88);
    line-height: 1.45;
}

/* Шаги покупки (компактно, без увеличения) */
.purchase-flow {
    position: relative;
    padding-left: 18px;
}

.purchase-step-block {
    position: relative;
}

.purchase-step-block::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(215, 221, 230, 0.26);
    box-shadow: 0 0 0 4px rgba(9, 11, 13, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.03);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

/* Вертикальный коннектор между шагами */
.purchase-step-block::after {
    content: "";
    position: absolute;
    left: -14px;
    top: 26px;
    width: 2px;
    height: calc(100% + 12px);
    border-radius: 999px;
    background: rgba(215, 221, 230, 0.10);
}

.purchase-step-block.purchase-step--done::after {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.70), rgba(59, 204, 168, 0.35));
}

.purchase-step-block.purchase-step--last-visible::after {
    display: none;
}

.purchase-step-block.purchase-step--active::before {
    background: rgba(59, 204, 168, 0.95);
    box-shadow: 0 0 0 4px rgba(9, 11, 13, 0.55), 0 0 0 6px rgba(59, 204, 168, 0.12);
}

.purchase-step-block.purchase-step--done::before {
    background: rgba(34, 197, 94, 0.92);
    box-shadow: 0 0 0 4px rgba(9, 11, 13, 0.55), 0 0 0 6px rgba(34, 197, 94, 0.10);
    transform: scale(1.05);
}

.purchase-step-block.purchase-step--done::before {
    filter: saturate(1.05);
}

.purchase-step-block.purchase-step--done::after {
    opacity: 0.95;
}

.purchase-step-block.purchase-step--done .purchase-step-badge {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
    color: rgba(236, 240, 241, 0.95);
}

.purchase-label--step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.purchase-step-badge {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: rgba(215, 221, 230, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.purchase-step--done {
    color: rgba(215, 221, 230, 0.86);
}

.purchase-steps-hint {
    margin: -4px 0 12px 0;
    color: rgba(215, 221, 230, 0.78);
    font-size: 0.9rem;
    line-height: 1.35;
}

.purchase-steps-hint b {
    color: rgba(236, 240, 241, 0.95);
    font-weight: 900;
}

.purchase-card .form-control {
    background: rgba(8, 10, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ecf0f1;
    border-radius: 12px;
    padding: 12px 12px;
    height: auto;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.purchase-card .form-control::placeholder {
    color: rgba(215, 221, 230, 0.58);
}

.purchase-card .form-control:focus {
    background: rgba(8, 10, 12, 0.82);
    border-color: rgba(59, 204, 168, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 204, 168, 0.14);
    outline: none;
}

.purchase-label {
    font-weight: 800;
    color: rgba(236, 240, 241, 0.95);
    margin-bottom: 8px;
}

.purchase-help {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(215, 221, 230, 0.78);
}

/* Ник: подсказка как предупреждение/ОК */
.purchase-help--muted {
    color: rgba(215, 221, 230, 0.55);
}

.purchase-help--warn {
    color: rgba(255, 212, 120, 0.85);
}

.purchase-help--ok {
    color: rgba(52, 211, 153, 0.95);
}

.purchase-note {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(215, 221, 230, 0.72);
    line-height: 1.4;
    font-size: 0.9rem;
}

.purchase-note a {
    color: #3bcca8;
    font-weight: 700;
    text-decoration: none;
}

.purchase-note a:hover {
    text-decoration: underline;
}

/* Под кнопкой: что не заполнено */
.purchase-errors {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 212, 120, 0.90);
    font-size: 0.9rem;
    line-height: 1.35;
}

.purchase-errors__title {
    font-weight: 800;
    color: rgba(255, 212, 120, 0.95);
    margin-bottom: 6px;
}

.purchase-errors__list {
    margin: 0;
    padding-left: 18px;
}

/* Кнопка покупки (премиальнее) */
.purchase-card .buy_btn.btn {
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, rgba(59, 204, 168, 0.92) 0%, rgba(34, 197, 94, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.18);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.purchase-card .buy_btn.btn:hover {
    filter: brightness(1.02);
    box-shadow: 0 22px 52px rgba(16, 185, 129, 0.28);
}

.purchase-card .buy_btn.btn:active {
    transform: translateY(1px) scale(0.99);
    filter: brightness(0.99);
}

.purchase-card .buy_btn.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 204, 168, 0.18), 0 22px 52px rgba(16, 185, 129, 0.24);
}

.purchase-card .buy_btn.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
    transform: none;
}

@media (max-width: 576px) {
    .purchase-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .purchase-flow {
        padding-left: 16px;
    }

    .purchase-step-block::before {
        left: -16px;
    }

    .purchase-step-block::after {
        left: -12px;
    }
}

.disclaimer {
    margin-top: 10px; /* Отступ сверху */
    color: #FFFFFF; /* Цвет текста */
    font-size: 12px; /* Размер шрифта */
    text-align: center; /* Выравнивание по центру */
}

.social-icon {
    width: 35px; /* Ширина иконки */
    height: 35px; /* Высота иконки */
    margin: 0 5px; /* Отступы между иконками */
    display: inline-block; /* Обеспечить правильное выравнивание */
}

.social-icons {
    margin-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Трёхзонный layout: слева логотип, по центру меню, справа соцсети */
.navbar-layout {
    display: flex;
    align-items: center;
}

/* Центрируем блок навигации относительно всего хедера,
   независимо от ширины логотипа и соцсетей */
.navbar-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.navbar-social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-swal {
    width: 700px; /* Set the desired width */
    max-width: 250%; /* Ensure it doesn't overflow on smaller screens */
    min-height: 700px; /* Set a minimum height for the modal */
    height: auto; /* Allow the height to adjust based on content */
}


/* Запретить выделение текста */
.navbar {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version, currently supported by Chrome and Opera */
}


.content-title {
    margin-bottom: 20px;
    font-size: 1.7rem;
    color: #3bcca8;
}

.form-group input {
    border-radius: 5px;
}

select {
    border-radius: 5px;
}

/* Основной контент (по центру экрана) */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding: 24px 0;
}

/* Центрирование контента на отдельных страницах */
.page-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* не даём скроллиться странице */
    padding: 24px 0; /* лёгкий отступ от header/footer (без уезда вниз) */
}

/* Для страниц без скролла: увеличиваем безопасные отступы */
html.no-page-scroll .page-main {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Чуть больше воздуха для отдельных страниц */
html.no-page-scroll .page-main.page-main--spacious {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Monitoring: нужно чуть больше отступа от header */
html.no-page-scroll .page-main.page-main--monitoring {
    padding-top: 84px;
    padding-bottom: 64px;
}

/* Для страниц, где контент должен начинаться сверху (а не по центру) */
html.no-page-scroll .page-main.page-main--top {
    align-items: flex-start;
}

@media (max-width: 576px) {
    .page-main {
        padding: 16px 0;
    }

    html.no-page-scroll .page-main {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    html.no-page-scroll .page-main.page-main--spacious {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    html.no-page-scroll .page-main.page-main--monitoring {
        padding-top: 66px;
        padding-bottom: 56px;
    }
}

.main-content.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Контейнер внутри main (для центрирования формы) */
.main-content > .page-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

/* Мобилки: не центрируем по высоте, даём место футеру */
@media (max-width: 576px) {
    .main-content {
        flex: 0 0 auto; /* пусть растёт по контенту, не залезая под футер */
        align-items: flex-start;
        padding: 14px 0 72px; /* запас под футер */
    }

    .main-content > .page-center {
        height: auto;
        justify-content: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .content-container {
        padding: 22px 16px;
        margin: 12px auto;
        width: 100%;
        max-width: 640px;
    }

    .purchase-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Мобилки/планшеты: контентные страницы в модалках/карточках */
@media (max-width: 768px) {
    .umodal-card {
        padding: 12px 12px;
    }

    /* Monitoring: карточки аккуратнее на узких экранах */
    .mon-item {
        flex-direction: column;
        gap: 10px;
    }

    .mon-row {
        gap: 6px;
    }

    /* Account protection: секции компактнее (если классы присутствуют) */
    .ap-section {
        padding: 12px 12px;
    }
}

/* Скрыть выбор привилегий по умолчанию */
.products {
    display: none; /* Скрыть по умолчанию */
}

.beta-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ad0c0c;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    font-size: 16px;
}
.beta-notification button {
    background-color: transparent;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 15px;
}