body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #121212;
    color: #fff;
}

a {
    color: #4da3ff;
    text-decoration: none;
padding: 8px 18px;        /* пространство внутри кнопки */
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    color: #4da3ff;
    font-weight: bold;
}
.a:hover {
    background: #4da3ff;
    color: #000;
    border-color: #4da3ff;
}
.header {
    background: #1e1e1e;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.menu a {
    margin-right: 15px;
padding: 8px 18px;        /* пространство внутри кнопки */
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    color: #4da3ff;
 font-weight: bold;
}
.menu a:hover {
    background: #4da3ff;
    color: #000;
    border-color: #4da3ff;
}

.container {
    width: 100%;
    max-width: 750px;              /* контейнер шире */
    margin: 100px auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 6px;
    text-align: center;            /* весь текст по центру */
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
}

button {
    padding: 6px 12px;
    margin: 6px;                   /* отступы между кнопками */
    cursor: pointer;
    background: #4da3ff;
    border: none;
    font-weight: bold;
}

button.secondary {
    background: #555;
    margin-top: 10px;
}

.cabinet-menu {
    background: #1e1e1e;
    padding: 15px;
}

.cabinet-menu a {
    display: inline-block;
    padding: 8px 18px;        /* пространство внутри кнопки */
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    color: #4da3ff;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 100px;         /* одинаковая ширина кнопок */
}

/* Hover эффект */
.cabinet-menu a:hover {
    background: #4da3ff;
    color: #000;
    border-color: #4da3ff;
}

/* Контейнер таблицы */
.container table {
    border-collapse: collapse;
    width: 100%;
}

/* Все ячейки */
.container th,
.container td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
}

/* Заголовки */
.container th {
    background-color: #1e1e1e;
}

/* Опционально: цвет для положительных и отрицательных сумм */
.amount-positive { color: green; }
.amount-negative { color: red; }

/* ===================== Модальные окна ===================== */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
}
.modal-content {
    position: relative;             /* для крестика */
    background: #1e1e1e;
    color: #fff;
    text-align: center;
    margin: 5% auto;                /* центр по горизонтали и чуть выше по экрану */
    width: 650px;                    /* ширина модалки */
    max-width: 90%;                  /* адаптивность */
    height: 500px;                   /* фиксированная высота */
    border-radius: 8px;
    box-shadow: 0 0 10px #000;

    /* ВЫРАВНИВАНИЕ ПО ЦЕНТРУ */
    display: flex;
    flex-direction: column;          /* элементы сверху вниз */
    justify-content: center;         /* вертикальное центрирование */
    align-items: center;             /* горизонтальное центрирование */
    padding: 30px 20px;              /* внутренние отступы */
}

/* Крестик в правом верхнем углу */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* Параграфы внутри модалки с равномерными отступами */
.modal-content p {
    margin: 10px 0;                 /* вертикальные отступы */
    width: 100%;                     /* чтобы input/select занимали всю ширину контейнера */
}

/* Поля ввода и select внутри модалки */
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content select {
    width: 80%;
    max-width: 300px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2b2b2b;
    color: #fff;
    box-sizing: border-box;
    margin-top: 5px;                /* отступ сверху от label */
}

/* Контейнер кнопок внутри модалки */
.modal-content .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Кнопки внутри модалки */
.modal-content button {
    padding: 6px 15px;
    background: #4da3ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-content button.secondary {
    background: #555;
}
.faq-container {
    max-width: 800px;           /* контейнер шире */
    padding: 40px 30px;         /* внутренние отступы */
    margin: 50px auto;           /* центрирование */
    background: #1e1e1e;        /* фон контейнера */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    color: #fff;
}

/* Каждый вопрос-ответ в отдельном блоке */
.faq-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #2b2b2b;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.faq-question {
    flex: 0 0 250px;       /* оставляем фиксированную ширину колонки */
    font-weight: bold;
    color: #4da3ff;
    text-align: center;       /* текст по центру колонки */
    margin-top: 35px;         /* верхний отступ */
    margin-bottom: 30px;      /* увеличенный отступ снизу между вопросом и ответом */
    padding: 8px 10px;        /* добавлен padding внутри вопроса для читаемости */
    background: rgba(77,163,255,0.1); /* легкий фон */
    border-radius: 5px;
}

