* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --rust-orange: #ce422b;
    --rust-orange-bright: #ff6b35;
    --rust-orange-glow: rgba(206, 66, 43, 0.4);
    --bg-dark: #0a0a0a;
    --bg-panel: #131313;
    --bg-card: #1a1a1a;
    --bg-elevated: #222222;
    --border: #2a2a2a;
    --border-light: #333333;
    --text-primary: #f5f5f5;
    --text-secondary: #9a9a9a;
    --text-muted: #666666;
    --online: #4ade80;
    --online-glow: rgba(74, 222, 128, 0.5);
    --offline: #ef4444;
    --offline-glow: rgba(239, 68, 68, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px 15px;
    position: relative;
}

/* Фоновые эффекты */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(206, 66, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(206, 66, 43, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--rust-orange-glow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.2; transform: translateX(-50%) scale(1.1); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--rust-orange-bright), var(--rust-orange));
    box-shadow: 0 0 20px var(--rust-orange-glow);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 0 12px var(--rust-orange-glow));
    animation: crabFloat 3s ease-in-out infinite;
}

@keyframes crabFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-5deg); }
}

.logo-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #fff, var(--rust-orange-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-text span {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-badge.online {
    border-color: var(--online);
    color: var(--online);
    box-shadow: 0 0 20px var(--online-glow);
}

.status-badge.online .status-dot {
    background: var(--online);
    box-shadow: 0 0 10px var(--online);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.status-badge.offline {
    border-color: var(--offline);
    color: var(--offline);
    box-shadow: 0 0 20px var(--offline-glow);
}

.status-badge.offline .status-dot {
    background: var(--offline);
    box-shadow: 0 0 10px var(--offline);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn:hover { 
    background: var(--rust-orange);
    border-color: var(--rust-orange-bright);
    transform: translateY(-1px);
}

.btn-icon { padding: 10px 14px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--border-light);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: var(--border-light);
}

.stat-card:hover::before {
    background: var(--rust-orange-bright);
    box-shadow: 0 0 15px var(--rust-orange-glow);
}

.stat-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.stat-body { flex: 1; min-width: 0; }

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value-small {
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.stat-total {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-value.offline { color: var(--offline); }

.stat-bar {
    margin-top: 8px;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rust-orange), var(--rust-orange-bright));
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--rust-orange-glow);
}

/* Panel */
.panel {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.panel-legend {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.online {
    background: var(--rust-orange-bright);
    box-shadow: 0 0 8px var(--rust-orange-glow);
}

.legend-dot.offline {
    background: var(--offline);
    box-shadow: 0 0 8px var(--offline-glow);
}

/* Chart */
.chart-bars {
    display: flex;
    gap: 3px;
    height: 100px;
    align-items: flex-end;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border);
}

.chart-bar {
    flex: 1;
    min-width: 3px;
    background: linear-gradient(180deg, var(--rust-orange-bright), var(--rust-orange));
    border-radius: 2px 2px 0 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 8px var(--rust-orange-glow);
}

.chart-bar.offline {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    box-shadow: 0 0 8px var(--offline-glow);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.main-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-footer strong { color: var(--rust-orange-bright); }
.footer-sep { color: var(--border-light); }

/* Адаптив */
@media (max-width: 700px) {
    .logo-text h1 { font-size: 22px; letter-spacing: 4px; }
    .logo-icon { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 42px; height: 42px; font-size: 22px; }
    .stat-value { font-size: 20px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ПАНЕЛЬ ИГРОКОВ
   ============================================ */
.panel-players .panel-header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.panel-players .panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--rust-orange-bright), var(--rust-orange));
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 0 15px var(--rust-orange-glow);
    letter-spacing: 0.5px;
}

/* Карточка игрока */
.player-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.player-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--rust-orange);
    transition: all 0.3s;
}

.player-row:hover {
    border-color: var(--border-light);
    background: #1f1f1f;
    transform: translateX(3px);
}

