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

/* РћРїС‚РёРјРёР·Р°С†РёСЏ РїСЂРѕРёР·РІРѕРґРёС‚РµР»СЊРЅРѕСЃС‚Рё */
html {
    scroll-behavior: smooth;
}

body {
    /* GPU СѓСЃРєРѕСЂРµРЅРёРµ РґР»СЏ РїР»Р°РІРЅРѕР№ РїСЂРѕРєСЂСѓС‚РєРё */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
}

/* РћРїС‚РёРјРёР·Р°С†РёСЏ РґР»СЏ РєР°СЂС‚РѕС‡РµРє РёРіСЂРѕРєРѕРІ *//* Р’РёСЂС‚СѓР°Р»СЊРЅС‹Р№ СЃРєСЂРѕР»Р»РёРЅРі */
.virtual-scroll-wrapper {
    position: relative;
    width: 100%;
}

.virtual-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--card-spacing);
}

/* РџР»Р°РІРЅР°СЏ РїСЂРѕРєСЂСѓС‚РєР° РґР»СЏ РєРѕРЅС‚РµР№РЅРµСЂРѕРІ */
.players-container, #allPlayers, #unconfiguredPlayers, #reportsPlayers {
    /* РџР»Р°РІРЅР°СЏ РїСЂРѕРєСЂСѓС‚РєР° */
    scroll-behavior: smooth;
    /* РћРїС‚РёРјРёР·Р°С†РёСЏ РїСЂРѕРєСЂСѓС‚РєРё РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    -webkit-overflow-scrolling: touch;
    /* РџСЂРµРґРѕС‚РІСЂР°С‰РµРЅРёРµ Р»Р°РіРѕРІ РїСЂРё РїСЂРѕРєСЂСѓС‚РєРµ */
    will-change: scroll-position;
    /* Р”Р»СЏ РІРёСЂС‚СѓР°Р»СЊРЅРѕРіРѕ СЃРєСЂРѕР»Р»РёРЅРіР° */
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --bg-tertiary: #202020;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --accent-primary: #6777F5;
    --accent-secondary: #8593FE;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --success: #00d4aa;
    --warning: #ffb347;
    --error: #ff6b6b;
    --danger: #ff4757;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #667eea, #764ba2);
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --players-grid-left: 1fr;
    --players-grid-center: 1fr;
    --players-right-width: 1000px;
    --players-section-min-height: 500px;
    --footer-margin-top: 10px;
    --footer-padding-y: 4px;
    --footer-gap: 0px;
    --header-padding: 8px 20px;
    --card-spacing: 6px;
    --section-gap: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden; /* РЈР±РёСЂР°РµРј СЃРєСЂРѕР»Р» РІСЃРµР№ СЃС‚СЂР°РЅРёС†С‹ */
    line-height: 1.6;
    height: 100vh; /* Р¤РёРєСЃРёСЂРѕРІР°РЅРЅР°СЏ РІС‹СЃРѕС‚Р° */
}

/* РљРѕРЅС‚РµР№РЅРµСЂ */
.container {
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Р—Р°РіРѕР»РѕРІРѕРє */
.header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: var(--header-padding);
    margin-bottom: 6px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-title-section {
    justify-self: start;
}

.nav-buttons {
    justify-self: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1.logo-container {
    margin: 0;
    padding: 0;
}

.header h1.logo-container svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.header h1 .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.header h1::before {
    display: none;
}

.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    position: relative;
}

.info-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    position: relative;
    overflow: hidden;
}

.info-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.info-icon:hover {
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(103, 119, 245, 0.3);
}

.info-icon:hover::before {
    opacity: 1;
}

.info-icon:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(103, 119, 245, 0.2);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 18px;
    height: 18px;
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    max-width: 380px;
    min-width: 320px;
}

.info-tooltip-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.info-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.info-tooltip-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.info-tooltip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-tooltip-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-tooltip-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-tooltip-text a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ РґР»СЏ tooltip */
@media (max-width: 768px) {
    .info-tooltip {
        max-width: calc(100vw - 24px);
        min-width: auto;
        left: 0;
        right: 0;
    }
    
    .info-tooltip-content {
        padding: 16px;
    }
    
    .info-tooltip-header {
        gap: 10px;
    }
    
    .info-tooltip-header svg {
        width: 36px;
        height: 36px;
    }
    
    .info-tooltip-title {
        font-size: 18px;
    }
    
    .info-tooltip-text {
        font-size: 12px;
    }
}

/* Р¤РёР»СЊС‚СЂ Р°РєС‚РёРІРЅС‹С… РёРіСЂРѕРєРѕРІ */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* РљРѕРЅС‚СЂРѕР»С‹ СЃРµРєС†РёРё */
.section-controls {
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: none;
}

/* РџРѕРёСЃРє */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.search-container.focused {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(103, 119, 245, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.search-container.focused .search-icon {
    color: var(--accent-primary);
}

.search-input {
    width: 100%;
    padding: 0 2.5rem 0 2.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.clear-search-btn:active {
    transform: scale(0.95);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.filter-toggle:hover {
    background: #2b2b2b;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.filter-toggle:hover .toggle-label {
    color: var(--text-primary);
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-toggle input[type="checkbox"] {
    display: none;
}

.filter-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.filter-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
    box-shadow: 0 2px 6px rgba(103, 119, 245, 0.4);
}

.filter-toggle input[type="checkbox"]:checked ~ .toggle-label {
    color: var(--accent-primary);
}

.stat-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.btn-icon:hover {
    transform: translateY(-1px);
    background: #2b2b2b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-icon#refreshBtn:hover {
    transform: rotate(180deg);
}

.btn-icon#refreshBtn:active {
    transform: rotate(180deg) scale(0.95);
}

.btn-toggle {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(103, 119, 245, 0.1) 0%,
        rgba(133, 147, 254, 0.05) 50%,
        rgba(103, 119, 245, 0.1) 100%
    );
    background-size: 200% 200%;
    animation: toggle-glow 4s ease-in-out infinite;
    opacity: 0.7;
    z-index: 1;
}

.btn-toggle > * {
    position: relative;
    z-index: 2;
}

.btn-toggle:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 119, 245, 0.3);
}

