/* Общие стили и сброс */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(
        145deg,
        #000000 0%,
        #031a35 25%,
        #042a4f 50%,
        #053d6e 75%,
        #062d52 100%
    ); /* Dark Ocean фон */
    font-family: Arial, sans-serif;
    color: white;
    background-attachment: fixed;
}

/* Центрирование карточки входа: отдельно от body, чтобы position:fixed модалок не ломался */
.auth-page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    box-sizing: border-box;
}

/* Мобильные: форма входа ближе к верху, но с комфортным отступом от края / выреза */
@media (max-width: 640px) {
    .auth-page-shell {
        align-items: flex-start;
        justify-content: center;
        padding-top: max(1.25rem, calc(env(safe-area-inset-top, 0px) + 0.85rem));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

/* Контейнер формы */
.auth-container {
    container-type: inline-size;
    container-name: auth;
    perspective: 1000px;
    background: linear-gradient(
        145deg,
        #000000 0%,
        #031a35 35%,
        #042a4f 70%,
        #053d6e 100%
    ); /* Dark Ocean */
    border: 2px solid #ffa500; /* оранжевый бордер как было */
    border-radius: 12px; /* плавные скругления */
    padding: 30px 40px;
    width: 320px;
    max-width: 100%;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.85),
        0 0 24px rgba(74, 144, 226, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Dark Ocean glow */
    transition: box-shadow 0.3s ease;

    /* Фирменный круг «Бk» — общая палитра (бирка в заголовке + марка на кнопке «Войти») */
    --auth-brand-bk-fg: #062a52;
    --auth-brand-bk-ring: #ffd694;
    --auth-brand-bk-fill: radial-gradient(
        circle at 30% 28%,
        #fff1cc 0%,
        #ffd27a 36%,
        #ffa500 72%,
        #d77800 100%
    );
    --auth-brand-bk-shadow-inner: inset 0 0.08em 0 rgba(255, 255, 255, 0.5),
        inset 0 -0.2em 0.35em rgba(6, 42, 82, 0.35);
    --auth-brand-bk-shadow-outer: 0 0.35em 0.8em rgba(0, 0, 0, 0.42),
        0 0 0.65em rgba(255, 165, 0, 0.22);
}

.auth-container:hover {
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.9),
        0 0 34px rgba(74, 144, 226, 0.55),
        0 0 16px rgba(255, 165, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12); /* усиление тени (без сдвига/скейла) */
}

/* Заголовок — по умолчанию */
.auth-container h2 {
    margin: 0 0 20px 0;
    font-weight: 700;
    text-align: center;
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Бренд «БУНКЕРОВЩИК» — объёмные буквы, 3D-переворот при нажатии */
.auth-container h2.auth-title-brand {
    --auth-title-size: min(1.85rem, 8cqw);
    margin: 0 0 20px 0;
    padding: 0 2px;
    position: relative;
    width: 100%;
    max-width: 100%;
    font-size: var(--auth-title-size);
    line-height: 1.15;
    text-align: center;
    transform-origin: center center;
    perspective: 520px;
}

.auth-container h2.auth-title-brand .auth-title-brand-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 1.65em;
    transform-style: preserve-3d;
    transition: filter 0.25s ease, transform 0.45s ease;
}

/* Висящая круглая бирка "Бk", привязанная к бренду */
.auth-container h2.auth-title-brand .auth-title-brand-tag {
    position: absolute;
    top: -0.1rem;
    right: 0.15rem;
    width: clamp(2.3rem, 7.4cqw, 2.8rem);
    height: clamp(3.45rem, 11.1cqw, 4.2rem);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform-origin: 50% 0;
    transform: translateY(-0.45rem);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.auth-container h2.auth-title-brand .auth-title-brand-tag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.125rem;
    height: clamp(1.45rem, 4.2cqw, 1.8rem);
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.95) 0%, rgba(255, 165, 0, 0.85) 100%);
    box-shadow: 0 0 0.35rem rgba(255, 165, 0, 0.35);
}