.player-row:hover::before {
    background: var(--rust-orange-bright);
    box-shadow: 0 0 15px var(--rust-orange-glow);
}

.player-info {
    min-width: 0;
}

.player-nick {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.player-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.player-stats {
    display: flex;
    gap: 8px;
    align-items: center;
}

.player-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    min-width: 60px;
}

.player-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}

.player-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Пустое состояние */
.panel-players .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.panel-players .empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.panel-players .empty-state p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Адаптив */
@media (max-width: 600px) {
    .player-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .player-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    .player-stat {
        flex: 1;
    }
}
/* ============================================
   ИНДИКАТОР СВЕЖЕСТИ ДАННЫХ
   ============================================ */
.stat-freshness {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    transition: color 0.3s;
}

.stat-freshness.fresh {
    color: var(--online);      /* 🟢 зелёный — свежие данные */
}

.stat-freshness.recent {
    color: var(--warning);      /* 🟡 жёлтый — есть задержка */
}

.stat-freshness.stale {
    color: var(--offline);      /* 🔴 красный — данные устарели */
}

/* ========== ADMIN PANEL ========== */
/* ========== ADMIN PANEL ========== */
.page-title {
    color: #ff8c42;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 28px;
    margin: 24px 0 16px;
}

.admin-user {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin: 0 4px;
}

/* Кнопки управления в ряд */
.admin-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Консоль */
.admin-console-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.admin-console-form input[type="text"] {
    flex: 1;
    min-width: 240px;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: border-color .2s;
}
.admin-console-form input:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, .15);
}

.admin-hint {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    margin-top: 8px;
    font-family: 'Rajdhani', sans-serif;
}

