:root {
    --bg-dark: #0a192f;
    --bg-dark-secondary: #223d5f;
    --accent-teal: #64ffda;
    --accent-blue: #1e90ff;
    --text-light: #ccd6f6;
    --text-muted: #8892b0;
    --darker: #0f172a;

  --main-bg: #000  ;
  --second-bg: #0C0D10;
  --third-bg: #111418;
  --border-color: #2c323c;
  
  --blue: #4dabf7;
  --blue-opacity: rgb(77 171 247 / 30%);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.4);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.6);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.4) rgba(0, 0, 0, 0.1);
}

html {
    scrollbar-gutter: stable;
}

@media (hover: hover) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: #8892b0;
    }

    :hover::-webkit-scrollbar-thumb {
        background: #8892b0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

h1 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 1px rgba(100, 255, 218, 0.4),
        0 0 3px rgba(100, 255, 218, 0.2);
}

/* Leaderboard notifications */
#emptyLeaderboardNotification {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.9);
    color: var(--accent-teal);
    padding: 20px;
    z-index: 1000;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-top: 1px solid var(--accent-teal);
    box-shadow: 0 -4px 12px rgba(100, 255, 218, 0.1);
}

#leaderboardTable tbody {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#leaderboardTable tbody.hidden {
    opacity: 0;
    pointer-events: none;
}

#seasonTimer {
    display: none;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 0px 1px rgb(255 255 255 / 70%);
    color: #f0f0f0;
    background: #ffffff0e;
    padding: 5px 10px;
    border-radius: 4px;
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    right: 20px;
    z-index: 5;
    user-select: none;
}

#timerDisplay {
    color: #abc1ff;
    font-weight: 700;
    padding: 0 3px;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 1200px;
    background-color: var(--second-bg);
    padding: 10px 25px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
    z-index: 1000;
}

.navbar:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-logo {
    height: 42px;
    width: auto;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.navbar-links-container {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 20px;
}

.navbar-link {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: max-content;
}

.navbar-link:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
        color: #fff;
}

.navbar-link.active {
    background: linear-gradient(145deg,
            rgba(100, 255, 218, 0.3),
            rgba(100, 255, 218, 0.2));
    border: 1px solid rgba(100, 255, 218, 0.4);
    color: var(--accent-teal);
    font-weight: 700;
}

.navbar-link--login {
    background: linear-gradient(145deg,
            rgba(100, 255, 219, 0.25),
            rgba(100, 255, 219, 0.15));
    border: 1px solid rgba(100, 255, 219, 0.3);
    font-weight: 700;
    position: relative;
}

.navbar-link--login:hover {
    background: linear-gradient(145deg,
            rgba(100, 255, 219, 0.35),
            rgba(100, 255, 219, 0.25));
    border: 1px solid rgba(100, 255, 219, 0.5);
}

.season-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.season-selector label {
    font-size: 1rem;
    color: var(--accent-teal);
}

.season-selector select {
    padding: 8px 12px;
    padding-right: 32px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
    border: 1px solid var(--accent-teal);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364ffdb'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.season-selector select:hover {
    background-color: rgba(23, 42, 69, 0.8);
    border-color: var(--accent-blue);
}

.season-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.3);
}

/* Leaderboard Controls */
.leaderboard-controls {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.controls-toolset {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--text-muted);
}

.auto-update-control {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.auto-update-control label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#updateInterval {
    padding: 6px 10px;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    color: var(--text-light);
}

#timeToUpdate {
    font-size: 14px;
    color: var(--text-muted);
}

#playerSearch {
    flex-grow: 1;
    padding: 12px 16px;
    font-size: 16px;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

#playerSearch:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

#playerSearch::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Leader board */
table {
    background-color: rgb(57 89 131 / 29%);
    width: 100%;
    max-width: 1800px;
    margin: auto;
    margin-bottom: 60px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: translateY(0);
}

th,
td {
    padding: 10px 20px;
    border-bottom: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

th {
    text-align: center;
    background-color: rgba(23, 42, 69, 0.329);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    -webkit-font-smoothing: antialiased;
    position: sticky;
    top: 0;
}

th:hover {
    background-color: rgba(30, 144, 255, 0.6);
}

tr {
    transition: all 200ms ease-in-out;
}

tr:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

td {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Play status on leaderboard for heartbeats */
.player-status-lb {
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    border: 2px solid;
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.01);
    }
}

.status-blink {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

.status-blink::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
    animation: blinkGlow 2s infinite;
}

@keyframes blinkGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

