@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sofia+Sans:wght@800;900&display=swap');

:root {
    --bg-dark: #09090b;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-panel: rgba(9, 9, 11, 0.95);
    --glass-hover: rgba(255, 255, 255, 0.05);
    --radius: 16px;
    --modal-bg: #121214;
    --modal-sidebar: #0e0e10;
    --input-bg: #18181b;
    
    --lvl-1: #06b6d4; --lvl-2: #3b82f6; --lvl-3: #f59e0b; --lvl-4: #22c55e;
    --lvl-5: #a855f7; --lvl-6: #fb72a4; --lvl-7: #ef4444;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

* { scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at top left, #172554 0%, transparent 40%),
        radial-gradient(circle at bottom right, #1e1b4b 0%, transparent 40%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    display: block;
    min-height: 100vh;
    font-size: 14px;
    overflow-x: hidden;
}

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

.btn-modern {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: poInter;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}
.btn-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5); }
.btn-modern.secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); box-shadow: none; color: #e4e4e7; }
.btn-modern.secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }

.sidebar {
    width: 250px; background-color: var(--glass-panel); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; position: fixed; height: 100%; left: 0; top: 0; z-index: 50;
    padding: 16px 12px; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: visible; 
}
.sidebar-toggle {
    position: absolute; right: -12px; top: 24px; width: 24px; height: 24px;
    background-color: #18181b; border: 1px solid var(--border-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: poInter; color: var(--text-muted);
    transition: 0.3s; z-index: 100;
}
.sidebar-toggle:hover { color: white; border-color: var(--primary); }
.sidebar-toggle i { font-size: 12px; transition: 0.3s; }
body.sidebar-collapsed .sidebar-toggle i { transform: rotate(180deg); }

.brand {
    font-size: 16px; font-weight: 700; color: var(--text-main);
    display: flex; align-items: center; margin-bottom: 20px; padding-left: 10px;
    white-space: nowrap; overflow: hidden; height: 30px;
}
.brand i { color: var(--primary); margin-right: 12px; min-width: 24px; font-size: 18px; }

.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    padding: 0 12px; display: flex; align-items: center; color: var(--text-muted); font-weight: 500; font-size: 13px;
    border-radius: 8px; transition: 0.2s; border: 1px solid transparent;
    white-space: nowrap; overflow: hidden; height: 38px; position: relative;
}
.nav-item i { width: 24px; display: flex; justify-content: center; font-size: 16px; margin-right: 10px; flex-shrink: 0; }
.nav-item:hover { background-color: var(--glass-hover); color: var(--text-main); }
.nav-item.active { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }

.badge-count {
    position: absolute; right: 10px; background: #ef4444; color: white;
    font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 8px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
body.sidebar-collapsed .badge-count { top: 5px; right: 5px; width: 6px; height: 6px; padding: 0; border-radius: 50%; text-indent: -9999px; }

.sidebar-footer { margin-top: auto; padding-top: 15px;  border-top: 1px solid var(--border-color); position: relative; }
.nav-separator { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 6px 0; width: 100%; flex-shrink: 0; }

body.sidebar-collapsed .sidebar { width: 70px; padding: 16px 10px; }
body.sidebar-collapsed .main-content { margin-left: 70px; width: auto; }
body.sidebar-collapsed .brand span, body.sidebar-collapsed .nav-item span, body.sidebar-collapsed .user-info-text, body.sidebar-collapsed .btn span { display: none !important; }
body.sidebar-collapsed .nav-item, body.sidebar-collapsed .brand, body.sidebar-collapsed .user-meta { justify-content: flex-start; }
body.sidebar-collapsed .btn { justify-content: center; padding: 10px; } 
body.sidebar-collapsed .nav-item i, body.sidebar-collapsed .brand i { margin-right: 0; width: 100%; }

body.sidebar-collapsed .user-meta:hover .user-info-text {
    display: block !important; position: absolute; left: 55px; bottom: 40px;
    background: #18181b; border: 1px solid var(--border-color); padding: 10px 14px;
    border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); z-index: 1000; min-width: 140px; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }

