/* ============ ТЕМЫ ============ */
:root {
    --bg: #f4f4f5;
    --text: #1a1a1a;
    --panel: #ffffff;
    --panel-2: #fafafa;
    --border: #e3e3e6;
    --border-soft: #eeeeee;
    --muted: #6b6b6b;
    --code-bg: #ececee;
    --accent: #005AFF;
    --accent-2: #0047cc;
    --accent-soft: #e8f0ff;
    --nick: #2f7dff;
}

/* Тёмная палитра — явный выбор */
:root[data-theme="dark"] {
    --bg: #0f1115;
    --text: #e6e7ea;
    --panel: #1b1e24;
    --panel-2: #22262e;
    --border: #2c313a;
    --border-soft: #23272f;
    --muted: #8a8d94;
    --code-bg: #262b33;
}

/* Системная тема (атрибут не выставлен) → следуем за ОС */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0f1115;
        --text: #e6e7ea;
        --panel: #1b1e24;
        --panel-2: #22262e;
        --border: #2c313a;
        --border-soft: #23272f;
        --muted: #8a8d94;
        --code-bg: #262b33;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============ РАСКЛАДКА ============ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- САЙДБАР (всегда тёмный) ---------- */
.sidebar {
    width: 220px;
    background: #16181c;
    padding: 1rem 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 16px;
    margin-bottom: 12px;
}

.logo-logout {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(217, 83, 79, 0.12);
    color: #f28b87;
    font-weight: 500;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.logo-logout:hover {
    background: #d9534f;
    color: #fff;
}

.logo-logout::before {
    content: "⏻";
    font-size: 13px;
    line-height: 1;
}

.sidebar-logo .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 13px;
}

.sidebar-logo span {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-section {
    padding: 0 12px;
    flex: 1;
}

.sidebar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nick);
    font-size: 11px;
    font-weight: 700;
    margin: 18px 0 8px 10px;
    padding-top: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--nick);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.sidebar-label:first-child {
    margin-top: 0;
    padding-top: 0;
}

.sidebar-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nick);
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #a8a9ac;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    background: #1f2126;
    color: #fff;
}

.nav-item.active {
    background: var(--accent);
    color: var(--accent-soft);
    font-weight: 500;
}

.nav-item.active:hover {
    background: var(--accent);
}

/* ---------- ВЫПАДАЮЩЕЕ МЕНЮ ---------- */
.has-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chevron {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.chevron.open {
    transform: rotate(90deg);
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 14px;
    margin-top: 2px;
    overflow: hidden;
}

.submenu.open {
    display: flex;
}

.submenu .nav-item {
    font-size: 13px;
    padding: 8px 10px;
}

/* ---------- БЛОК ЮЗЕРА ---------- */
.sidebar-user {
    padding: 0 16px 14px;
    margin-bottom: 8px;
    color: #a8a9ac;
    font-size: 12px;
}

.sidebar-user .u-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-user .uname {
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user .badge {
    background: var(--accent);
    color: var(--accent-soft);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 5px;
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-user .badge-owner {
    background: #8a6d1f;
    color: #fdf3d6;
}

.sidebar-user a {
    color: var(--nick);
}

.sidebar-user .u-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    font-size: 11px;
    color: #7a7c82;
}

.sidebar-user .u-row .u-val {
    color: var(--nick);
    font-weight: 500;
    text-align: right;
}

.sidebar-user .u-logout {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0.5px solid #2a2d33;
}

.sidebar-user .u-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(217, 83, 79, 0.12);
    color: #f28b87;
    font-weight: 500;
    font-size: 12px;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-user .u-logout a:hover {
    background: #d9534f;
    color: #fff;
}

.sidebar-user .u-logout a::before {
    content: "⏻";
    font-size: 13px;
    line-height: 1;
}

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ---------- */
.sidebar-footer {
    padding: 10px 14px 4px;
}

.theme-switch {
    display: flex;
    gap: 4px;
}

.theme-switch button {
    flex: 1;
    font-size: 10px;
    padding: 5px 4px;
    border: 0;
    border-radius: 6px;
    background: #1f2126;
    color: #a8a9ac;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.theme-switch button:hover {
    background: #2a2d33;
    color: #fff;
}

.theme-switch button.active {
    background: var(--accent);
    color: var(--accent-soft);
}

/* ---------- КОНТЕНТ ---------- */
.content {
    flex: 1;
    padding: 1.5rem 2rem;
}

.content h1 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.placeholder {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- ТАБЛИЦА ЛОГОВ ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 0.5px solid var(--border);
    color: var(--muted);
    font-weight: 400;
}

td {
    padding: 8px 6px;
    border-bottom: 0.5px solid var(--border-soft);
}

.nick {
    color: var(--nick);
    font-weight: 500;
}

.tag {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 5px;
}

.tag-green {
    background: #e3f5ea;
    color: #1e7a45;
}

.tag-red {
    background: #fae3e3;
    color: #c0392b;
}

code {
    background: var(--code-bg);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
}

/* ---------- ТУЛБАР (поиск) ---------- */
.toolbar {
    display: flex;
    gap: 8px;
    margin: 4px 0 8px;
}

.toolbar input[type=text] {
    flex: 1;
    max-width: 280px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
}

.toolbar input[type=text]:focus {
    outline: none;
    border-color: var(--accent);
}

.toolbar button {
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-soft);
    cursor: pointer;
    font-size: 13px;
}

.toolbar button:hover {
    background: var(--accent-2);
}

/* ============ ФОРМЫ ВХОДА / РЕГИСТРАЦИИ ============ */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 360px;
    background: var(--panel);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-logo .icon-box {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 14px;
}

.auth-logo span {
    font-size: 16px;
    font-weight: 600;
}

.auth-box h1 {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 18px;
    color: var(--muted);
}

.auth-box label {
    display: block;
    margin-bottom: 13px;
    font-size: 13px;
    color: var(--muted);
}

.auth-box input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--panel);
}