.auth-container h2.auth-title-brand .auth-title-brand-tag-disc {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: clamp(2rem, 6.5cqw, 2.45rem);
    height: clamp(2rem, 6.5cqw, 2.45rem);
    transform: translateX(-50%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: clamp(0.78rem, 2.45cqw, 0.95rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--auth-brand-bk-fg);
    border: 1px solid var(--auth-brand-bk-ring);
    background: var(--auth-brand-bk-fill);
    box-shadow: var(--auth-brand-bk-shadow-inner), var(--auth-brand-bk-shadow-outer);
    pointer-events: auto;
    cursor: pointer;
}

@keyframes auth-title-tag-pendulum {
    0% {
        transform: rotate(16deg);
    }
    50% {
        transform: rotate(-15deg);
    }
    100% {
        transform: rotate(16deg);
    }
}

.auth-container h2.auth-title-brand.auth-title-brand--tag-visible .auth-title-brand-tag {
    opacity: 1;
    transform: translateY(0);
    animation: auth-title-tag-pendulum 2.15s ease-in-out infinite;
}

.auth-container h2.auth-title-brand.auth-title-brand--tag-spin .auth-title-brand-tag {
    animation-play-state: paused;
}

@keyframes auth-title-tag-disc-spin {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.auth-container h2.auth-title-brand .auth-title-brand-tag-disc.auth-title-brand-tag-disc--spin {
    animation: auth-title-tag-disc-spin 0.2s linear 1;
}

/* Кликабельный заголовок: курсор рука, эффекты при наведении и нажатии */
.auth-container h2.auth-title-brand:has(.auth-title-brand-svg) {
    cursor: pointer;
}

.auth-container h2.auth-title-brand .auth-title-brand-svg:hover {
    filter: brightness(1.15) drop-shadow(0 0 10px rgba(126, 184, 247, 0.5));
}

/* Яркая вспышка при открытии страницы авторизации — только для SVG заголовка */
@keyframes auth-title-flash {
    0% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    15% {
        filter: brightness(2.8) drop-shadow(0 0 20px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 40px rgba(126, 184, 247, 0.9)) drop-shadow(0 0 60px rgba(255, 165, 0, 0.5));
    }
    35% {
        filter: brightness(2.2) drop-shadow(0 0 18px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 35px rgba(126, 184, 247, 0.7));
    }
    60% {
        filter: brightness(1.5) drop-shadow(0 0 12px rgba(126, 184, 247, 0.5));
    }
    85% {
        filter: brightness(1.1) drop-shadow(0 0 6px rgba(126, 184, 247, 0.3));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
}

.auth-container h2.auth-title-brand .auth-title-brand-svg.auth-title-brand-svg--flash {
    animation: auth-title-flash 5s ease-out 1.5s forwards;
}

/* Вдавленные буквы: тёмно-синий + яркий контур снаружи (фильтр), основа чуть светлее для читаемости */
.auth-container h2.auth-title-brand .auth-title-brand-text {
    fill: #0d3570;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.04em;
    font-family: Arial, sans-serif;
    pointer-events: none; /* клик/ховер вешаем на родителя и svg */
}


/* fallback: без container query */
@supports not (container-type: inline-size) {
    .auth-container h2.auth-title-brand {
        font-size: min(1.85rem, 26px);
    }
}

@container auth (min-width: 260px) {
    .auth-container h2.auth-title-brand {
        --auth-title-size: min(2rem, 8.2cqw);
    }
}

@container auth (min-width: 300px) {
    .auth-container h2.auth-title-brand {
        --auth-title-size: min(2.15rem, 8cqw);
    }
}

/* Стили для формы */
form {
    display: flex;
    flex-direction: column;
}

/* Метки */
label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #ffd580; /* светло-оранжевый цвет для текста */
    font-weight: 600;
    text-shadow: 0 0 2px #804000;
}

/* Обёртка поля ввода с кастомной подсказкой (Dark Ocean). Не меняем ширину кнопок. */
.auth-container .auth-input-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.auth-container .auth-input-wrap label {
    margin-bottom: 6px;
}

.auth-container .auth-input-wrap input {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Поле пароля на входе: кнопка «глаз» (Dark Ocean, без сдвига/скейла при hover) */
.auth-login-password-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.auth-container .auth-input-wrap .auth-login-password-input {
    padding-right: clamp(2.6rem, 5.5cqw, 3rem);
}

.auth-login-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(2.35rem, 5cqw, 2.75rem);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0 calc(8px - 1px) calc(8px - 1px) 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
    color: rgba(200, 215, 235, 0.78);
}

.auth-login-password-toggle:hover,
.auth-login-password-toggle:focus-visible {
    color: rgba(255, 213, 128, 0.95);
    background: rgba(255, 165, 0, 0.07);
}

.auth-login-password-toggle:focus-visible {
    outline: 2px solid rgba(255, 165, 0, 0.55);
    outline-offset: -2px;
}

.auth-login-password-toggle .auth-login-password-eye {
    width: clamp(1.05rem, 2.4cqw, 1.2rem);
    height: clamp(1.05rem, 2.4cqw, 1.2rem);
    display: block;
    pointer-events: none;
}

.auth-login-password-toggle .auth-login-password-eye--closed {
    display: none;
}

.auth-login-password-toggle.is-revealed .auth-login-password-eye--open {
    display: none;
}

.auth-login-password-toggle.is-revealed .auth-login-password-eye--closed {
    display: block;
}

/* Кастомная подсказка при наведении/фокусе — Dark Ocean, рядом с полем */
.auth-container .auth-input-hint {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(0, -50%);
    margin-left: 10px;
    padding: 8px 12px;
    min-width: 180px;
    font-size: 12px;
    line-height: 1.35;
    color: #ffd580;
    background: linear-gradient(145deg, #031a35 0%, #042a4f 50%, #053d6e 100%);
    border: 1px solid #ffa500;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(74, 144, 226, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
    white-space: normal;
}

.auth-container .auth-input-wrap:hover .auth-input-hint,
.auth-container .auth-input-wrap:focus-within .auth-input-hint {
    opacity: 1;
    visibility: visible;
}

/* На узком экране подсказка снизу, чтобы не вылезала за край */
@media (max-width: 380px) {
    .auth-container .auth-input-hint {
        left: 0;
        top: 100%;
        margin-left: 0;
        margin-top: 6px;
        transform: none;
    }
}

/* Поля в модалке регистрации — подсказки при наведении отключены (оставлены только модалки с предупреждениями) */
#registration-modal .auth-input-wrap.registration-field-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

/* Скрыть все подсказки при наведении/фокусе в модалке регистрации (в т.ч. браузерные не показываем — поля без title) */
#registration-modal .auth-input-hint {
    display: none !important;
}

/* Общий фон и эффект вдавленности полей в модалке регистрации (как у названия компании, ИНН, email) */
#registration-modal .auth-input-wrap.registration-field-wrap input[type="text"],
#registration-modal .auth-input-wrap.registration-field-wrap input[type="tel"],
#registration-modal .auth-input-wrap.registration-field-wrap input[type="email"],
#registration-modal .auth-input-wrap.registration-field-wrap input[type="number"],
#registration-modal .auth-input-wrap.registration-field-wrap textarea {
    background: linear-gradient(180deg, #061e3a 0%, #0a2b65 40%, #071d3d 100%);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.35),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

/* Фокус: сохраняем вдавленность для полей модалки */
#registration-modal .auth-input-wrap.registration-field-wrap input[type="text"]:focus,
#registration-modal .auth-input-wrap.registration-field-wrap input[type="tel"]:focus,
#registration-modal .auth-input-wrap.registration-field-wrap input[type="email"]:focus,
#registration-modal .auth-input-wrap.registration-field-wrap input[type="number"]:focus,
#registration-modal .auth-input-wrap.registration-field-wrap textarea:focus {
    background: linear-gradient(180deg, #0a2860 0%, #12397a 40%, #0d2a5c 100%);
    border-color: #ffc04d;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 0, 0, 0.25),
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.15),
        0 0 8px 2px rgba(255, 165, 0, 0.7);
}

/* Кастомный выпадающий список «Роль» — фон триггера как у полей (#0a2b65), список чёрный (Dark Ocean) */
.custom-select-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.custom-select-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
}

.custom-select-trigger {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #ffa500;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    background: linear-gradient(180deg, #061e3a 0%, #0a2b65 40%, #071d3d 100%);
    color: #ffd580;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    /* Эффект вдавленности — как у полей формы */
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.35),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0.35rem solid transparent;
    border-top-color: #ffd580;
    border-bottom: none;
    pointer-events: none;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
    border-color: #ffc04d;
    background: linear-gradient(180deg, #0a2860 0%, #12397a 40%, #0d2a5c 100%);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 0, 0, 0.25),
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.15),
        0 0 8px 2px rgba(255, 165, 0, 0.7);
}

.custom-select-trigger[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #000000;
    border: 0.125rem solid #ffa500;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.6);
    max-height: 12rem;
    overflow-y: auto;
    z-index: 1002;
    display: none;
    box-sizing: border-box;
}

.custom-select-options.is-open {
    display: block;
}

.custom-select-option {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    color: #ffd580;
    cursor: pointer;
    transition: background-color 0.15s;
}