.faq-answer {
    flex: 1;
    line-height: 1.6;
text-align: center;       /* текст по центру колонки */
    margin-top: 15px;         /* верхний отступ */
    margin-bottom: 30px;      /* увеличенный отступ снизу между вопросом и ответом */
    padding: 8px 10px;        /* добавлен padding внутри вопроса для читаемости */
   
}


@media (max-width: 650px) {
    .faq-item {
        flex-direction: column;   /* вертикально на мобильных */
    }
    .faq-question {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
.about-container {
    max-width: 850px;            /* широкий контейнер */
    padding: 50px 40px;          /* внутренние отступы */
    margin: 50px auto;            /* центрирование на странице */
    background: #1e1e1e;         /* фон контейнера */
    border-radius: 10px;          /* скругление углов */
    box-shadow: 0 0 20px rgba(0,0,0,0.4); /* лёгкая тень */
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.7;             /* читаемость текста */
    text-align: center;           /* теперь весь текст по центру */
}

/* Заголовок страницы */
.about-container h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
    color: #4da3ff;
}

/* Абзацы */
.about-container p {
    font-size: 16px;
    margin-bottom: 20px;          /* отступ между абзацами */
}

/* Ссылки */
.about-container a {
    color: #4da3ff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.about-container a:hover {
    color: #6fc0ff;
}

/* Адаптивность на мобильных */
@media (max-width: 650px) {
    .about-container {
        padding: 30px 20px;
    }
    .about-container h1 {
        font-size: 26px;
    }
    .about-container p {
        font-size: 15px;
    }
}

/* Баланс заголовок */
.container > strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
    color: #4da3ff;
}

/* Сам баланс */
.balance-amount {
    display: inline-block;
    font-size: 28px;              
    font-weight: bold;
    color: green;               
    margin-bottom: 25px;           
    padding: 5px 10px;
}

/* Таблица */
.container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 16px;
}

/* Заголовки таблицы */
.container th {
    background-color: #2b2b2b;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #444;
}

/* Ячейки таблицы */
.container td {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    vertical-align: middle;
}

/* Цвет для положительных и отрицательных сумм */
.amount-positive { 
    color: #4da3ff;              
    font-weight: bold;
}
.amount-negative {
    color: red;                  
    font-weight: bold;
}

/* Hover для строк таблицы */
.container tbody tr:hover {
    background-color: rgba(77,163,255,0.1);
}

/* Адаптивность */
@media (max-width: 650px) {
    .container table, .container th, .container td {
        font-size: 14px;
        padding: 10px 8px;
    }
    .container > strong {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .balance-amount {
        font-size: 22px;
        margin-bottom: 15px;
    }
}
/* ================== ОБЩИЙ СТИЛЬ ДЛЯ LOGIN И REGISTER ================== */

.login-form,
.register-form {
    margin: 35px auto 0;        /* поднимаем вверх */
    padding: 18px 25px;         /* компактно */
    max-width: 360px;
    width: 100%;
    text-align: center;
    background: #1e1e1e;
    border-radius: 10px;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Заголовки */
.login-form h2,
.register-form h2 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
}

/* Кнопки */
.login-form button,
.register-form button {
    margin-top: 15px;
    width: 100%;
}

/* Текст под формами */
.login-form .register-link,
.register-form .login-link {
    margin-top: 20px;
    font-size: 14px;
}

/* Ссылки */
.login-form a,
.register-form a {
    color: #4da3ff;
    text-decoration: none;
}

.login-form a:hover,
.register-form a:hover {
    text-decoration: underline;
}

/* ================== АДАПТИВ ================== */
@media (max-width: 500px) {
    .login-form,
    .register-form {
        padding: 30px 20px;
    }

    .login-form h2,
    .register-form h2 {
        font-size: 22px;
    }

    .login-form input,
    .login-form button,
    .register-form input,
    .register-form button {
        font-size: 15px;
        padding: 10px;
    }
}