@keyframes blink {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Online */
.player-status-lb-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

/* In menu */
.player-status-lb-menu {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* In stash */
.player-status-lb-stash {
    background: #1640f928;
    color: #899fff;
    border-color: #1640f9;
}

/* In hideout */
.player-status-lb-hideout {
    background: rgba(245, 249, 22, 0.2);
    color: #f7ff87;
    border-color: #eaf916;
}

/* IN raid */
.player-status-lb-raid {
    background: rgba(249, 115, 22, 0.2);
    color: #ffa362;
    border-color: #f97316;
}

/* In Transit */
.player-status-lb-transit {
    background: rgba(249, 215, 22, 0.2);
    color: #fff384;
    border-color: #fff387;
}

/* Finished raid */
.player-status-lb-finished {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: #a855f7;
}

/* Offline */
.player-status-lb-offline {
    background: rgba(75, 85, 99, 0.2);
    color: #4b5563;
    border-color: #4b5563;
}

/* Blink for online */
#blink {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

/* Online */
.player-status-lb-online #blink {
    background: linear-gradient(135deg, #6affa3 0%, #00e676 100%);
    box-shadow: 0 0 12px rgba(106, 255, 163, 0.6);
}

/* In menu */
.player-status-lb-menu #blink {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* In stash */
.player-status-lb-stash #blink {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* In hideout */
.player-status-lb-hideout #blink {
    background: linear-gradient(135deg, #fb923c 0%, rgba(232, 251, 60, 0.6) 100%);
    box-shadow: 0 0 12px rgba(232, 251, 60, 0.6);
}

/* In raid */
.player-status-lb-raid #blink {
    background: linear-gradient(135deg, #eefb3c 0%, #f97316 100%);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

/* In transit */
.player-status-lb-transit #blink {
    background: linear-gradient(135deg, #eefb3c 0%, #f97316 100%);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

/* Raid end */
.player-status-lb-finished #blink {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}


td:nth-child(2) {
    font-size: 1em;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
}

td:nth-child(3) {
    font-weight: 600;
    color: white;
    position: relative;
}

td:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: var(--accent-teal);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

td:nth-child(3):hover {
    cursor: pointer;
}

td:nth-child(3):hover::before {
    opacity: 1;
}

button,
.main-button {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

button:hover,
.main-button:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.player-name {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 300ms ease-in-out;
    cursor: pointer;
    border-radius: 4px;
    height: 50px;
}

.player-name:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.player-mode {
    background: rgba(255, 255, 255, 0.096);
    color: white;
    font-family: monospace;
    border: 1px solid #ffffff3b;
    border-radius: 5px;
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    padding: 2px;
    text-transform: uppercase;
    display: flex;
}

.FIKA {
    color: #55c3ff;
}

.REALISM {
    color: #ffb7a1;
}

.WTT {
    color: #ffa1a1;
}

.lb-profile-picture {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(132, 210, 255, 0.8);
    object-fit: cover;
    box-shadow:
        0 2px 4px rgba(132, 210, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.player-name:hover .lb-profile-picture {
    border-color: #84d2ff;
    transform: scale(1.08);
    box-shadow:
        0 6px 25px rgba(132, 210, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* Styling scorings by color */
.bad {
    color: #da6879;
    font-weight: bold;
}

.average {
    color: #f6d25d;
    font-weight: bold;
}

.good {
    color: #6fdf60;
    font-weight: bold;
}

.impressive {
    color: #ca60df;
    font-weight: bold;
}

/* Styling rank number */
.rank.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank.silver {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

/* Styling names */
.gold-name,
.silver-name,
.bronze-name {
    position: relative;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gold-name {
    font-size: 1.5rem;
    font-family: "Archivo Black", sans-serif;
    color: transparent !important;
    font-weight: 800;
    background-size: 300%;
    animation: shine 5s linear infinite, lights 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(-60deg, #00a6ff, #8300e0, #e823a1, #f3d910, #ffffff, #ffa5d8, #ffffff, #f3d910, #e823a1, #8300e0, #00a6ff);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes shine-reversed {
    to {
        background-position: -200% center;
    }
}

@keyframes lights {
    0% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

    30% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    40% {
        color: hsl(230, 100%, 95%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 90%, 0.5),
            -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
            0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
    }

    70% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    100% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

}

.silver-name {
    font-size: 1.5rem;
    color: transparent !important;
    font-weight: bold;
    background-size: 300%;
    animation: shine 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(-60deg, #97d7d7, #d3d3ff, #e9f0d0, #5232c7, #6e0ea5, #7659fc, #4014a5, #7a4bb8, #e9f0d0, #d3d3ff, #97d7d7);
}

.bronze-name {
    background-image: linear-gradient(-60deg, #c7a432, #ffce46, #fcec59, #a53614, #b8964b, #d7a197);
    -webkit-background-clip: text;
    color: transparent !important;
    background-size: 300%;
    background-clip: text;
    font-style: normal;
    font-size: 1.3em;
}

.account-icon {
    height: 22px;
}

.gradient-tp-text {
    background: linear-gradient(135deg, #ff6666, #b30000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-radius: 5px;
    text-shadow: 2px 2px 5px #00000080;
}

/* Stats bar */
.top-stats-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--second-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 2;
    box-sizing: border-box;
    font-size: 0.96rem;
    min-width: 1000px;
}

.stats-line {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
    /* temporary solution to stats not being centered */
    margin-left: 10px;
    margin-right: 10px;
}

.stats-item {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.stats-item:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.stats-item strong {
    color: #64ffda;
    font-weight: 600;
}

.stats-item span {
    color: rgba(255, 255, 255, 0.9);
}

.live-data-label {
    color: rgba(255, 255, 255, 0.7);
    background-color: #ffffff10;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 10px;
    cursor: default;
    position: relative;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.live-data-label:hover {
    color: rgba(100, 255, 218, 0.8);
}

.player-stats {
    display: flex;
    gap: 16px;
    padding-left: 5px;
    position: relative;
    justify-content: left;
    flex-wrap: wrap;
}

.player-count strong {
    color: #ffa64d;
}

.online-count strong {
    color: #66ff66;
}

.stats-item.player-count,
.stats-item.online-count {
    background: rgba(255, 255, 255, 0.03);
}

#serverStatus {
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#serverStatus::before {
    content: "";
    display: inline-block;
    background-color: #8f8f8f;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* If server is online */
#serverStatus.server-online {
    color: #6fdf60;
}

#serverStatus.server-online::before {
    background-color: #6fdf60;
    animation: blink-online 2s infinite;
}

/* If server is offline */
#serverStatus.server-offline {
    color: #ff6a6a;
    background: rgb(255 106 106 / 20%);
}

#serverStatus.server-offline::before {
    background-color: #ff6a6a;
    animation: blink-offline 2s infinite;
}

/* If server is under maintenance */
#serverStatus.server-maintenance {
    color: #F47730;
}

#serverStatus.server-maintenance::before {
    background-color: #F47730;
    animation: blink-maintain 2s infinite;
}

@keyframes blink-online {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

@keyframes blink-maintain {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 #F47730;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

@keyframes blink-offline {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 #ff6a6a;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

/* API Status styles */
.server-tooltip {
    position: fixed;
    background: rgba(70, 70, 90, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 180px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent rgba(70, 70, 90, 0.7);
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: '?';
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
}

.modal li {
    color: var(--text-light);
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.modal p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.98), rgba(15, 30, 55, 0.98));
    margin: 8% auto;
    padding: 30px;
    border: 1px solid var(--accent-teal);
    border-radius: 16px;
    width: 85%;
    max-width: 800px;
    color: var(--text-light);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(100, 255, 218, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content h2 {
    color: #96c0ff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(150, 192, 255, 0.3);
    position: relative;
}

.close {
    color: var(--accent-teal);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close:hover {
    color: var(--accent-blue);
    background: rgba(100, 255, 218, 0.1);
}

.modal-content {
    animation: fadeIn 0.3s ease;
}

.modal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
    border: 1px solid rgb(119, 255, 223);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
}

.setting-item {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.01));
    padding: 20px;
    border-left: 4px solid var(--accent-teal);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.setting-label {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.setting-label:hover {
    color: var(--accent-teal);
}

.setting-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 32px;
    transition: color 0.3s ease;
}

input[type="checkbox"]:checked {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--darker);
    font-weight: bold;
    font-size: 14px;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

input[type="checkbox"]:checked:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-teal);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.setting-item:hover .setting-description {
    color: var(--text-light);
}

.player-compare-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.player-input {
    flex: 1 1 45%;
    background-color: #243447;
    padding: 0.55rem;
    border-radius: 8px;
}

/* Widget for watch list */
.draggable-widget {
    position: fixed;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(2, 12, 27, 0.8);
    z-index: 1000;
    overflow: hidden;
}

.widget-header {
    padding: 12px 16px;
    background: rgba(34, 61, 95, 0.8);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header h3 {
    margin: 0;
    font-size: 15px;
}

.close-widget {
    background: none;
    border: none;
    color: var(--accent-teal);
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease;
}

.close-widget:hover {
    color: var(--accent-blue);
}

/* Main content */
.widget-content {
    padding: 16px;
}

.player-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.player-input-group {
    flex: 1;
    min-width: 140px;
}

.player-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--text-muted);
}

.player-id-input {
    width: 250px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 13px;
    outline: none;
    transition: border 0.2s ease;
}

.player-id-input:focus {
    border-color: var(--accent-teal);
}

.player-stats-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.not-found {
    color: #ff5555;
    font-size: 13px;
    margin: 0;
}

/* Announcement */
.announcement-wrapper {
    margin: 20px auto;
    max-width: 800px;
    background-color: rgba(57, 89, 131, 0.205);
    border-left: 4px solid #FFC107;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.announcement-content {
    text-align: left;
    color: #ffffff;
    width: -webkit-fill-available;
}

.announcement-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #FFC107;
}

.announcement-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.announcement-link {
    color: #64fff7;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.announcement-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.announcement-link::after {
    content: "↗";
    margin-left: 2px;
    font-size: 0.9em;
    display: inline-block;
}

.announcement-signature {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: right;
    margin-top: 8px;
    position: relative;
    padding-right: 15px;
}

/* Previous winners */
.winners-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    min-width: 900px;
    perspective: 1000px;
}

.winner-card {
    width: 310px;
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.7), rgba(23, 42, 69, 0.4));
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.15s);
    transform-style: preserve-3d;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

.winner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 255, 218, 0.5);
}

.winner-card::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: linear-gradient(90deg,
            rgba(100, 255, 218, 0.3),
            rgba(100, 255, 218, 0.6),
            rgba(100, 255, 218, 0.3));
    border-radius: 50%;
    opacity: 0.7;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* first place */
.winner-card:nth-child(2)::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.2),
            transparent);
}

.winner-card:first-child,
.winner-card:last-child {
    background: linear-gradient(145deg,
            rgba(36, 62, 83, 0.7),
            rgba(36, 62, 83, 0.4));
    transform: scale(0.95) translateY(-10px);
    opacity: 0.95;
    padding: 22px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    z-index: 5;
}

.winner-card:first-child::after {
    background: linear-gradient(90deg,
            rgba(192, 192, 192, 0.3),
            rgba(192, 192, 192, 0.6),
            rgba(192, 192, 192, 0.3));
}

.winner-card:last-child::after {
    background: linear-gradient(90deg,
            rgba(205, 127, 50, 0.3),
            rgba(205, 127, 50, 0.6),
            rgba(205, 127, 50, 0.3));
}

.winner-card:first-child:hover,
.winner-card:last-child:hover {
    transform: scale(0.98) translateY(-15px);
    opacity: 1;
}

.winner-name {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.winner-card:nth-child(2) .winner-name {
    color: gold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.winner-rank {
    color: var(--accent-teal);
    margin: 15px 0;
    font-weight: 800;
    font-size: 1.4em;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.winner-card:nth-child(2) .winner-rank {
    color: gold;
    font-size: 1.6em;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.winner-skill,
.winner-stats {
    margin: 12px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(145deg,
            rgba(10, 25, 47, 0.4),
            rgba(10, 25, 47, 0.2));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1st place card styling */
.winner-card:nth-child(2) .winner-skill,
.winner-card:nth-child(2) .winner-stats {
    background: linear-gradient(145deg,
            rgba(30, 58, 107, 0.5),
            rgba(30, 58, 107, 0.3));
    color: var(--text-light);
    border-left: 4px solid gold;
}

.winner-stats span:last-child,
.winner-skill span:last-child {
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 6px rgba(30, 144, 255, 0.4);
    font-size: 1.1em;
}

#winners h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
    position: relative;
    padding-bottom: 15px;
}

/* Welcome screen styles */
#welcomePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.welcome-bg-image {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.3);
    animation-delay: 1s;
    z-index: -1;
}

.popup-container {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: var(--main-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.popup-header {
    padding: 30px;
    text-align: center;
}

.popup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 10px #fff;
    font-weight: 600;
}

.popup-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.features-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 30px;
}

.feature-row {
    display: flex;
    gap: 20px;
}

.feature-card {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    background: radial-gradient(650px 240px at top left, hsla(216, 69%, 52%, 0.151), var(--second-bg));
    border: 1px solid var(--border-color);
    transition: all 0.4s ease-in-out;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(74, 159, 245, 0.6);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.feature-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    flex-wrap: wrap;
}

.welcome-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--accent-blue), #3a7bc8);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 159, 245, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-button:hover {
    box-shadow: 0 8px 15px rgba(74, 159, 245, 0.6);
    background: linear-gradient(135deg, #5aa9ff, #4a8fd8);
}

.welcome-button i {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .feature-row {
        flex-direction: column;
    }

    .popup-header h1 {
        font-size: 2rem;
    }

    .popup-header p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .popup-container {
        width: 95%;
        max-height: 95vh;
    }

    .popup-header {
        padding: 20px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .main-button {
        width: 100%;
        justify-content: center;
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.popup-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-content p {
    animation-delay: 300ms;
    margin: 10px 0;
    font-size: 22px;
    opacity: 0.9;
}

.popup-content h1 {
    animation-delay: 100ms;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-content button {
    animation-delay: 400ms;
    margin-top: 50px;
}

.popup-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-image img {
    width: 1100px;
    height: 350px;
    border-radius: 5px;
    object-fit: cover;
    transform: perspective(1500px) rotateY(15deg);
    opacity: 0;
    animation: appear 2s ease-in-out forwards;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(104, 195, 255, 0.644);
}

@keyframes appear {
    from {}

    to {
        transform: perspective(3000px) rotateY(5deg);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .popup-container {
        flex-direction: column;
    }

    .popup-image {
        order: -1;
        padding: 30px;
        max-height: 550px;
    }

    .popup-content {
        padding: 30px;
    }

    .popup-content h1 {
        font-size: 2rem;
    }

    .popup-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .popup-content {
        padding: 20px;
    }

    .popup-image {
        padding: 20px;
        max-height: 700px;
    }

    .popup-content button {
        align-self: stretch;
        margin-top: 30px;
    }
}

/* SPT profile (full screen) */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
}

.profile-modal-content {
    position: relative;
    background: #1e1e2d;
    border: 1px solid #ffffff21;
    padding: 25px;
    transition: all 300ms ease-in-out;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    color: #fff;
    display: grid;
    gap: 20px;
    grid-template-columns: 500px 1fr 500px;
}

.close-profile-button {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1;
    width: 50px;
    height: 40px;
    font-size: 20px;
}

.profile-section {
    background: linear-gradient(145deg, #ffffff08, #ffffff12);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.7s ease;
}

.profile-section:hover::before {
    left: 100%;
}

.profile-section:hover {
    border: 1px solid #ffffff49;
}

.profile-section:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.profile-section h3 {
    font-size: 17px;
    margin-top: 10px;
}

.user-main-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    position: relative;
    padding: 20px;
}

.profile-header {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

/* Main PMC/SCAV stats on the profile*/
.player-overview {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: linear-gradient(145deg, #ffffff0a, #ffffff12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.player-overview:hover {
    transform: translateY(-2px);
}

.player-overview-side {
    align-self: center;
    font-weight: 700;
    padding: 10px 15px;
    background: linear-gradient(145deg, #ffffff15, #ffffff0d);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.player-overview-scav {
    color: #ffa66b;
    background: linear-gradient(145deg, rgba(255, 166, 107, 0.15), rgba(255, 174, 107, 0.08));
}

.player-overview-pmc {
    color: #4ecdc4;
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.08));
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: #bfebff;
    text-shadow: 0 0 3px rgba(191, 235, 255, 0.4);
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.stat-item:hover .stat-value {
    cursor: pointer;
    transform: scale(1.01);
    color: #91dcff;
    text-shadow: 0 0 15px rgba(145, 220, 255, 0.6);
}

.stat-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-main-card .pfp {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / span 2;
    align-self: start;
}

.user-main-card .name {
    font-size: 1.2em;
    color: #84d2ff;
    font-weight: bold;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 220px;
}

.user-main-card .aboutMe {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 600;
    color: #cdcdcd;
    padding: 10px 0;
    margin: 5px 0;
}

.user-main-card .badges {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 8px;
    background-color: #ffffff05;
    border: 1px solid #ffffff21;);
    border-radius: 10px;
    padding: 8px;
}

.pmc-side-wrapper {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.pmc-side-wrapper img {
    width: 150px;
    height: 150px;
}

.pmc-level {
    position: relative;
    bottom: 45px;
    font-family: monospace;
    background-color: #ffffff14;
    place-self: center;
    padding: 3px;
    border-radius: 8px;
    font-weight: 600;
}

.user-main-card .registerDate {
    font-size: 12px;
    color: #cdcdcd;
    position: absolute;
    top: 10px;
    right: 10px;
}

#main-profile-loader {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#main-profile-loader.fade-out {
    opacity: 0;
}

/* Player full height preview */
.playermodel {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.playermodel h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.playermodel h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #92fff063, transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.playermodel:hover h3::after {
    transform: scaleX(1);
}

.playermodel-image img {
    width: 100%;
    display: flex;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Online Status */
.player-status {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #cdcdcd;
}

.raid-details {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    font-size: 0.85em;
    margin-top: 5px;
    padding: 6px 12px;
    color: #f3f3f3;
    width: fit-content;
    border-top: 2px solid #ffa05b;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border-bottom: 2px solid #ffa05b;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(71, 62, 62, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.raid-details span {
    margin: 2px 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-online {
    background-color: rgb(106, 255, 163);
    box-shadow: 0 0 8px rgb(106, 255, 163);
}

.status-inraid {
    background-color: rgb(245, 255, 106);
    box-shadow: 0 0 8px rgb(245, 255, 106);
}

.status-offline {
    background-color: rgb(121, 121, 121);
}

.user-achievements {
    grid-area: achievements;
    height: fit-content;
}

.raid-block {
    grid-area: raid-block;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.raid-summary {
    display: block;
    text-align: center;
}

.last-raids {
    max-height: 950px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #ffffff1a;
    gap: 5px;
    border-radius: 10px;
}

.raid-time {
    transition: all 0.2s ease;
}

/* Recent stats for raid */
.recent-raids-stats {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-stats-header {
    text-align: center;
    margin-bottom: 15px;
}

.recent-stats-header h3 {
    font-size: 1.1rem;
    color: #bfebff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.recent-stats-grid .stat-card {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-stats-grid .stat-value {
    font-size: 1.1rem;
    color: #ffd700;
}

.recent-stats-grid .stat-label {
    font-size: 0.8rem;
}

/* Hits Sheet */
.body-parts-main {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 20px;
}

.stats-body-hits {
    margin-left: 20px;
}

.avg-headshots {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #d8d8d8, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hits-past-raids {
    border: 1px solid #ffffff1a;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hits-wrapper {
    display: flex;
    flex-direction: column;
}

.hits-avg-headshots {
    display: flex;
    align-items: center;
}

.body-svg {
    fill: #cdcdcd5e;
    width: 70px;
}

.hit-perc {
    color: #c0c0c0;
    font-size: smaller;
    font-family: sans-serif;
}

.weapon-icon-fav {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    width: 100%;
    height: auto;
    margin-top: 10px;
    place-self: center;
    rotate: 9deg;
}

/* Weapons List */
.weapon-stats-container {
    height: 460px;
    overflow-y: scroll;
}

.weapon-gold {
    background: radial-gradient(350px 200px at top right,
            rgba(255, 215, 0, 0.4) 30%,
            rgba(218, 165, 32, 0.3) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background-clip: padding-box;
}

.weapon-silver {
    background: radial-gradient(350px 200px at top right,
            rgba(192, 192, 192, 0.5) 30%,
            rgba(169, 169, 169, 0.3) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
    background-clip: padding-box;
}

.weapon-bronze {
    background: radial-gradient(350px 200px at top right,
            rgba(205, 127, 50, 0.45) 30%,
            rgba(139, 69, 19, 0.35) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.25);
    background-clip: padding-box;
}

.weapon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weapon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    overflow: hidden;
}

.weapon-infos {
    display: flex;
    gap: 15px;
    font-size: 14px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.weapon-icon {
    width: 270px;
    height: 84px;
    display: flex;
}

.weapon-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Player Info for profile */
.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    border: 2px solid #84d2ff;
    margin-bottom: 15px;
    object-fit: cover;
}

.player-discord {
    background: rgba(255, 255, 255, 0.096);
    border: 1px solid #ffffff3b;
    gap: 5px;
    border-radius: 5px;
    width: fit-content;
    font-size: 0.85rem;
    padding: 3px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.062);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff21;
    transition: transform 0.2s;
    font-size: 0.9em;
    will-change: transform;
}

.badge-lb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 0.9em;
    place-self: center;
}

.badge-lb.tooltip {
    position: relative;
    cursor: pointer;
}

.badge-lb.tooltip em {
    font-size: 25px;
}

.badge:hover {
    transform: scale(1.1);
}

.boost-container {
    display: flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    justify-self: center;
}

.boost-value {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.prestige-icon {
    width: 32px;
    height: 32px;
    vertical-align: inherit;
}

.profile-modal-content {
    animation: profileModalFade 0.25s ease-out forwards;
}

/* Animations */
@keyframes profileModalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Friend List for profile */
.friends-container {
    max-height: 200px;
    overflow: overlay;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    gap: 12px;
    cursor: pointer;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(132, 210, 255, 0.7);
    object-fit: cover;
    flex-shrink: 0;
}

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

.friend-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.friend-status {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.no-friends {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 16px;
    font-size: 15px;
}

/* Private Profile Styles */
.private-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.2));
}

.private-profile-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #ff4757;
    border-radius: 16px;
    padding: 35px;
    width: 380px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.private-profile-content h3 {
    color: #ff6b6b;
    margin: 20px 0;
    font-size: 24px;
    text-shadow:
        0 0 10px rgba(255, 107, 107, 0.5),
        0 0 20px rgba(255, 107, 107, 0.3);
}

.private-profile-content p {
    color: #b0b0c0;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.ban-details {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 107, 107, 0.15) 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(255, 71, 87, 0.3);
    position: relative;
}

.ban-details::before {
    content: '⚠️';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 10px;
    font-size: 18px;
}

.ban-details p {
    margin: 12px 0;
    font-size: 14px;
}

.ban-details strong {
    color: #ff6b6b;
    font-weight: 600;
}

.ban-icon {
    width: 220px;
    height: 140px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 71, 86, 0.096);
}

.banned {
    filter: blur(5px);
}

/* Profile loader container */
.loader-glass {
    height: 600px;
    background: rgba(255, 255, 255, 0.048);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    place-content: center;
    animation: fadeIn 0.3s ease-out;
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loader-icon {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.loader-glass h3 {
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lock-icon {
    font-size: 50px;
    color: #84d2ff;
    opacity: 0.8;
}

.private-profile-hint {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.hidden {
    display: none;
}

/* Last Raids History */
.last-raid-feed {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: fit-content;
    margin-bottom: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: clip
}

.last-raid-feed:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.error-raid-load {
    padding: 50px;
    color: #ff4444;
    align-self: center;
    font-weight: bold;
}

.last-raid-full-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

.last-raid-feed:hover .last-raid-full-background {
    opacity: 0.35;
}

.last-raid-full-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
}

.last-raid-feed:hover .last-raid-full-background img {
    transform: scale(1.05);
}

.section-title {
    color: #84d2ff;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #84d2ff, transparent);
    transition: width 0.4s ease;
}

.last-raid-feed:hover .section-title::after {
    width: 120px;
}

.lb-coins {
    font-weight: 700;
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, #c2e8ff, transparent);
}

.last-raid-map {
    width: 90px;
    height: 60px;
    overflow: hidden;
    border-radius: 12px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.last-raid-map:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.last-raid-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.raid-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    vertical-align: middle;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 15px;
}

.raid-result i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.raid-meta {
    display: block;
    font-size: 0.95em;
    margin-top: 12px;
    opacity: 0.9;
    line-height: 1.6;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.raid-killer {
    font-weight: 700;
    color: #ff6a6a;
    text-shadow: 0 0 8px rgba(255, 106, 106, 0.4);
    position: relative;
}

.raid-killer::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #ff6a6a, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.raid-killer:hover::after {
    transform: scaleX(1);
}

.stats-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-block {
    background: rgb(255 255 255 / 2%);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgb(255 255 255 / 10%);
}

.pmc-block {
    border-top: 3px solid #84d2ff;
}

.scav-block {
    border-top: 3px solid #ff9e64;
}

.scav {
    color: #ff9e64 !important;
}

.raid-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
    animation: slideInUp 0.8s ease;
}

.raid-stat-block {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.raid-stat-block:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.raid-stat-block:hover .profile-stat-value {
    color: #84d2ff;
    transform: scale(1.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.11);
}

.profile-stat-label {
    color: #b0b0c0;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stat-value {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Survived */
.survived {
    color: #6affa3;
}

.survived-bg {
    background: radial-gradient(800px 300px at top left, hsl(148, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(106, 255, 163, 0.2);
}

/* Died */
.died {
    color: #ff6a6a;
}

.died-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

/* Runner */
.run-through {
    color: #fffafa;
}

.run-through-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 0%, 100%, 0.2), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 250, 250, 0.2);
}

/* Transit */
.transit {
    color: #F47730;
}

.transit-bg {
    background: radial-gradient(800px 300px at top left, hsla(20, 90%, 57%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(244, 119, 48, 0.2);
}

/* Disconnected */
.disconnected {
    color: #ff6a6a;
}

.disconnected-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

@media (max-width: 768px) {
    .profile-grid-layout {
        grid-template-columns: 1fr;
    }

    .profile-main-card {
        grid-column: 1;
    }

    .raid-stats-grid {
        grid-template-columns: 1fr;
    }
}

.raid-overview-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    width: 100%;
}

.raid-text-content {
    display: flex;
    flex-direction: column;
}

.last-raid-map.survived-border {
    border: 2px solid #6affa3;
    box-shadow: 0 0 20px rgba(106, 255, 163, 0.3);
}

.last-raid-map.died-border {
    border: 2px solid #ff6a6a;
    box-shadow: 0 0 20px rgba(255, 106, 106, 0.3);
}

.last-raid-map.run-through-border {
    border: 2px solid #fffafa;
    box-shadow: 0 0 20px rgba(255, 250, 250, 0.3);
}

.last-raid-map.transit-border {
    border: 2px solid #F47730;
    box-shadow: 0 0 20px rgba(244, 119, 48, 0.3);
}

.last-raid-map.disconnected-border {
    border: 2px solid #ff6a6a;
    box-shadow: 0 0 20px rgba(255, 106, 106, 0.3);
}

.badge.tooltip {
    position: relative;
    cursor: pointer;
    z-index: 5;
}

.badge.tooltip em {
    font-size: 25px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background: var(--third-bg)
    border: 1px solid #ffffff1a;
    color: #fff;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.achievement-block {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #ffffff00;
    border-radius: 10px;
    margin-top: 75px;
}

.achievement-content {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.achievement-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-icon img {
    width: 85px;
    height: 90px;
    border-radius: 8px;
}

.achievement-time {
    font-size: 0.8rem;
    color: #cdcdcd;
    margin-top: 0.25rem;
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-title {
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.achievement-percentage {
    color: #cdcdcd;
    font-size: 12px;
    margin-top: auto;
}

.Rare {
    background: linear-gradient(90deg, #9c83ab, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.Rare img {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
}

.Common {
    background: linear-gradient(90deg, #d8d8d8, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.Legendary {
    background: linear-gradient(90deg, #fff56d, #d49331);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(227, 241, 99, 0.3);
}

.Legendary img {
    filter: drop-shadow(0 0 15px rgba(227, 241, 99, 0.2));
}

.achievement-description {
    margin-block: auto;
    font-size: 0.9rem;
    color: #ccc;
}

/* Profile Battlepass */
.hall-of-fame-button-container {
    margin-top: 20px;
    padding-left: 35px;
    padding-top: 15px;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.hall-of-fame-button {
    background: #ffffff1a;
    border: none;
    padding: 10px 18px;
    font-size: 0.95em;
    color: rgb(205, 239, 255);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out, background 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hall-of-fame-button:hover {
    background: #ffffff25;
    box-shadow: 0;
}

.lastRaids-button {
    top: 55px;
    left: 35px;
}

.raids-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    transition: all 300ms ease-in-out;
}

.raids-modal-content {
    position: absolute;
    display: none;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 80vh;
    background-color: #1e1e2d;
    border-radius: 8px;
    overflow: hidden;
    flex-direction: column;
    overflow-y: scroll;
    transition: all 300ms ease-in-out;
    border: 1px solid #ffffff1a;
}

.raids-stats-container p {
    text-align: center;
    font-weight: 600;
}

#player-profile-hof {
    display: none;
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: fit-content;
    align-self: flex-start;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Second row battlepass (I HAVE NO IDEA WHAT IS HAPPENING HERE) */
#player-profile-hof-sec {
    display: none;
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: fit-content;
    align-self: flex-start;
    font-family: Arial, sans-serif;
    color: #fff;
    gap: 15px;
}

.hof-player-level {
    padding: 15px;
    border: 1px solid rgb(255 255 255 / 10%);
    height: fit-content;
    align-self: flex-start;
    background: rgb(255 255 255 / 2%);
    border-radius: 8px;
}

.bp-wrapper {
    width: 340px;
    float: left;
}

.level-info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background: linear-gradient(145deg, #ffffff0a, #ffffff15);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.level-info::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(146, 255, 240, 0.05), transparent);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.rank-icon {
    display: block;
    width: 90px;
    height: 90px;
    float: left;
    margin-right: 24px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.rank-icon:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.level-label {
    color: rgba(255, 255, 255, 0.7);
}

.level-value {
    font-weight: 800;
    color: #92fff0;
    text-shadow: 0 0 10px rgba(146, 255, 240, 0.5);
    font-size: 2rem;
}

.level-value-wp {
    font-weight: bold;
    color: #deff92;
}

.exp-bar-container {
    margin: 15px 0;
}

.exp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-progress {
    height: 100%;
    background: linear-gradient(90deg,
            #8ad0f0,
            #90ff9f,
            #8ad0f0);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 2s ease infinite;
    box-shadow: 0 0 10px rgba(138, 208, 240, 0.4);
}

.exp-progress-wp {
    height: 100%;
    background: linear-gradient(90deg,
            #f0c48a,
            #f8ff90,
            #f0c48a);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 2s ease infinite;
    box-shadow: 0 0 10px rgba(240, 196, 138, 0.4);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.exp-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.exp-remaining {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.remaining-value {
    color: #91dcff;
    font-weight: bold;
}

.remaining-value-wp {
    color: #ebff91;
    font-weight: bold;
}

.hof-player-trader-info {
    padding: 15px;
    border: 1px solid rgb(255 255 255 / 10%);
    height: fit-content;
    align-self: flex-start;
    background: rgb(255 255 255 / 4%);
    border-radius: 8px;
}

.trader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    overflow-y: scroll;
    max-height: 300px;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a2a;
}

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

.trader-grid::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.trader-grid::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.trader-grid::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.trader-card {
    background: rgba(255, 255, 255, 0.068);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.trader-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.trader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;

}

.trader-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-size: 24px;
}

.trader-card[data-unlocked="false"] .trader-image {
    filter: brightness(0.5);
}

.trader-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
}

.trader-standing {
    font-size: 12px;
    color: #aaa;
}

.weapon-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weapon-name {
    font-size: 1.1em;
    margin-top: 15px;
    font-weight: bold;
    color: #fff;
}

.weapon-mastery {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
}

.mastery-level {
    color: #84d2ff;
}

.weapon-extra-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    display: block;
    text-align: center;
}

.extra-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stattrack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.stattrack-message {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stattrack-message a {
    text-decoration: wavy;
    transition: all 300ms ease-in-out;
    color: rgb(192, 201, 252);
}

.stattrack-disabled {
    opacity: 0.8;
    pointer-events: none;
    user-select: none;
}

.hof-player-fav-weapon {
    position: relative;
}

/* Notifications of last raid */
.player-notification-r {
    position: absolute;
    right: 10px;
    width: 320px;
    padding: 12px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-left: 4px solid #4a6cf7;
    animation: slideInLastRaid 0.3s forwards;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

.player-notification-private-background {
    background: rgba(20, 20, 25, 0.116);
}

.notification-header-r {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* To change left border */
.border-died {
    border-left: 4px solid #f87171;
}

.border-survived {
    border-left: 4px solid #4ade80;
}

.notification-content-r {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-avatar-r {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-text-r {
    display: flex;
    flex-direction: column;
}

.notification-name-r {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.notification-info-r {
    font-size: 13px;
    color: #a0a0c0;
    display: block;
    line-height: 1.2;
}

.raid-overview-notify {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.raid-result-r {
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.raid-result-r em,
.raid-result-r i {
    font-size: 14px;
}

.raid-result.survived {
    color: #4ade80;
}

.raid-result-r.died {
    color: #f87171;
}

.raid-result-r.disconnected {
    color: #fbbf24;
}

.raid-result-r.transit {
    color: #60a5fa;
}

.raid-meta-notify {
    font-size: 12px;
    color: #b0b0d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-last-raid-streak-common {
    text-transform: uppercase;
    background-image: linear-gradient(-225deg,
            #79fbff,
            #6a6cfc,
            #79fbff);
    background-size: 200% auto;
    text-align: center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
}

.notification-last-raid-streak {
    text-transform: uppercase;
    background-image: linear-gradient(-225deg,
            #79fbff,
            #6a6cfc,
            #79fbff);
    background-size: 200% auto;
    text-align: center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 3s linear infinite;
    display: inline-block;
    font-size: 19px;
    font-weight: 700;
}

@keyframes textclip {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.notification-ban {
    color: #da6879;
    display: inline-block;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.ban-text {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #ffcccc;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.164);
    border-left: 3px solid #ff3333;
    border-radius: 0 4px 4px 0;
}

.ban-issued {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #ff9999;
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

@keyframes slideInLastRaid {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Season End Screen */
#seasonOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    z-index: 1000;
    overflow: none;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533d7b);
    background-size: 400% 400%;
    background-position: 0% 50%;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 30px rgba(134, 200, 255, 0.3);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseTextRepeat {
    from {
        text-shadow: 5px 5px 10px rgba(255, 67, 67, 0.897);
    }

    to {
        text-shadow: 0 0 40px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseText {
    from {
        text-shadow: 0 0 30px rgba(134, 200, 255, 0.3);
    }

    to {
        text-shadow: 0 0 30px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseTextLast {
    from {
        color: #ff8484;
    }
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 2s ease-in-out;
    opacity: 0;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.video-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 2s ease-in-out;
    opacity: 0;
}

.video-background-overlay video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.season-end-container {
    max-width: 1200px;
    margin: 0 auto;
}

.season-header {
    text-align: center;
    margin-bottom: 40px;
}

.season-header h1 {
    text-align: center;
    color: var(--accent-blue);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 2s ease-in-out forwards,
        glowPulseText 5s ease-in-out forwards 7.5s,
        glowPulseTextRepeat 2s ease-in-out forwards 8.5s,
        glowPulseTextLast 5s ease-in-out forwards 8.9s;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 10px;
    text-shadow:
        0 0 1px rgba(100, 255, 218, 0.4),
        0 0 3px rgba(100, 255, 218, 0.2);
    animation: fadeInUp 2s ease-in-out forwards,
        glowPulseText 5s ease-in-out forwards 7.6s;
}

.season-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.stats-block {
    background: radial-gradient(650px 440px at top left, hsl(178deg 69% 52% / 22%), #fffdfd03);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-block.general-stats {
    opacity: 0;
    animation: fadeInLeft 1s ease-in-out forwards 1s,
        glowPulse 5s ease-in-out forwards 7.9s;
}

.stats-block.top-players {
    opacity: 0;
    animation: fadeInRight 1s ease-in-out forwards 3s,
        glowPulse 5s ease-in-out forwards 8.3s;
    background: radial-gradient(650px 440px at top right, hsl(178deg 69% 52% / 22%), #fffdfd03);
}

.stats-block h2 {
    color: #8afbff;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.041);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #bfebff;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-card {
    background: rgba(255, 255, 255, 0.041);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.player-card.top-kd {
    border-left-color: #ef4444;
}

.player-card.top-kills {
    border-left-color: #3b82f6;
}

.player-card.top-survivor {
    border-left-color: #10b981;
}

.player-title {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-se-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
    color: white;
}

.player-stats {
    display: flex;
    justify-content: space-between;
    color: #24fb97;
    font-weight: bold;
}

.player-additional {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 5px;
}

.additional-stats {
    background: rgba(255, 255, 255, 0.027);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.additional-stats h3 {
    color: #8afbff;
    margin-top: 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.fact-card {
    background: rgba(255, 255, 255, 0.034);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fact-icon {
    font-size: 1.5rem;
}

.fact-text {
    font-size: 0.9rem;
    text-align: center;
}

.season-countdown {
    text-align: center;
    margin-top: 40px;
}

.season-countdown p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .season-stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.modern-footer {
    background-color: rgb(12 13 16 / 50%);
    background-image: url(https://ceesik.5v.pl/2Bbottom.png);
    background-size: 100%;
    background-position: ;
    background-repeat: no-repeat;
    background-position-y: -200px;
    color: #ccc;
    padding: 2.5rem 0;
    font-family: 'Inter', -apple-system, sans-serif;
    border-top: #6db6ff solid 1px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.logo-slogan {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.slogan {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
    margin: 0;
}

.license-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

.license-info a {
    color: #58a6ff;
    text-decoration: underline;
}

.license-info a:hover {
    color: #fff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
    background: var(--third-bg);
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    background: var(--third-bg);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Toasts / Notification pop ups */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    min-width: 250px;
    max-width: 90%;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toastSlideIn 0.3s ease-out forwards;
    opacity: 0;
}

.toast.success {
    background: radial-gradient(650px 240px at top left, hsla(178, 69%, 52%, 0.856), #fffdfd03);
}

.toast.error {
    background: radial-gradient(650px 240px at top left, hsla(0, 58%, 47%, 0.89), #fffdfd03);
}

.toast.warning {
    background: radial-gradient(650px 240px at top left, #f47830ee, #fffdfd03);
}

.toast.info {
    background: radial-gradient(650px 240px at top left, #1867a8, #2195f3be);
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.toast-close {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        padding: 10px;

        max-width: 100%;
    }

    .navbar-links-container,
    .navbar-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .leaderboard-controls {
        padding: 10px;
    }

    .search-container,
    .controls-toolset {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    table,
    th,
    td {
        font-size: 0.8rem;
        padding: 3px 6px;
    }

    .team-members {
        gap: 20px;
    }

    .other-members {
        gap: 20px;
    }

    .member-avatar,
    .main-member .member-avatar {
        width: 100px;
        height: 100px;
    }

    .modal-content {
        width: 95%;
    }

    .winner-card {
        width: 100%;
        max-width: 320px;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid-layout {
        grid-template-columns: 1fr;
    }

    .popup-content h1 {
        font-size: 1.5rem;
    }

    .popup-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 15px;
    }

    .stats-item,
    .live-data-label,
    .player-stats,
    .leaderboard-notification {
        display: none;
    }

    .winner-card {
        display: none;
    }

    .rank-icon {
        width: 60px;
        height: 60px;
    }
}

/* Admins */
#admins-container {
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    left: 10px;
    z-index: 10;
    border-radius: 5px;
    padding: 16px;
    background: var(--second-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-height: 60px;
}

#notifications-container-r {
    top: calc(var(--top-stats-height-variant, 70px));
    position: fixed;
    right: 0;
    width: 300px;
}

#admins-container:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

#admins-container h3 {
    color: #fff;
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-status {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-status:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    transition: all 0.3s ease;
}

.admin-status.online {
    color: #a5f3fc;
}

.admin-status.online::before {
    background: linear-gradient(to bottom, #22d3ee, #0ea5e9);
}

.admin-status.offline {
    color: #94a3b8;
}

.admin-status.offline::before {
    background: linear-gradient(to bottom, #64748b, #475569);
}

.admin-status .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.admin-status .username {
    font-weight: 500;
}

.admin-status .role-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.admin-status.admin .role-badge {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.admin-status.moderator .role-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.admin-status .status-info {
    font-size: 11px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.admin-status.online .status-dot {
    background: #22d3ee;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}

.admin-status.offline .status-dot {
    background: #64748b;
}

.admin-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 12px 0;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.61);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    color: #f87171;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

.profile-modal-content {
    flex-wrap: wrap;
    gap: 20px;
}

.left-column,
.center-column,
.right-column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 1200px) {
    .profile-modal-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .left-column,
    .center-column,
    .right-column {
        flex: 1 1 48%;
    }
}

@media (max-width: 768px) {
    .profile-modal-content {
        display: flex;
        flex-direction: column;
    }

    .left-column,
    .center-column,
    .right-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Comment Section */
.comment-form {
    margin-bottom: 30px;
}

.comment-input {
    width: 96%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    resize: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #5d93ff;
    box-shadow: 0 0 0 2px rgba(93, 147, 255, 0.2);
}

.comment-submit {
    background: linear-gradient(90deg, #5d93ff 0%, #7b68ee 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-submit:hover {
    box-shadow: 0 6px 15px rgba(93, 147, 255, 0.3);
    background: linear-gradient(90deg, #7b68ee 0%, #5d93ff 100%);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid rgba(93, 147, 255, 0.5);
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    color: #bfebff;
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.comment-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin-left: 60px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 25px 0;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #a3a3a3;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

.no-comments p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.no-comments span {
    font-size: 14px;
    color: #888;
}

/* Pre loader */
.loader-container-pre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--main-bg);
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
    overflow: hidden;
}

.loader-container-pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
    animation: gradientPulse 8s ease-in-out infinite;
}

.loader-container-pre.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.98);
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.logo-pre {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 50%, #5232c7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
    animation: logoGradient 3s ease infinite, logoFloat 4s ease-in-out infinite;
}

@keyframes logoGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.loader-pre {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(80, 112, 255, 0.15), rgba(80, 112, 255, 0.05));
    border-radius: 50%;
    position: relative;
    animation: skLinRotate 1.2s ease-in-out infinite alternate;
}

.loader-pre:after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent-teal);
}

@keyframes skLinRotate {

    95%,
    100% {
        transform: rotate(840deg)
    }
}

.progress-container-pre {
    width: 380px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-container-pre::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: load-shimmer 1s infinite;
}

@keyframes load-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-bar-pre {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            var(--accent-teal) 0%,
            var(--accent-blue) 50%,
            var(--accent-teal) 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: progressGradient 2s ease infinite;
    position: relative;
    z-index: 2;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.status-text-pre {
    margin-top: 1.8rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 400px;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.error-container-pre {
    position: absolute;
    display: none;
    text-align: center;
    max-width: 500px;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    margin-top: 2.5rem;
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.1);
    }

    50% {
        box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
    }
}

.error-container-pre.visible {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.error-title-pre {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.error-message-pre {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.retry-button-pre {
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-pre {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-pre.visible {
    opacity: 1;
    transform: translateY(0);
}

.resource-list-container-pre {
    margin-top: 3rem;
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
}

.resource-list-header-pre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.resource-count-pre {
    color: var(--accent-teal);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
}

.resource-list-pre {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) rgba(255, 255, 255, 0.08);
}

.resource-list-pre::-webkit-scrollbar {
    width: 6px;
}

.resource-list-pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.resource-list-pre::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-teal), var(--accent-blue));
    border-radius: 3px;
}

.resource-item-pre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    border-left: 4px solid transparent;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.resource-item-pre:nth-child(1) {
    animation-delay: 0.1s;
}

.resource-item-pre:nth-child(2) {
    animation-delay: 0.2s;
}

.resource-item-pre:nth-child(3) {
    animation-delay: 0.3s;
}

.resource-item-pre:nth-child(4) {
    animation-delay: 0.4s;
}

.resource-item-pre:nth-child(5) {
    animation-delay: 0.5s;
}

.resource-item-pre:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.resource-item-pre.loaded {
    border-left-color: var(--accent-teal);
    background: linear-gradient(90deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
}

.resource-item-pre.failed {
    border-left-color: #ff6b6b;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1) 0%, transparent 100%);
}

.resource-name-pre {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-status-pre {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-status-pre:not([class*="loaded"]):not([class*="failed"]) {
    color: var(--accent-blue);
    background: rgba(66, 153, 225, 0.15);
}

.resource-status-pre.loaded {
    color: var(--accent-teal);
    background: rgba(32, 201, 151, 0.15);
}

.resource-status-pre.failed {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
    }
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.complete .progress-bar-pre {
    animation: celebrate 0.5s ease-in-out 3;
}