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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d0d0d;
    color: #ccc;
    min-height: 100vh;
}

a {
    color: #ff8c00;
    text-decoration: none;
}
a:hover {
    color: #ffa500;
}

header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 2px solid #ff8c00;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo img {
    height: 36px;
}

header .logo h1 {
    color: #ff8c00;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
}

header .user-info span {
    color: #eee;
    font-size: 14px;
}

header .user-info a {
    color: #ff8c00;
    font-size: 13px;
}

.container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.main-content {
    margin-left: 220px;
    padding: 20px;
    flex: 1;
    min-width: 0;
    transition: margin-left 0.25s ease;
}

#mainContainer > .main-content {
    margin-left: 0;
}

.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    background: #222;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    font-weight: 600;
    color: #ff8c00;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 16px;
}

.server-card {
    position: relative;
    height: 150px;
    padding: 14px 16px;
    border-bottom: 1px solid #252525;
    cursor: pointer;
    transition: background 0.2s;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
}
.server-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to left, transparent 0%, #0d0d0d 55%);
    pointer-events: none;
}
.server-card:hover::before {
    background: linear-gradient(to left, transparent 0%, #1a1a1a 55%);
}
.server-card:last-child {
    border-bottom: none;
}

.server-card .server-info {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.server-card .server-info .sv-name {
    color: #ff8c00;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.server-card .server-info .sv-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
}
.server-card .server-info .sv-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.server-card .server-info .sv-details .sv-players {
    color: #ff8c00;
    font-weight: 600;
}
.server-card .server-info .sv-details .sv-ping {
    color: #ff4444;
    font-weight: 700;
    font-size: 20px;
}
.server-card .server-info .sv-ping-line {
    color: #ff4444;
    font-weight: 700;
    font-size: 22px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.featured-news {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 16px;
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff8c00;
    color: #0d0d0d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.featured-news .featured-inner {
    position: relative;
    z-index: 2;
}

.featured-news .featured-content {
    padding: 30px 16px 16px;
}

.featured-news .featured-content h2 {
    color: #ff8c00;
    font-size: 22px;
    margin-bottom: 8px;
}

.featured-news .featured-content .meta {
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
}

.featured-news .featured-content p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.featured-news .featured-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.news-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #252525;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}
.news-item .news-text {
    position: relative;
    z-index: 1;
}
.news-item .news-thumb {
    position: relative;
    z-index: 1;
}
.gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.news-item:hover {
    background: #222;
}
.news-item:last-child {
    border-bottom: none;
}
.news-item.pinned {
    border-left: 3px solid #ff8c00;
    border-bottom: 1px solid #333;
}
.news-item.pinned .news-title {
    font-size: 16px;
}
.news-item.latest {
    border-left: 3px solid #e67e22;
}
.news-item.latest .news-title {
    font-size: 16px;
}
.news-item.latest .news-text {
    position: relative;
}
.news-item.pinned .news-text {
    position: relative;
}
.news-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pin-badge {
    background: #ff8c00;
    color: #0d0d0d;
}
.latest-badge {
    background: #e67e22;
    color: #fff;
}

.news-item .news-thumb {
    width: 100px;
    height: 56px;
    border-radius: 4px;
    background: #252525;
    flex-shrink: 0;
    overflow: hidden;
}
.news-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item .news-thumb .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 10px;
}

.news-item .news-text {
    flex: 1;
    min-width: 0;
}
.news-item .news-text .news-cat {
    font-size: 11px;
    color: #ff8c00;
    text-transform: uppercase;
    font-weight: 600;
}
.news-item .news-text .news-title {
    color: #eee;
    font-size: 15px;
    font-weight: 600;
    margin: 2px 0 4px;
}
.news-item .news-text .news-excerpt {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
}
.news-item .news-text .news-date {
    color: #555;
    font-size: 11px;
    margin-top: 4px;
}

.pm-item {
    padding: 12px 16px;
    border-bottom: 1px solid #252525;
    transition: background 0.2s;
    cursor: pointer;
}
.pm-item:hover {
    background: #222;
}
.pm-item:last-child {
    border-bottom: none;
}
.pm-item.unread {
    border-left: 3px solid #ff8c00;
}
.pm-item .pm-sender {
    color: #ff8c00;
    font-size: 13px;
    font-weight: 600;
}
.pm-item .pm-title {
    color: #eee;
    font-size: 14px;
    margin: 2px 0;
}
.pm-item .pm-date {
    color: #555;
    font-size: 11px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}
.empty-state p {
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-orange {
    background: #ff8c00;
    color: #0d0d0d;
}
.btn-orange:hover {
    background: #ffa500;
    color: #0d0d0d;
}
.btn-dark {
    background: #333;
    color: #ccc;
}
.btn-dark:hover {
    background: #444;
    color: #eee;
}
.btn-danger {
    background: #c0392b;
    color: #fff;
}
.btn-danger:hover {
    background: #e74c3c;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: #222;
    color: #ff8c00;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #252525;
    font-size: 13px;
}
.admin-table tr:hover td {
    background: #222;
}

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    color: #ff8c00;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff8c00;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 70%);
}

.login-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-box .logo-big {
    margin-bottom: 24px;
}
.login-box .logo-big img {
    height: 64px;
}
.login-box h1 {
    color: #ff8c00;
    font-size: 24px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.login-box p {
    color: #666;
    font-size: 13px;
    margin-bottom: 32px;
}

.login-box .steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1b2838;
    color: #fff;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.login-box .steam-btn:hover {
    background: #2a475e;
    color: #fff;
}
.login-box .steam-btn img {
    height: 24px;
}

.login-box .error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 16px;
}

.empty-servers {
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 12px;
}

/* ============ Admin Dashboard ============ */

.admin-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-dash-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px 24px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.admin-dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.admin-dash-card.news-card::before {
    background: linear-gradient(135deg, rgba(255,140,0,0.08) 0%, transparent 60%);
}

.admin-dash-card.pm-card::before {
    background: linear-gradient(135deg, rgba(0,150,255,0.08) 0%, transparent 60%);
}

.admin-dash-card:hover::before {
    opacity: 1;
}

.admin-dash-card:hover {
    border-color: #ff8c00;
    transform: translateY(-2px);
}

.admin-dash-card .dash-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 10px;
    border: 1px solid #333;
}

