* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Segoe UI', monospace;
    min-height: 100vh;
}

.back-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(17,17,17,0.9);
    color: #888;
    border: 1px solid #2e2e2e;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.back-btn:hover {
    color: #e8e8e8;
    border-color: #444;
    background: rgba(30,30,30,0.95);
}
.back-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ─── Login screen ──────────────────────────────────────────────────────────── */

#loginScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

/* Анимированная сетка на фоне */
#loginScreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(90, 122, 154, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 122, 154, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    animation: gridPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1;   }
}

/* Свечение позади карточки */
#loginScreen::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(90, 122, 154, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 1;   }
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(17, 17, 17, 0.92);
    border: 1px solid #222;
    border-radius: 20px;
    padding: 44px 40px 36px;
    width: 360px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 24px 64px rgba(0, 0, 0, 0.6);
    animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: border-color 0.3s, box-shadow 0.3s;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Иконка */
.login-icon {
    width: 52px;
    height: 52px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px;
    transition: transform 0.3s;
}

.login-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.login-card p {
    font-size: 12px;
    color: #444;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Хинт об истёкшей сессии */
#loginHint {
    display: none;
    background: rgba(170, 136, 0, 0.1);
    border: 1px solid rgba(170, 136, 0, 0.25);
    border-radius: 8px;
    color: #aa8800;
    font-size: 12px;
    padding: 9px 13px;
    margin-bottom: 18px;
    text-align: left;
    line-height: 1.4;
}

#loginHint::before { content: '⚠  '; }

/* Футер под виджетом */
.login-footer {
    margin-top: 20px;
    color: #2e2e2e;
    font-size: 11px;
}

/* Состояние загрузки: иконка крутится */
.login-card[data-state="loading"] .login-icon {
    animation: spin 1s linear infinite;
}

/* Состояние ошибки: красная рамка */
.login-card[data-state="error"] {
    border-color: #3a1a1a;
    box-shadow:
        0 0 0 1px rgba(239, 68, 68, 0.05),
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(239, 68, 68, 0.08);
}

/* Устаревший класс, оставлен для совместимости */
.error-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 10px;
    display: none;
}

/* ─── Main screen ───────────────────────────────────────────────────────────── */

#mainScreen { display: none; }

/* ─── Topbar ────────────────────────────────────────────────────────────────── */