.custom-select-option:hover,
.custom-select-option[aria-selected="true"] {
    background-color: #1a1a1a;
}

.custom-select-option:focus {
    outline: none;
    background-color: #1a1a1a;
}

/* Кастомный скролл для списка ролей */
.custom-select-options::-webkit-scrollbar {
    width: 0.5rem;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #0d0d0d;
    border-radius: 0.25rem;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 0.25rem;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #ffc04d;
}

/* Поля ввода — эффект вдавленности (Dark Ocean) */
input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #063158;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: linear-gradient(180deg, #061e3a 0%, #0a2b65 40%, #071d3d 100%);
    color: white;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    /* Вдавленность: тень сверху и по краям создаёт эффект углубления */
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.35),
        inset -1px -1px 2px rgba(0, 0, 0, 0.2);
}

/* Убираем стрелки/спиннеры у number-полей (captcha и т.п.) */
.auth-container input[type="number"],
#registration-modal input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

.auth-container input[type="number"]::-webkit-outer-spin-button,
.auth-container input[type="number"]::-webkit-inner-spin-button,
#registration-modal input[type="number"]::-webkit-outer-spin-button,
#registration-modal input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Chrome/Safari/Edge */
    margin: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background: linear-gradient(180deg, #0a2860 0%, #12397a 40%, #0d2a5c 100%);
    border-color: #ffc04d;
    /* Сохраняем вдавленность + лёгкое свечение при фокусе */
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 0, 0, 0.25),
        inset 2px 2px 4px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.15),
        0 0 8px 2px rgba(255, 165, 0, 0.7);
}

/* Кнопка "Войти" (Dark Ocean). Ширина 100% контейнера формы — не менять. */
.auth-container #login-form > button[type="submit"] {
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    border: none;
    border-radius: 10px;

    background: linear-gradient(180deg, #ffd27a 0%, #ffa500 48%, #ff8f1f 100%);
    color: #063a6a;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;

    cursor: pointer;
    user-select: none;

    /* "обводка" без border (чтобы не менять размеры) + объём/свечение */
    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 150, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 22px rgba(0, 0, 0, 0.45),
        0 6px 14px rgba(255, 165, 0, 0.34),
        0 0 18px rgba(74, 144, 226, 0.12);

    transition:
        background 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease,
        filter 220ms ease;
}

.auth-container #login-form > button[type="submit"] .login-btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    line-height: 1;
}

/* Фирменная марка «Бk» на кнопке — капсула, мягкая вдавленность (плавные градиенты и размытые inset) */
.auth-container #login-form > button[type="submit"] .login-btn-brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: 1.72em;
    min-height: 1.72em;
    box-sizing: border-box;
    padding: 0.12em 0.48em 0.14em;
    border-radius: 9999px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--auth-brand-bk-fg);
    border: 1px solid rgba(72, 52, 28, 0.22);
    background: radial-gradient(
        ellipse 145% 132% at 50% 52%,
        #e8c06e 0%,
        #deb256 18%,
        #d29a38 40%,
        #c48a28 62%,
        #b07822 82%,
        #9c6c1e 100%
    );
    box-shadow:
        inset 0 0.22em 0.5em rgba(6, 26, 52, 0.14),
        inset 0 0.06em 0.32em rgba(0, 0, 0, 0.2),
        inset 0.1em 0.12em 0.38em rgba(0, 0, 0, 0.12),
        inset -0.08em -0.14em 0.42em rgba(255, 228, 188, 0.32),
        inset 0 -0.1em 0.35em rgba(255, 210, 150, 0.18),
        0 0.05em 0.16em rgba(255, 238, 210, 0.32);
    isolation: isolate;
    transition:
        filter 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.auth-container #login-form > button[type="submit"] .login-btn-brand-mark__barrel {
    position: absolute;
    left: 50%;
    top: 52%;
    width: auto;
    height: 64%;
    max-width: 46%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0.08em 0.2em rgba(0, 0, 0, 0.22));
    transition: opacity 220ms ease, filter 220ms ease;
}

.auth-container #login-form > button[type="submit"] .login-btn-brand-mark__glyph {
    position: relative;
    z-index: 1;
    font-size: 0.68em;
    color: #062746;
    text-shadow:
        0.03em 0.04em 0.14em rgba(0, 0, 0, 0.26),
        -0.025em -0.025em 0.12em rgba(255, 255, 255, 0.34);
    transition: color 220ms ease, text-shadow 220ms ease, filter 220ms ease;
}

/* Только марка «Бk»: при наведении / фокусе — «океанское» свечение + чуть ярче бочка */
.auth-container #login-form > button[type="submit"]:hover .login-btn-brand-mark,
.auth-container #login-form > button[type="submit"]:focus .login-btn-brand-mark {
    filter: brightness(1.08) saturate(1.1);
    border-color: rgba(74, 144, 226, 0.42);
    box-shadow:
        inset 0 0.18em 0.45em rgba(6, 26, 52, 0.12),
        inset 0 0.05em 0.28em rgba(0, 0, 0, 0.16),
        inset 0.08em 0.1em 0.32em rgba(0, 0, 0, 0.1),
        inset -0.06em -0.12em 0.38em rgba(255, 228, 188, 0.38),
        inset 0 -0.08em 0.3em rgba(255, 210, 150, 0.22),
        0 0.06em 0.2em rgba(255, 238, 210, 0.38),
        0 0 0.55em rgba(74, 144, 226, 0.38),
        0 0 1em rgba(255, 190, 90, 0.28);
}

.auth-container #login-form > button[type="submit"]:hover .login-btn-brand-mark__barrel,
.auth-container #login-form > button[type="submit"]:focus .login-btn-brand-mark__barrel {
    opacity: 0.28;
    filter: drop-shadow(0 0.06em 0.18em rgba(0, 0, 0, 0.2)) drop-shadow(0 0 0.45em rgba(74, 144, 226, 0.35));
}

.auth-container #login-form > button[type="submit"]:hover .login-btn-brand-mark__glyph,
.auth-container #login-form > button[type="submit"]:focus .login-btn-brand-mark__glyph {
    color: #041e3d;
    text-shadow:
        0 0 0.45em rgba(74, 144, 226, 0.65),
        0 0 0.85em rgba(255, 200, 120, 0.45),
        0.03em 0.04em 0.14em rgba(0, 0, 0, 0.22),
        -0.025em -0.025em 0.14em rgba(255, 255, 255, 0.42);
}

