/* === Global Styles === */
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: #1C5549; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #52d195; }
@font-face {
    font-family: 'Oracle';
    src: url(https://cdn.fastly.steamstatic.com/apps/deadlock/fonts/VALVEOracle-Thin.woff2) format('woff2'),
         url(https://cdn.fastly.steamstatic.com/apps/deadlock/fonts/VALVEOracle-Thin.ttf) format('truetype');
    font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Oracle';
    src: url(https://cdn.fastly.steamstatic.com/apps/deadlock/fonts/VALVEOracle-Medium.woff2) format('woff2'),
         url(https://cdn.fastly.steamstatic.com/apps/deadlock/fonts/VALVEOracle-Medium.ttf) format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
body { 
    background: #060609; 
    background-image: radial-gradient(circle at 10% 10%, #15233b 0%, transparent 40%), radial-gradient(circle at 90% 90%, #1a2e1e 0%, transparent 40%);
    color: #fff; margin: 0; padding: 0; min-height: 100vh; 
    font-family: "Oracle", sans-serif; font-weight: 800; font-style: normal; 
    overflow-x: hidden;
    letter-spacing: 2px;
}

img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.soul-icon {
    display: inline-block; width: 10px; height: 18px; vertical-align: middle;
    background-color: #52d195;
    -webkit-mask: url('../img/icon_soul.svg') no-repeat center / contain;
    mask: url('../img/icon_soul.svg') no-repeat center / contain;
    filter: drop-shadow(0 0 3px rgba(82, 209, 149, 0.5)); 
}
p {
    letter-spacing: 3px;
}
.design_blur { position: fixed; width: 600px; height: 600px; background: #00d7a425; filter: blur(140px); border-radius: 50%; top: -200px; left: -200px; z-index: -1; animation: float 10s infinite ease-in-out; }
.design_blur2 { position: fixed; width: 500px; height: 500px; background: #1C554955; filter: blur(140px); border-radius: 50%; bottom: -200px; right: -200px; z-index: -1; animation: float 12s infinite ease-in-out reverse; }
@keyframes float { 0% { transform: translate(0,0); } 50% { transform: translate(50px, 50px); } 100% { transform: translate(0,0); } }
.bg-grid {
    position: fixed;
    top: -80px; 
    left: -80px; 
    right: -80px; 
    bottom: -80px; 
    pointer-events: none;
    z-index: -1;
    opacity: 0.04;
    background-image:
        linear-gradient(#52d195 1px, transparent 1px),
        linear-gradient(90deg, #52d195 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    transition: transform 0.2s ease-out; /* Плавность движения за мышкой */
    will-change: transform;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
    position: absolute; bottom: -10px; border-radius: 50%;
    background: #52d195;
    filter: drop-shadow(0 0 6px rgba(82, 209, 149, 0.8));
    opacity: 0;
    animation: rise var(--dur) linear var(--delay) infinite;
}
@keyframes rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: var(--max-op); }
    90%  { opacity: var(--max-op); }
    100% { transform: translate(var(--drift), -110vh); opacity: 0; }
}
/* === Auth, Launch & Settings === */
.auth-container { position: fixed; top: 20px; left: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.auth-form { display: none; gap: 8px; align-items: center; background: rgba(14, 14, 26, 0.8); backdrop-filter: blur(10px); border: 1px solid #1C5549; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.auth-btn { padding: 8px 14px; border: 1px solid #66c0f4; border-radius: 8px; font-size: 11px; cursor: pointer; transition: 0.3s; text-transform: uppercase; background: linear-gradient(135deg, #1b2838, #0e0e1a); color: #fff; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 10px rgba(102, 192, 244, 0.2); text-decoration: none; }
.auth-btn:hover { background: #2a475e; box-shadow: 0 0 15px rgba(102, 192, 244, 0.5); transform: translateY(-1px); }

.user-profile, .launch-game-box, .settings-box { 
    display: none; align-items: center; background: rgba(14, 14, 26, 0.8); backdrop-filter: blur(10px); 
    border: 1px solid #1C5549; border-radius: 12px; padding: 5px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
    transition: 0.3s; overflow: hidden; cursor: pointer; width: fit-content;
}
.user-profile.active, .launch-game-box.active, .settings-box.active { display: flex; }
.user-profile:hover, .launch-game-box:hover, .settings-box:hover { 
    padding: 5px 15px; background: rgba(28, 85, 73, 0.9); border-color: #52d195; box-shadow: 0 0 20px rgba(82, 209, 149, 0.3); 
}

#user-avatar, .launch-icon-square, .settings-icon-square { 
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0; transition: 0.3s;
}
#user-avatar { border: 1px solid #52d195; display: none; box-shadow: 0 0 10px rgba(82, 209, 149, 0.3); }
.launch-icon-square { border: 1px solid #52d195; background: rgba(82, 209, 149, 0.1); box-shadow: 0 0 10px rgba(82, 209, 149, 0.3); }
.launch-icon-square svg { width: 20px; height: 20px; fill: #52d195; transition: 0.3s; }
.settings-icon-square { border: 1px solid #888; background: rgba(255,255,255,0.1); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
.settings-icon-square img { width: 24px; height: 24px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }

.user-profile:hover #user-avatar, .launch-game-box:hover .launch-icon-square, .settings-box:hover .settings-icon-square { 
    border-color: #52d195; box-shadow: 0 0 15px rgba(82, 209, 149, 0.4); 
}
.settings-box:hover .settings-icon-square { background: rgba(82, 209, 149, 0.1); }

.profile-expandable, .launch-expandable, .settings-expandable { 
    display: flex; align-items: center; gap: 12px; max-width: 0; opacity: 0; overflow: hidden; 
    transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease; white-space: nowrap; 
}
.user-profile:hover .profile-expandable, .launch-game-box:hover .launch-expandable, .settings-box:hover .settings-expandable { 
    max-width: 300px; opacity: 1; margin-left: 12px; 
}

.user-name, .launch-text { color: #52d195; font-size: 14px; text-shadow: 0 0 10px rgba(82, 209, 149, 0.5); text-transform: uppercase; }
.settings-text { color: #ccc; font-size: 14px; text-shadow: 0 0 10px rgba(255,255,255,0.3); text-transform: uppercase; }
.btn-logout { background: transparent; border: 1px solid #ff5050; color: #ff5050; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 10px; transition: 0.2s; }
.btn-logout:hover { background: #ff5050; color: #fff; box-shadow: 0 0 10px #ff5050; }

.launch-game-box.running .launch-icon-square { border-color: #ff5050; background: rgba(255, 80, 80, 0.1); box-shadow: 0 0 10px rgba(255, 80, 80, 0.3); animation: pulse-red-ico 2s infinite; }
.launch-game-box.running .launch-icon-square svg { fill: #ff5050; }
.launch-game-box.running:hover { border-color: #ff5050; background: rgba(255, 80, 80, 0.2); }
.launch-game-box.running .launch-text { color: #ff5050; }
.launch-game-box.loading { opacity: 0.7; cursor: wait; }
@keyframes pulse-red-ico { 0% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.2); } 50% { box-shadow: 0 0 20px rgba(255, 80, 80, 0.6); } 100% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.2); } }

/* === Update Button === */
@keyframes pulse-yellow-ico { 
    0% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); } 
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); } 
    100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); } 
}
.update-box { 
    display: none; align-items: center; background: rgba(14, 14, 26, 0.8); backdrop-filter: blur(10px); 
    border: 1px solid #1C5549; border-radius: 12px; padding: 5px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
    transition: 0.3s; overflow: hidden; cursor: pointer; width: fit-content;
}
.update-box.active { display: flex; }
.update-box:hover { padding: 5px 15px; background: rgba(28, 85, 73, 0.9); border-color: #fbbf24; box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
.update-icon-square { 
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0; transition: 0.3s; border: 1px solid #fbbf24; background: rgba(251, 191, 36, 0.1); 
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); animation: pulse-yellow-ico 2s infinite;
}
.update-icon-square img { width: 24px; height: 24px; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5)); }
.update-expandable { display: flex; align-items: center; gap: 12px; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease; white-space: nowrap; }
.update-box:hover .update-expandable { max-width: 300px; opacity: 1; margin-left: 12px; }
.update-text { color: #fbbf24; font-size: 14px; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); text-transform: uppercase; }

/* === ДИНАМИЧЕСКОЕ МЕНЮ (стили для menu.js) === */
.menu_buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 0; gap: 10px; }
.menu_button { width: 70px; height: 70px; background: #0e0e1a; border-radius: 12px; border: 2px solid #1C5549; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0, 255, 179, 0.1); }
.menu_button_icon {  width: 80%;  height: 80%;  background-size: contain;  background-repeat: no-repeat; background-position: center; image-rendering: -webkit-optimize-contrast; }
.menu_button:hover, .menu_button.active-menu { border-color: #52d195; box-shadow: 0 0 20px rgba(82, 209, 149, 0.5); transform: scale(1.05); }
/* === Боковое меню: киберпанк-углы + язычок === */
.menu {
    position: fixed; width: 90px; left: 0; top: 50%; z-index: 100;
    transform: translateY(-50%) translateX(calc(-100% + 8px));
    transition: transform 0.45s cubic-bezier(0.25, 0.9, 0.3, 1.05);
}
.menu.expanded { transform: translateY(-50%) translateX(0); }
.menu_frame {
    background: #1C5549;
    padding: 2px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    filter: drop-shadow(4px 0 20px rgba(0,0,0,0.6));
}
.menu_buttons {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 0; gap: 10px;
    background: rgba(14, 14, 26, 0.92);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.menu::after {
    content: '⋮⋮';
    position: absolute; right: -18px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #1C5549, #0e0e1a);
    clip-path: polygon(0 0, 100% 7px, 100% calc(100% - 7px), 0 100%);
    color: #52d195; font-size: 12px; letter-spacing: -2px;
    text-shadow: 0 0 10px rgba(82, 209, 149, 0.8);
    animation: menuHintPulse 2s ease-in-out infinite;
    transition: opacity 0.3s;
    cursor: pointer;
}
.menu.expanded::after { opacity: 0; }
@keyframes menuHintPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* === Modals === */
.modal-overlay, .case-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 2000; justify-content: center; align-items: center; }
.modal-overlay.active, .case-modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box, .case-modal-box { background: linear-gradient(135deg, rgba(20,20,35,0.95), rgba(10,10,20,0.98)); border: 1px solid rgba(82, 209, 149, 0.3); padding: 40px; border-radius: 20px; width: 90%; max-width: 800px; text-align: center; position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 30px rgba(82, 209, 149, 0.1) inset; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Close Button — киберпанк, красный */
.close-modal-btn { 
    position: absolute; top: 15px; right: 15px; 
    width: 36px; height: 36px; 
    background: #a82828;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    border: none;
    color: #fff; font-size: 18px; font-family: "Russo One", sans-serif;
    cursor: pointer; 
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; z-index: 30; 
    filter: drop-shadow(0 0 6px rgba(255, 80, 80, 0.3));
}
.close-modal-btn::before {
    content: ''; position: absolute; inset: 2px;
    background: linear-gradient(135deg, #e04040, #a82828);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    z-index: -1; transition: filter 0.25s ease;
}
.close-modal-btn:hover { 
    filter: drop-shadow(0 0 14px rgba(255, 80, 80, 0.7));
    transform: rotate(90deg) scale(1.1); 
}
.close-modal-btn:hover::before { filter: brightness(1.3); }
.close-modal-btn:active { transform: rotate(90deg) scale(0.95); }
/* === Кнопка Друзья === */
.friends-btn {
    display: none; align-items: center; position: relative;
    background: #1C5549; padding: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer; width: fit-content; transition: 0.3s;
}
.friends-btn.active { display: flex; }
.friends-icon-square {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: rgba(14, 14, 26, 0.92);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    transition: background 0.3s;
}
.friends-btn:hover .friends-icon-square { background: rgba(28, 85, 73, 0.95); }
.friends-icon-square svg { width: 22px; height: 22px; }
.friends-expandable { display: flex; align-items: center; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease; white-space: nowrap; }
.friends-btn:hover .friends-expandable { max-width: 200px; opacity: 1; margin-left: 12px; margin-right: 12px; }
.friends-btn-text { color: #52d195; font-size: 14px; text-transform: uppercase; text-shadow: 0 0 10px rgba(82, 209, 149, 0.5); }
.friends-badge {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
    border-radius: 9px; background: #ff5050; color: #fff; font-size: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.6); z-index: 5;
}
.friends-tab .friends-badge { position: static; margin-left: 6px; }

/* === Панель друзей) === */
#friends-panel {
    position: fixed;
    left: 20px;            /* стартовая позиция — у левого края */
    top: 90px;
    width: 380px;
    height: min(620px, calc(100vh - 120px));  /* ← фиксированная высота вместо bottom */
    /* bottom: 20px; — УДАЛИТЬ, он и растягивал панель */
    background: #1C5549; padding: 2px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
    z-index: 1500;
    transform: translateX(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.3s, left 0.3s ease;
}
#friends-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
#friends-panel.dragging { transition: none; }
#friends-panel.snapping { transition: left 0.3s cubic-bezier(0.25, 0.9, 0.3, 1.05), transform 0.35s, opacity 0.3s; }
.friends-panel-inner {
    background: rgba(10, 10, 20, 0.97);
    clip-path: polygon(19px 0, 100% 0, 100% calc(100% - 19px), calc(100% - 19px) 100%, 0 100%, 0 19px);
    display: flex; flex-direction: column;
    height: 100%;             
}

/* Язычок-ручка перетаскивания (киберпанк-углы) */
.friends-drag-handle {
    background: #1C5549; padding: 2px; margin: 8px 10px 0 10px; flex-shrink: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: grab;
}
.friends-drag-handle:active { cursor: grabbing; }
.friends-drag-handle-inner {
    background: rgba(20, 40, 34, 0.9);
    clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    height: 16px; display: flex; align-items: center; justify-content: center;
    color: #52d195; font-size: 10px; letter-spacing: 4px; opacity: 0.7;
    text-shadow: 0 0 8px rgba(82, 209, 149, 0.5); user-select: none; transition: 0.2s;
}
.friends-drag-handle:hover .friends-drag-handle-inner { background: rgba(82, 209, 149, 0.15); opacity: 1; }

.friends-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; border-bottom: 1px solid #1C5549;
    color: #52d195; font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
    text-shadow: 0 0 10px rgba(82, 209, 149, 0.5); flex-shrink: 0;
}
.friends-panel-close { background: transparent; border: 1px solid #ff5050; color: #ff5050; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 15px; transition: 0.2s; }
.friends-panel-close:hover { background: #ff5050; color: #fff; }

/* Вкладки с бегущей зелёной полоской */
.friends-tabs { display: flex; position: relative; border-bottom: 1px solid #1C5549; flex-shrink: 0; }
.friends-tab { flex: 1; padding: 11px 4px; font-size: 11px; color: #888; cursor: pointer; text-transform: uppercase; transition: color 0.25s; display: flex; align-items: center; justify-content: center; }
.friends-tab:hover { color: #ccc; }
.friends-tab.active { color: #52d195; text-shadow: 0 0 8px rgba(82, 209, 149, 0.4); }
.friends-tab-slider {
    position: absolute; bottom: -1px; left: 0; width: calc(100% / 3); height: 2px;
    background: #52d195;
    box-shadow: 0 0 10px #52d195, 0 0 20px rgba(82, 209, 149, 0.4);
    transition: transform 0.35s cubic-bezier(0.25, 0.9, 0.3, 1.05);
}

.friends-body { flex: 1; overflow-y: auto; padding: 8px; }
.friends-tab-content { display: none; }
.friends-tab-content.active { display: block; }

.friends-section-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; cursor: pointer; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; user-select: none; }
.friends-section-header:hover { color: #52d195; }
.friends-section-header .chevron { transition: transform 0.3s; }
.friends-section.collapsed .chevron { transform: rotate(-90deg); }
.friends-section.collapsed .friends-section-body { display: none; }

.friend-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; transition: 0.2s; }
.friend-row:hover { background: rgba(255, 255, 255, 0.04); }
.friend-avatar { width: 38px; height: 38px; border-radius: 8px; border: 2px solid #333; flex-shrink: 0; }
.friend-row.online .friend-avatar { border-color: #52d195; box-shadow: 0 0 10px rgba(82, 209, 149, 0.3); }
.friend-info { flex: 1; min-width: 0; }
.friend-name { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-status { font-size: 10px; color: #666; margin-top: 2px; }
.friend-row.online .friend-status { color: #52d195; }
.friend-actions { display: flex; gap: 6px; opacity: 0; transition: 0.2s; }
.friend-row:hover .friend-actions { opacity: 1; }
.friend-action-btn { width: 28px; height: 28px; border-radius: 6px; background: transparent; border: 1px solid #1C5549; color: #ccc; cursor: pointer; font-size: 12px; transition: 0.2s; }
.friend-action-btn.invite:hover { border-color: #52d195; color: #52d195; box-shadow: 0 0 10px rgba(82, 209, 149, 0.3); }
.friend-action-btn.remove:hover { border-color: #ff5050; color: #ff5050; box-shadow: 0 0 10px rgba(255, 80, 80, 0.3); }
.friend-add-btn { padding: 6px 12px; background: #52d195; color: #0e0e1a; border: none; border-radius: 6px; cursor: pointer; font-family: 'Russo One', sans-serif; font-size: 10px; text-transform: uppercase; transition: 0.2s; }
.friend-add-btn:hover { box-shadow: 0 0 12px rgba(82, 209, 149, 0.5); }
.friend-add-btn:disabled { background: #333; color: #666; cursor: wait; }
.friend-cancel-btn { padding: 6px 10px; background: transparent; border: 1px solid #ff5050; color: #ff5050; border-radius: 6px; cursor: pointer; font-family: 'Russo One', sans-serif; font-size: 10px; text-transform: uppercase; transition: 0.2s; }
.friend-cancel-btn:hover { background: #ff5050; color: #fff; box-shadow: 0 0 10px rgba(255, 80, 80, 0.4); }
.friend-state { font-size: 10px; color: #52d195; }
.friends-empty { text-align: center; color: #555; font-size: 12px; padding: 18px 10px; }
.friends-subtitle { padding: 12px 10px 6px; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-top: 1px solid rgba(28, 85, 73, 0.5); margin-top: 12px; }

.friends-search-wrap { padding: 6px 4px 12px; }
#friends-search-input { width: 100%; background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 10px 12px; border-radius: 8px; font-family: 'Russo One', sans-serif; font-size: 13px; outline: none; transition: 0.2s; }
#friends-search-input:focus { border-color: #52d195; box-shadow: 0 0 12px rgba(82, 209, 149, 0.2); }
/* ===== SVG-иконки в системе друзей ===== */
.friend-action-btn,
.inbox-btn,
.friends-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Кнопки в строке друга */
.friend-action-btn svg { width: 15px; height: 15px; }
.friend-action-btn.invite { color: #52d195; }
.friend-action-btn.invite:hover { background: rgba(82, 209, 149, 0.12); border-color: rgba(82, 209, 149, 0.5); }
.friend-action-btn.remove { color: #ff6b6b; }
.friend-action-btn.remove:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.5); }

/* Кнопки принять/отклонить во входящих */
.inbox-btn svg { width: 14px; height: 14px; }
.inbox-btn.accept { color: #52d195; }
.inbox-btn.accept:hover { background: rgba(82, 209, 149, 0.12); border-color: rgba(82, 209, 149, 0.5); }
.inbox-btn.decline { color: #ff6b6b; }
.inbox-btn.decline:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.5); }

/* Крестик закрытия панели */
.friends-panel-close { color: #888; }
.friends-panel-close:hover { color: #ff6b6b; }
.friends-panel-close svg { width: 16px; height: 16px; display: block; }

/* Язычок перетаскивания */
.friends-drag-handle-inner { display: flex; align-items: center; justify-content: center; }
.friends-drag-handle-inner svg { width: 18px; height: 18px; color: #52d195; opacity: 0.6; }
.friends-drag-handle:hover .friends-drag-handle-inner svg { opacity: 1; }

/* Шеврон секций (поворачивается при сворачивании) */
.friends-section-header .chevron { display: inline-flex; align-items: center; }
.friends-section-header .chevron svg {
    width: 14px; height: 14px; color: #52d195;
    transition: transform 0.25s ease;
}
.friend-action-btn.invite { color: #52d195; }
.friend-action-btn.invite:hover {
    background: rgba(82, 209, 149, 0.12);
    border-color: rgba(82, 209, 149, 0.5);
    box-shadow: 0 0 10px rgba(82, 209, 149, 0.25);
}
.friend-action-btn.invite:hover svg { filter: drop-shadow(0 0 4px #52d195); }
.friends-section.collapsed .chevron svg { transform: rotate(-90deg); }
.inbox-title { padding: 10px; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.inbox-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; transition: 0.2s; }
.inbox-row:hover { background: rgba(255, 255, 255, 0.04); }
.inbox-actions { display: flex; gap: 6px; }
.inbox-btn { width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.2s; }
.inbox-btn.accept { background: transparent; border: 1px solid #52d195; color: #52d195; }
.inbox-btn.accept:hover { background: #52d195; color: #0e0e1a; box-shadow: 0 0 12px rgba(82, 209, 149, 0.5); }
.inbox-btn.decline { background: transparent; border: 1px solid #ff5050; color: #ff5050; }
.inbox-btn.decline:hover { background: #ff5050; color: #fff; }
.inbox-title { padding: 10px; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.inbox-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; transition: 0.2s; }
.inbox-row:hover { background: rgba(255, 255, 255, 0.04); }
.inbox-actions { display: flex; gap: 6px; }
.inbox-btn { width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.2s; }
.inbox-btn.accept { background: transparent; border: 1px solid #52d195; color: #52d195; }
.inbox-btn.accept:hover { background: #52d195; color: #0e0e1a; box-shadow: 0 0 12px rgba(82, 209, 149, 0.5); }
.inbox-btn.decline { background: transparent; border: 1px solid #ff5050; color: #ff5050; }
.inbox-btn.decline:hover { background: #ff5050; color: #fff; }
.setup-modal-content { max-width: 600px; width: 90%; }
.mode-selector { display: flex; position: relative; margin-bottom: 15px; border-bottom: 2px solid #1C5549; }
.mode-tab { flex: 1; padding: 15px; text-align: center; cursor: pointer; color: #888; transition: 0.3s; text-transform: uppercase; font-size: 14px; }
.mode-tab:hover { color: #ccc; }
.mode-tab.active { color: #52d195; }
.mode-slider-container { position: absolute; bottom: -2px; left: 0; width: 33.33%; height: 2px; }
.mode-slider { width: 100%; height: 100%; background: #52d195; box-shadow: 0 0 10px #52d195; transition: transform 0.3s ease; transform: translateX(0%); }
.mode-description { background: rgba(28, 85, 73, 0.2); border: 1px solid #1C5549; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; color: #ccc; min-height: 50px; }
.setup-row { display: flex; gap: 20px; margin-bottom: 20px; }
.setup-col { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.setup-label { display: block; margin-bottom: 10px; font-size: 12px; color: #888; text-transform: uppercase; text-align: start; }
.setup-input { width: 100%; background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 10px; border-radius: 6px; box-sizing: border-box; text-align: center; }
.setup-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; background: #1C5549; border-radius: 5px; outline: none; margin-top: 5px; }
.setup-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: #52d195; border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px rgba(82, 209, 149, 0.5); }
.setup-slider::-moz-range-thumb { width: 20px; height: 20px; background: #52d195; border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 0 10px rgba(82, 209, 149, 0.5); }

.room-settings-modal { max-width: 500px; }
.banned-list { max-height: 200px; overflow-y: auto; margin-top: 15px; border-top: 1px solid #1C5549; padding-top: 15px; }
.banned-player { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.banned-player:last-child { border-bottom: none; }
.unban-btn { padding: 4px 8px; background: transparent; border: 1px solid #52d195; color: #52d195; border-radius: 4px; cursor: pointer; font-family: "Russo One", sans-serif; font-size: 10px; text-transform: uppercase; transition: 0.2s; }
.unban-btn:hover { background: #52d195; color: #0e0e1a; }

.case-controls { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.quantity-selector { display: flex; gap: 10px; justify-content: center; }
.qty-btn { background: #0a0a14; border: 1px solid #1C5549; color: #ccc; padding: 8px 20px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 14px; }
.qty-btn:hover { border-color: #52d195; color: #fff; }
.qty-btn.active { background: #52d195; color: #0e0e1a; border-color: #52d195; box-shadow: 0 0 15px rgba(82, 209, 149, 0.4); }
.case-action-btn { padding: 14px 40px; background: linear-gradient(135deg, #52d195, #3b966b); border: none; color: #0e0e1a; border-radius: 8px; cursor: pointer; font-size: 16px; transition: 0.3s; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.case-action-btn:hover { box-shadow: 0 0 25px rgba(82, 209, 149, 0.5); transform: translateY(-2px); }
.case-action-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-sell { background: linear-gradient(135deg, #fbbf24, #d99c00) !important; }
.btn-sell:hover { box-shadow: 0 0 25px rgba(251, 191, 36, 0.5) !important; }
.btn-cancel { background: rgba(255,255,255,0.1) !important; color: #fff !important; margin-left: 10px; }
.btn-cancel:hover { background: rgba(255,255,255,0.2) !important; box-shadow: none !important; }
.modal-box input { background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 10px; border-radius: 6px; margin-bottom: 15px; width: 200px; }
.modal-box button { padding: 10px 20px; background: #52d195; border: none; color: #0e0e1a; border-radius: 6px; cursor: pointer; }
.modal-error { color: #ff5050; margin-top: 10px; font-size: 12px; display: none; }

/* === App Settings === */
.app-settings-modal { max-width: 500px; text-align: left; }
.app-settings-modal h2 { text-align: center; color: #fbbf24; margin-bottom: 20px; }
.path-display { background: #0a0a14; border: 1px solid #1C5549; color: #52d195; padding: 10px; border-radius: 6px; word-break: break-all; margin-bottom: 15px; font-size: 12px; }
.modal-btn { padding: 14px 40px; background: linear-gradient(135deg, #52d195, #3b966b); border: none; color: #0e0e1a; border-radius: 8px; cursor: pointer; font-size: 16px; transition: 0.3s; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.3); text-decoration: none; display: inline-block; }
.modal-btn:hover { box-shadow: 0 0 25px rgba(82, 209, 149, 0.5); transform: translateY(-2px); }

/* === Notifications === */
.notification-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.notification { background: rgba(14, 14, 26, 0.95); border: 1px solid #1C5549; padding: 15px 20px; border-radius: 8px; color: #fff; min-width: 250px; max-width: 350px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: slideIn 0.3s ease-out; }
.notification.success { border-color: #52d195; box-shadow: 0 0 15px rgba(82, 209, 149, 0.2); }
.notification.error { border-color: #ff5050; box-shadow: 0 0 15px rgba(255, 80, 80, 0.2); }
.notification.info { border-color: #fbbf24; box-shadow: 0 0 15px rgba(251, 191, 36, 0.2); }
.notification.hide { animation: slideOut 0.3s ease-in forwards; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes capturePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
/* === Стили для кастомных уведомлений (как в Discord) === */
.desktop-notif {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    text-align: left !important;
    padding: 15px !important;
    min-width: 320px !important;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.98), rgba(10, 10, 20, 1)) !important;
    border: 1px solid #1C5549 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    transition: all 0.3s ease !important;
}
.desktop-notif:hover {
    border-color: #52d195 !important;
    box-shadow: 0 0 20px rgba(82, 209, 149, 0.2), 0 10px 30px rgba(0,0,0,0.6) !important;
    transform: translateY(-2px) !important;
}

.notif-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.notif-particle {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: #52d195;
    border-radius: 50%;
    box-shadow: 0 0 4px #52d195;
    animation: notifFloatUp linear infinite;
}
@keyframes notifFloatUp {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.8; transform: scale(1); }
    100% { transform: translateY(-150px) scale(0.5); opacity: 0; }
}

.desktop-notif-icon {
    width: 40px; height: 40px;
    background: rgba(82, 209, 149, 0.1);
    border: 1px solid #52d195;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #52d195;
    z-index: 1;
    flex-shrink: 0;
}
    #access-key-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 99999; display: flex; align-items: center; justify-content: center; }
    #access-key-modal .gpm-box { background: linear-gradient(135deg, rgba(20,20,35,0.95), rgba(10,10,20,0.98)); border: 1px solid #52d195; padding: 40px; border-radius: 16px; text-align: center; max-width: 400px; box-shadow: 0 0 30px rgba(82, 209, 149, 0.2); }
    #access-key-modal .gpm-title { color: #52d195; font-size: 24px; margin-bottom: 15px; text-transform: uppercase; }
    #access-key-modal .gpm-text { color: #ccc; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
    #access-key-modal input { width: 100%; padding: 15px; text-align: center; font-size: 18px; letter-spacing: 2px; background: #0a0a14; border: 1px solid #1C5549; color: #fff; border-radius: 8px; margin-bottom: 15px; }
    #access-key-modal input:focus { outline: none; border-color: #52d195; }
    #access-key-modal .gpm-btn { padding: 15px 30px; background: linear-gradient(135deg, #52d195, #3b966b); color: #0e0e1a; border: none; border-radius: 8px; cursor: pointer; font-family: 'Russo One', sans-serif; font-size: 16px; text-transform: uppercase; width: 100%; }
    #access-key-modal .gpm-btn:disabled { opacity: 0.5; cursor: wait; }
    #access-key-modal .gpm-error { color: #ff5050; margin-top: 15px; display: none; font-size: 14px; }
.desktop-notif-content { z-index: 1; flex: 1; }
.desktop-notif-title { font-weight: bold; font-size: 14px; color: #52d195; margin-bottom: 4px; }
.desktop-notif-body { font-size: 13px; color: #ccc; line-height: 1.3; }
/* Team Select Disabled State */
.team-select-btn.disabled { opacity: 0.3; pointer-events: none; filter: grayscale(100%); border-color: #555 !important; }
/* === CLANS PAGE === */
.clans-container { margin-left: 120px; margin-right: 40px; margin-top: 40px; padding-bottom: 50px; }
.clans-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1C5549; padding-bottom: 20px; margin-bottom: 30px; }
.clans-title { font-size: 42px; background: linear-gradient(135deg, #fff, #52d195); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(82, 209, 149, 0.3); margin: 0; letter-spacing: 2px; }
.clans-count { color: #888; font-size: 16px; background: rgba(14, 14, 26, 0.8); padding: 10px 20px; border-radius: 10px; border: 1px solid #1C5549; }
.clans-count span { color: #52d195; font-size: 18px; }

/* Welcome */
.clan-welcome { text-align: center; background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95)); border: 1px solid #1C5549; border-radius: 16px; padding: 60px 40px; margin-top: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.clan-welcome h2 { color: #52d195; font-size: 32px; margin-bottom: 20px; text-shadow: 0 0 20px rgba(82, 209, 149, 0.5); }
.clan-welcome p { color: #ccc; max-width: 600px; margin: 0 auto 40px auto; line-height: 1.6; font-size: 15px; }
.clan-welcome-btns { display: flex; gap: 20px; justify-content: center; }
.clan-btn { padding: 14px 30px; border-radius: 8px; cursor: pointer; font-family: "Russo One", sans-serif; font-size: 15px; text-transform: uppercase; transition: 0.3s; border: none; }
.clan-btn-primary { background: linear-gradient(135deg, #52d195, #3b966b); color: #0e0e1a; box-shadow: 0 4px 15px rgba(82, 209, 149, 0.3); }
.clan-btn-primary:hover { box-shadow: 0 0 25px rgba(82, 209, 149, 0.6); transform: translateY(-2px); }
.clan-btn-secondary { background: transparent; color: #52d195; border: 1px solid #52d195; }
.clan-btn-secondary:hover { background: rgba(82, 209, 149, 0.1); box-shadow: 0 0 15px rgba(82, 209, 149, 0.2); }
.clan-btn-create { background: transparent; color: #fbbf24; border: 1px solid #fbbf24; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.clan-btn-create:hover { background: rgba(251, 191, 36, 0.1); box-shadow: 0 0 15px rgba(251, 191, 36, 0.2); }
.clan-btn-create span { font-size: 10px; color: #888; }

/* List View */
.clan-list-layout { display: flex; gap: 20px; }
.clan-sidebar { width: 250px; display: flex; flex-direction: column; gap: 15px; }
.clan-tabs { display: flex; flex-direction: column; gap: 5px; background: rgba(14, 14, 26, 0.8); border: 1px solid #1C5549; border-radius: 12px; padding: 10px; }
.clan-tab { padding: 12px; text-align: center; cursor: pointer; border-radius: 8px; color: #888; text-transform: uppercase; font-size: 12px; transition: 0.2s; }
.clan-tab:hover { background: rgba(255,255,255,0.05); color: #ccc; }
.clan-tab.active { background: linear-gradient(135deg, rgba(82,209,149,0.18), rgba(82,209,149,0.04)); color: #52d195; }
.clan-search { background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 12px; border-radius: 8px; width: 100%; box-sizing: border-box; font-family: 'Russo One'; outline: none; }
.clan-search:focus { border-color: #52d195; }

.clan-main { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.clan-card { background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95)); border: 1px solid #1C5549; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 20px; transition: 0.3s; }
.clan-card:hover { border-color: #52d195; box-shadow: 0 0 20px rgba(82, 209, 149, 0.1); }
.clan-rank { font-size: 24px; color: #888; width: 40px; text-align: center; font-weight: bold; }
.clan-card-avatar { width: 60px; height: 60px; border-radius: 12px; border: 2px solid #52d195; object-fit: cover; }
.clan-card-info { flex: 1; }
.clan-card-name { font-size: 18px; color: #fff; text-transform: uppercase; }
.clan-card-stats { display: flex; gap: 15px; color: #888; font-size: 12px; margin-top: 5px; }
.clan-card-stats span { color: #52d195; }

/* Clan Detail View */
.clan-detail-layout { display: flex; gap: 20px; height: calc(100vh - 180px); }
.clan-detail-left { width: 250px; background: rgba(14, 14, 26, 0.8); border: 1px solid #1C5549; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.clan-detail-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #52d195; margin-bottom: 15px; box-shadow: 0 0 15px rgba(82, 209, 149, 0.3); }
.clan-detail-name { font-size: 18px; color: #fff; text-transform: uppercase; margin-bottom: 5px; }
.clan-detail-score { color: #52d195; font-size: 14px; margin-bottom: 20px; }

.clan-detail-center { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.clan-detail-tabs { display: flex; gap: 5px; border-bottom: 2px solid #1C5549; padding-bottom: 10px; }
.clan-detail-tab { padding: 10px 20px; cursor: pointer; color: #888; text-transform: uppercase; font-size: 13px; border-radius: 6px 6px 0 0; transition: 0.2s; }
.clan-detail-tab.active { color: #52d195; background: rgba(82, 209, 149, 0.1); }

.clan-chat-box { flex: 1; background: rgba(14, 14, 26, 0.8); border: 1px solid #1C5549; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.clan-chat-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.clan-chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.clan-chat-msg-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #1C5549; }
.clan-chat-msg-content { background: rgba(255,255,255,0.03); padding: 8px 12px; border-radius: 8px; max-width: 80%; }
.clan-chat-msg-name { font-size: 11px; color: #52d195; margin-bottom: 2px; }
.clan-chat-msg-text { font-size: 13px; color: #ccc; }
.clan-chat-input-box { display: flex; gap: 10px; padding: 15px; border-top: 1px solid #1C5549; }
.clan-chat-input { flex: 1; background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 12px; border-radius: 8px; font-family: 'Russo One'; outline: none; }
.clan-chat-input:focus { border-color: #52d195; }
.clan-chat-send { padding: 0 20px; background: #52d195; border: none; color: #0e0e1a; border-radius: 8px; cursor: pointer; font-family: 'Russo One'; text-transform: uppercase; transition: 0.2s; }
.clan-chat-send:hover { background: #3b966b; }

.clan-detail-right { width: 300px; background: rgba(14, 14, 26, 0.8); border: 1px solid #1C5549; border-radius: 12px; padding: 15px; overflow-y: auto; }
.clan-members-list { display: flex; flex-direction: column; gap: 10px; }
.clan-member-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.02); transition: 0.2s; }
.clan-member-row:hover { background: rgba(255,255,255,0.05); }
.clan-member-avatar { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #1C5549; }
.clan-member-info { flex: 1; }
.clan-member-name { font-size: 13px; color: #fff; }
.clan-member-role { font-size: 10px; color: #888; text-transform: uppercase; }
.clan-member-role.owner { color: #fbbf24; }
.clan-member-role.deputy { color: #52d195; }
.clan-member-score { font-size: 11px; color: #52d195; }

/* Create Clan Modal */
.create-clan-modal { max-width: 500px; text-align: left; }
.create-clan-form { display: flex; flex-direction: column; gap: 15px; }
.create-clan-label { color: #888; font-size: 12px; text-transform: uppercase; margin-bottom: 5px; display: block; }
.create-clan-input { width: 100%; background: #0a0a14; border: 1px solid #1C5549; color: #fff; padding: 12px; border-radius: 8px; box-sizing: border-box; font-family: 'Russo One'; outline: none; }
.create-clan-input:focus { border-color: #52d195; }
.create-clan-avatar-upload { display: flex; align-items: center; gap: 15px; }
.create-clan-avatar-preview { width: 80px; height: 80px; border-radius: 12px; border: 2px solid #1C5549; background: #0a0a14; display: flex; align-items: center; justify-content: center; color: #555; font-size: 10px; overflow: hidden; }
.create-clan-file-btn { padding: 10px 15px; background: #1C5549; border: none; color: #fff; border-radius: 6px; cursor: pointer; font-family: 'Russo One'; font-size: 12px; }
/* === Контейнеры для карт ролей === */
.role-cards-scroll-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-height: 60vh; /* Ограничиваем высоту, чтобы появился скролл */
    overflow-y: auto;
    overflow-x: hidden; /* Убираем нижний (горизонтальный) скролл */
    padding: 10px 15px 10px 5px; /* Отступ справа, чтобы скролл не налезал на карты */
}

.roledraft-book-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 15px 20px 5px;
}

/* Убираем лишний отступ снизу у карт */
.role-cards-scroll-container .role-card,
.roledraft-book-container .role-card {
    margin-bottom: 35px; /* Отступ для блока редкости снизу карты */
}
/* === Блокировка скролла страницы и настройка списка комнат === */



/* Настраиваем главный контейнер */
.rooms-container {
    height: calc(100vh - 40px); /* Занимаем всю высоту экрана за вычетом отступа сверху */
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Чтобы заголовок "Активные матчи" не сжимался */
.rooms-header {
    flex-shrink: 0;
}

/* Контейнер списка комнат — он будет скроллиться */
#rooms-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px; /* Небольшой отступ, чтобы текст не прилипал к краю */
    padding-bottom: 20px;

    /* Полностью скрываем ползунок (для Firefox) */
    scrollbar-width: none;
    /* Полностью скрываем ползунок (для IE и Edge) */
    -ms-overflow-style: none;
}

/* Полностью скрываем ползунок (для Chrome, Safari и Opera) */
#rooms-list::-webkit-scrollbar {
    width: 0px;
    display: none;
}
/* Management */
.clan-requests-box { margin-bottom: 20px; }
.clan-request-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px; margin-bottom: 5px; }
.clan-request-actions { display: flex; gap: 5px; margin-left: auto; }
.btn-accept { background: #52d195; border: none; color: #0e0e1a; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; }
.btn-decline { background: #ff5050; border: none; color: #fff; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; }