.admin-dash-card.news-card .dash-icon {
    background: linear-gradient(135deg, #2a1a00, #1a1a1a);
    border-color: #ff8c00;
}

.admin-dash-card.pm-card .dash-icon {
    background: linear-gradient(135deg, #001a2a, #1a1a1a);
    border-color: #0088ff;
}

.admin-dash-card .dash-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-dash-card .dash-title {
    color: #eee;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-dash-card .dash-desc {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.admin-dash-card .dash-arrow {
    color: #555;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.admin-dash-card:hover .dash-arrow {
    color: #ff8c00;
    transform: translateX(4px);
}

/* Stats */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    background: #1a1a1a;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-box .stat-num {
    display: block;
    color: #ff8c00;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-box .stat-label {
    display: block;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alerts */

.alert {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success {
    background: #0d2d0d;
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-warning {
    background: #2d1a00;
    border: 1px solid #ff8c00;
    color: #ff8c00;
}

.alert-error {
    background: #2d0d0d;
    border: 1px solid #c0392b;
    color: #e74c3c;
}

/* Buttons */

.btn-sm {
    padding: 3px 10px;
    font-size: 11px;
}

.action-cell {
    white-space: nowrap;
}

.action-cell .btn {
    margin-right: 4px;
}

/* Type badges */

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.type-news {
    background: rgba(255,140,0,0.15);
    color: #ff8c00;
}

.type-pm {
    background: rgba(100,100,100,0.2);
    color: #888;
}

/* Player list */

.player-list {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #252525;
    border-radius: 4px;
    background: #0d0d0d;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
}

.player-item:hover {
    background: #1a1a1a;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #ff8c00;
}

.player-item .player-name {
    flex: 1;
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
}

.player-item .player-sid {
    color: #555;
    font-size: 11px;
    font-family: monospace;
}

/* File input */

.form-group input[type="file"] {
    padding: 8px;
    background: #0d0d0d;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #ff8c00;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
    accent-color: #ff8c00;
}

/* Responsive */

@media (max-width: 768px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

/* Effect wrapper */
.msg-effects {
    position: relative;
    transition: all 0.3s ease;
}

/* Footer */
footer.site-footer {
    text-align:center;
    padding:20px;
    border-top:1px solid #333;
    margin-top:20px;
    color:#777;
    font-size:12px;
}
footer.site-footer a {
    margin-left:16px;
    color:#e74c3c;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    text-decoration:none;
}
footer.site-footer a:hover {
    color:#ff4444;
}

/* ============ Page Header ============ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.page-header h1 {
    color: #ff8c00;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ Stats Grid ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s;
}
.stat-card:hover {
    border-color: #ff8c00;
}
.stat-icon {
    font-size: 28px;
    color: #ff8c00;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,140,0,0.1);
    border-radius: 8px;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    color: #eee;
    font-size: 24px;
    font-weight: 700;
}
.stat-label {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ Content Row ============ */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.content-col {
    min-width: 0;
}

/* ============ Recent List ============ */
.recent-list {
    display: flex;
    flex-direction: column;
}
.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #252525;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #222; }
.recent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.recent-name {
    color: #eee;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-detail {
    color: #777;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 12px;
}
.recent-server {
    color: #ff8c00;
    font-size: 11px;
    font-weight: 600;
}
.recent-time {
    color: #555;
    font-size: 11px;
}

/* ============ Data Table ============ */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background: #222;
    color: #ff8c00;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #252525;
    font-size: 13px;
    color: #ccc;
}
.data-table tr:hover td {
    background: #1a1a1a;
}
.actions-cell {
    white-space: nowrap;
}
.actions-cell .btn {
    margin-right: 4px;
}

/* ============ Badges ============ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-success { background: #0d2d0d; color: #2ecc71; border: 1px solid #2ecc71; }
.badge-danger { background: #2d0d0d; color: #e74c3c; border: 1px solid #e74c3c; }
.badge-warning { background: #2d1a00; color: #ff8c00; border: 1px solid #ff8c00; }
.badge-info { background: #0d1a2d; color: #3498db; border: 1px solid #3498db; }
.badge-secondary { background: #1a1a1a; color: #888; border: 1px solid #555; }

/* ============ Filter Tabs ============ */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-tab:hover {
    border-color: #ff8c00;
    color: #ff8c00;
    background: rgba(255,140,0,0.05);
}
.filter-tab.active {
    border-color: #ff8c00;
    color: #ff8c00;
    background: rgba(255,140,0,0.1);
}

/* ============ Form Enhancements ============ */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 14px;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: #ff8c00;
}
.form-control-color {
    width: 60px;
    height: 36px;
    padding: 2px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
}
.form-group-btn {
    display: flex;
    align-items: flex-end;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ============ Search Form ============ */
.search-form .form-row {
    align-items: flex-end;
}

/* ============ Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding: 12px 0;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.page-btn:hover {
    border-color: #ff8c00;
    color: #ff8c00;
}
.page-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
    color: #0d0d0d;
    font-weight: 700;
}

/* ============ Text Helpers ============ */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-danger { color: #e74c3c; }
.text-warning { color: #ff8c00; }
.text-info { color: #3498db; }
.text-muted { color: #555; }
.text-success { color: #2ecc71; }

/* ============ Map Grid ============ */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.map-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.map-card:hover { border-color: #ff8c00; }
.map-thumb {
    height: 120px;
    overflow: hidden;
    background: #0d0d0d;
}
.map-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-info {
    padding: 10px 12px;
}
.map-name {
    display: block;
    color: #eee;
    font-size: 13px;
    font-weight: 600;
}
.map-server {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}
.map-actions {
    padding: 0 12px 10px;
    display: flex;
    gap: 6px;
}

/* ============ Activity List ============ */
.activity-list {
    display: flex;
    flex-direction: column;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #252525;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 6px;
    flex-shrink: 0;
}
.activity-info {
    display: flex;
    flex-direction: column;
}
.activity-text {
    color: #ccc;
    font-size: 13px;
}
.activity-time {
    color: #555;
    font-size: 11px;
}

/* ============ Send Form ============ */
.send-form .form-row {
    margin-bottom: 0;
}

/* ============ Expandable Row ============ */
.expandable-row {
    cursor: pointer;
}
.expandable-row:hover td {
    background: #1a1a1a;
}

/* ============ BBCode Preview ============ */
.bbcode-preview {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .content-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-tabs { flex-direction: column; }
}

/* ================================================================
   BANS-SPECIFIC STYLES (ported from old web/bans/assets/style.css)
   ================================================================ */

/* ============ Bans Stats Row (centered) ============ */
.bans-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.bans-stat-card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
}
.bans-stat-card .stat-num {
    display: block;
    color: #ff5000;
    font-size: 28px;
    font-weight: 700;
}
.bans-stat-card .stat-label {
    display: block;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============ Bans Search Bar ============ */
.bans-search {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.bans-search form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.bans-search input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
}
.bans-search input:focus { outline: none; border-color: #ff5000; }
.bans-search select {
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
}
.bans-search .checkbox-label { color: #888; font-size: 12px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ============ Bans Status Badges ============ */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-active { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-unbanned { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-removed { background: rgba(231,76,60,0.15); color: #e74c3c; }
.status-expired { background: rgba(149,165,166,0.15); color: #95a5a6; }

/* ============ Bans Detail Card ============ */
.bans-detail-card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.bans-detail-card .bans-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}
.bans-detail-card .bans-detail-id {
    font-size: 18px;
    font-weight: 700;
    color: #ff5000;
}
.bans-detail-card .bans-detail-body { padding: 20px; }
.bans-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.bans-detail-field label {
    display: block;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.bans-detail-field span { color: #eee; font-size: 14px; }
.bans-detail-full { grid-column: 1 / -1; }
.bans-reason-box {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 12px;
    color: #eee;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.bans-detail-actions { padding: 16px 20px; border-top: 1px solid #333; }
.bans-steamid { font-family: monospace; font-size: 11px; color: #888; word-break: break-all; }

/* ============ Bans Expandable Table Rows ============ */
.bans-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bans-table th {
    padding: 10px 12px;
    text-align: left;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}
.bans-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}
.bans-table tbody tr.row-main { cursor: pointer; }
.bans-table tbody tr.row-main:hover { background: rgba(255,80,0,0.05) !important; }
.bans-table tbody tr.row-main.open { background: rgba(255,80,0,0.08) !important; }
.bans-table tbody tr.row-detail { display: none; }
.bans-table tbody tr.row-detail.open { display: table-row; }
.bans-table tbody tr.row-detail td { padding: 0 !important; }

.bans-detail-inner {
    background: rgba(13,13,13,0.98);
    border: 1px solid #333;
    border-radius: 6px;
    margin: 8px 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bans-detail-inner .df label { display: block; color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.bans-detail-inner .df span { color: #eee; font-size: 13px; word-break: break-all; }
.bans-detail-inner .df span a { color: #ff8c00; }
.bans-detail-inner .df span a:hover { color: #ffa500; }
.bans-detail-inner .df.full { grid-column: 1 / -1; }
.bans-detail-inner .rb {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 10px;
    color: #eee;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

/* ============ Bans Recent Table ============ */
.bans-recent { display: table; width: 100%; }
.bans-recent-head {
    display: table-row;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
}
.bans-recent-head span {
    display: table-cell;
    padding: 8px 8px;
    white-space: nowrap;
}
.bans-recent-row {
    display: table-row;
    text-decoration: none;
    color: #ccc;
    transition: all 0.15s;
}
.bans-recent-row:hover { background: rgba(255,80,0,0.05); }
.bans-recent-row span {
    display: table-cell;
    padding: 10px 8px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
    white-space: nowrap;
}
.bans-col-game { width: 40px; text-align: center; }
.bans-col-date { width: 130px; }
.bans-col-player { width: auto; }
.bans-col-dur { width: 100px; text-align: right; font-weight: 600; }
.bans-game-icon { width: 24px; height: 24px; vertical-align: middle; }
.bans-dur-perm { color: #e74c3c !important; }
.bans-dur-active { color: #f39c12 !important; }
.bans-dur-expired { color: #2ecc71 !important; }

.bans-recent-row.row-st-active { background: rgba(231,76,60,0.08); border-left: 3px solid #e74c3c; }
.bans-recent-row.row-st-active:hover { background: rgba(231,76,60,0.15); }
.bans-recent-row.row-st-active span { color: #f0a0a0; }
.bans-recent-row.row-st-active .bans-col-player { color: #e74c3c; }

.bans-recent-row.row-st-ended { background: rgba(46,204,113,0.06); border-left: 3px solid #2ecc71; }
.bans-recent-row.row-st-ended:hover { background: rgba(46,204,113,0.12); }
.bans-recent-row.row-st-ended span { color: #a0d0a0; }
.bans-recent-row.row-st-ended .bans-col-player { color: #2ecc71; }

tr.row-main.tr-st-active { background: rgba(231,76,60,0.06) !important; }
tr.row-main.tr-st-active td { color: #e0a0a0; }
tr.row-main.tr-st-active td:first-child { border-left: 3px solid #e74c3c; }
tr.row-main.tr-st-active + .row-detail td { background: rgba(231,76,60,0.03) !important; }

tr.row-main.tr-st-ended { background: rgba(46,204,113,0.04) !important; }
tr.row-main.tr-st-ended td { color: #a0c0a0; }
tr.row-main.tr-st-ended td:first-child { border-left: 3px solid #2ecc71; }
tr.row-main.tr-st-ended + .row-detail td { background: rgba(46,204,113,0.02) !important; }

/* ============ Bans Tabs ============ */
.bans-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.bans-tab {
    padding: 10px 20px;
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
}
.bans-tab:hover { color: #ff8c00; }
.bans-tab.active { background: rgba(255,80,0,0.1); border-color: #ff5000; color: #ff5000; }

/* ============ Bans Comments Refined ============ */
.bans-comments-section { margin-top: 0; }
.bans-comments-section h3 {
    color: #ff5000;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.bans-comment-list { display: flex; flex-direction: column; gap: 8px; }
.bans-comment-card {
    background: rgba(18,18,18,0.6);
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
}
.bans-comment-card:hover { border-color: #333; background: rgba(22,22,22,0.6); }
.bans-comment-card .cmt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.bans-comment-card .cmt-header .cmt-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #ff8c00;
}
.bans-comment-card .cmt-header .cmt-author img { width: 18px; height: 18px; border-radius: 50%; }
.bans-comment-card .cmt-header .cmt-author .comment-anon { color: #666; font-style: italic; font-weight: 400; }
.bans-comment-card .cmt-header .cmt-time {
    font-size: 11px;
    color: #555;
    margin-left: auto;
}
.bans-comment-card .cmt-body {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    white-space: pre-wrap;
}
.bans-comment-card .cmt-evidence { margin-top: 8px; }
.bans-comment-card .cmt-evidence .evidence-thumb { max-height: 140px; border-radius: 6px; }
.bans-comment-card .cmt-evidence .evidence-video { max-height: 200px; border-radius: 6px; }

.bans-empty-comments {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 13px;
    border: 1px dashed #2a2a2a;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
}
.bans-empty-comments i { font-size: 24px; display: block; margin-bottom: 6px; color: #444; }

/* ============ Bans Comment Form ============ */
.bans-comment-form { margin-top: 14px; }
.bans-comment-form .cmt-input-wrap {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 0.2s;
    overflow: hidden;
}
.bans-comment-form .cmt-input-wrap:focus-within { border-color: #ff5000; }
.bans-comment-form .cmt-input-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #eee;
    font-size: 13px;
    resize: vertical;
    min-height: 56px;
    font-family: inherit;
    line-height: 1.5;
}
.bans-comment-form .cmt-input-wrap textarea:focus { outline: none; }
.bans-comment-form .cmt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #1f1f1f;
    flex-wrap: wrap;
}
.bans-cmt-attach-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px dashed #444;
    border-radius: 6px;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.bans-cmt-attach-btn:hover { border-color: #ff5000; color: #ff8c00; background: #222; }
.bans-cmt-attach-btn input[type="file"] {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.bans-cmt-attach-btn i { font-size: 13px; }
.bans-cmt-attach-hasfile { border-color: #ff5000; color: #ff8c00; background: rgba(255,80,0,0.1); }

.bans-anon-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.15s;
}
.bans-anon-switch:hover { color: #888; }
.bans-anon-switch input { display: none; }
.bans-anon-switch .anon-slider {
    width: 32px; height: 18px;
    background: #333;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
}
.bans-anon-switch .anon-slider::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #888;
    top: 2px; left: 2px;
    transition: all 0.2s;
}
.bans-anon-switch input:checked + .anon-slider { background: #ff5000; }
.bans-anon-switch input:checked + .anon-slider::after {
    background: #fff;
    left: 16px;
}
.bans-anon-switch .anon-label { transition: color 0.2s; }
.bans-anon-switch input:checked ~ .anon-label { color: #ff8c00; }

.bans-cmt-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: #ff5000;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.bans-cmt-submit-btn:hover { background: #ff7000; transform: translateY(-1px); }
.bans-cmt-submit-btn:active { transform: translateY(0); }

/* ============ Bans Evidence ============ */
.evidence-gallery { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.evidence-gallery .evidence-item { position: relative; }
.evidence-thumb { max-width: 100%; max-height: 200px; border-radius: 6px; cursor: pointer; border: 1px solid #333; }
.evidence-video { max-width: 100%; max-height: 300px; border-radius: 6px; }

/* ============ Bans Empty State ============ */
.bans-empty { text-align: center; padding: 30px 20px; color: #555; font-size: 14px; }

/* ============ Bans Mobile View ============ */
.bans-mobile-list { display: none; }
.bans-mobile-list .bans-recent-row { cursor: pointer; }
.bans-mobile-list .bans-recent-row.open { background: rgba(255,80,0,0.12) !important; }
.bans-mobile-detail { display: none; }
.bans-mobile-detail.open { display: block; }
.bans-mobile-detail .bans-detail-inner {
    background: rgba(13,13,13,0.98);
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.bans-mobile-detail .bans-detail-inner .df {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.bans-mobile-detail .bans-detail-inner .df label {
    flex-shrink: 0;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.bans-mobile-detail .bans-detail-inner .df span {
    text-align: right;
    word-break: break-word;
    color: #eee;
    font-size: 13px;
}
.bans-mobile-detail .bans-detail-inner .df span a { color: #ff8c00; }
.bans-mobile-detail .bans-detail-inner .df.full { flex-direction: column; }
.bans-mobile-detail .bans-detail-inner .df.full label { margin-bottom: 4px; }
.bans-mobile-detail .bans-detail-inner .rb {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 10px;
    color: #eee;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

/* ============ Bans Pagination (old style) ============ */
.bans-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.bans-page-link {
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
}
.bans-page-link:hover { border-color: #ff5000; color: #ff5000; }
.bans-page-link.active { background: #ff5000; border-color: #ff5000; color: #000; font-weight: 700; }
.bans-page-dots { padding: 6px 8px; color: #555; }

/* ============ Bans Responsive ============ */
@media (max-width: 768px) {
    .bans-stats { grid-template-columns: repeat(2, 1fr); }
    .bans-mobile-list { display: block; }
    .bans-desktop-table { display: none; }
    .bans-search form { flex-direction: column; align-items: stretch; }
    .bans-search input[type="text"],
    .bans-search select { width: 100% !important; min-width: 0; }
    .bans-detail-inner { grid-template-columns: 1fr; }
    .bans-detail-grid { grid-template-columns: 1fr !important; }
    .bans-recent { display: block; }
    .bans-recent-head { display: none !important; }
    .bans-recent-row {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 14px;
        border: 1px solid #333;
        border-radius: 8px;
        margin-bottom: 8px;
        background: rgba(20,20,20,0.95);
        border-left: 3px solid transparent;
    }
    .bans-recent-row.row-st-active { border-left-color: #e74c3c; }
    .bans-recent-row.row-st-ended { border-left-color: #2ecc71; }
    .bans-recent-row span {
        display: block !important;
        white-space: normal !important;
        padding: 2px 0 !important;
        border-bottom: none !important;
    }
    .bans-recent-row .bans-col-game { width: 24px; margin-right: 6px; text-align: center; order: 1; }
    .bans-recent-row .bans-col-date { font-size: 11px; color: #666; flex: 1; order: 2; }
    .bans-recent-row .bans-col-player { font-size: 14px; font-weight: 600; color: #eee; width: 100%; order: 4; }
    .bans-recent-row .bans-col-dur { font-size: 12px; margin-left: auto; order: 3; white-space: nowrap; }
}