/* Нажатие: лёгкая «вдавленность» капсулы и приглушение блика букв */
.auth-container #login-form > button[type="submit"]:active .login-btn-brand-mark {
    filter: brightness(0.94) saturate(0.98);
    border-color: rgba(52, 92, 140, 0.45);
    box-shadow:
        inset 0 0.14em 0.55em rgba(0, 0, 0, 0.22),
        inset 0 0.28em 0.65em rgba(6, 20, 45, 0.18),
        inset 0.12em 0.14em 0.42em rgba(0, 0, 0, 0.16),
        inset -0.04em -0.08em 0.28em rgba(255, 220, 170, 0.2),
        0 0.02em 0.1em rgba(0, 0, 0, 0.2);
}

.auth-container #login-form > button[type="submit"]:active .login-btn-brand-mark__barrel {
    opacity: 0.12;
    filter: drop-shadow(0 0.1em 0.22em rgba(0, 0, 0, 0.35));
}

.auth-container #login-form > button[type="submit"]:active .login-btn-brand-mark__glyph {
    color: #021428;
    text-shadow:
        0.04em 0.05em 0.12em rgba(0, 0, 0, 0.4),
        0 -0.02em 0.08em rgba(255, 255, 255, 0.15);
}

.auth-container #login-form > button[type="submit"]:disabled .login-btn-brand-mark {
    filter: none;
    border-color: rgba(72, 52, 28, 0.22);
    box-shadow:
        inset 0 0.22em 0.5em rgba(6, 26, 52, 0.14),
        inset 0 0.06em 0.32em rgba(0, 0, 0, 0.2),
        inset 0.1em 0.12em 0.38em rgba(0, 0, 0, 0.12),
        inset -0.08em -0.14em 0.42em rgba(255, 228, 188, 0.32),
        inset 0 -0.1em 0.35em rgba(255, 210, 150, 0.18),
        0 0.05em 0.16em rgba(255, 238, 210, 0.32);
}

.auth-container #login-form > button[type="submit"]:disabled .login-btn-brand-mark__barrel {
    opacity: 0.14;
    filter: drop-shadow(0 0.08em 0.2em rgba(0, 0, 0, 0.22));
}

.auth-container #login-form > button[type="submit"]:disabled .login-btn-brand-mark__glyph {
    color: #062746;
    text-shadow:
        0.03em 0.04em 0.14em rgba(0, 0, 0, 0.26),
        -0.025em -0.025em 0.12em rgba(255, 255, 255, 0.34);
}

.auth-container #login-form > button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1; /* ниже текста, но выше фона кнопки */
    pointer-events: none;

    /* мягкий "океанский" блик + синий акцент */
    background:
        radial-gradient(
            120% 90% at 18% 12%,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0) 62%
        ),
        radial-gradient(
            90% 120% at 84% 118%,
            rgba(74, 144, 226, 0.22) 0%,
            rgba(74, 144, 226, 0) 60%
        );
    opacity: 0.9;
}

.auth-container #login-form > button[type="submit"]::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -55%;
    width: 52%;
    height: 240%;
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;

    /* "световой срез" (не меняет размер/позицию кнопки) */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.26) 48%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(18deg) translateX(-140%);
    opacity: 0;
    transition:
        transform 420ms ease,
        opacity 420ms ease;
}

.auth-container #login-form > button[type="submit"]:hover,
.auth-container #login-form > button[type="submit"]:focus {
    background: linear-gradient(180deg, #ffe0a0 0%, #ffb733 50%, #ff9b2b 100%);
    color: #052a54;
    filter: saturate(1.06) contrast(1.04);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 185, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 10px 18px rgba(255, 165, 0, 0.48),
        0 0 26px rgba(74, 144, 226, 0.22);
}

.auth-container #login-form > button[type="submit"]:hover::after,
.auth-container #login-form > button[type="submit"]:focus::after {
    opacity: 0.65;
    transform: rotate(18deg) translateX(220%);
}

.auth-container #login-form > button[type="submit"]:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 185, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 0 0 3px rgba(74, 144, 226, 0.38),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 10px 18px rgba(255, 165, 0, 0.48),
        0 0 26px rgba(74, 144, 226, 0.22);
}

.auth-container #login-form > button[type="submit"]:active {
    /* без трансформаций: не меняем размер/позицию */
    filter: saturate(1.02) contrast(1.02);
    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 150, 0.42),
        inset 0 2px 8px rgba(0, 0, 0, 0.25),
        0 8px 18px rgba(0, 0, 0, 0.48),
        0 4px 10px rgba(255, 165, 0, 0.3),
        0 0 16px rgba(74, 144, 226, 0.14);
}

/* Кнопка "Войти" в состоянии загрузки — размер и позиция не меняются */
.auth-container #login-form > button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.92;
}
.auth-container #login-form > button[type="submit"]:disabled:hover,
.auth-container #login-form > button[type="submit"]:disabled:focus,
.auth-container #login-form > button[type="submit"]:disabled:active {
    /* те же визуальные параметры, что и обычное состояние, без сдвигов */
    filter: none;
    transform: none;
}

/* Подпрыгивающие точки "Заходи..." (Dark Ocean) */
.auth-loading-dots {
    display: inline-flex;
    align-items: flex-end;
    margin-left: 0.2em;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: inherit;
    gap: 0;
}
.auth-loading-dots span {
    display: inline-block;
    animation: auth-dot-bounce 0.5s ease-in-out infinite both;
    text-shadow: 0 0 1px currentColor;
}
.auth-loading-dots span:nth-child(1) { animation-delay: 0s; }
.auth-loading-dots span:nth-child(2) { animation-delay: 0.12s; }
.auth-loading-dots span:nth-child(3) { animation-delay: 0.24s; }
@keyframes auth-dot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.35em); }
}

/* Кнопка "Подать заявку на регистрацию" (outline / Dark Ocean) */
.auth-container .auth-outline-btn {
    position: relative;
    z-index: 0;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-color: transparent;
    border: 2px solid #ffa500;
    color: #ffd580;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        0 0 14px rgba(74, 144, 226, 0.12),
        inset 0 0 0 1px rgba(255, 165, 0, 0.18);

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease,
        filter 220ms ease;
}

.auth-container .auth-outline-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;

    /* лёгкая океанская подложка, чтобы эффект был "дорогим", но не заливал кнопку */
    background:
        radial-gradient(
            120% 90% at 20% 15%,
            rgba(74, 144, 226, 0.18) 0%,
            rgba(74, 144, 226, 0) 62%
        ),
        radial-gradient(
            90% 120% at 85% 115%,
            rgba(255, 165, 0, 0.12) 0%,
            rgba(255, 165, 0, 0) 62%
        );
    opacity: 0;
    transition: opacity 220ms ease;
}