.auth-box button {
    width: 100%;
    padding: 11px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-soft);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.auth-box button:hover {
    background: var(--accent-2);
}

.error {
    background: #fae3e3;
    color: #c0392b;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.success {
    background: #dff5e6;
    color: #1f7a3f;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    margin-top: 14px;
}

.muted a {
    color: var(--accent);
    font-weight: 500;
}

/* ============ ПРОФИЛЬ ============ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-avatar.admin {
    background: linear-gradient(135deg, #005AFF, #00307f);
}

.profile-avatar.player {
    background: linear-gradient(135deg, #4a5568, #262b33);
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-name-row .nick {
    font-size: 18px;
    font-weight: 500;
}

.badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.badge.online {
    background: #e3f5ec;
    color: #1d9e75;
}

.badge.admin-level {
    background: #1c2d4d;
    color: #7fb0ff;
}

.profile-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.card {
    background: var(--panel);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.metric-box {
    background: var(--panel);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 20px;
    font-weight: 500;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
    margin-bottom: 0;
}

.row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.inventory-slot {
    position: relative;
    background: var(--panel-2);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
    padding: 6px 4px;
}

.inventory-slot .inv-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.inventory-slot .inv-name {
    color: var(--text);
    line-height: 1.15;
}

.inventory-slot .inv-caption {
    margin-top: 4px;
    color: var(--nick);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.inventory-slot .inv-amount {
    position: absolute;
    right: 3px;
    top: 3px;
    background: var(--accent);
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 9px;
    padding: 0 4px;
    border-radius: 5px;
}

/* ---------- ВКЛАДКИ ПРОФИЛЯ ---------- */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.tabs .tab {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
}

/* ---------- НОМЕРНОЙ ЗНАК ---------- */
.plate {
    position: relative;
    display: inline-block;
    width: 132px;
    height: 33px;
    /* 4:1, как 512x128 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Текст номера — общий holder (только шрифт/цвет) */
.plate .plate-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: 700;
    font-size: 11px;
    color: #111;
    line-height: 1;
    white-space: nowrap;
}

/* Номер и регион позиционируются НЕЗАВИСИМО (без обрезки) */
.plate .plate-main,
.plate .plate-region {
    position: absolute;
    top: 6%;
    bottom: 26%;
    display: flex;
    align-items: center;
}

.plate .plate-main {
    left: 4%;
    letter-spacing: 0.5px;
}

.plate .plate-region {
    right: 29%;
}

/* кастом без региона — номер по центру */
.plate--custom .plate-main {
    left: 4%;
    right: 12%;
    justify-content: center;
}