.btn-toggle:hover::before {
    opacity: 1;
    animation-duration: 2s;
}

.btn-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(103, 119, 245, 0.2);
}

.btn-toggle.active {
    background: linear-gradient(135deg,
        rgba(103, 119, 245, 0.15) 0%,
        rgba(103, 119, 245, 0.08) 100%
    );
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(103, 119, 245, 0.25);
}

@keyframes toggle-glow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

.btn-toggle.active {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* РћСЃРЅРѕРІРЅРѕР№ РєРѕРЅС‚РµРЅС‚ */
.main-content {
    flex: 1;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* РЎРѕРѕР±С‰РµРЅРёРµ РѕР± РѕС€РёР±РєРµ */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--error);
}

/* РљРѕРЅС‚РµР№РЅРµСЂ РёРіСЂРѕРєРѕРІ - С‚СЂРµС…РєРѕР»РѕРЅРѕС‡РЅС‹Р№ layout */
.players-container-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.players-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    height: 100%;
    min-height: var(--players-section-min-height);
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 12px;
}

.players-section .empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.section-header.unconfigured-header h2 {
    color: var(--warning);
}

.section-header.configured-header h2 {
    color: var(--accent-primary);
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-header.unconfigured-header .section-count {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.section-header.configured-header .section-count {
    background: rgba(103, 119, 245, 0.15);
    border-color: rgba(103, 119, 245, 0.3);
    color: var(--accent-primary);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

/* Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРЅС‹Рµ РєР°СЂС‚РѕС‡РєРё СЂРµРїРѕСЂС‚РѕРІ */.players-list::-webkit-scrollbar {
    width: 6px;
}

.players-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.players-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.players-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* РЎС‚Р°СЂС‹Р№ РєРѕРЅС‚РµР№РЅРµСЂ РґР»СЏ РѕР±СЂР°С‚РЅРѕР№ СЃРѕРІРјРµСЃС‚РёРјРѕСЃС‚Рё */
.players-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* РџСѓСЃС‚РѕРµ СЃРѕСЃС‚РѕСЏРЅРёРµ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.players-section .empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* РЎРѕРѕР±С‰РµРЅРёРµ Рѕ РІСЂРµРјРµРЅРЅРѕРј РѕС‚РєР»СЋС‡РµРЅРёРё СЂРµРїРѕСЂС‚РѕРІ *//* РљР°СЂС‚РѕС‡РєР° РёРіСЂРѕРєР° */
.player-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    flex-shrink: 0;
    margin: 0 0 4px 0;
    box-shadow: 0 2px 8px var(--shadow);
    /* РќР°С‡Р°Р»СЊРЅРѕРµ СЃРѕСЃС‚РѕСЏРЅРёРµ РґР»СЏ Р°РЅРёРјР°С†РёРё РїРѕСЏРІР»РµРЅРёСЏ */
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    animation: cardFadeIn 0.3s ease forwards;
    /* РћРїС‚РёРјРёР·Р°С†РёСЏ РґР»СЏ РїР»Р°РІРЅРѕР№ Р°РЅРёРјР°С†РёРё */
    will-change: transform, opacity, max-height, margin-bottom, padding;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* РђРЅРёРјР°С†РёСЏ РїРѕСЏРІР»РµРЅРёСЏ РєР°СЂС‚РѕС‡РєРё */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
        margin-bottom: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* РџР»Р°РІРЅРѕРµ СЃРєСЂС‹С‚РёРµ РєР°СЂС‚РѕС‡РєРё */
.player-card.card-hide {
    animation: cardFadeOut 0.3s ease forwards;
    pointer-events: none;
    overflow: hidden;
}

/* РђРЅРёРјР°С†РёСЏ РёСЃС‡РµР·РЅРѕРІРµРЅРёСЏ РєР°СЂС‚РѕС‡РєРё */
@keyframes cardFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
        margin-bottom: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* РџР»Р°РІРЅРѕРµ РїРѕСЏРІР»РµРЅРёРµ РєР°СЂС‚РѕС‡РєРё РїСЂРё РїРѕРєР°Р·Рµ */
.player-card.card-show {
    animation: cardFadeIn 0.3s ease forwards;
}

/* РџР»Р°РІРЅС‹Рµ РїРµСЂРµС…РѕРґС‹ РґР»СЏ РєРѕРЅС‚РµР№РЅРµСЂР° СЃРїРёСЃРєР° */
.players-list > * {
    transition: margin 0.3s ease, opacity 0.3s ease;
}

.player-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.player-card.has-difference {
    border-color: var(--warning);
}

.player-card.unconfigured-player {
    border-left: 3px solid var(--warning);
}

.player-header {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 6px;
    position: relative;
}

.player-info {
    flex: 0 0 auto;
    min-width: 0;
}

/* РРЅС„РѕСЂРјР°С†РёСЏ Рѕ РґР°С‚Рµ СЃРѕР·РґР°РЅРёСЏ РїРѕ С†РµРЅС‚СЂСѓ */
.account-date-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.12);
    border: 1px solid rgba(103, 119, 245, 0.28);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s;
    flex: 1;
    position: relative;
}

.account-date-info svg {
    position: absolute;
    top: 6px;
    left: 6px;
    flex-shrink: 0;
    opacity: 0.8;
    width: 16px;
    height: 16px;
}

.account-date-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.account-date-full {
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.account-date-relative {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.account-date-info.no-profile {
    color: var(--text-muted);
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
}

.account-date-info:hover {
    background: rgba(103, 119, 245, 0.2);
    border-color: rgba(103, 119, 245, 0.4);
}

/* РРЅС„РѕСЂРјР°С†РёСЏ Рѕ СЃРµСЂРІРµСЂРµ СЃРїСЂР°РІР° */
.server-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.game-type-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-right: 10px;
    border-right: 1px solid var(--border-color);
}

.game-type-icon {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.game-type-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.server-info-right.game-type-cs2 .game-type-label {
    color: #ffa500;
}

.server-info-right.game-type-csgo .game-type-label {
    color: #4a9eff;
}

.server-details-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary);
}

.server-detail-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.player-card:hover .player-avatar {
    border-color: var(--accent-primary);
}

.player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    word-break: break-word;
    cursor: pointer;
    user-select: text;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
    display: block;
    width: fit-content;
}