.auth-container .auth-outline-btn::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -55%;
    width: 50%;
    height: 240%;
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(18deg) translateX(-150%);
    opacity: 0;
    transition:
        transform 420ms ease,
        opacity 420ms ease;
}

.auth-container .auth-outline-btn:hover,
.auth-container .auth-outline-btn:focus {
    /* без изменения размеров: только цвет/тень/фон */
    border-color: #ffc04d;
    color: #fff0cc;
    background-color: rgba(10, 43, 101, 0.22);
    filter: saturate(1.05) contrast(1.04);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(74, 144, 226, 0.32),
        0 0 10px rgba(255, 165, 0, 0.16),
        inset 0 0 0 1px rgba(255, 192, 77, 0.22);
}

.auth-container .auth-outline-btn:hover::before,
.auth-container .auth-outline-btn:focus::before {
    opacity: 1;
}

.auth-container .auth-outline-btn:hover::after,
.auth-container .auth-outline-btn:focus::after {
    opacity: 0.55;
    transform: rotate(18deg) translateX(220%);
}

.auth-container .auth-outline-btn:focus-visible {
    outline: none;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 0 3px rgba(74, 144, 226, 0.35),
        0 0 22px rgba(74, 144, 226, 0.32),
        0 0 10px rgba(255, 165, 0, 0.16),
        inset 0 0 0 1px rgba(255, 192, 77, 0.22);
}

.auth-container .auth-outline-btn:active {
    /* без transform: не сдвигаем и не уменьшаем */
    filter: saturate(1.02) contrast(1.02);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.48),
        0 0 16px rgba(74, 144, 226, 0.22),
        inset 0 2px 10px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 165, 0, 0.18);
}

/* Форма регистрации: кнопка вне прокручиваемого блока */
#registration-modal #registration-form {
    padding-bottom: 0;
}

body.registration-modal-open {
    overflow: hidden;
}

/* Кнопка "Отправить заявку" в модалке регистрации (primary / Dark Ocean) */
#registration-modal #registration-form > .auth-primary-btn[type="submit"] {
    position: relative;
    z-index: 0;
    overflow: hidden;

    width: 100%;
    margin-top: 1.25rem;
    min-height: 44px;
    padding: 14px 0;
    border: none;
    border-radius: 8px;

    background: linear-gradient(180deg, #ffd27a 0%, #ffa500 52%, #ff8f1f 100%);
    color: #07457e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;

    cursor: pointer;
    user-select: none;

    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 150, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 22px rgba(0, 0, 0, 0.42),
        0 6px 14px rgba(255, 165, 0, 0.32),
        0 0 18px rgba(74, 144, 226, 0.12);

    transition:
        background 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease,
        filter 220ms ease;
}

#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            120% 90% at 18% 12%,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(255, 255, 255, 0) 62%
        ),
        radial-gradient(
            90% 120% at 84% 118%,
            rgba(74, 144, 226, 0.2) 0%,
            rgba(74, 144, 226, 0) 60%
        );
    opacity: 0.85;
}

#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -55%;
    width: 52%;
    height: 240%;
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(18deg) translateX(-140%);
    opacity: 0;
    transition:
        transform 420ms ease,
        opacity 420ms ease;
}

#registration-modal #registration-form > .auth-primary-btn[type="submit"]:hover,
#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]:focus {
    background: linear-gradient(180deg, #ffe0a0 0%, #ffb733 54%, #ff9b2b 100%);
    color: #052a54;
    filter: saturate(1.06) contrast(1.04);
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 185, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 10px 18px rgba(255, 165, 0, 0.48),
        0 0 26px rgba(74, 144, 226, 0.22);
}

#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]:hover::after,
#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]:focus::after {
    opacity: 0.6;
    transform: rotate(18deg) translateX(220%);
}

#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 185, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(74, 144, 226, 0.38),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 10px 18px rgba(255, 165, 0, 0.48),
        0 0 26px rgba(74, 144, 226, 0.22);
}

#registration-modal
    #registration-form
    > .auth-primary-btn[type="submit"]:active {
    /* без transform: не меняем размер/позицию */
    filter: saturate(1.02) contrast(1.02);
    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 150, 0.38),
        inset 0 2px 8px rgba(0, 0, 0, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.48),
        0 4px 10px rgba(255, 165, 0, 0.3),
        0 0 16px rgba(74, 144, 226, 0.14);
}

/* Подсказка или ссылка */
.auth-footer {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
    color: #fff3cc;
    text-shadow: 0 0 2px #804000;
    font-weight: 600;
}

.auth-footer a {
    color: #ffd280;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.auth-footer a:hover,
.auth-footer a:focus {
    color: #ffc04d;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 400px) {
    .auth-container {
        width: 90%;
        padding: 25px 20px;
    }
}

/* Dark Ocean: модалка заявки на регистрацию (страница логина) */
#registration-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 15000;
    width: 100% !important;
    max-width: none !important;
    min-width: 100%;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(clamp(0.25rem, 0.6vw, 0.55rem));
    isolation: isolate;
}

@media (max-width: 640px) {
    #registration-modal {
        align-items: flex-start;
        justify-content: center;
        padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    }
}

#registration-modal .registration-modal__title {
    margin: 0 0 15px 0;
    padding: 0 2.25rem 0 0.25rem;
    width: 100%;
    box-sizing: border-box;
    color: #ffd580;
    text-align: center;
    font-size: clamp(1rem, 4.2vw, 20px);
    line-height: 1.25;
    flex-shrink: 0;
}

/* Кнопка закрытия модалки: при наведении — ярко красный цвет и бордер, без сдвига */
.registration-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    color: #ffd580;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.registration-close-btn:hover,
.registration-close-btn:focus {
    color: #ff3333;
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.12);
}

.registration-close-btn:focus-visible {
    outline: none;
}

#registration-modal .registration-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-self: center;
    width: min(32rem, calc(100vw - 1.5rem));
    max-width: 100%;
    max-height: min(90vh, calc(100vh - 2.5rem));
    max-height: min(90vh, calc(100dvh - max(1.5rem, env(safe-area-inset-top)) - max(1.5rem, env(safe-area-inset-bottom))));
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #000000 0%,
        #031a35 35%,
        #042a4f 70%,
        #053d6e 100%
    );
    border: 1px solid #ffa500;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(74, 144, 226, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px clamp(14px, 4vw, 30px) 16px clamp(14px, 4vw, 30px);
    box-sizing: border-box;
    flex: 0 1 auto;
}

@media (max-width: 640px) {
    #registration-modal .registration-modal__panel {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - max(0.5rem, env(safe-area-inset-top)) - max(0.5rem, env(safe-area-inset-bottom)));
        align-self: stretch;
    }
}

