/* ПОДКЛЮЧЕНИЕ СИСТЕМНЫХ ШРИФТОВ */
@font-face {
    font-family: 'Unbounded-Bold';
    src: url('Unbounded-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSansDisplay-CondensedBold';
    src: url('NotoSansDisplay_Condensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'NotoSansDisplay-ExtraCondensedRegular';
    src: url('NotoSansDisplay_ExtraCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Обнуление дефолтных отступов браузера */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0d0d;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: "NotoSansDisplay-ExtraCondensedRegular", sans-serif;
    padding: 0 30px; /* Боковые отступы фрейма */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
}

.app-container {
    width: 100%;
    max-width: 390px;
    padding-top: 40px; /* Верхний отступ Safe Area */
    display: flex;
    flex-direction: column;
}

/* ========================================================
   БЛОК 1: ЛОГОТИП СО СТАТУСОМ
   ======================================================== */
.logo-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px; /* КРАСНЫЙ ИНТЕРВАЛ: 30px между 1 и 2 блоком */
}

.logo {
    font-family: "Unbounded-Bold", sans-serif;
    font-size: 27px; /* Размер 27 по ТЗ */
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 0px 0 !important; /* ЧЁТКИЙ ФИКС: обнуляем верх/бока и принудительно задаём ровно 10px вниз к статусу */
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #C30289, #7000B1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "NotoSansDisplay-CondensedBold", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff; /* Слово "Статус:" теперь чисто белое, как на скрине */
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #13ED75; /* Точка сочного неонового цвета */
    border-radius: 50%;
    box-shadow: 0 0 10px #13ED75;
}

.status-online-text {
    color: #13ED75; /* ТОЛЬКО слово "Онлайн" покрашено в неоновый */
}

/* ========================================================
   БЛОК 2: ЛОГИН С ПРЕДУПРЕЖДЕНИЕМ
   ======================================================== */
.form-group-login {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px; /* КРАСНЫЙ ИНТЕРВАЛ: 30px между 2 и 3 блоком */
}

.form-group-login .field-label {
    margin-bottom: 5px; /* ЗЕЛЕНЫЙ ИНТЕРВАЛ: 10px между заголовком и инпутом */
}

.form-group-login .dark-input {
    margin-bottom: 10px; /* ЗЕЛЕНЫЙ ИНТЕРВАЛ: 10px между инпутом и предупреждением */
}

/* Секция Суммы (Переходная внутри 3 блока) */
.form-group-amount {
    display: flex;
    flex-direction: column;
}

.form-group-amount .field-label {
    margin-bottom: 5px; /* ЗЕЛЕНЫЙ ИНТЕРВАЛ: 10px между Суммой зачисления и инпутом */
}

.form-group-amount .dark-input {
    margin-bottom: 10px; /* ЗЕЛЕНЫЙ ИНТЕРВАЛ: 10px между инпутом суммы и Итого к оплате */
}

/* Общие стили для полей разметки текста */
.field-label {
    color: #7D7E7F;
    font-family: "NotoSansDisplay-CondensedBold", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

.dark-input {
    background-color: #1F2224;
    border: 2px solid #434344;
    border-radius: 2px;
    padding: 14px;
    color: #ffffff;
    font-family: "NotoSansDisplay-ExtraCondensedRegular", sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.dark-input::placeholder {
    color: #7D7E7F;
}

.dark-input:focus {
    border-color: #C30289;
}

/* Красная зона предупреждения */
.warning-zone {
    display: flex;
    border-radius: 2px;
    overflow: hidden;
}

.warning-stripe {
    width: 3px;
    background-color: #D21F3C;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.warning-body {
    flex: 1;
    background: linear-gradient(to right, rgba(210, 31, 60, 0.3), rgba(129, 19, 37, 0.3));
    padding: 10px 12px;
    font-family: "NotoSansDisplay-ExtraCondensedRegular", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #D21F3C;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.warning-bold {
    font-family: "NotoSansDisplay-CondensedBold", sans-serif;
    color: #D21F3C;
    margin-right: 4px;
}

/* ========================================================
   БЛОК 3: ИТОГО С ПОПОЛНЕНИЕМ
   ======================================================== */
/* Плашка Итого к оплате */
.total-plate {
    background-color: #1F2224;
    border: 2px dashed #434344; /* Пунктирный контур по ТЗ */
    border-radius: 2px;
    padding: 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px; /* ИСПРАВЛЕНО: Сделали интервал сверху строго 10px по ТЗ */
    margin-bottom: 10px; /* Зелёный интервал 10px перед кнопкой */
}

.total-label {
    color: #7D7E7F;
    font-family: "NotoSansDisplay-CondensedBold", sans-serif;
    font-size: 16px;
}

.total-value {
    color: #ffffff;
    font-family: "NotoSansDisplay-CondensedBold", sans-serif;
    font-size: 16px;
}

/* Главная кнопка пополнения по ТЗ */
.btn-pay {
    background: linear-gradient(to right, #C30289, #7000B1);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 18px;
    /* МЕНЯЕМ ШРИФТ И РАЗМЕР НА КНОПКЕ ПО ТЗ */
    font-family: "Unbounded-Bold", sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px; /* Размер 16 */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(112, 0, 177, 0.3);
    transition: transform 0.1s, opacity 0.2s;
    width: 100%;
}

.btn-pay:active {
    transform: scale(0.99);
    opacity: 0.9;
}

/* Скрытие стрелок у ввода чисел */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