.player-name:hover {
    background: rgba(103, 119, 245, 0.15);
    color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(103, 119, 245, 0.3);
}

.player-name:active {
    transform: scale(0.95);
}

.player-steamid {
    font-size: 9px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    margin-bottom: 0;
    cursor: pointer;
    user-select: text;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
    display: block;
    width: fit-content;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.player-steamid:hover {
    background: rgba(103, 119, 245, 0.15);
    color: var(--accent-primary);
    border-color: rgba(103, 119, 245, 0.3);
    box-shadow: 0 0 0 1px rgba(103, 119, 245, 0.3);
}

.player-steamid:active {
    transform: scale(0.95);
}

.no-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.no-profile-badge svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* РќРѕРІР°СЏ СЃС‚СЂСѓРєС‚СѓСЂР° РґР»СЏ РєР°СЂС‚РѕС‡РµРє СЃ СЂР°Р·Р»РёС‡РёСЏРјРё */
.player-header-differences {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
}

.player-data-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    position: relative;
}

.player-data-side.fear-side {
    border: 1px solid rgba(103, 119, 245, 0.3);
}

.player-data-side.steam-side {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.data-side-label {
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.fear-side .data-side-label {
    color: var(--accent-primary);
    border-color: rgba(103, 119, 245, 0.3);
}

.steam-side .data-side-label {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.difference-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 50%;
    color: var(--warning);
}

.difference-indicator svg {
    width: 20px;
    height: 20px;
}

.time-server-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 6px;
}

.time-server-row .account-date-info {
    flex: 1;
}

.time-server-row .server-info-right {
    flex-shrink: 0;
}

/* РЎС‚Р°СЂС‹Рµ СЃС‚РёР»Рё РґР»СЏ СЂР°Р·Р»РёС‡РёР№ (РѕСЃС‚Р°РІР»СЏРµРј РґР»СЏ СЃРѕРІРјРµСЃС‚РёРјРѕСЃС‚Рё) */
.differences-section-new {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 6px;
    margin-top: 0;
    margin-bottom: 6px;
    overflow: hidden;
}

.difference-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    margin-bottom: 6px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    white-space: nowrap;
    font-weight: 600;
}

.difference-badge-new svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.differences-content-new {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.difference-row {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0;
}

.difference-row.difference-avatars {
    align-items: center;
}

.difference-row.difference-avatars .difference-source {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.difference-row.difference-nicknames {
    align-items: stretch;
}

.difference-row.difference-nicknames .difference-source {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.difference-row.difference-nicknames .difference-source-label {
    margin-bottom: 1px;
}

.difference-source {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.difference-source:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(245, 158, 11, 0.4);
}

.difference-source-label {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0.9;
    flex-shrink: 0;
}

.difference-value {
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    min-width: 0;
}

.difference-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.5);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s;
}

.difference-avatar:hover {
    transform: scale(1.05);
    border-color: var(--warning);
}

.difference-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--warning);
    object-fit: cover;
    flex-shrink: 0;
}

.server-info {
    display: flex;
    background: rgba(103, 119, 245, 0.1);
    border: 1px solid rgba(103, 119, 245, 0.2);
    border-radius: 6px;
    padding: 0;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
}

/* Р›РµРІР°СЏ С‡Р°СЃС‚СЊ СЃ РёРЅС„РѕСЂРјР°С†РёРµР№ */
.server-content {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-name {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 11px;
}

/* РџСЂР°РІР°СЏ РїР°РЅРµР»СЊ СЃ С‚РёРїРѕРј РёРіСЂС‹ */
.game-type-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    padding: 6px 10px;
    position: relative;
    overflow: hidden;
}

/* РђРЅРёРјРёСЂРѕРІР°РЅРЅС‹Р№ С„РѕРЅ РґР»СЏ РїР°РЅРµР»Рё */
.game-type-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(28px);
    }
}