#registration-modal .registration-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

#registration-modal .registration-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-anchor: none;
    padding-right: 2px;
    margin-right: -2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.75) rgba(0, 0, 0, 0.35);
    scrollbar-gutter: stable;
}

#registration-modal .registration-modal__body::-webkit-scrollbar {
    width: 10px;
}

#registration-modal .registration-modal__body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
}

#registration-modal .registration-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(74, 144, 226, 0.9),
        rgba(5, 61, 110, 0.9)
    );
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 999px;
}

#registration-modal .registration-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 165, 0, 0.6),
        rgba(74, 144, 226, 0.95)
    );
}

#registration-modal .registration-modal__submit {
    flex-shrink: 0;
    margin-top: 0.75rem;
}

#registration-modal .custom-select-options {
    z-index: 40;
}

#registration-modal .registration-modal__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 144, 226, 0.55),
        rgba(255, 165, 0, 0.35),
        rgba(74, 144, 226, 0.55),
        transparent
    );
    opacity: 0.9;
    pointer-events: none;
}

/* --- Блок: одна строка (пример + поле + кнопка), ниже чекбоксы согласий --- */
.registration-captcha-consents-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    border-radius: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-anchor: none;
}

.registration-captcha-row {
    width: 100%;
    min-width: 0;
    padding: 0;
    margin-bottom: 0;
}

.registration-consents-half {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.registration-block-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #ffd580;
    font-weight: 600;
}

.registration-captcha-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    min-width: 0;
}

.registration-captcha-question {
    color: #ffd580;
    font-size: 16px;
    font-weight: 700;
    min-width: 80px;
}

.registration-captcha-refresh {
    flex-shrink: 0;
    width: auto;
    min-width: 4.375rem;
    height: clamp(2rem, 5vw, 2.25rem);
    padding: 0 0.625rem;
    box-sizing: border-box;
    background: none;
    border: 1px solid #ffa500;
    color: #ffd580;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.registration-captcha-refresh:hover {
    background-color: rgba(255, 165, 0, 0.2);
}

.registration-captcha-refresh:active {
    background-color: rgba(255, 165, 0, 0.3);
}

.registration-captcha-input {
    height: clamp(2rem, 5vw, 2.25rem);
    padding: 0 0.625rem;
    border: 1px solid #ffa500;
    border-radius: 0.375rem;
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    outline: none;
    background-color: #0a2b65;
    color: white;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    line-height: 1;
}

/* Отступ снизу от кнопки «Отправить заявку» до низа модалки */
.registration-form-bottom-spacer {
    height: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

/* Контакт под кнопкой «Отправить заявку» (email + копирование) — компактно, Dark Ocean */
.registration-form-bottom-contact {
    height: auto;
    min-height: 0;
    padding-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.registration-form-bottom-email {
    font-size: 0.62rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: rgba(255, 213, 128, 0.82);
    text-shadow: 0 0 2px rgba(128, 64, 0, 0.35);
    user-select: text;
    white-space: nowrap;
}

/* Кнопка копирования (как в top-row.css: .copy-btn) — только для модалки регистрации */
#registration-modal .copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    background: linear-gradient(145deg, rgba(25, 65, 95, 0.4), rgba(18, 50, 75, 0.45));
    border: 1px solid rgba(50, 100, 140, 0.4);
    border-radius: 4px;
    color: #6a98b0;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15) inset;
}

#registration-modal .copy-btn:hover,
#registration-modal .copy-btn:focus-visible {
    outline: none;
    background: linear-gradient(145deg, rgba(200, 150, 50, 0.18), rgba(180, 130, 40, 0.14));
    border-color: rgba(220, 170, 80, 0.5);
    color: #e8c070;
    box-shadow: 0 0 10px rgba(220, 170, 80, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1) inset;
}

#registration-modal .copy-btn:active {
    transform: none;
}

#registration-modal .copy-btn svg {
    width: 12px;
    height: 12px;
    display: block;
    transition: color 0.25s ease, transform 0.25s ease;
}

#registration-modal .copy-btn.copied {
    background: linear-gradient(145deg, rgba(20, 80, 50, 0.5), rgba(14, 60, 38, 0.55));
    border-color: rgba(34, 197, 94, 0.7);
    color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#registration-modal .copy-btn.copied svg {
    color: #22c55e;
    transform: scale(1.08);
}

/* Плавающая подсказка (как в top-row.css: .company-info-copy-hint-float) */
.company-info-copy-hint-float {
    position: fixed;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #ffd580;
    background: linear-gradient(145deg, #031a35 0%, #042a4f 50%, #053d6e 100%);
    border: 1px solid #ffa500;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 10px rgba(74, 144, 226, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 16080;
    white-space: nowrap;
}

.company-info-copy-hint-float.is-visible {
    opacity: 1;
    visibility: visible;
}

.registration-form-bottom-copy {
    width: 1.85rem;
    height: 1.25rem;
    min-width: 1.85rem;
    min-height: 1.25rem;
    padding: 0;
    margin: 0;
    border-radius: 0.45rem;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    outline: none;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.55), rgba(3, 26, 53, 0.65));
    border: 1px solid rgba(255, 165, 0, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 6px 14px rgba(0, 0, 0, 0.35),
        0 0 12px rgba(74, 144, 226, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-form-bottom-copy__text {
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: rgba(190, 220, 255, 0.92);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.22);
}

.registration-form-bottom-copy:hover,
.registration-form-bottom-copy:focus-visible {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.45), rgba(4, 42, 79, 0.7));
    border-color: rgba(255, 192, 77, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(74, 144, 226, 0.25),
        0 0 16px rgba(255, 165, 0, 0.12);
    outline: none;
}

.registration-form-bottom-copy:active {
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.28),
        0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Иконка "две папки" */