/* ===== Настройки под каждый тип =====
   Для каждого можно крутить:
     left/right       — лево-право
     top/bottom       — выше-ниже
     font-size        — размер букв
     letter-spacing   — расстояние между буквами (растянуть/сжать)
*/

/* РФ */
.plate--rus .plate-main {
    left: 7%;
    top: 17%;
    bottom: 26%;
    font-size: 17px;
    letter-spacing: 4.5px;
}

.plate--rus .plate-region {
    right: 8%;
    top: 4%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Казахстан */
.plate--kz .plate-main {
    left: 26%;
    top: 17%;
    bottom: 26%;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.plate--kz .plate-region {
    right: 7%;
    top: 19%;
    bottom: 26%;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Беларусь */
.plate--by .plate-main {
    left: 21%;
    top: 14%;
    bottom: 26%;
    font-size: 19px;
    letter-spacing: 0.5px;
}

.plate--by .plate-region {
    right: 29%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Украина */
.plate--ua .plate-main {
    left: 14%;
    top: 17%;
    bottom: 26%;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.plate--ua .plate-region {
    right: 29%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Кастомный (без региона) */
.plate--custom .plate-main {
    left: 11%;
    right: 12%;
    top: 15%;
    bottom: 26%;
    font-size: 19px;
    letter-spacing: 0.5px;
}

/* Полиция */
.plate--police .plate-main {
    left: 4%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.plate--police .plate-region {
    right: 29%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Такси */
.plate--taxi .plate-main {
    left: 4%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.plate--taxi .plate-region {
    right: 29%;
    top: 6%;
    bottom: 26%;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.moderation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.moderation-grid .mod-value {
    font-size: 18px;
    font-weight: 500;
}

.moderation-grid .mod-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ---------- КОНСОЛЬ СЕРВЕРА ---------- */
.console-wrap {
    background: #10131f;
    border: 1px solid #262a3d;
    border-radius: 10px;
    overflow: hidden;
}

.console-output {
    height: 500px;
    overflow-y: auto;
    padding: 12px 14px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.55;
}

.console-line {
    color: #4fd67a;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-line.l-cmd   { color: #f2f4f8; font-weight: 600; }
.console-line.l-warn  { color: #e8c547; }
.console-line.l-error { color: #ff6b6b; }
.console-line.l-muted { color: #6b7280; }

.console-line .c-time     { color: #6b7fa3; }
.console-line .c-info     { color: #5b9bff; }
.console-line .c-warn-tag { color: #e8c547; font-weight: 600; }
.console-line .c-error-tag{ color: #ff6b6b; font-weight: 600; }

.console-line.l-hidden { display: none; }
.console-line.l-match  { background: rgba(232, 197, 71, 0.12); border-radius: 3px; }

.console-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #262a3d;
    background: #151830;
}

.console-prompt {
    color: #4fd67a;
    font-family: monospace;
    font-size: 15px;
}

.console-input {
    flex: 1;
    background: #0c0e18;
    border: 1px solid #2a2e45;
    border-radius: 6px;
    color: #e6e7ea;
    padding: 8px 10px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

.console-input:focus {
    outline: none;
    border-color: #4fd67a;
}

.console-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.console-btn-send  { background: #27ae60; color: #fff; }
.console-btn-send:hover { background: #219150; }

.console-btn-ghost { background: #262a3d; color: #c7cad6; }
.console-btn-ghost:hover { background: #30354d; }

.console-btn-icon {
    background: #262a3d;
    color: #c7cad6;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1;
}
.console-btn-icon:hover { background: #30354d; }

.console-search-bar[hidden] {
    display: none;
}

.console-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #262a3d;
    background: #151830;
}

.console-footer {
    padding: 8px 14px;
    border-top: 1px solid #262a3d;
    background: #10131f;
}

.console-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8a8d94;
    cursor: pointer;
    user-select: none;
}

.console-switch input {
    display: none;
}

.console-switch-track {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #3a3f5a;
    position: relative;
    transition: background 0.15s ease;
}

.console-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.console-switch input:checked + .console-switch-track {
    background: #27ae60;
}

.console-switch input:checked + .console-switch-track .console-switch-thumb {
    transform: translateX(16px);
}

/* ---------- ПЛАШКА СО СПИСКОМ RCON-КОМАНД ---------- */
.console-help-overlay[hidden] {
    display: none;
}

.console-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 12, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.console-help-box {
    background: #14172a;
    border: 1px solid #262a3d;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.console-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #262a3d;
}

.console-help-head h2 {
    margin: 0;
    font-size: 18px;
    color: #f2f4f8;
}

.console-help-x {
    background: none;
    border: none;
    color: #8a8d94;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.console-help-x:hover {
    background: #262a3d;
    color: #fff;
}

.console-help-body {
    overflow-y: auto;
    padding: 6px 20px;
}

.console-help-cat {
    color: var(--nick);
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 18px 0 10px;
}

.console-help-cmd {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #c7cad6;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.5;
}

.console-help-cmd:hover {
    background: #1c2036;
}

.console-help-cmd code {
    color: #5b9bff;
    font-weight: 600;
}

.console-help-cmd b {
    color: #5fbf6f;
    font-weight: 600;
}

.console-help-cmd.console-help-blocked {
    cursor: not-allowed;
    opacity: 0.55;
}

.console-help-cmd.console-help-blocked:hover {
    background: none;
}

.console-help-cmd.console-help-blocked code {
    color: #8a8d94;
    text-decoration: line-through;
}

.console-help-badge {
    display: inline-block;
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
    font-family: inherit;
}

/* ---------- ПРОВЕРКА НА МУЛЬТИ-АККАУНТЫ ---------- */
.btn-check-multi {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
}

.btn-check-multi:hover {
    background: var(--accent-2);
}

.match-badge {
    display: inline-block;
    background: rgba(232, 197, 71, 0.15);
    color: #b8860b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.match-badge-ok {
    background: rgba(39, 174, 96, 0.15);
    color: #1f7a3f;
}

.match-badge-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #c0392b;
}

/* ---------- ГРАФИК ЭКОНОМИКИ (combo: столбцы + линия) ---------- */
.stat-combo {
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 16px 18px 10px;
}

.stat-combo-totals {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.stat-combo-totals small {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}

.stat-combo-total-income { color: #5b9bff; }
.stat-combo-total-outcome { color: #ec4899; }

.stat-combo-body {
    display: flex;
    gap: 10px;
}

.stat-combo-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    padding-bottom: 20px;
    font-size: 10px;
    color: var(--muted);
    text-align: right;
    min-width: 34px;
}

.stat-combo-plot {
    flex: 1;
    min-width: 0;
}

.stat-combo-svg {
    width: 100%;
    height: 180px;
    display: block;
    overflow: visible;
}

.stat-combo-grid {
    stroke: var(--border-soft);
    stroke-width: 0.3;
    vector-effect: non-scaling-stroke;
}

.stat-combo-bar {
    transition: opacity 0.15s;
}

.stat-combo-bar:hover {
    opacity: 0.8;
}

.stat-combo-line {
    fill: none;
    stroke: #ec4899;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.stat-combo-dot {
    fill: #ec4899;
    stroke: #1b1e24;
    stroke-width: 0.6;
    vector-effect: non-scaling-stroke;
}

.stat-combo-xaxis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.stat-combo-xaxis span {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.stat-combo-legend-income {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(180deg, #5b9bff, #0047cc);
}

.stat-combo-legend-outcome {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ec4899;
}

/* ---------- ГРАФИК СТАТИСТИКИ (bar chart) ---------- */
.stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    margin-top: 10px;
    padding-top: 10px;
}

.stat-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.stat-chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    justify-content: center;
}

.stat-chart-bar {
    width: 8px;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}

.stat-chart-bar-cases {
    background: var(--accent);
}

.stat-chart-bar-cont {
    background: #e8a23a;
}

.stat-chart-label {
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.stat-chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--muted);
}

.stat-chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* ---------- ПАГИНАЦИЯ ЛОГОВ ---------- */
.log-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.log-pagination .per-page-form {
    display: flex;
    align-items: center;
}

.log-pagination select {
    margin-left: 6px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
}

.pager-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pager-nav a {
    color: var(--nick);
    text-decoration: none;
}

.pager-nav a:hover {
    text-decoration: underline;
}

.pager-nav .pager-disabled {
    color: var(--muted);
    opacity: 0.5;
}