.game-type-logo {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.game-type-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.game-type-panel.game-type-cs2 {
    background: linear-gradient(135deg, #00d4aa 0%, #00a884 50%, #008866 100%);
    box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.2);
}

.game-type-panel.game-type-csgo {
    background: linear-gradient(135deg, #ffb347 0%, #ff9020 50%, #ff7700 100%);
    box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.2);
}

/* CS:GO Р»РѕРіРѕС‚РёРї - РґРµР»Р°РµРј Р±РµР»С‹Рј */
.game-type-panel.game-type-csgo .game-type-logo {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.server-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
    color: var(--text-secondary);
}

.server-detail-item {
    display: flex;
    gap: 3px;
    align-items: center;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}

.stat-label-small {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value-small.kills {
    color: var(--success);
}

.stat-value-small.deaths {
    color: var(--error);
}

.stat-value-small.ping {
    color: var(--accent-primary);
}

/* Steam ID РІРЅРёР·Сѓ РєР°СЂС‚РѕС‡РєРё */
.steam-id-bottom {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(103, 119, 245, 0.1);
    border: 1px solid rgba(103, 119, 245, 0.25);
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 10px;
}

.steam-id-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steam-id-value {
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 10px;
}

.player-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.btn-group {
    display: flex;
    gap: 3px;
    flex: 1;
    min-width: 100px;
}

.btn-group .btn-compact {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-group .btn-compact svg {
    flex-shrink: 0;
    margin-left: 2px;
    width: 12px;
    height: 12px;
}

.btn-group .btn-compact span {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-group .btn-compact:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.btn-group .btn-compact:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn-compact:hover {
    transform: translateY(-1px);
    background: #2b2b2b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 1;
    position: relative;
}

.btn-group .btn-compact:active {
    transform: translateY(0);
}

.btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn:hover {
    transform: translateY(-1px);
    background: #2b2b2b;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #6777F5;
    border-color: rgba(103, 119, 245, 0.3);
    color: white;
}

.btn-primary:hover {
    background: #5566e6;
}

/* РњРёРЅРё РєРЅРѕРїРєР° РєРѕРїРёСЂРѕРІР°РЅРёСЏ */
.btn-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 8px;
    margin-left: 4px;
}

.btn-copy-mini:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.btn-copy-mini:active {
    transform: scale(0.95);
}

.btn-copy-mini svg {
    width: 8px;
    height: 8px;
}

/* РњРёРЅРё РіСЂСѓРїРїРѕРІС‹Рµ РєРЅРѕРїРєРё РґР»СЏ РїСЂРѕС„РёР»РµР№ */
.btn-group-mini {
    display: flex;
    gap: 1px;
    align-items: center;
    margin-right: 4px;
}

.btn-compact-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 8px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
}

.btn-compact-mini:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.btn-compact-mini:active {
    transform: translateY(0);
}

.btn-compact-mini svg {
    width: 8px;
    height: 8px;
    margin-right: 2px;
}

.btn svg {
    width: 14px;
    height: 14px;
}

/* Toast СѓРІРµРґРѕРјР»РµРЅРёСЏ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 240px;
    max-width: 380px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

/* РђРЅРёРјР°С†РёРё */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* РЎРєСЂРѕР»Р»Р±Р°СЂ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ */
@media (max-width: 1400px) {
    .players-container-split {
        grid-template-columns: 1fr 1fr 280px;
        gap: 10px;
    }
}

@media (max-width: 1900px) {
    /* РђРґР°РїС‚РёРІРЅС‹Р№ layout РґР»СЏ РѕР±С‹С‡РЅС‹С… РєР°СЂС‚РѕС‡РµРє (Р±РµР· СЂР°Р·Р»РёС‡РёР№) */
    .player-card:not(.has-difference) .player-header {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
    }
    
    .player-card:not(.has-difference) .player-header .player-avatar {
        order: 1;
        flex: 0 0 auto;
    }
    
    .player-card:not(.has-difference) .player-header .player-info {
        order: 2;
        flex: 1 1 100%;
        max-width: calc(100% - 60px);
    }
    
    .player-card:not(.has-difference) .player-header .account-date-info {
        order: 3;
        flex: 1 1 auto;
        margin-top: 0;
        min-width: 0;
        align-self: stretch;
    }
    
    .player-card:not(.has-difference) .player-header .server-info-right {
        order: 4;
        flex: 0 0 auto;
        margin-top: 0;
        margin-left: 0;
        align-self: stretch;
    }
}

@media (max-width: 1200px) {
    .players-container-split {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .players-section {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .players-container {
        grid-template-columns: 1fr;
    }
    
    .players-container-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    /* РЈР»СѓС‡С€РµРЅРёРµ РєР°СЂС‚РѕС‡РµРє РёРіСЂРѕРєРѕРІ РґР»СЏ РјРѕР±РёР»СЊРЅС‹С… */
    .player-card {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .player-header {
        margin-bottom: 12px;
    }
    
    .player-avatar {
        width: 56px;
        height: 56px;
    }
    
    .player-info {
        margin-left: 12px;
    }
    
    .player-name {
        font-size: 16px;
    }
    
    .player-stats {
        margin: 12px 0;
        gap: 8px;
    }
    
    /* РЈР»СѓС‡С€РµРЅРёРµ РєРЅРѕРїРѕРє РґР»СЏ РјРѕР±РёР»СЊРЅС‹С… (СѓРІРµР»РёС‡РµРЅРёРµ touch targets) */
    .player-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        min-height: 44px; /* РњРёРЅРёРјР°Р»СЊРЅС‹Р№ СЂР°Р·РјРµСЂ РґР»СЏ touch targets */
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-group {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-group .btn-compact {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .btn-group .btn-compact:first-child,
    .btn-group .btn-compact:last-child {
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .server-info {
        margin: 12px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .server-details {
        flex-direction: column;
        gap: 8px;
    }
    
    /* РЈР»СѓС‡С€РµРЅРёРµ РїРѕРёСЃРєР° РґР»СЏ РјРѕР±РёР»СЊРЅС‹С… */
    .search-container {
        margin-bottom: 16px;
    }
    
    .search-input {
        font-size: 16px; /* РџСЂРµРґРѕС‚РІСЂР°С‰Р°РµС‚ zoom РЅР° iOS */
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    /* РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ РґР»СЏ РєР°СЂС‚РѕС‡РµРє СЂРµРїРѕСЂС‚РѕРІ */}

/* Lazy loading РґР»СЏ РёР·РѕР±СЂР°Р¶РµРЅРёР№ */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
    background: var(--bg-tertiary);
    background-image: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

img.lazy-loaded {
    opacity: 1;
    animation: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* РџСЂРµРґСѓРїСЂРµР¶РґРµРЅРёРµ РѕР± РѕС‚СЃСѓС‚СЃС‚РІРёРё РґР°РЅРЅС‹С… */
.no-data-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: 12px;
    color: var(--text-primary);
    margin: 20px 0;
}

.no-data-warning svg {
    color: var(--warning);
    flex-shrink: 0;
}

.no-data-warning strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.no-data-warning p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* РСЃРїСЂР°РІР»РµРЅРЅС‹Р№ CSS РґР»СЏ СЂРµРїРѕСЂС‚РѕРІ - Р РђР—Р”Р•Р›Р•РќРќР«Р™ РќРђ 2 Р§РђРЎРўР *//* РљРѕРЅС‚РµР№РЅРµСЂС‹ РґР»СЏ СѓС‡Р°СЃС‚РЅРёРєРѕРІ *//* Р›РµРІР°СЏ С‡Р°СЃС‚СЊ (РѕС‚РїСЂР°РІРёС‚РµР»СЊ) *//* РџСЂР°РІР°СЏ С‡Р°СЃС‚СЊ (РЅР°СЂСѓС€РёС‚РµР»СЊ) *//* РЎС‚РёР»Рё РґР»СЏ РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅРѕР№ РёРЅС„РѕСЂРјР°С†РёРё РїРѕРґ Р°РІР°С‚Р°СЂРѕРј */
.participant-account,
.participant-steamid {
    width: 100%;
    margin-top: 4px;
    text-align: center; /* Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ С‚РµРєСЃС‚Р° РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ */
    justify-content: center; /* Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ СЃРѕРґРµСЂР¶РёРјРѕРіРѕ */
}

/* Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ СЌР»РµРјРµРЅС‚РѕРІ РІ РѕР±РѕРёС… РєРѕРЅС‚РµР№РЅРµСЂР°С… РїСЂРѕС„РёР»РµР№ *//* РЎРїРµС†РёР°Р»СЊРЅС‹Рµ РїСЂР°РІРёР»Р° СЂР°СЃРїРѕР»РѕР¶РµРЅРёСЏ С‚РѕР»СЊРєРѕ РґР»СЏ С‚РµРєСЃС‚Р° Рё РєРЅРѕРїРєРё РєРѕРїРёСЂРѕРІР°РЅРёСЏ РІ Steam ID */.participant-account {
    font-size: 11px;
    color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
    border: 1px solid rgba(103, 119, 245, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 3px;
    display: block;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
}

.participant-steamid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: center;
}

/* Р’С‹СЂР°РІРЅРёРІР°РЅРёРµ РґР»СЏ Р»РµРІРѕР№ С‡Р°СЃС‚Рё *//* Р’С‹СЂР°РІРЅРёРІР°РЅРёРµ РґР»СЏ РїСЂР°РІРѕР№ С‡Р°СЃС‚Рё */.btn-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 8px;
    margin-left: 4px;
    flex-shrink: 0;
}.btn-copy-mini:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}/* РљРЅРѕРїРєРё РІ СЂРµРїРѕСЂС‚Рµ *//* РњРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ СЂРµРїРѕСЂС‚РѕРІ */.participant {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 250px;
}

.participant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
    flex-shrink: 0;
}

.participant-info {
    flex: 1;
    min-width: 0;
}

.participant-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.participant-label-reported {
    color: var(--warning);
    font-weight: 700;
}

.participant-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    word-break: break-word;
}

.participant-steamid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 2px;
}

.participant-account {
    font-size: 11px;
    color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
    border: 1px solid rgba(103, 119, 245, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 3px;
    display: block;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
}.detail-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
    font-size: 12px;
}/* Footer */
.footer {
    margin-top: var(--footer-margin-top);
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-height: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: auto;
}

.footer-link:hover {
    color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
}

.footer-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.footer-link-telegram {
    background: #0077b3 !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-telegram .telegram-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.footer-link-telegram:hover {
    background: #006799 !important;
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.4);
    transform: translateY(-1px);
}

.footer-separator {
    display: none;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.footer-text {
    color: var(--text-muted);
    font-size: 11px;
}

.footer-copyright {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright .footer-text {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

/* РњРѕР±РёР»СЊРЅР°СЏ Р°РґР°РїС‚Р°С†РёСЏ С„СѓС‚РµСЂР° */
@media (max-width: 768px) {
    .footer {
        padding: 24px 16px;
        margin-top: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }

    .footer-contact {
        flex-direction: column;
        gap: 4px;
    }
}

/* РџР»Р°РІРЅС‹Рµ Р°РЅРёРјР°С†РёРё РґР»СЏ РєР°СЂС‚РѕС‡РµРє СЂРµРїРѕСЂС‚РѕРІ */.card-hide {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==================== РџР°РЅРµР»СЊ В«РћР±С…РѕРґ Р±Р°РЅР°В» ==================== */

.evasion-header {
    border-bottom: 2px solid rgba(255, 71, 87, 0.35);
}

.evasion-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b7a;
}

.evasion-title-icon {
    color: #ff6b7a;
    flex-shrink: 0;
}

.evasion-hint {
    font-size: 10px;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 7px 10px;
    margin-bottom: 8px;
    background: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.14);
    border-radius: 8px;
}

.evasion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evasion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}.evasion-card-enter {
    animation: evasionFadeIn 0.4s ease backwards;
}

@keyframes evasionFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}.evasion-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.evasion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
}

.evasion-avatar-wrap.online::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 6px rgba(0, 212, 170, 0.6);
}

.evasion-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.evasion-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evasion-steamid {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evasion-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.evasion-badge.danger {
    background: rgba(255, 71, 87, 0.14);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.35);
    animation: evasionPulse 2.4s ease-in-out infinite;
}

.evasion-badge.neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

@keyframes evasionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.25); }
    50% { box-shadow: 0 0 0 5px rgba(255, 71, 87, 0); }
}.evasion-card-caption {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 6px 0;
}