.registration-form-bottom-copy__icon,
.registration-form-bottom-copy__ok {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.registration-form-bottom-copy__ok {
    display: none;
}

.registration-form-bottom-copy__icon::before,
.registration-form-bottom-copy__icon::after {
    content: "";
    position: absolute;
    width: 0.86rem;
    height: 0.7rem;
    border-radius: 0.18rem;
    background: transparent;
    border: 2px solid rgba(190, 220, 255, 0.92);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(74, 144, 226, 0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.registration-form-bottom-copy__icon::before {
    transform: translate(calc(-50% - 0.12rem), calc(-50% - 0.09rem));
    opacity: 0.85;
}

.registration-form-bottom-copy__icon::after {
    transform: translate(calc(-50% + 0.12rem), calc(-50% + 0.09rem));
}

/* Зеленая галочка после копирования */
.registration-form-bottom-copy.is-copied {
    border-color: rgba(74, 222, 128, 0.85);
    background: linear-gradient(145deg, rgba(16, 77, 47, 0.55), rgba(6, 42, 82, 0.45));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 18px rgba(0, 0, 0, 0.42),
        0 0 16px rgba(74, 222, 128, 0.22);
}

.registration-form-bottom-copy.is-copied .registration-form-bottom-copy__icon {
    display: none;
}

.registration-form-bottom-copy.is-copied .registration-form-bottom-copy__text {
    display: none;
}

.registration-form-bottom-copy.is-copied .registration-form-bottom-copy__ok {
    display: block;
}

.registration-form-bottom-copy__ok::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    color: #4ade80;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

/* Кастомные чекбоксы согласий — Dark Ocean (без изменения размера при клике/ховере) */
.registration-consent-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    line-height: 1.28;
    color: #ffd580;
    box-sizing: border-box;
}

/* Красная подсветка только когда все поля (включая капчу) заполнены, а галочки не проставлены */
.registration-consents-half.consent-required-highlight .registration-consent-item {
    color: #ff011d;
}

/*
 * Реальный input поверх декоративной клетки (те же координаты, что и .registration-consent-box).
 * Раньше чекбокс был «вырезан» clip’ом в (0,0) — браузер скроллил модалку к этой точке и всё «прыгало».
 */
.registration-consent-checkbox {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: clamp(0.82rem, 1.4vw, 0.98rem);
    height: clamp(0.82rem, 1.4vw, 0.98rem);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: clamp(0.18rem, 0.36vw, 0.26rem);
    opacity: 0.04;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    flex-shrink: 0;
    outline: none;
    box-shadow: none;
}

.registration-consent-checkbox:focus-visible {
    outline: none;
}

/* Как .order-number-line .order-shipped-checkbox (order.css): по умолчанию сине‑тёмный; включено — оранжевое «отправлено» */
.registration-consent-box {
    flex-shrink: 0;
    width: clamp(0.82rem, 1.4vw, 0.98rem);
    height: clamp(0.82rem, 1.4vw, 0.98rem);
    min-width: clamp(0.82rem, 1.4vw, 0.98rem);
    min-height: clamp(0.82rem, 1.4vw, 0.98rem);
    max-width: clamp(0.82rem, 1.4vw, 0.98rem);
    max-height: clamp(0.82rem, 1.4vw, 0.98rem);
    box-sizing: border-box;
    border-radius: clamp(0.18rem, 0.36vw, 0.26rem);
    border: 1px solid rgba(74, 144, 226, 0.65);
    background: linear-gradient(145deg, rgba(1, 9, 20, 0.9), rgba(6, 20, 46, 0.9));
    box-shadow: inset 0 0 8px rgba(74, 144, 226, 0.18);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    pointer-events: none;
}

.registration-consent-item:hover .registration-consent-box {
    border-color: rgba(100, 160, 255, 0.85);
    box-shadow: inset 0 0 10px rgba(74, 144, 226, 0.28);
}

.registration-consent-checkbox:focus-visible + .registration-consent-box {
    outline: none;
    box-shadow:
        0 0 10px rgba(74, 144, 226, 0.45),
        inset 0 0 10px rgba(74, 144, 226, 0.25);
}

.registration-consent-checkbox:checked + .registration-consent-box {
    border-color: rgba(255, 165, 0, 0.9);
    background: linear-gradient(145deg, rgba(153, 102, 0, 0.95), rgba(102, 68, 0, 0.9));
    box-shadow: inset 0 0 10px rgba(255, 165, 0, 0.25);
}

.registration-consent-checkbox:focus-visible:checked + .registration-consent-box {
    box-shadow:
        0 0 10px rgba(255, 165, 0, 0.45),
        inset 0 0 10px rgba(255, 165, 0, 0.25);
}

.registration-consent-checkbox:checked + .registration-consent-box::after {
    content: "✓";
    color: #ffa500;
    font-weight: 900;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.registration-consent-text {
    flex: 1;
}

.registration-consent-link {
    color: #7eb8f7;
    text-decoration: underline;
    transition: color 0.2s;
}

.registration-consent-link:hover {
    color: #ffd580;
}

/* Кнопка-ссылка «политикой…» внутри label: без второго курсора браузера, не открывает вкладку */
button.registration-consent-link--inline {
    display: inline;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #7eb8f7;
    text-decoration: underline;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    width: auto;
    min-height: 0;
    transition: color 0.2s;
}

button.registration-consent-link--inline:hover,
button.registration-consent-link--inline:focus-visible {
    color: #ffd580;
    outline: none;
}

/* Модалка политики поверх заявки на регистрацию */
.registration-policy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 16055;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.registration-policy-modal.is-open {
    display: flex;
}

body.registration-policy-modal-open {
    overflow: hidden;
}

.registration-policy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

.registration-policy-modal__panel {
    position: relative;
    z-index: 1;
    width: min(32rem, calc(100vw - 1.5rem));
    max-height: min(85vh, 36rem);
    display: flex;
    flex-direction: column;
    padding: 1.1rem clamp(14px, 3vw, 22px) 1rem;
    box-sizing: border-box;
    border: 1px solid #ffa500;
    border-radius: 12px;
    background: linear-gradient(145deg, #000000 0%, #031a35 40%, #042a4f 100%);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(74, 144, 226, 0.35);
}

.registration-policy-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    color: #ffd580;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.registration-policy-modal__close:hover,
.registration-policy-modal__close:focus-visible {
    color: #ff3333;
    border-color: #ff3333;
    background-color: rgba(255, 51, 51, 0.12);
    outline: none;
}

.registration-policy-modal__title {
    margin: 0 2rem 0.75rem 0;
    padding-right: 0.25rem;
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    font-weight: 700;
    color: #ffd580;
    line-height: 1.25;
}

.registration-policy-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0.75rem;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.75) rgba(0, 0, 0, 0.35);
}

.registration-policy-modal__body::-webkit-scrollbar {
    width: 8px;
}

.registration-policy-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.85), rgba(5, 61, 110, 0.9));
    border-radius: 999px;
}

.registration-policy-modal__p {
    margin: 0 0 0.65rem 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #e8f0ff;
}

.registration-policy-modal__muted {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 213, 128, 0.72);
}

