@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --kaspi-red: #f14635;
    --kaspi-red-hover: #d93b2b;
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --sidebar-bg: #151515;
    --text-color: #ffffff;
}

* { box-sizing: border-box; transition: all 0.3s ease; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- ГЛАВНОЕ: КНОПКА СЛЕВА СВЕРХУ --- */
.hamburger-btn {
    position: fixed !important; /* Фиксируем намертво */
    top: 20px !important;       /* Отступ сверху */
    left: 20px !important;      /* Отступ слева */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;              /* Поверх всего */
    padding: 0;
    margin: 0;
}

/* --- ГЛАВНОЕ: КОНТЕНТ ПО ЦЕНТРУ --- */
.main-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;        /* Центр по горизонтали */
    justify-content: center;    /* Центр по вертикали */
    min-height: 100vh;          /* Высота во весь экран */
    width: 100%;
    padding: 20px;
    padding-top: 60px;          /* Чтобы не наезжало на кнопку на мобильных */
}

/* Контейнер (белая/серая карточка) */
.container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: auto;               /* Дополнительная центровка */
}

/* --- ОСТАЛЬНЫЕ СТИЛИ (НЕ МЕНЯЛИСЬ) --- */
.sidebar {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 999;
    top: 0;
    left: -280px;
    background-color: var(--sidebar-bg);
    padding-top: 80px;
    transition: 0.4s;
    border-right: 1px solid #333;
}
.sidebar.active { left: 0; }

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 900;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

.user-info-panel { padding: 0 25px 20px; border-bottom: 1px solid #333; margin-bottom: 30px; }
.sidebar a { padding: 15px 25px; text-decoration: none; font-size: 1.1rem; color: #aaa; display: block; border-left: 3px solid transparent; }
.sidebar a:hover { color: #fff; background: #222; border-left: 3px solid var(--kaspi-red); }

h1, h2 { margin: 0 0 20px; font-weight: 800; }
.highlight { color: var(--kaspi-red); }
input { width: 100%; padding: 15px; margin: 8px 0; border: 2px solid #333; border-radius: 12px; background: #0f0f0f; color: white; outline: none; }
input:focus { border-color: var(--kaspi-red); }
.btn, button[type="submit"] { display: block; width: 100%; padding: 15px; background: var(--kaspi-red); color: white; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.btn:hover { background: var(--kaspi-red-hover); }
.badge { background: #ffd700; color: black; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; margin-left: 10px; }
.link { color: #888; text-decoration: none; font-size: 0.9rem; margin-top: 20px; display: inline-block; }
.alert { border: 1px solid #f14635; color: #f14635; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