.evasion-alt {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.evasion-alt:last-child {
    margin-bottom: 0;
}

.evasion-alt.has-fp-ban {
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.04);
}

.evasion-alt-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.evasion-alt-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evasion-alt-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.evasion-alt-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 4px;
}

.evasion-alt.has-fp-ban .evasion-alt-tag {
    background: rgba(255, 71, 87, 0.16);
    color: #ff6b7a;
}

.evasion-alt:not(.has-fp-ban) .evasion-alt-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.evasion-alt-steamid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    transition: color 0.2s ease;
}

.evasion-alt-steamid:hover {
    color: var(--accent-secondary);
}

.evasion-alt-steamid:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.evasion-alt-bans {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evasion-punishment {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.evasion-pun-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2.5px 7px;
    border-radius: 4px;
}

.evasion-pun-badge.fp-ban {
    background: rgba(255, 71, 87, 0.15);
    color: #ff5a6e;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.evasion-pun-badge.yooma-ban {
    background: rgba(171, 102, 255, 0.14);
    color: #b98bff;
    border: 1px solid rgba(171, 102, 255, 0.35);
}

.evasion-pun-badge.clean {
    background: rgba(0, 212, 170, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.evasion-pun-reason {
    font-size: 11px;
    color: var(--text-secondary);
}

.evasion-pun-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.evasion-alt-reg {
    font-size: 9.5px;
    color: var(--text-muted);
}

.evasion-alt-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    justify-content: center;
}

.evasion-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.evasion-link-btn:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.evasion-link-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.evasion-empty {
    display: flex;
}

.evasion-spinner {
    animation: evasionSpin 1s linear infinite;
    color: var(--accent-primary);
}

@keyframes evasionSpin {
    to { transform: rotate(360deg); }
}

/* РњРѕР±РёР»СЊРЅР°СЏ Р°РґР°РїС‚Р°С†РёСЏ РїР°РЅРµР»Рё РѕР±С…РѕРґРѕРІ */
@media (max-width: 768px) {
    .evasion-alt {
        flex-direction: column;
    }

    .evasion-alt-links {
        flex-direction: row;
    }
}

/* РљР°СЂС‚РѕС‡РєР° РѕР±С…РѕРґР° вЂ” РєРѕРјРїР°РєС‚РЅР°СЏ СЃ РєРЅРѕРїРєР°РјРё */
.evasion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.evasion-card:hover {
    border-color: rgba(255, 71, 87, 0.45);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.1);
    transform: translateY(-1px);
}

.evasion-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.evasion-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.evasion-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evasion-steamid {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evasion-alt-count {
    font-size: 10px;
    color: var(--text-secondary);
}

.evasion-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.evasion-badge.danger {
    background: rgba(255, 71, 87, 0.14);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.35);
    animation: evasionPulse 2.4s ease-in-out infinite;
}

.evasion-badge.neutral {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

@keyframes evasionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.25); }
    50% { box-shadow: 0 0 0 5px rgba(255, 71, 87, 0); }
}