/* Top Navigation Bar */
.topbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 60px;
    background-color: var(--glass-panel);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 40px;
    z-index: 40;
    backdrop-filter: blur(10px);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .topbar {
    left: 70px;
}

/* Колокольчик уведомлений в topbar */
.topbar-notifications {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1;
}

.topbar-notifications:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.topbar-notifications i {
    font-size: 18px;
    transition: transform 0.3s;
}

.topbar-notifications:hover i {
    transform: scale(1.1);
}

.topbar-notifications.has-unread i {
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

.topbar-notifications-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    border: 2px solid var(--glass-panel);
    line-height: 1;
}

.topbar-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: poInter;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.topbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.topbar-item:hover::before {
    left: 100%;
}

.topbar-item i {
    font-size: 18px;
    transition: transform 0.3s;
}

.topbar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.topbar-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Battlepass button - Gold/Orange gradient */
.topbar-item.battlepass {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.topbar-item.battlepass:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25));
    border-color: rgba(251, 191, 36, 0.5);
    color: #fcd34d;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    animation: battlepassPulse 2s ease-in-out infinite;
}

@keyframes battlepassPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

/* Cases button - Purple/Blue gradient */
.topbar-item.cases {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.topbar-item.cases:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.25));
    border-color: rgba(168, 85, 247, 0.5);
    color: #c084fc;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    animation: casesShine 2s ease-in-out infinite;
}

@keyframes casesShine {
    0%, 100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
    }
}

/* Marketplace button - Green gradient */
.topbar-item.marketplace {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.topbar-item.marketplace:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.25));
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    animation: marketplacePulse 2s ease-in-out infinite;
}

@keyframes marketplacePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
    }
}

/* Seniority button - Red/Coral gradient */
.topbar-item.seniority {
    background: linear-gradient(135deg, rgba(232, 104, 95, 0.15), rgba(220, 87, 78, 0.15));
    border-color: rgba(232, 104, 95, 0.3);
    color: #e8685f;
    box-shadow: 0 0 20px rgba(232, 104, 95, 0.2);
}

.topbar-item.seniority:hover {
    background: linear-gradient(135deg, rgba(232, 104, 95, 0.25), rgba(220, 87, 78, 0.25));
    border-color: rgba(232, 104, 95, 0.5);
    color: #f0807a;
    box-shadow: 0 0 30px rgba(232, 104, 95, 0.4);
    animation: seniorityPulse 2s ease-in-out infinite;
}

@keyframes seniorityPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(232, 104, 95, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(232, 104, 95, 0.6);
    }
}

.main-content {
    margin-left: 250px; 
    margin-top: 60px;
    width: auto; 
    padding: 30px 40px; 
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-header-container { display: flex; justify-content: center; align-items: center; margin-bottom: 40px; position: relative; min-height: 60px; }
.server-banner {
    display: inline-flex; align-items: center; gap: 16px; background: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(255,255,255,0.08); padding: 16px 40px; border-radius: 50px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5); backdrop-filter: blur(10px); transition: 0.3s;
}
.server-banner:hover { border-color: #3b82f6; box-shadow: 0 10px 40px -5px rgba(59, 130, 246, 0.2); }
.banner-title { font-size: 16px; font-weight: 800; color: #e4e4e7; text-transform: uppercase; letter-spacing: 1px; }
.banner-name {
    font-family: sans-serif; font-size: 24px; font-weight: 900;
    background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3)); letter-spacing: 0.5px;
}