.registration-policy-modal__ok {
    flex-shrink: 0;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #052a54;
    cursor: pointer;
    background: linear-gradient(180deg, #ffd27a 0%, #ffa500 52%, #ff8f1f 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 150, 0.38),
        0 6px 14px rgba(0, 0, 0, 0.35);
    transition: filter 0.2s, box-shadow 0.2s;
}

.registration-policy-modal__ok:hover,
.registration-policy-modal__ok:focus-visible {
    filter: brightness(1.05);
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 232, 185, 0.45),
        0 0 0 3px rgba(74, 144, 226, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Кастомное модальное окно валидации «Заполните это поле» — Dark Ocean --- */
.auth-validation-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 16050;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.auth-validation-modal.is-open {
    display: flex;
}

.auth-validation-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    pointer-events: auto;
}

.auth-validation-modal-box {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    min-width: min(280px, 90vw);
    max-width: 360px;
    background: linear-gradient(145deg, #031a35 0%, #042a4f 50%, #053d6e 100%);
    border: 1px solid #ffa500;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(74, 144, 226, 0.25);
    pointer-events: auto;
}

.auth-validation-modal-message {
    margin: 0 0 1rem 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.4;
    color: #ffd580;
}

.auth-validation-modal-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #052a54;
    background: linear-gradient(180deg, #ffe0a0 0%, #ffb733 54%, #ff9b2b 100%);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-validation-modal-btn:hover,
.auth-validation-modal-btn:focus {
    background: linear-gradient(180deg, #ffe8b8 0%, #ffc04d 54%, #ffa733 100%);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.35);
}

.auth-validation-modal-btn:active {
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* --- Центровой баннер ошибок отправки заявки (виден при скролле формы) --- */
.registration-error-banner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 16060;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.registration-error-banner.is-open {
    display: flex;
}

.registration-error-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.registration-error-banner-box {
    position: relative;
    z-index: 1;
    width: min(92vw, 36rem);
    max-height: min(70vh, 34rem);
    overflow-y: auto;
    padding: 1rem 1.15rem;
    border: 0.125rem solid #ff4d4f;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #2b0508 0%, #3b0b10 50%, #4b0f16 100%);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.65), 0 0 1.25rem rgba(255, 77, 79, 0.35);
}

.registration-error-banner-title {
    margin-bottom: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd4d4;
}

.registration-error-banner-list {
    margin: 0 0 0.875rem;
    padding-left: 1rem;
    color: #ffe2e2;
    font-size: 0.9rem;
    line-height: 1.4;
}

.registration-error-banner-btn {
    width: 100%;
    min-height: 2.25rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #2f0808;
    font-size: 0.9375rem;
    font-weight: 700;
    background: linear-gradient(180deg, #ffb6b7 0%, #ff7173 55%, #ff4d4f 100%);
    cursor: pointer;
}

.registration-error-banner-btn:hover,
.registration-error-banner-btn:focus {
    background: linear-gradient(180deg, #ffc6c7 0%, #ff8486 55%, #ff5a5c 100%);
}

/* Пополнение баланса / счёт на оплату на экране входа */
.login-modal-balance {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(3, 26, 53, 0.85);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.login-modal-balance.show {
    display: flex;
}

.login-modal-balance-content {
    width: 100%;
    max-width: 22rem;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #031a35 0%, #042a4f 50%, #053d6e 100%);
    border: 2px solid #ffa500;
    border-radius: clamp(0.35rem, 0.7vw, 0.5rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.25);
}

.login-modal-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    border-bottom: 1px solid rgba(255, 165, 0, 0.5);
    flex-shrink: 0;
}

.login-modal-balance-header h3 {
    margin: 0;
    color: #ffd580;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 600;
    font-family: "Lato", sans-serif;
}

.login-modal-balance-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
    line-height: 1;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 0.25rem;
    background: transparent;
    color: #ffd580;
    font-size: 1.5rem;
    cursor: pointer;
    box-sizing: border-box;
}

.login-modal-balance-close:hover,
.login-modal-balance-close:focus {
    color: #ffa500;
    border-color: #ffa500;
    background-color: rgba(255, 165, 0, 0.12);
}

.login-modal-balance-body {
    padding: clamp(1rem, 2vw, 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.login-modal-balance-body::-webkit-scrollbar {
    width: 6px;
}

.login-modal-balance-body::-webkit-scrollbar-track {
    background: rgba(4, 42, 79, 0.8);
    border-radius: 3px;
}

.login-modal-balance-body::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 3px;
}

.login-modal-balance-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

.login-modal-balance-label {
    color: #ffd580;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    font-weight: 500;
}

.login-modal-balance-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    font-family: "Lato", sans-serif;
    color: #ffd580;
    background: rgba(3, 26, 53, 0.9);
    border: 1px solid #ffa500;
    border-radius: 0.35rem;
    box-sizing: border-box;
    outline: none;
}

.login-modal-balance-input::placeholder {
    color: rgba(255, 213, 128, 0.5);
}

.login-modal-balance-input:focus {
    border-color: #ffa500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.3);
}

.login-modal-balance-input.login-modal-balance-input--error {
    border-color: #8b4a4a;
    background: rgba(40, 18, 18, 0.85);
}

.login-modal-balance-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    border-top: 1px solid rgba(255, 165, 0, 0.5);
    flex-shrink: 0;
}

.login-modal-balance-btn {
    padding: 0.5rem 1rem;
    min-height: 2.25rem;
    min-width: 5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Lato", sans-serif;
    border-radius: 0.35rem;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.login-modal-balance-btn-close {
    color: #ffd580;
    background: rgba(3, 26, 53, 0.9);
    border-color: rgba(255, 165, 0, 0.5);
}

.login-modal-balance-btn-close:hover,
.login-modal-balance-btn-close:focus {
    color: #ffa500;
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.12);
}

.login-modal-balance-btn-invoice {
    color: #031a35;
    background: linear-gradient(180deg, #ffd580 0%, #ffa500 100%);
    border-color: #ffa500;
}

.login-modal-balance-btn-invoice:hover:not(:disabled),
.login-modal-balance-btn-invoice:focus:not(:disabled) {
    background: linear-gradient(180deg, #ffe4a8 0%, #ffb733 100%);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.4);
}

.auth-balance-error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.auth-balance-error-msg {
    color: #ffcccc;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.auth-balance-error-msg:last-of-type {
    margin-bottom: 0;
}

.auth-balance-invoice-btn {
    margin-top: 12px;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Lato", sans-serif;
    border-radius: 0.35rem;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid #ffa500;
    color: #031a35;
    background: linear-gradient(180deg, #ffd580 0%, #ffa500 100%);
}

.auth-balance-invoice-btn:hover,
.auth-balance-invoice-btn:focus {
    background: linear-gradient(180deg, #ffe4a8 0%, #ffb733 100%);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.4);
}