/* РљРЅРѕРїРєРё РґРµР№СЃС‚РІРёР№ */
.evasion-card-actions {
    display: flex;
    gap: 6px;
    padding: 0 12px 10px;
    flex-wrap: wrap;
}

.evasion-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.evasion-act-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
    transform: translateY(-1px);
}

.evasion-act-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.evasion-act-btn.connect {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: #fff;
}

.evasion-act-btn.connect:hover {
    box-shadow: 0 4px 12px rgba(103, 119, 245, 0.35);
}

.evasion-card-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 7px 0;
    background: rgba(255, 71, 87, 0.06);
    border: none;
    border-top: 1px solid rgba(255, 71, 87, 0.15);
    color: #ff6b7a;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.evasion-card-open:hover {
    background: rgba(255, 71, 87, 0.12);
}

.evasion-card-open:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

/* ==================== РњРѕРґР°Р»РєР° РѕР±С…РѕРґРѕРІ ==================== */

.evasion-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.evasion-modal-overlay.show {
    opacity: 1;
}

.evasion-modal {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary, #161616);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.evasion-modal-overlay.show .evasion-modal {
    transform: translateY(0) scale(1);
}

.evasion-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.evasion-modal-header .evasion-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.evasion-modal-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.evasion-modal-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evasion-modal-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.evasion-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.evasion-modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(255, 71, 87, 0.5);
    background: rgba(255, 71, 87, 0.1);
    transform: rotate(90deg);
}

.evasion-modal-close:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.evasion-modal-actions {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.evasion-modal-caption {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 12px 18px 8px;
    flex-shrink: 0;
}

.evasion-modal-list {
    overflow-y: auto;
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evasion-modal-list::-webkit-scrollbar {
    width: 6px;
}

.evasion-modal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 87, 0.3);
    border-radius: 3px;
}

/* ==================== Р‘РѕРєРѕРІР°СЏ РїР°РЅРµР»СЊ РЅР°РІРёРіР°С†РёРё ==================== */

.container {
    flex-direction: row;
    padding: 8px;
    gap: 8px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 190px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 10px;
    box-shadow: var(--shadow-md);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.sidebar-brand-icon {
    flex-shrink: 0;
    border-radius: 6px;
}

.sidebar-brand-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

.sidebar-item:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(103, 119, 245, 0.3);
}

.sidebar-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sidebar-item.active .sidebar-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-count.has-items {
    background: rgba(255, 71, 87, 0.18);
    color: #ff6b7a;
}

.sidebar-item.active .sidebar-count.has-items {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.sidebar-foot-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-foot-link:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Р’РєР»Р°РґРєРё */
.tab-section {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: tabFadeIn 0.3s ease;
}

.tab-section.active {
    display: flex;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Р’РєР»Р°РґРєР° РёРіСЂРѕРєРѕРІ вЂ” РґРІРµ РєРѕР»РѕРЅРєРё */
.players-container-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.players-container-two .players-section {
    min-height: 0;
}

/* ==================== Р’РєР»Р°РґРєР° РѕР±С…РѕРґРѕРІ ==================== */

.evasion-tab-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.evasion-tab-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 700;
    color: #ff6b7a;
    margin: 0;
}

.evasion-tab-title svg {
    flex-shrink: 0;
}

.evasion-tab-count {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 71, 87, 0.14);
    border: 1px solid rgba(255, 71, 87, 0.35);
}

.evasion-tab-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.evasion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    overflow-y: auto;
    align-content: start;
    flex: 1;
    min-height: 0;
    padding-bottom: 4px;
}

.evasion-grid::-webkit-scrollbar {
    width: 8px;
}

.evasion-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 87, 0.25);
    border-radius: 4px;
}

/* РљР°СЂС‚РѕС‡РєР° РѕР±С…РѕРґР° РЅР° РІРєР»Р°РґРєРµ */
#tab-evasion .evasion-card {
    display: flex;
    flex-direction: column;
}