.stats-container { display: flex; gap: 10px; margin-bottom: 30px; align-items: center; flex-wrap: wrap; }
.stat-pill { 
    display: flex; align-items: center; background: #121214; border: 1px solid #27272a; 
    padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #a1a1aa; transition: 0.2s; 
}
.stat-pill:hover { transform: translateY(-2px); border-color: #3f3f46; }
.stat-pill b { margin-left: 8px; color: white; }
.stat-pill.lvl-1 { border-color: rgba(6, 182, 212, 0.3); } .stat-pill.lvl-1 b { color: var(--lvl-1); }
.stat-pill.lvl-2 { border-color: rgba(59, 130, 246, 0.3); } .stat-pill.lvl-2 b { color: var(--lvl-2); }
.stat-pill.lvl-3 { border-color: rgba(245, 158, 11, 0.3); } .stat-pill.lvl-3 b { color: var(--lvl-3); }
.stat-pill.lvl-4 { border-color: rgba(34, 197, 94, 0.3); } .stat-pill.lvl-4 b { color: var(--lvl-4); }
.stat-pill.lvl-5 { border-color: rgba(168, 85, 247, 0.3); } .stat-pill.lvl-5 b { color: var(--lvl-5); }
.stat-pill.lvl-6 { border-color: rgba(251, 114, 164, 0.3); } .stat-pill.lvl-6 b { color: var(--lvl-6); }
.stat-pill.lvl-7 { border-color: rgba(239, 68, 68, 0.3); } .stat-pill.lvl-7 b { color: var(--lvl-7); }
.stat-pill.total { margin-left: auto; background: #27272a; border-color: #3f3f46; color: white; }

.table-wrapper { background: var(--glass-panel); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border-color); }
th { text-align: left; padding: 0 24px; height: 50px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; vertical-align: middle; }
td { padding: 0 24px; height: 72px; border-bottom: 1px solid var(--border-color); vertical-align: middle; color: var(--text-main); }
tr:last-child td { border-bottom: none; }
tr { transition: background 0.2s; }
tr:hover { background-color: var(--glass-hover); }

.user-meta { display: flex; align-items: center; gap: 12px; padding-left: 2px; padding-bottom: 10px; white-space: nowrap; transition: 0.2s; }
td .user-meta { margin-bottom: 0; transform: translateY(3px); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); flex-shrink: 0; object-fit: cover; }
.user-info-text, .user-info div:first-child { font-weight: 600; font-size: 13px; color: var(--text-main); line-height: 1.2; }
.user-info div:last-child { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1; }
.badge { display: inline-flex; justify-content: center; align-items: center; padding: 0 10px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 700; border: 1px solid transparent; }
.punish-group { display: flex; align-items: center; gap: 6px; height: 100%; }
.punish-item { display: flex; align-items: center; justify-content: center; width: 34px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #18181b; border: 1px solid #3f3f46; color: #52525b; cursor: help; }
.punish-item.active-red { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.punish-item.active-orange { border-color: #f97316; color: #f97316; background: rgba(249, 115, 22, 0.1); }
.punish-item.active-yellow { border-color: #eab308; color: #eab308; background: rgba(234, 179, 8, 0.1); }
.punish-item.active-blue { border-color: #3b82f6; color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
td a { display: flex; align-items: center; height: 100%; text-decoration: none; }
.btn { padding: 10px 16px; border-radius: 8px; font-weight: 500; font-size: 13px; cursor: poInter; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.03); color: var(--text-main); transition: 0.3s; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, 0.08); }
.user-card { display: flex; align-items: center; gap: 14px; }
.user-card-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #27272a; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.user-card-info { display: flex; flex-direction: column; gap: 8px; }
.uc-name { font-size: 14px; font-weight: 700; color: #fff; cursor: poInter; display: flex; align-items: center; gap: 4px; }
.uc-name:hover { color: #3b82f6; }
.uc-meta { display: flex; align-items: center; gap: 6px; }
.uc-badge { font-size: 10px; font-weight: 700; background: #18181b; color: #a1a1aa; padding: 2px 6px; border-radius: 4px; border: 1px solid #27272a; }
.uc-badge.prefix { color: #f4f4f5; border-color: #3f3f46; }
.date-cell { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.date-val { color: #e4e4e7; font-weight: 500; }
.tenure-badge-single { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); border: 1px solid #27272a; padding: 6px 12px; border-radius: 8px; min-width: 60px; font-size: 13px; font-weight: 700; color: #fff; }
.tenure-badge-single.highlight { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.05); color: #60a5fa; }

.form-group, .input-group { margin-bottom: 20px; }
.form-group label, .input-group label { display: block; font-size: 11px; font-weight: 700; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; margin-left: 4px; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #71717a; font-size: 16px; transition: 0.3s; poInter-events: none; }

input, select, textarea {
    width: 100%; padding: 14px 16px; 
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color); border-radius: 10px;
    color: white !important; font-size: 14px; transition: 0.2s;
    font-family: 'Inter', sans-serif;
}
textarea { resize: vertical; min-height: 100px; }
.input-wrapper input, .input-wrapper select { padding-left: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: rgba(0, 0, 0, 0.5) !important; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor: poInter; }

.btn-submit {
    width: 100%; padding: 16px; margin-top: 10px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: poInter;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-submit:hover { transform: translateY(-2px); }

.filter-select {
    appearance: none;
    background-color: #121214 !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e7 !important;
    padding: 12px 40px 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: poInter;
    outline: none;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    
    white-space: nowrap;
    width: auto !important;
    min-width: 160px;
}
.filter-select:hover { background-color: #18181b !important; border-color: rgba(255, 255, 255, 0.2); }
.filter-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); background-color: #000 !important; }
.filter-select option { background-color: #18181b; color: #f4f4f5; padding: 10px; }

.forms-container { max-width: 900px; margin: 0 auto; }
.form-item {
    background: rgba(20, 20, 23, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 15px;
    backdrop-filter: blur(10px); margin-bottom: 15px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.fi-header { display: flex; justify-content: space-between; align-items: center; }
.fi-separator { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); width: 100%; margin-top: 5px; margin-bottom: 5px; }
.fi-type { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; }
.type-ban, .type-banip, .type-warn { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.type-jail, .type-mute, .type-gunban { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.type-apunish { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.cmd-display {
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px;
    padding: 14px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: #e4e4e7;
    word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.actions-icons { display: flex; gap: 10px; align-items: center; }
.action-icon { cursor: poInter; color: #71717a; transition: 0.2s; padding: 4px; font-size: 16px; }
.action-icon:hover { color: white; transform: scale(1.1); }
.action-icon.copy:hover { color: #3b82f6; }
.action-icon.view:hover { color: #facc15; }

.notif-container { max-width: 900px; margin: 0 auto; }
.notif-header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.notif-header-title { font-family: 'Sofia Sans', sans-serif; font-size: 20px; font-weight: 800; color: #f4f4f5; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 12px; }
.notif-list { display: flex; flex-direction: column; gap: 15px; }
.notif-item { background: rgba(20, 20, 23, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 18px; padding: 20px 24px; display: flex; gap: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; backdrop-filter: blur(10px); }
.notif-item:hover { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.notif-item.unread { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(59, 130, 246, 0.3); box-shadow: inset 4px 0 0 var(--primary); }
.notif-item.unread .notif-title { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.notif-icon-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; border: 1px solid transparent; }
.notif-info { flex: 1; }
.notif-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.notif-title { font-size: 15px; font-weight: 700; color: #e4e4e7; line-height: 1.3; }
.notif-time { font-size: 11px; font-weight: 600; color: #71717a; background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 6px; white-space: nowrap; margin-left: 15px; }
.notif-message { font-size: 13px; color: #a1a1aa; line-height: 1.6; font-weight: 400; }
.n-info .notif-icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.n-success .notif-icon-box { background: rgba(34, 197, 94, 0.1); color: #22c55e; border-color: rgba(34, 197, 94, 0.2); }
.n-warning .notif-icon-box { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.n-danger .notif-icon-box { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.btn-read-all { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); color: #d4d4d8; font-size: 12px; font-weight: 600; padding: 10px 18px; border-radius: 10px; cursor: poInter; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-read-all:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.empty-state-notif { text-align: center; padding: 80px 40px; background: rgba(255,255,255,0.02); border: 2px dashed rgba(255,255,255,0.05); border-radius: 24px; color: #52525b; }
.empty-state-notif i { font-size: 48px; margin-bottom: 20px; opacity: 0.5; }
.empty-state-notif p { font-size: 16px; font-weight: 600; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-window { background: #09090b; width: 95%; max-width: 500px; border-radius: 24px; border: 1px solid #27272a; padding: 32px; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9); animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes popIn { from {transform: scale(0.95); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.modal-title { font-size: 22px; font-weight: 800; color: white; margin-bottom: 24px; letter-spacing: -0.5px; }
.modal-actions { display: flex; gap: 15px; margin-top: 32px; width: 100%; }
.modal-btn { flex: 1; height: 44px; display: flex; justify-content: center; align-items: center; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: poInter; transition: 0.2s; border: 1px solid transparent; text-decoration: none; }
.modal-btn.cancel { background: transparent; border-color: #3f3f46; color: #a1a1aa; }
.modal-btn.cancel:hover { border-color: #71717a; color: white; background: rgba(255,255,255,0.03); }
.modal-btn.submit { background: #3b82f6; color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.modal-btn.submit:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
.hidden { display: none !important; }

#editModal .modal-window { max-width: 1200px; display: flex; flex-direction: row; padding: 0; }
.modal-left { width: 300px; background: #18181b; border-right: 1px solid rgba(255,255,255,0.06); padding: 30px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; }
.modal-right { flex: 1; display: flex; flex-direction: column; background: #0f0f10; position: relative; }
.modal-header-r { padding: 0 30px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; height: 60px; flex-shrink: 0; }
.modal-tabs { display: flex; gap: 20px; height: 100%; }
.tab-btn { background: none; border: none; color: #71717a; font-weight: 600; font-size: 14px; cursor: poInter; height: 100%; border-bottom: 2px solid transparent; transition: 0.2s; }
.tab-btn.active { color: white; border-bottom-color: #3b82f6; }
.close-btn { cursor: poInter; color: #71717a; font-size: 18px; } .close-btn:hover { color: white; }
.modal-scroll-content { padding: 25px 30px; overflow-y: auto; flex: 1; display: none; }
.modal-scroll-content.active { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.edit-group { display: flex; flex-direction: column; gap: 6px; }
.edit-group label { font-size: 11px; font-weight: 600; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; }
.edit-input { background: #09090b; border: 1px solid #27272a; padding: 0 12px; height: 38px; border-radius: 8px; color: #e4e4e7; font-size: 13px; width: 100%; }
.edit-input:focus { border-color: #3b82f6; background: #000; }
.edit-input[readonly], .edit-input:disabled { background: #121214; color: #71717a; cursor: default; border-color: transparent; opacity: 0.8; }
.punish-row-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; background: #131315; padding: 12px; border-radius: 8px; border: 1px solid #27272a; }
.modal-footer-r { padding: 16px 30px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: flex-end; gap: 12px; background: #0f0f10; flex-shrink: 0; }
.btn-save { background: #3b82f6; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: poInter; font-size: 13px; }
.btn-cancel { background: transparent; color: #a1a1aa; border: 1px solid #3f3f46; padding: 10px 20px; border-radius: 8px; cursor: poInter; font-size: 13px; }
.input-note { font-size: 10px; color: #52525b; margin-top: -3px; }
.lock-badge { font-size: 10px; color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; }
.history-item { display: flex; gap: 15px; margin-bottom: 12px; background: #131315; padding: 12px; border-radius: 10px; border: 1px solid #27272a; }
.h-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.h-content { flex: 1; }
.h-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.h-action { font-size: 13px; font-weight: 600; color: #fff; }
.h-date { font-size: 11px; color: #71717a; }
.h-reason { font-size: 12px; color: #d4d4d8; margin-bottom: 2px; display: block; }
.h-by { font-size: 10px; color: #52525b; margin-top: 4px; display: block; }
.modal-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #27272a; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-user-name { font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.modal-user-role { display: inline-block; background: #27272a; border: 1px solid #3f3f46; border-radius: 30px; padding: 8px 24px; color: #f4f4f5; font-size: 14px; font-weight: 700; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.modal-socials { display: flex; gap: 10px; width: 100%; margin-bottom: 30px; }
.social-btn { flex: 1; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.sb-vk { background: #0077FF; color: white; } .sb-forum { background: #e4e4e7; color: #18181b; }
.stat-list { width: 100%; text-align: left; }
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: #a1a1aa; }
.stat-row b { color: #f4f4f5; } .stat-row i { width: 24px; color: #52525b; text-align: center;}

.toast-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 10000;
    display: flex; flex-direction: column; gap: 15px; poInter-events: none;
}
.toast {
    poInter-events: auto; background: rgba(18, 18, 20, 0.95); backdrop-filter: blur(10px); color: white;
    min-width: 300px; max-width: 400px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1); transform: translateX(0); opacity: 1; transition: all 0.4s ease;
}
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.toast.success .toast-icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.toast.success { border-left: 4px solid #4ade80; }
.toast.error .toast-icon { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.toast.error { border-left: 4px solid #f87171; }
.toast-content { display: flex; flex-direction: column; justify-content: center; }
.toast-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: #fff; line-height: 1.2; }
.toast-msg { font-size: 13px; color: #a1a1aa; line-height: 1.4; }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.glass-card {
    background: rgba(20, 20, 23, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px; padding: 35px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); margin-bottom: 30px; position: relative; overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); opacity: 0.7;
}
.card-header-title {
    font-size: 18px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 25px; display: flex; align-items: center; gap: 12px;
}
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 25px; }
.img-input-container {
    background: rgba(255,255,255,0.02); padding: 15px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
}
.img-input-container:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.img-input-group label {
    font-size: 11px; text-transform: uppercase; color: #71717a; font-weight: 800; margin-bottom: 8px; display: block; letter-spacing: 0.5px;
}
.img-preview-icon { color: #3b82f6; margin-right: 8px; }
.custom-input {
    width: 100%; background: rgba(0, 0, 0, 0.4) !important; border: 1px solid #27272a; border-radius: 10px;
    padding: 12px 16px; color: #e4e4e7; font-size: 13px; transition: 0.2s; font-family: 'Inter', sans-serif;
}
.custom-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); background: rgba(0, 0, 0, 0.6) !important; }
.code-area {
    width: 100%; height: 500px; background: rgba(10, 10, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; color: #d4d4d8; padding: 20px; font-family: 'Inter', sans-serif; font-size: 13px;
    line-height: 1.6; resize: vertical; transition: 0.3s;
}
.code-area:focus { border-color: #3b82f6; background: rgba(10, 10, 12, 0.9); }
.action-bar { display: flex; justify-content: flex-end; margin-top: 15px; }

.copy-btn {
    background: #18181b; border: 1px solid #27272a; color: #e4e4e7; box-shadow: none;
}
.copy-btn:hover { background: #27272a; border-color: #3f3f46; color: #fff; }

.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #09090b; background-image: radial-gradient(circle at center, #1e1b4b 0%, #09090b 70%); margin: 0; font-family: 'Inter', sans-serif; }
.login-card { background: #18181b; border: 1px solid #27272a; border-radius: 24px; padding: 40px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.login-logo { font-size: 48px; color: #f4f4f5; margin-bottom: 15px; }
.login-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.login-subtitle { font-size: 13px; color: #a1a1aa; margin-bottom: 30px; }
.btn-discord-login { display: flex; justify-content: center; align-items: center; gap: 10px; background: #5865F2; color: white; text-decoration: none; font-weight: 600; padding: 14px; border-radius: 12px; transition: 0.3s; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3); }
.btn-discord-login:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5); }
.btn-vk-login { display: flex; justify-content: center; align-items: center; gap: 10px; background: #0077FF; color: white; text-decoration: none; font-weight: 600; padding: 14px; border-radius: 12px; transition: 0.3s; box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3); }
.btn-vk-login:hover { background: #0066dd; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 119, 255, 0.5); }
/* --- СТИЛИ ДЛЯ СТРАНИЦЫ ПРОФИЛЯ (user.php) --- */

.profile-page-container {
    display: flex; justify-content: center; padding-bottom: 50px;
}

.profile-card {
    display: flex;
    background: #0e0e11;
    border: 1px solid #27272a;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    min-height: 700px;
}

/* Левая часть */
.profile-sidebar {
    width: 350px;
    background: #09090b;
    border-right: 1px solid #27272a;
    padding: 40px 30px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    flex-shrink: 0;
}

.profile-sidebar::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 200px;
    background: radial-gradient(circle at top, rgba(59,130,246,0.1), transparent 70%);
    poInter-events: none;
}

.profile-avatar-wrapper {
    width: 120px; height: 120px; margin-bottom: 20px; z-index: 1;
}
.profile-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 4px solid #18181b; box-shadow: 0 0 0 2px #27272a;
}

.profile-name {
    font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px;
    text-align: center; z-index: 1;
}

.profile-role-badge {
    margin-bottom: 30px; z-index: 1; text-align: center;
    padding: 12px 24px; font-size: 13px; font-weight: 700;
    color: #93c5fd; background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15); border-radius: 18px;
    box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
}

.profile-socials { display: flex; gap: 12px; width: 100%; margin-bottom: 30px; z-index: 1; }
.profile-soc-btn {
    flex: 1; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 13px; font-weight: 700; gap: 10px;
    text-decoration: none; transition: 0.3s;
}
.soc-vk { background: linear-gradient(135deg, #0077FF, #2563eb); color: white; box-shadow: 0 4px 15px rgba(0,119,255,0.3); }
.soc-vk:hover { transform: translateY(-2px); }
.soc-forum { background: rgba(255,255,255,0.03); color: #e4e4e7; border: 1px solid rgba(255,255,255,0.1); }
.soc-forum:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; transform: translateY(-2px); }

.profile-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; z-index: 1; }
.stat-box { background: #121214; border: 1px solid #27272a; border-radius: 12px; padding: 14px; text-align: center; }
.stat-box.full { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; }
.stat-box-row { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.stat-label { font-size: 10px; font-weight: 700; color: #71717a; text-transform: uppercase; margin-bottom: 4px; }
.stat-val { font-size: 15px; font-weight: 700; color: #f4f4f5; }

.profile-inactive-badge {
    margin-top: 25px; width: 100%; text-align: center;
    background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.2);
    color: #facc15; padding: 15px; border-radius: 12px; z-index: 1;
}

/* Правая часть */
.profile-content { flex: 1; display: flex; flex-direction: column; }
.profile-header {
    height: 70px; border-bottom: 1px solid #27272a; padding: 0 40px;
    display: flex; align-items: center; background: rgba(14, 14, 17, 0.95);
}
.profile-tabs { display: flex; gap: 30px; height: 100%; }
.profile-tab {
    background: none; border: none; height: 100%; font-size: 14px; font-weight: 600;
    color: #71717a; cursor: poInter; position: relative;
}
.profile-tab.active { color: #fff; }
.profile-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: #3b82f6; box-shadow: 0 -2px 10px rgba(59, 130, 246, 0.5);
}

.profile-form { padding: 40px; flex: 1; overflow-y: auto; }
.form-section-title {
    font-size: 12px; font-weight: 800; color: #3b82f6; text-transform: uppercase;
    margin-bottom: 20px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
}
.form-section-title::after { content: ''; flex: 1; height: 1px; background: #27272a; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 11px; font-weight: 700; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; }

.pf-input {
    width: 100%; height: 46px; background: #18181b; border: 1px solid #27272a;
    border-radius: 12px; color: #e4e4e7; font-size: 14px; padding: 0 16px;
    transition: 0.2s; font-family: 'Inter', sans-serif;
}
.pf-input:focus {
    border-color: #3b82f6; background: #09090b; outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.pf-input[readonly] { background: #121214; color: #52525b; border-color: transparent; cursor: default; }

.punish-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px;
    background: #121214; padding: 20px; border-radius: 16px; border: 1px solid #27272a;
}

.form-footer {
    margin-top: 30px; padding-top: 30px; border-top: 1px solid #27272a;
    display: flex; justify-content: flex-end; gap: 15px;
}
.btn-cancel {
    display: flex; align-items: center; justify-content: center;
    padding: 0 24px; height: 44px; border-radius: 12px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    background: transparent; color: #71717a; border: 1px solid transparent;
    transition: 0.2s;
}
.btn-cancel:hover { color: #fff; background: rgba(255,255,255,0.05); }

.btn-save {
    padding: 0 28px; height: 44px; border-radius: 12px;
    font-size: 13px; font-weight: 700; border: none; cursor: poInter;
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); transition: 0.2s;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }

/* ========================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ======================================== */

/* Планшеты и меньше (768px и меньше) */
@media (max-width: 768px) {
    /* Sidebar - скрываем по умолчанию, показываем как overlay при активации */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }
    
    /* Overlay для мобильного sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        backdrop-filter: blur(4px);
    }
    
    body.sidebar-mobile-open .sidebar-overlay {
        display: block;
    }
    
    /* Кнопка для открытия sidebar на мобильных */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
        background: rgba(18, 18, 20, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 998;
        color: #e4e4e7;
        font-size: 18px;
        backdrop-filter: blur(10px);
    }
    
    body.sidebar-mobile-open .mobile-menu-toggle {
        left: 255px;
    }
    
    /* Topbar - адаптация */
    .topbar {
        left: 0;
        padding: 0 60px 0 70px;
        height: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .topbar::-webkit-scrollbar {
        display: none;
    }
    
    .topbar-item {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .topbar-item i {
        font-size: 16px;
    }
    
    /* Main content - полная ширина */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px 15px;
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 0;
    }
    
    /* Таблицы - горизонтальный скролл */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* Модальные окна */
    .modal-overlay {
        padding: 20px 15px;
    }
    
    .modal-window {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    /* Карточки и сетки */
    .stats-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-pill.total {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full {
        grid-column: span 1;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .punish-grid {
        grid-template-columns: 1fr;
    }
    
    /* Кнопки */
    .btn-modern {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Toast уведомления */
    .toast-container {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    /* Profile page */
    .profile-card {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #27272a;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .profile-form {
        padding: 25px 20px;
    }
    
    .page-header-container {
        margin-bottom: 25px;
    }
    
    .server-banner {
        padding: 12px 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-name {
        font-size: 20px;
    }
}

/* Мобильные телефоны (480px и меньше) */
@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .topbar {
        padding: 0 50px 0 60px;
        height: 56px;
    }
    
    .topbar-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .topbar-item span {
        display: none;
    }
    
    .topbar-item i {
        font-size: 18px;
        margin: 0;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .modal-window {
        padding: 20px 15px;
    }
    
    .btn-modern {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }
    
    .form-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .banner-title {
        font-size: 13px;
    }
    
    .banner-name {
        font-size: 18px;
    }
}

/* Десктоп с уменьшенной шириной (1024px и меньше) */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-content {
        padding: 25px 25px;
    }
    
    .topbar {
        padding: 0 30px;
    }
    
    .topbar-item {
        padding: 8px 18px;
    }
}