/* Список игроков */
.players-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .03);
    border-left: 3px solid #ff8c42;
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    flex-wrap: wrap;
}
.player-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    min-width: 120px;
}
.player-stat {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

/* Кнопки в стиле админки */
.admin-controls .btn,
.admin-console-form .btn {
    padding: 12px 20px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    color: #fff;
}
.btn-success { background: #27ae60; }
.btn-success:hover { background: #2ecc71; transform: translateY(-1px); }
.btn-danger  { background: #c0392b; }
.btn-danger:hover  { background: #e74c3c; transform: translateY(-1px); }
.btn-warning { background: #d68910; }
.btn-warning:hover { background: #f39c12; transform: translateY(-1px); }
.btn-primary { background: #ff8c42; color: #000; font-weight: 600; }
.btn-primary:hover { background: #ffa566; transform: translateY(-1px); }

/* Мобильная адаптация */
@media (max-width: 600px) {
    .admin-controls { flex-direction: column; }
    .admin-controls .btn { width: 100%; }
    .admin-console-form { flex-direction: column; }
    .admin-console-form input[type="text"] { width: 100%; }
    .header-right { gap: 6px; }
    .admin-user { display: none; }
}
/* ========== WHITELIST ========== */
.whitelist-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}
.whitelist-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Rajdhani', sans-serif;
}
.whitelist-table th,
.whitelist-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}
.whitelist-table th {
    color: #ff8c42;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}
.whitelist-table tbody tr:hover {
    background: rgba(255, 140, 66, .05);
}
.whitelist-table code {
    font-family: 'JetBrains Mono', monospace;
    color: #ffb27a;
    font-size: 13px;
}
.link-steam {
    color: #66c0f4;
    text-decoration: none;
    font-size: 13px;
}
.link-steam:hover { color: #8ed3ff; }

/* Пагинация */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.page-link {
    padding: 6px 12px;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    transition: all .2s;
}
.page-link:hover { background: rgba(255, 140, 66, .2); }
.page-link.active { background: #ff8c42; color: #000; font-weight: 600; }

/* ========== WHITELIST ========== */
.whitelist-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}
.whitelist-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Rajdhani', sans-serif;
}
.whitelist-table th,
.whitelist-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}
.whitelist-table th {
    color: #ff8c42;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}
.whitelist-table tbody tr:hover {
    background: rgba(255, 140, 66, .05);
}
.whitelist-table code {
    font-family: 'JetBrains Mono', monospace;
    color: #ffb27a;
    font-size: 13px;
}
.link-steam {
    color: #66c0f4;
    text-decoration: none;
    font-size: 13px;
}
.link-steam:hover { color: #8ed3ff; }

/* Поиск */
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}
.search-form input:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, .15);
}

/* Пагинация */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.page-link {
    padding: 6px 12px;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    transition: all .2s;
}
.page-link:hover { background: rgba(255, 140, 66, .2); }
.page-link.active { background: #ff8c42; color: #000; font-weight: 600; }
.page-dots { color: rgba(255, 255, 255, .4); }

/* Модальное окно */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 140, 66, .3);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    color: #fff;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.modal-header h3 {
    margin: 0;
    color: #ff8c42;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: .6;
}
.modal-close:hover { opacity: 1; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #ccc;
    font-family: 'Rajdhani', sans-serif;
}
.form-group input {
    width: 100%;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.form-group input:focus {
    outline: none;
    border-color: #ff8c42;
}
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}
.form-hint a { color: #66c0f4; }
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-danger {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.btn-danger:hover { background: #e74c3c; }
/* ========== SHOP ========== */
.balance-badge {
    background: rgba(39, 174, 96, .2);
    color: #2ecc71;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.shop-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.cat-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    transition: all .2s;
}
.cat-btn:hover { background: rgba(255, 140, 66, .2); }
.cat-btn.active { background: #ff8c42; color: #000; font-weight: 600; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.shop-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 140, 66, .2);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all .2s;
}
.shop-card:hover {
    border-color: #ff8c42;
    transform: translateY(-2px);
}
.shop-card-name { font-family: 'Oswald', sans-serif; color: #fff; font-size: 16px; margin-bottom: 6px; }
.shop-card-shortname { margin-bottom: 8px; }
.shop-card-shortname code { color: #ffb27a; font-size: 12px; }
.shop-card-qty { color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 8px; }
.shop-card-price { color: #2ecc71; font-family: 'Oswald', sans-serif; font-size: 20px; margin-bottom: 12px; }

/* ========== STATS ========== */
.stats-period {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.period-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s;
}
.period-btn:hover {
    background: rgba(255, 140, 66, .15);
    border-color: rgba(255, 140, 66, .4);
}
.period-btn.active {
    background: #ff8c42;
    color: #000;
    border-color: #ff8c42;
}

/* График по часам (24 колонки) */
.chart-bars-24h {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    height: 160px;
    padding: 10px 0;
    background: rgba(0, 0, 0, .2);
    border-radius: 8px;
}
.hour-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 8px;
}
.hour-bars {
    display: flex;
    gap: 1px;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.hour-bar {
    flex: 1;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    transition: height .3s;
}
.hour-bar.allowed { background: #2ecc71; }
.hour-bar.denied  { background: #e74c3c; }
.hour-label {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, .4);
    margin-top: 4px;
}

/* Две колонки для топ-таблиц */
.stats-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 800px) {
    .stats-two-col {
        grid-template-columns: 1fr;
    }
    .chart-bars-24h {
        height: 120px;
    }
    .hour-label { font-size: 7px; }
}

/* Цвета текста */
.text-green { color: #2ecc71; }
.text-red   { color: #e74c3c; }

/* Метки событий (используются и в index.php) */
.stats-event-action {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}
.stats-action-login_allowed { background: rgba(39, 174, 96, .2);  color: #2ecc71; }
.stats-action-login_denied  { background: rgba(192, 57, 43, .2);  color: #e74c3c; }
.stats-action-kicked        { background: rgba(214, 137, 16, .2); color: #f39c12; }
.stats-action-added         { background: rgba(102, 192, 244, .2); color: #66c0f4; }
.stats-action-removed       { background: rgba(150, 150, 150, .2); color: #aaa; }

/* Блок "Войти через Steam" / "Админка" */
.login-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

/* Статистика "Последние события" — на случай, если нет */
.stats-events {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stats-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .02);
    border-left: 2px solid #ff8c42;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    flex-wrap: wrap;
}
.stats-event-time { color: rgba(255, 255, 255, .5); }
.stats-event-action {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}
.stats-action-login_allowed { background: rgba(39, 174, 96, .2);  color: #2ecc71; }
.stats-action-login_denied  { background: rgba(192, 57, 43, .2);  color: #e74c3c; }
.stats-action-kicked        { background: rgba(214, 137, 16, .2); color: #f39c12; }
.stats-action-added         { background: rgba(102, 192, 244, .2); color: #66c0f4; }
.stats-action-removed       { background: rgba(150, 150, 150, .2); color: #aaa; }
.stats-event-steamid { color: rgba(255, 255, 255, .7); font-size: 11px; }

/* ========== SHOP ADMIN ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
}

/* ========== ПРОФИЛЬ В ШАПКЕ ========== */
.profile-block {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background .2s;
    user-select: none;
}
.profile-user:hover {
    background: rgba(255, 255, 255, .05);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--rust-orange-bright, #ff6b35);
    object-fit: cover;
}
.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated, #222);
    font-size: 18px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.profile-name {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
}
.profile-role {
    color: var(--text-muted, #666);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 140, 66, .3);
    border-radius: 10px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.profile-dropdown[hidden] {
    display: none;
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
    white-space: nowrap;
}
.dropdown-item:hover {
    background: rgba(255, 140, 66, .15);
}
.dropdown-danger {
    color: #e74c3c;
}
.dropdown-danger:hover {
    background: rgba(231, 76, 60, .15);
}
.dropdown-sep {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: 6px 4px;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .profile-name { font-size: 13px; }
    .profile-role { display: none; }
    .profile-dropdown {
        min-width: 200px;
        right: -10px;
    }
}

/* ========== SHOP ADMIN — Миниатюры ========== */
.shop-admin-thumb {
    width: 50px;
    padding: 4px !important;
}
.shop-admin-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-light, #333);
    background: #0d0d0d;
    display: block;
}
.shop-admin-noimg {
    color: var(--text-muted, #666);
    font-size: 14px;
}
.shop-admin-actions {
    white-space: nowrap;
}
.shop-admin-actions .btn {
    padding: 4px 8px;
    font-size: 13px;
    margin-right: 2px;
}

/* ========== SHOP — Картинка в карточке ========== */
.shop-card-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: rgba(0, 0, 0, .3);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    transition: transform .2s;
}
.shop-card:hover .shop-card-image {
    transform: scale(1.05);
}

/* ========== SHOP ADMIN — Форма загрузки ========== */
.form-group input[type="file"] {
    padding: 8px;
    background: #0d0d0d;
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 6px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
}
.form-group input[type="file"]:hover {
    border-color: #ff8c42;
}

/* ========== VOICE CHAT ========== */
#voiceStatus {
    padding: 10px 16px;
    background: rgba(255, 255, 255, .03);
    border-left: 3px solid #ff8c42;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-top: 8px;
}

#peersList .player-row {
    background: rgba(255, 255, 255, .03);
    border-left: 3px solid #2ecc71;
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
}

#peersList .player-name {
    color: #fff;
    font-weight: 600;
}

#peersList .player-stat {
    color: #2ecc71;
    font-size: 12px;
}

.shop-card-whitelist {
    border-color: rgba(46, 204, 113, 0.3) !important;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), transparent) !important;
}
.shop-card-whitelist:hover {
    border-color: rgba(46, 204, 113, 0.6) !important;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15) !important;
}