#tab-evasion .evasion-card-top {
    flex: 1;
}

/* РСЃС‚РѕСЂРёСЏ СЃРјРµРЅ IP РІ РјРѕРґР°Р»РєРµ */
.evasion-history {
    margin-top: 4px;
}

.evasion-history-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 10px 0 6px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.evasion-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.evasion-history-item:hover {
    border-color: rgba(255, 71, 87, 0.35);
}

.evasion-history-item.current {
    border-color: rgba(0, 212, 170, 0.3);
}

.evasion-history-when {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 90px;
}

.evasion-history-accounts {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.evasion-history-chip {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.evasion-history-chip.banned {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.35);
    color: #ff6b7a;
}

.evasion-history-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.evasion-history-badge.current {
    background: rgba(0, 212, 170, 0.14);
    color: var(--success);
}

.evasion-history-badge.change {
    background: rgba(255, 179, 71, 0.14);
    color: var(--warning);
}

/* РњРѕР±РёР»СЊРЅР°СЏ Р°РґР°РїС‚Р°С†РёСЏ */
@media (max-width: 1100px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 8px 12px;
    }

    .sidebar-brand {
        padding: 0 12px 0 0;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        margin-bottom: 0;
        margin-right: 10px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex: 1;
    }

    .sidebar-item span:not(.sidebar-count) {
        display: none;
    }

    .sidebar-foot {
        flex-direction: row;
        border-top: none;
        border-left: 1px solid var(--border-color);
        padding-top: 0;
        padding-left: 10px;
    }

    .sidebar-foot-link span {
        display: none;
    }

    .players-container-two {
        grid-template-columns: 1fr;
    }
}
.evasion-history-loading {
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 10px;
}

/* ==================== Правки интерфейса (19.10.2026) ==================== */

/* Иконка поиска больше не наезжает на placeholder на узких экранах */
.search-input {
    padding-left: 44px;
}

/* Карточки обходов схлопывались в полоски ~6px: auto-ряды грида считались по min-content.
   max-content возвращает карточкам их нормальную высоту, грид скроллится как и задумано. */
.evasion-grid {
    grid-auto-rows: max-content;
}

/* Блок «Загрузка данных» до прихода первого апдейта */
.players-section .loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 1;
    pointer-events: none;
}

/* Предупреждение о давно не обновлявшихся проверках обходов */
.evasion-tab-warning {
    font-size: 11px;
    color: var(--warning);
    background: rgba(255, 179, 71, 0.1);
    border: 1px solid rgba(255, 179, 71, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
}

/* ==================== Вкладка «Обходы»: карточки и модалка (20.10.2026) ==================== */

/* Бейдж «в сети» в заголовке вкладки */
.evasion-tab-online {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.35);
    color: var(--success);
    white-space: nowrap;
}

/* Пометка на карточке: игрок сейчас на сервере */
.evasion-online-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    margin-top: 2px;
}

.evasion-online-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

/* ── Чипы: онлайн, тип общего IP, оценка обхода от yooma ── */
.evasion-tags,
.evasion-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.evasion-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    white-space: nowrap;
}

.evasion-chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Онлайн — зелёный */
.evasion-chip.online {
    color: var(--success);
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.08);
}

/* Тип сети: домашний — сильный сигнал, мобильный — средний, хостинг/relay — слабый */
.evasion-chip.net-home {
    color: #6ee7b7;
    border-color: rgba(0, 212, 170, 0.35);
    background: rgba(0, 212, 170, 0.1);
}

.evasion-chip.net-mobile {
    color: var(--warning);
    border-color: rgba(255, 179, 71, 0.35);
    background: rgba(255, 179, 71, 0.1);
}

.evasion-chip.net-hosting,
.evasion-chip.net-relay {
    color: #93a4b8;
    border-color: rgba(147, 164, 184, 0.3);
    background: rgba(147, 164, 184, 0.08);
}

/* Оценка обхода от yooma */
.evasion-chip.level-certain {
    color: #ff6b7a;
    border-color: rgba(255, 71, 87, 0.4);
    background: rgba(255, 71, 87, 0.12);
}

.evasion-chip.level-high {
    color: var(--warning);
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.1);
}

.evasion-chip.level-medium {
    color: #d9c37a;
    border-color: rgba(217, 195, 122, 0.3);
    background: rgba(217, 195, 122, 0.08);
}

.evasion-chip.level-low {
    color: var(--text-muted);
}

/* Метка уровня у связанного аккаунта в модалке */
.evasion-alt-tag.level-certain,
.evasion-alt-tag.level-high {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.35);
    color: #ff6b7a;
}

.evasion-alt-tag.level-medium {
    background: rgba(255, 179, 71, 0.12);
    border-color: rgba(255, 179, 71, 0.3);
    color: var(--warning);
}

.evasion-alt-tag.level-low {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Низ карточки — тихая ссылка с шевроном вместо широкой плашки */
.evasion-card-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    width: auto;
    margin-top: 8px;
    padding: 4px 8px 4px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, gap 0.2s ease;
}

.evasion-card-open:hover {
    color: var(--accent-secondary);
    gap: 8px;
}

/* Постоянная пульсация бейджа банов — лишний шум */
.evasion-badge.danger {
    animation: none;
}

/* ── Модалка: окно фиксированной высоты, скроллятся только панели ── */
.evasion-modal {
    max-height: min(88vh, 900px);
}

.evasion-modal-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.evasion-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 2px;
    margin-bottom: -1px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.evasion-tab-btn + .evasion-tab-btn {
    margin-left: 16px;
}

.evasion-tab-btn:hover {
    color: var(--text-secondary);
}

.evasion-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