.topbar {
    background: #0f0f0f;
    border-bottom: 1px solid #1f1f1f;
    padding: 0 28px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar h1 {
    font-size: 13px;
    font-weight: 600;
    color: #c8c8c8;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar h1::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4a8abf;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(74, 138, 191, 0.12);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 138, 191, 0.1); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 138, 191, 0.2); }
}

.badge {
    background: #161616;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #484848;
    font-variant-numeric: tabular-nums;
}

.admin-mode-badge {
    background: rgba(160, 120, 0, 0.1);
    border: 1px solid rgba(160, 120, 0, 0.25);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #a07800;
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    background: #080808;
    border: 1px solid #222;
    border-radius: 7px;
    padding: 7px 14px;
    color: #bbb;
    font-size: 13px;
    outline: none;
    width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: #2a4a6a;
    box-shadow: 0 0 0 3px rgba(42, 74, 106, 0.15);
}

.search-input::placeholder { color: #333; }

.btn {
    background: #141414;
    border: 1px solid #252525;
    color: #666;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn:hover { background: #1e1e1e; color: #ccc; border-color: #333; }
.btn:active { transform: scale(0.97); }

.btn-logout {
    background: transparent;
    border: 1px solid rgba(180, 30, 30, 0.2);
    color: rgba(180, 30, 30, 0.5);
}

.btn-logout:hover {
    background: rgba(180, 30, 30, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* ─── Stats ─────────────────────────────────────────────────────────────────── */

.stats {
    display: flex;
    gap: 12px;
    padding: 20px 28px 0;
}

.stat {
    background: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

/* Цветная точка-акцент в правом верхнем углу */
.stat:first-child::after {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 5px; height: 5px;
    background: #4a8abf;
    border-radius: 50%;
    opacity: 0.5;
}

.stat:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 5px; height: 5px;
    background: #4a8a4a;
    border-radius: 50%;
    opacity: 0.5;
}

.stat-val {
    font-size: 28px;
    font-weight: 700;
    color: #e8e8e8;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 10px;
    color: #383838;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Info bar ──────────────────────────────────────────────────────────────── */

.info-bar {
    padding: 10px 28px;
    font-size: 11px;
    color: #303030;
    border-bottom: 1px solid #111;
}

/* ─── Table ─────────────────────────────────────────────────────────────────── */

.table-wrap {
    padding: 0 0 40px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead tr {
    background: #0a0a0a;
}

thead th {
    text-align: left;
    padding: 10px 20px;
    color: #333;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid #161616;
    border-top: 1px solid #111;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

thead th:hover { color: #777; background: #0d0d0d; }
thead th.sorted { color: #4a8abf; }

.sort-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px;
    opacity: 0.6;
}

tbody tr {
    border-bottom: 1px solid #111;
    transition: background 0.1s;
}

tbody tr:hover {
    background: #0e0e0e;
}

tbody td {
    padding: 12px 20px;
    color: #888;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td.vkid {
    color: #444;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    width: 110px;
}

td.vkid .vkid-link {
    color: #5a85a8;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
    font-weight: 500;
}

td.vkid .vkid-link:hover { color: #7ab0d8; }

.admin-mode td.vkid .vkid-link { color: #8a7030; }
.admin-mode td.vkid .vkid-link:hover { color: #c8a840; }

td.text {
    color: #c0c0c0;
    white-space: normal;
    line-height: 1.45;
    min-width: 160px;
}

td.cmd {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: #5888a8;
    font-size: 11.5px;
    white-space: nowrap;
}

td.activity {
    color: #363636;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

td.admintext {
    color: #5a5020;
    font-size: 11.5px;
    font-family: monospace;
    white-space: normal;
    word-break: break-word;
    max-width: 240px;
}

/* ─── Badges ────────────────────────────────────────────────────────────────── */

.admin-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.admin-0 { background: #0e0e0e; color: #2a2a2a; }
.admin-1 { background: rgba(74, 138, 74, 0.08);  color: #3a7a3a; border: 1px solid rgba(74, 138, 74, 0.15); }
.admin-2 { background: rgba(74, 74, 154, 0.08);  color: #3a3a8a; border: 1px solid rgba(74, 74, 154, 0.15); }
.admin-3 { background: rgba(154, 74, 74, 0.08);  color: #8a3a3a; border: 1px solid rgba(154, 74, 74, 0.15); }
.admin-4 { background: rgba(160, 120, 0, 0.08);  color: #806000; border: 1px solid rgba(160, 120, 0, 0.18); }

/* ─── State / spinner ───────────────────────────────────────────────────────── */

.state-msg {
    text-align: center;
    padding: 80px 0;
    color: #2e2e2e;
    font-size: 13px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #1a1a1a;
    border-top-color: #4a8abf;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Modal ─────────────────────────────────────────────────────────────────── */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    width: 440px;
    max-width: calc(100vw - 32px);
    padding: 26px;
    position: relative;
    animation: modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
}

@keyframes modal-in {
    from { transform: scale(0.96) translateY(10px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: #161616;
    border: 1px solid #222;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: #1e1e1e; color: #ccc; border-color: #333; }

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 32px;
}

.modal-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #141414;
    border: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #ddd;
}

.modal-sub {
    font-size: 12px;
    color: #3a3a3a;
    margin-top: 3px;
}

.modal-section { margin-bottom: 18px; }

.modal-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2a2a2a;
    margin-bottom: 8px;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.modal-btn {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 10px 12px;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover { background: #181818; color: #ccc; border-color: #2a2a2a; }
.modal-btn:active { transform: scale(0.98); }

.modal-btn.danger  { border-color: rgba(180, 30, 30, 0.2);  color: rgba(180, 30, 30, 0.5); }
.modal-btn.danger:hover  { background: rgba(180, 30, 30, 0.06); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

.modal-btn.success { border-color: rgba(30, 130, 30, 0.2);  color: rgba(30, 130, 30, 0.5); }
.modal-btn.success:hover { background: rgba(30, 130, 30, 0.06); color: #4aaa4a; border-color: rgba(74, 170, 74, 0.3); }

.modal-btn.warning { border-color: rgba(160, 130, 0, 0.2);  color: rgba(160, 130, 0, 0.5); }
.modal-btn.warning:hover { background: rgba(160, 130, 0, 0.06); color: #c8a830; border-color: rgba(200, 168, 48, 0.3); }

.modal-btn.primary { border-color: rgba(74, 138, 191, 0.2); color: rgba(74, 138, 191, 0.5); }
.modal-btn.primary:hover { background: rgba(74, 138, 191, 0.06); color: #5a9acf; border-color: rgba(90, 154, 207, 0.3); }

.modal-btn .icon { font-size: 13px; }

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 18px;
}

.modal-info-item {
    background: #0a0a0a;
    border: 1px solid #161616;
    border-radius: 8px;
    padding: 9px 12px;
}

.modal-info-key { font-size: 10px; color: #2e2e2e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-info-val { font-size: 13px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-admintext {
    background: #0a0900;
    border: 1px solid rgba(120, 110, 0, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: monospace;
    font-size: 12px;
    color: #6a6818;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 18px;
    max-height: 120px;
    overflow-y: auto;
}

.modal-input {
    width: 100%;
    background: #080808;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 9px 13px;
    color: #ccc;
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Segoe UI', monospace;
}

.modal-input:focus {
    border-color: #2a4a6a;
    box-shadow: 0 0 0 3px rgba(42, 74, 106, 0.12);
}
.modal-input::placeholder { color: #222; }

.modal-send-row {
    display: flex;
    gap: 7px;
}

.modal-send-row .modal-input { margin-bottom: 0; flex: 1; }

.modal-send-btn {
    background: rgba(74, 138, 191, 0.1);
    border: 1px solid rgba(74, 138, 191, 0.2);
    color: #4a8abf;
    border-radius: 8px;
    padding: 9px 15px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.modal-send-btn:hover {
    background: rgba(74, 138, 191, 0.15);
    color: #7abfef;
    border-color: rgba(74, 138, 191, 0.35);
}

.modal-feedback {
    font-size: 11px;
    margin-top: 7px;
    min-height: 16px;
    color: #2e2e2e;
    transition: color 0.2s;
}

.modal-feedback.ok  { color: #3a7a3a; }
.modal-feedback.err { color: #7a3a3a; }

.admin-level-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.level-btn {
    background: #0e0e0e;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
}

.level-btn:hover { border-color: #2a2a2a; color: #888; }
.level-btn.active {
    border-color: rgba(74, 138, 191, 0.4);
    color: #5a9acf;
    background: rgba(74, 138, 191, 0.08);
}

.divider {
    border: none;
    border-top: 1px solid #141414;
    margin: 14px 0;
}

/* ─── Media queries ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .login-card { width: calc(100vw - 40px); padding: 32px 24px; border-radius: 16px; }
    #loginScreen::before, #loginScreen::after { display: none; }

    /* Topbar */
    .topbar {
        height: auto;
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .topbar-left { justify-content: space-between; align-items: center; }
    .topbar h1 { font-size: 13px; }
    .topbar h1::before { width: 5px; height: 5px; }
    .topbar-right { flex-wrap: wrap; gap: 6px; }
    .search-input { width: 100%; flex: 1 1 100%; order: -1; font-size: 14px; }
    .search-input:focus { width: 100%; box-shadow: none; }
    .btn { flex: 1; text-align: center; padding: 8px 6px; font-size: 11px; min-width: 0; }
    .admin-mode-badge { font-size: 10px; padding: 2px 6px; }

    /* Stats */
    .stats { padding: 14px 14px 0; gap: 8px; flex-wrap: wrap; }
    .stat { min-width: calc(50% - 4px); flex: 1; padding: 12px 14px; }
    .stat-val { font-size: 22px; }
    .stat-label { font-size: 10px; }

    /* Info bar */
    .info-bar { padding: 8px 14px; font-size: 10px; }

    /* Table → Cards на мобиле */
    .table-wrap { padding: 10px 12px 32px; overflow-x: visible; }

    table { min-width: unset; width: 100%; font-size: 13px; }

    /* Прячем шапку */
    thead { display: none; }

    /* tbody как список карточек */
    tbody { display: block; }

    /* Каждая строка = карточка */
    tbody tr {
        display: block;
        background: #0d0d0d;
        border: 1px solid #1a1a1a;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 8px;
        border-bottom: 1px solid #1a1a1a;
    }
    tbody tr:hover { background: #0f0f0f; }

    /* Все ячейки — блочные, без отступов */
    tbody td {
        display: block;
        padding: 0;
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        border: none;
    }

    /* VKID — шапка карточки */
    td.vkid { font-size: 12px; margin-bottom: 6px; }

    /* Текст — главный контент карточки */
    td.text {
        font-size: 13px;
        color: #c0c0c0;
        line-height: 1.5;
        margin-bottom: 8px;
        white-space: normal;
        word-break: break-word;
    }

    /* Команда и активность — в одну строку внизу */
    td.cmd, td.activity {
        display: inline-block;
        font-size: 11px;
        margin-top: 2px;
    }
    td.cmd { color: #4a6a8a; margin-right: 10px; }
    td.cmd::before { content: '⌘  '; opacity: 0.4; }
    td.activity { color: #333; }
    td.activity::before { content: '◷  '; opacity: 0.4; }

    /* Админ-текст */
    td.admintext {
        display: block;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        font-size: 11px;
        line-height: 1.5;
        margin-top: 6px;
        padding: 6px 8px;
        background: #0a0900;
        border-radius: 6px;
        border: 1px solid rgba(120, 110, 0, 0.1);
    }

    /* Modal: bottom sheet */
    .modal-overlay { align-items: flex-end; }
    .modal {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px 36px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-close { top: 12px; right: 12px; }
    .modal-header { margin-bottom: 14px; gap: 10px; padding-right: 34px; }
    .modal-avatar { width: 38px; height: 38px; font-size: 17px; }
    .modal-title { font-size: 14px; }
    .modal-sub { font-size: 11px; }
    .modal-info-grid { gap: 5px; margin-bottom: 14px; }
    .modal-actions { gap: 5px; }
    .modal-btn { padding: 11px 10px; font-size: 12px; }
    .level-btn { padding: 8px 10px; font-size: 11px; flex: 1; text-align: center; }
    .admin-level-row { gap: 4px; }
    .modal-send-row { flex-direction: column; gap: 6px; }
    .modal-send-btn { width: 100%; text-align: center; padding: 11px; }
    .divider { margin: 12px 0; }
    .modal-section { margin-bottom: 14px; }
    .modal-section-label { margin-bottom: 6px; }
}

.vk-name {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.vk-name--subtle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

/* ─── Error modal ───────────────────────────────────────────────────────────── */

.error-modal {
    width: 360px;
    max-width: 90vw;
    background: #0f0f0f;
    border: 1px solid rgba(180, 30, 30, 0.25);
    box-shadow: 0 0 40px rgba(180, 30, 30, 0.08), 0 24px 80px rgba(0,0,0,0.8);
}

.error-modal .modal-title { color: #c83030; }
.error-modal .modal-sub   { color: #6a2828; }

.error-modal .modal-avatar {
    background: #160808;
    border-color: rgba(180, 30, 30, 0.2);
}

.error-modal .modal-info-val { color: #c83030; font-weight: 500; }

@media (max-width: 480px) {
    .error-modal { width: 94vw; padding: 20px 16px; }
}