:root {
    --bg-dark: #0c1014;
    --panel-bg: rgba(21, 26, 37, 0.7);
    --panel-border: #1e2532;
    --primary: #ffb300; /* Gold/Yellow з скріншоту */
    --primary-hover: #ffd700;
    --text-main: #c9d1d9;
    --text-title: #ffffff;
    --text-muted: #8b949e;
    
    --success: #4ade80;
    --danger: #f85149;
    --neutral: #8b949e;
    
    --lonestar: #64c4f4;
    --valkyra: #c73d3d;
    --manticore: #08a20e;
    
    --alpha: #64c4f4;
    --bravo: #c73d3d;
    --charlie: #08a20e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background-color: #0b0e14;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(100, 196, 244, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(199, 61, 61, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(8, 162, 14, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 0%, rgba(255, 179, 0, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container,
.factions-page,
.profile-container,
.pc-container,
.builder-container,
.settings-container,
.main-container {
    flex: 1 0 auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bf6-nav {
    max-width: 1400px;
    padding: 6px 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-badge {
    font-weight: 900;
    font-size: 14px;
    color: #000;
    background: var(--text-title);
    padding: 2px 6px;
    margin-right: 12px;
}

.game_logo_link {
    color: var(--text-title);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links a.menu_selected {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-links a:hover {
    color: var(--text-title);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form input {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.3s;
}

.header-search-form input:focus {
    border-color: var(--primary);
}

.login-btn {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 4px;
    letter-spacing: 1px;
    transition: background 0.3s, box-shadow 0.3s;
}

.login-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
}

.btn-gold {
    background: var(--primary);
    color: #000 !important;
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}
.btn-gold:hover {
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
    background: #e6b800;
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 12px var(--success); }
    100% { opacity: 0.5; }
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.nav-hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-title);
    border-radius: 2px;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 20px 10px 20px;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.update-progress-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
}

.update-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 100%;
    animation: countdown 10s linear infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes countdown {
    0% { width: 100%; }
    100% { width: 0%; }
}

.hero-header h1 {
    font-size: 32px;
    color: var(--text-title);
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-form input {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 4px;
    outline: none;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.3s;
    width: 300px;
}

.hero-search-form input:focus {
    border-color: var(--primary);
}

.section-title {
    font-size: 18px;
    color: var(--text-muted);
    margin: 22px 0 12px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

main > .section-title:first-child,
.hero-header + main > .section-title:first-child {
    margin-top: 6px;
}

/* Time Toggle */
.time-toggle-container {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 25px;
    background: rgba(14, 18, 28, 0.85);
    padding: 3px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
}

.time-toggle-btn {
    background: transparent;
    border: none;
    color: #8c9ba5;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.time-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.time-toggle-btn.active {
    color: #0b0e14;
    font-weight: 800;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.5);
}

.hide-on-live {
    display: none;
}

/* Grid & Panels */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.panel {
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.75) 0%, rgba(11, 15, 24, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 179, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 244px;
    border-radius: 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Gold accent top border */
.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.panel:hover::before {
    background: linear-gradient(90deg, rgba(255, 179, 0, 0.2) 0%, #ffb300 50%, rgba(255, 179, 0, 0.2) 100%);
}

.panel:hover {
    border-color: rgba(255, 179, 0, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 179, 0, 0.15);
}

.panel h3 {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-title);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 1.2px;
    font-family: 'Rajdhani', sans-serif;
    background: rgba(14, 19, 30, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-all-link {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 179, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.3s, text-shadow 0.3s;
    text-decoration: none;
}

.view-all-link:hover {
    background: rgba(255, 179, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 179, 0, 0.4);
}

.panel-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    background: rgba(15, 19, 28, 0.3);
}

/* Tables */
.table-container {
    padding: 5px;
    max-width: 100%;
    overflow-x: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 500;
}

th.rank-col, td.rank-col, .rank-col {
    width: 24px !important;
    min-width: 22px !important;
    max-width: 30px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center !important;
}

th:not(.player-col):not(.faction-col):not(.rank-col), td:not(.player-cell):not(.faction-cell):not(.rank-col) {
    width: 1%;
    white-space: nowrap;
}

.player-col, .faction-col { width: 100%; }

th.center-col, th.faction-col, td.center-cell, td.faction-cell {
    text-align: center;
}

th {
    background: rgba(12, 16, 26, 0.65);
    color: #717d96;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

th.val-col {
    text-align: right;
}

td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
}

#table-factions-24h th.faction-col, #table-factions-24h td.faction-cell,
#table-factions th.faction-col, #table-factions td.faction-cell {
    text-align: left;
    padding-left: 6px;
    padding-right: 4px;
}
#table-factions-24h th.center-col, #table-factions-24h td.center-cell,
#table-factions th.center-col, #table-factions td.center-cell {
    padding-left: 4px;
    padding-right: 4px;
}
#table-factions-24h th.val-col, #table-factions-24h td.val-cell,
#table-factions th.val-col, #table-factions td.val-cell {
    padding-left: 4px;
    padding-right: 6px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.player-cell {
    width: 100%;
    max-width: 0;
}

.player-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.player-wrapper:hover .player-name-text {
    color: var(--text-main);
}

.player-wrapper:hover .player-avatar {
    box-shadow: 0 0 8px rgba(255, 179, 0, 0.4);
}

.player-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.player-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: #2a2d36;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.val-cell {
    text-align: right;
}

tr {
    transition: background 0.2s;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Utilities */
.text-success { color: var(--success); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }
.text-neutral { color: var(--neutral); }

/* Factions */
.faction {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.faction.lonestar, .faction.alpha { color: var(--lonestar); }
.faction.valkyra, .faction.bravo { color: var(--valkyra); }
.faction.manticore, .faction.charlie { color: var(--manticore); }

.factions-container {
    padding: 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faction-stat {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--panel-border);
}

.faction-stat .faction {
    font-size: 14px;
    flex: 1;
}

.faction-winrate {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes flashUpdate {
    0% { background-color: rgba(255, 179, 0, 0.5); box-shadow: 0 0 10px rgba(255, 179, 0, 0.5); }
    100% { background-color: rgba(255, 179, 0, 0); box-shadow: none; }
}

.flash-update {
    animation: flashUpdate 2s ease-out;
}

/* Responsive (Мобілка) */
@media (max-width: 1050px) {
    .dashboard-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        border-bottom: 1px solid var(--panel-border);
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-hamburger {
        display: flex;
        margin-left: 5px;
    }
    .dashboard-row {
        grid-template-columns: 1fr !important;
    }
    .hero-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 15px;
    }
    .header-search-form input {
        width: 70px;
    }
    .hero-search-form input {
        width: 100%;
    }
    .header-stats-block {
        text-align: left;
    }
}

.background-layer {
    width: 100%;
    max-width: 1800px;
    min-width: 900px;
    aspect-ratio: 1800 / 764;
    flex-shrink: 0;

    background-color: var(--bg-dark);
    background-image:
        linear-gradient(to top, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 80%),
        linear-gradient(to top, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(to top, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 30%),

        linear-gradient(to left, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to left, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 300px),

        linear-gradient(to right, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to right, var(--bg-dark) 0%, rgba(0, 0, 0, 0) 300px),
        url('/wardogs/images/wardogs_bg.jpg');

    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
    background-position: center top;
    background-repeat: no-repeat;

    z-index: -1;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;

    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .background-layer {
        transform: translateX(10%);
    }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--success);
    font-weight: bold;
    letter-spacing: 1px;
    padding: 2px 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 4px;
}

.live-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}


.search-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.search-icon-btn:hover {
    color: var(--primary);
}



/* =========================================
   EXTRACTED STYLES
   ========================================= */

/* --- settings.php --- */
.settings-container {
    max-width: 600px;
    margin: 50px auto;
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.header-box { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--panel-border); padding-bottom: 20px; margin-bottom: 20px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--panel-border); }
.header-box h2 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }

.setting-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(18, 24, 36, 0.5); padding: 15px 20px; border-radius: 6px; margin-bottom: 15px; border: 1px solid var(--panel-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.setting-info h4 { margin: 0 0 5px 0; }
.setting-info p { margin: 0; color: #aaa; font-size: 13px; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; transition: .3s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #09f; }
input:checked + .slider:before { transform: translateX(24px); }

.btn {
    background: #222; color: #fff; border: 1px solid #444; padding: 8px 16px;
    border-radius: 4px; cursor: pointer; font-size: 14px; transition: 0.2s;
    white-space: nowrap;
}
.btn:hover { background: #333; border-color: #555; }
.btn.danger { color: #ff4444; border-color: #ff4444; background: transparent; width: 100%; margin-top: 20px; padding: 12px; }
.btn.danger:hover { background: rgba(255, 68, 68, 0.1); }

.badge { font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: bold; margin-left: 10px; letter-spacing: 0.5px; }
.badge.active { background: #28a745; color: #111; }
.badge.error { background: #ff4444; color: #111; }

#loading-overlay { display: none; margin-top: 10px; font-size: 13px; color: #09f; text-align: center; }

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.9); background: #222; }
    50% { box-shadow: 0 0 0 15px rgba(0, 153, 255, 0); background: #005599; }
    100% { box-shadow: 0 0 0 0 rgba(0, 153, 255, 0); background: #222; }
}
.btn-pulse { animation: pulse-blue 1.5s infinite; border-color: #09f; color: #fff; font-weight: bold; }

/* --- onboarding.php --- */
.onboarding-container {
    max-width: 900px;
    margin: 50px auto;
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
        .avatar {
            width: 100px; height: 100px; border-radius: 50%;
            margin-bottom: 20px; border: 2px solid #555;
        }
        
        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.1);
            width: 50px; height: 50px; border-radius: 50%;
            border-left-color: #09f; animation: spin 1s linear infinite; margin: 20px auto;
        }
        .spinner.blue { border-left-color: #00f; border-color: rgba(0, 0, 255, 0.2); border-left-color: #007acc; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        .status-box { display: none; padding: 20px; margin-top: 20px; border-radius: 6px; }
        .status-error { background: rgba(255, 50, 50, 0.1); border: 1px solid #ff3333; }
        .status-success { background: rgba(50, 255, 50, 0.1); border: 1px solid #33ff33; }
        
        .btn {
            background: #09f; color: #fff; border: none; padding: 12px 24px;
            border-radius: 4px; cursor: pointer; font-size: 16px; margin-top: 15px;
            transition: background 0.3s; text-decoration: none; display: inline-block;
        }
        .btn:hover:not(:disabled) { background: #007acc; }
        .btn:disabled { background: #444; color: #888; cursor: not-allowed; }
        .btn.outline { background: transparent; border: 1px solid #09f; color: #09f; }
        .btn.outline:hover:not(:disabled) { background: rgba(0, 153, 255, 0.1); }
        .btn.success { background: #28a745; }
        .btn.success:hover:not(:disabled) { background: #218838; }
        .btn-link { background: none; border: none; color: #09f; text-decoration: underline; cursor: pointer; font-size: 13px; margin-top: 10px; display: block; width: 100%; text-align: center; }
        .btn-link:hover { color: #007acc; }

        .cards-wrapper { display: flex; gap: 20px; margin-top: 30px; text-align: left; }
        @media (max-width: 768px) { .cards-wrapper { flex-direction: column; } }
        .card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 25px; flex: 1; position: relative; }
        .card.recommended { border-color: #09f; box-shadow: 0 0 15px rgba(0, 153, 255, 0.1); }
        .badge { position: absolute; top: -12px; right: 20px; background: #09f; color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; }
        .card h3 { margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 10px; }
        .card ul { padding-left: 0; list-style: none; margin: 20px 0; }
        .card ul li { margin-bottom: 10px; font-size: 15px; display: flex; align-items: flex-start; gap: 8px;}
        .card ul li span { font-size: 18px; line-height: 1; }
        
        .continue-bar { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; }
        .continue-btn { width: 100%; font-size: 18px; padding: 15px; }

/* --- leaderboards.php --- */
.leaderboard-table-container { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 4px; padding: 20px; }
        .rank-col { width: 50px; text-align: center; color: var(--text-muted); font-weight: 700; }
        .lb-select-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
        .lb-select { background: rgba(10,10,10,0.6); border: 1px solid var(--panel-border); color: var(--text-main); padding: 8px 15px; border-radius: 4px; outline: none; font-family: 'Rajdhani', sans-serif; font-size: 15px; cursor: pointer; }

/* --- profile.php --- */
.profile-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        .hero-card {
            background-color: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 30px;
            position: relative;
        }
        .avatar-lg {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid var(--panel-border);
            object-fit: cover;
        }
        .hero-info h1 {
            margin: 0 0 5px 0;
            font-size: 32px;
            color: var(--text-main);
        }
        .hero-info .steamid {
            color: var(--text-muted);
            font-size: 14px;
        }
        .lifetime-profit {
            font-size: 42px;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(0,0,0,0.5);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        .stat-card {
            background-color: var(--panel-bg);
            border: 1px solid var(--panel-border);
            padding: 20px;
            border-radius: 4px;
            text-align: center;
            position: relative;
        }
        .stat-card .label {
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            letter-spacing: 1px;
            padding: 0 40px;
            line-height: 1.2;
        }
        .stat-card .value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-main);
        }
        .global-rank-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 11px;
            font-weight: 800;
            background: rgba(0,0,0,0.5);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.1);
            text-decoration: none;
            transition: 0.2s;
            line-height: 1;
        }
        .global-rank-badge:hover {
            background: rgba(255,255,255,0.1) !important;
        }
        
        .recent-table-wrapper {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
        }

        
        .live-badge {
            background: rgba(255, 50, 50, 0.2);
            color: #ff4444;
            border: 1px solid #ff4444;
            padding: 5px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-left: 15px;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
        }
        
        .middle-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }
        .chart-container {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
        }
        .faction-stats {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
        }
        .faction-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--panel-border);
        }
        .faction-row:last-child {
            border-bottom: none;
        }
        
        .ranks-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        /* Mobile Responsiveness */
        @media (max-width: 900px) {
            .middle-section {
                grid-template-columns: 1fr;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .ranks-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .hero-card {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            .hero-card > div {
                flex-direction: column;
                justify-content: center;
            }
            .hero-profit {
                text-align: center !important;
                margin-top: 15px;
            }
            .steamid {
                justify-content: center;
                flex-direction: column;
                gap: 5px !important;
            }
        }
        @media (max-width: 600px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            .stat-card {
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                position: relative !important;
                padding: 10px 10px !important;
                min-height: 62px;
            }
            .stat-card .label {
                padding-right: 32px !important;
                font-size: 10px !important;
                letter-spacing: 0.5px !important;
                line-height: 1.2 !important;
                margin-bottom: 4px !important;
                white-space: normal;
            }
            .stat-card .value {
                font-size: 16px !important;
                line-height: 1.1 !important;
            }
            .global-rank-badge {
                position: absolute !important;
                top: 7px !important;
                right: 7px !important;
                margin: 0 !important;
                padding: 1px 5px !important;
                font-size: 10px !important;
            }
            .ranks-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            .lifetime-profit {
                font-size: 36px;
            }
            .table-container {
                overflow-x: auto;
            }
        }
        
        .expandable-row {
            cursor: pointer;
            transition: background 0.2s ease;
        }
        .expandable-row:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }
        .expand-icon {
            display: inline-block;
            font-size: 10px;
            margin-right: 8px;
            color: var(--text-muted);
            transition: transform 0.2s ease, color 0.2s ease;
        }


/* ==================== GLOBAL SITE HEADER ==================== */
.site-header {
        font-family: 'Rajdhani', sans-serif !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(10, 10, 10, 0.75);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .bf6-nav {
        max-width: 1400px;
        margin: 0 auto;
        padding: 6px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    /* Logo & site title */
    .nav-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 0;
    }
    .nav-badge-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        line-height: 1;
    }
    .nav-badge {
        font-family: 'Rajdhani', sans-serif;
        font-weight: 900;
        font-size: 13px;
        color: #000;
        background: var(--text-title, #fff);
        padding: 3px 6px 1px 6px;
        margin-right: 10px;
        border-radius: 3px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }
    .game_logo_link {
        font-family: 'Rajdhani', sans-serif;
        color: var(--text-title, #fff);
        font-weight: 800;
        font-size: 17px;
        letter-spacing: 0.8px;
        text-decoration: none;
        line-height: 1.1;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Nav links (Desktop) */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .nav-links a {
        font-family: 'Rajdhani', sans-serif !important;
        white-space: nowrap !important;
        font-size: 14px;
        font-weight: 700;
        padding: 6px 12px;
        letter-spacing: 0.6px;
        color: var(--text-muted, #9ca3af);
        text-decoration: none;
        background: transparent !important;
        border-radius: 0 !important;
        border-bottom: 2px solid transparent;
        transition: color 0.2s, border-color 0.2s;
        text-transform: uppercase;
        line-height: 1.2;
    }
    .nav-links a:hover {
        color: #ffffff;
        background: transparent !important;
        text-decoration: none;
    }
    .nav-links a.menu_selected {
        color: var(--primary, #ffb300);
        background: transparent !important;
        border-bottom: 2px solid var(--primary, #ffb300);
    }

    .discord-btn {
        background: transparent !important;
        border: none !important;
        padding: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted, #9ca3af);
        transition: color 0.2s, transform 0.2s;
        line-height: 1;
        flex-shrink: 0;
        height: 28px;
    }
    .discord-btn:hover {
        color: #5865F2 !important;
        transform: scale(1.08);
    }
    .discord-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Controls (search, profile, burger) */
    .nav-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    .header-search-form {
        position: relative;
        display: flex;
        align-items: center;
        max-width: 160px;
    }
    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    .header-search-form input {
        width: 140px;
        background: rgba(10, 10, 10, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--text-main, #d1d5db);
        padding: 4px 26px 4px 10px;
        border-radius: 3px;
        outline: none;
        font-size: 13px;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 600;
        transition: all 0.2s;
        box-sizing: border-box;
        height: 28px;
    }
    .header-search-form input:focus {
        border-color: var(--primary, #ffb300);
        box-shadow: 0 0 8px rgba(255, 179, 0, 0.3);
    }
    .search-icon-btn {
        position: absolute;
        right: 6px;
        background: transparent;
        border: none;
        color: var(--text-muted, #9ca3af);
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .search-icon-btn svg {
        width: 13px;
        height: 13px;
    }

    .login-btn {
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        font-size: 12.5px;
        padding: 4px 14px;
        text-transform: uppercase;
        color: #fff;
        background: rgba(255, 179, 0, 0.1);
        border: 1px solid var(--primary);
        border-radius: 3px;
        letter-spacing: 0.8px;
        transition: background 0.3s, box-shadow 0.3s;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 28px;
        box-sizing: border-box;
        text-decoration: none;
    }
    .login-btn:hover {
        background: var(--primary);
        color: #000;
        box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
    }
    .profile-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 3px 10px !important;
        border: 1px solid var(--primary);
        border-radius: 3px;
        text-decoration: none;
        height: 28px;
        box-sizing: border-box;
    }
    .profile-btn img {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: block;
    }
    .profile-btn .profile-text {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #fff;
        line-height: 1;
    }
    .settings-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        color: #aaa;
        text-decoration: none;
        transition: color 0.2s;
        line-height: 1;
        height: 28px;
    }
    .settings-btn:hover {
        color: #fff;
    }
    .settings-btn svg {
        width: 19px;
        height: 19px;
    }

    /* Hamburger Button */
    .nav-hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 28px;
        height: 28px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 179, 0, 0.3);
        border-radius: 3px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .nav-hamburger .bar {
        display: block;
        width: 16px;
        height: 2px;
        background: #ffb300;
        border-radius: 1px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-hamburger:hover {
        background: rgba(255, 179, 0, 0.15);
    }

    /* Mobile Breakpoint: 920px */
    @media (max-width: 920px) {
        .bf6-nav {
            padding: 6px 12px;
            gap: 8px;
        }

        /* Лого + тайтл в одну строку, WARDOGS TRACKER у 2 строки */
        .nav-logo {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .nav-badge {
            font-size: 12px;
            padding: 2.5px 5px 1px 5px;
            margin-right: 0;
            border-radius: 3px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
        }
        .game_logo_link {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: 0.5px;
            white-space: nowrap;
            gap: 0;
        }

        /* Бургер не відкритий за замовчуванням */
        .nav-links {
            display: none !important;
        }
        .nav-links.is-open {
            display: flex !important;
            flex-direction: column !important;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 100%;
            background: rgba(10, 14, 20, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 2px solid var(--primary, #ffb300);
            padding: 6px 12px;
            box-sizing: border-box;
            gap: 0;
            z-index: 1001;
            box-shadow: 0 12px 30px rgba(0,0,0,0.85);
        }
        .nav-links.is-open a {
            display: block !important;
            width: 100%;
            padding: 12px 0 !important;
            font-size: 15px !important;
            font-weight: 700;
            border-radius: 0 !important;
            background: transparent !important;
            box-sizing: border-box;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
            text-align: left;
            color: var(--text-muted, #9ca3af);
            letter-spacing: 0.6px;
            transition: color 0.15s;
        }
        .nav-links.is-open a:hover {
            color: #ffffff;
        }
        .nav-links.is-open a.menu_selected {
            background: transparent !important;
            color: var(--primary, #ffb300) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
            font-weight: 800;
        }
        .nav-links.is-open a:last-child {
            border-bottom: none !important;
        }

        .nav-hamburger {
            display: flex !important;
            margin-left: 5px !important;
        }

        /* Поле пошуку скорочується */
        .header-search-form {
            max-width: 120px;
            flex-shrink: 1;
        }
        .header-search-form input {
            width: 100%;
            min-width: 60px;
            max-width: 120px;
            padding: 4px 24px 4px 8px;
            font-size: 12px;
            height: 28px;
        }

        .discord-btn svg {
            width: 22px;
            height: 22px;
        }

        .profile-text { display: none; }
        .profile-btn { padding: 3px 6px !important; height: 28px; }
        .settings-btn svg { width: 18px; height: 18px; }
        .nav-controls { gap: 8px; flex-shrink: 0; }
    }

    @media (max-width: 480px) {
        .bf6-nav {
            padding: 5px 8px;
            gap: 6px;
        }
        .nav-links.is-open {
            padding: 6px 10px;
        }
        .nav-logo {
            gap: 6px;
        }
        .nav-badge {
            font-size: 11px;
            padding: 2px 4px 1px 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
        }
        .game_logo_link {
            font-size: 13.5px;
            line-height: 1.05;
        }
        .header-search-form {
            max-width: 90px;
        }
        .header-search-form input {
            padding: 3px 20px 3px 6px;
            font-size: 11px;
            height: 26px;
        }
        .header-search-form input::placeholder {
            font-size: 11px;
        }
        .discord-btn svg {
            width: 20px;
            height: 20px;
        }
        .login-btn {
            height: 26px;
            padding: 3px 8px;
            font-size: 11.5px;
        }
        .nav-controls {
            gap: 6px;
        }
    }
    .settings-btn { transition: color 0.2s; }
    .settings-btn:hover { color: #09f !important; }

/* ==========================================================================
   Global Site Footer
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 50;
    margin-top: 32px;
    background: rgba(10, 11, 16, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
}

.site-footer-inner {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

.footer-simple-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-disclaimer-text {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    max-width: 650px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-tracker-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c5d1de;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-tracker-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
}

.footer-copy {
    font-size: 12px;
    color: #79869a;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 36px;
        padding: 18px 0;
    }
    .footer-simple-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .footer-actions-right {
        width: 100%;
        justify-content: space-between;
    }
}