.evasion-tab-num {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.evasion-tab-btn.active .evasion-tab-num {
    background: rgba(103, 119, 245, 0.18);
    color: var(--accent-secondary);
}

.evasion-modal-meta {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.evasion-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.evasion-pane {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.evasion-pane.active {
    display: flex;
}

/* Поиск по связанным аккаунтам */
.evasion-modal-search {
    position: relative;
    margin: 12px 18px 0;
    flex-shrink: 0;
}

.evasion-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: inline-flex;
    pointer-events: none;
}

.evasion-modal-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}

.evasion-modal-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.evasion-modal-search input::placeholder {
    color: var(--text-muted);
}

/* Список твинков и история скроллятся внутри панели, окно не растёт */
.evasion-modal-list,
.evasion-history {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 18px 18px;
}

/* История: строка-заголовок + свёрнутые чипы */
.evasion-history-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.evasion-history-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.evasion-history-total {
    font-size: 11px;
    color: var(--text-muted);
}

.evasion-history-more {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.evasion-history-more:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.evasion-history-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Бейдж «в сети» в шапке модалки */
.evasion-badge.online {
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--success);
}

@media (max-width: 768px) {
    .evasion-modal {
        max-height: 92vh;
    }

    /* Строки связанных аккаунтов компактнее: аватар и ссылки в одну строку с текстом */
    .evasion-alt {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .evasion-alt-avatar {
        width: 40px;
        height: 40px;
    }

    .evasion-alt-links {
        flex-direction: row;
        margin-left: auto;
        align-self: flex-start;
    }

    .evasion-modal-tabs {
        padding: 0 14px;
    }

    .evasion-tab-btn {
        padding: 9px 2px;
        font-size: 12px;
    }

    .evasion-modal-list,
    .evasion-history {
        padding: 10px 14px 14px;
    }

    .evasion-modal-search {
        margin: 10px 14px 0;
    }

    .evasion-modal-meta {
        display: none;
    }

    .evasion-tab-btn + .evasion-tab-btn {
        margin-left: 10px;
    }
}

@media (max-width: 1100px) {
    /* Мобильная шапка: убираем дубль логотипа и дубль ссылок (они есть в header и footer) */
    .sidebar-brand,
    .sidebar-foot {
        display: none;
    }

    .sidebar {
        padding: 6px 10px;
    }

    .sidebar-nav {
        gap: 6px;
    }

    .sidebar-item {
        padding: 8px 14px;
    }

    /* Секции стекаются в столбик и не влезают в 100vh — страница скроллится целиком */
    body {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .main-content {
        overflow: visible;
    }

    .players-section {
        height: auto;
        min-height: 380px;
    }

    .players-list {
        max-height: 65vh;
    }
}

@media (max-width: 768px) {
    /* Карточка игрока: кнопки в один столбец, иначе подписи обрезаются */
    .player-actions {
        grid-template-columns: 1fr;
    }

    .players-section {
        min-height: 320px;
    }

    .players-list {
        max-height: 60vh;
    }

    /* Список обходов скроллится внутри блока, а не растягивает страницу на десятки экранов */
    .evasion-grid {
        max-height: 70vh;
    }

    /* Шапка на телефоне: логотип и навигация в столбик.
       Раньше тут стоял flex-direction: column на гриде — он не работает, и шапка уезжала за экран. */
    .header-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .header-title-section {
        justify-self: center;
        align-items: center;
    }

    .nav-buttons {
        justify-self: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info-tooltip {
        min-width: 0;
        max-width: calc(100vw - 40px);
    }
}

/* ==================== Matte-поверхности и доступность (20.10.2026) ==================== */
/* Ориентир — тёмные дашборды из каталога startbuildingweb: матовые панели,
   ставка на 1px границы вместо тяжёлых теней, единый радиус поверхностей. */

:root {
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --radius-card: 14px;
}

/* Единый радиус основных поверхностей */
.header,
.sidebar,
.players-section,
.evasion-card,
.evasion-modal {
    border-radius: var(--radius-card);
}

/* Ховер карточки игрока — без тяжёлой тени */
.player-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

/* Скроллбар списка обходов — как у остальных списков */
.evasion-grid::-webkit-scrollbar {
    width: 6px;
}

.evasion-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.evasion-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Карточку обхода можно открыть с клавиатуры — фокус должно быть видно */
.evasion-card:focus-visible,
.evasion-card-open:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Мобильные высоты: dvh учитывает панели браузера, 100vh их игнорирует */
@supports (height: 100dvh) {
    @media (max-width: 1100px) {
        body,
        .container {
            min-height: 100dvh;
        }
    }
}

/* Кнопки у связанного аккаунта — с подписями Steam / Fear (были две одинаковые стрелки) */
.evasion-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: auto;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.evasion-link-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(103, 119, 245, 0.1);
    color: var(--text-primary);
}

.evasion-alt-links {
    gap: 6px;
}

@media (max-width: 768px) {
    .evasion-link-btn {
        padding: 5px 8px;
        font-size: 10.5px;
    }
}

/* ==================== Верхняя панель на всю ширину, сайдбар под ней (20.10.2026) ==================== */

/* Десктоп: шапка — своя строка на всю ширину, под ней сайдбар слева и контент справа.
   .content-area распускается через display: contents, поэтому шапка, контент и футер
   становятся строками сетки — разметку менять не пришлось. */
@media (min-width: 1101px) {
    .container {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "header  header"
            "sidebar main"
            "footer  footer";
        gap: 8px;
        padding: 8px;
        height: 100vh;
        overflow: hidden;
    }

    .content-area {
        display: contents;
    }

    .header {
        grid-area: header;
        margin-bottom: 0;
    }

    /* Логотип и кнопка информации из шапки убраны (логотип есть в сайдбаре) — навигация по центру */
    .header-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        grid-area: sidebar;
        width: 190px;
    }

    .main-content {
        grid-area: main;
        min-height: 0;
    }

    .footer {
        grid-area: footer;
        margin-top: 0;
    }
}

/* Планшет и телефон: тот же порядок — сначала шапка, потом панель вкладок */
@media (max-width: 1100px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .content-area {
        display: contents;
    }

    .header {
        order: 1;
        margin-bottom: 6px;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 3;
    }

    .footer {
        order: 4;
    }
}