/* 🔥 SEDUCTIVE DASHBOARD STYLES 🔥 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow:
        0 0 15px rgba(255, 0, 110, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff1a7a, #9547f0, #4a94ff);
    box-shadow:
        0 0 25px rgba(255, 0, 110, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff006e rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Orbitron', monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', emoji;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-variant-emoji: unicode;
    text-rendering: optimizeLegibility;
}

/* ANIMATED WATERMARK BACKGROUND */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 300%;
    height: 300%;
    background-image: url('../assets/ICON.png');
    background-size: 60px 60px;
    background-repeat: repeat;
    /* Horizontal repeat */
    background-position: 60px 60px;
    opacity: 0.04;
    z-index: 2;
    animation: watermarkMoveReverse 1s linear infinite;
    pointer-events: none;
    rotate: 45deg;
}

@keyframes watermarkMoveReverse {
    0% {
        transform: translate(0, 0);
    }

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

/* SPLATTER GUTTERS */
.container::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background-image: url('../assets/splatter.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 3;
    transform: scaleX(-1);
    pointer-events: none;
}

.container::after {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background-image: url('../assets/splatter.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 3;
    pointer-events: none;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

/* HEADER STYLES */
.dashboard-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.neon-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #ff006e,
        0 0 20px #ff006e,
        0 0 35px #ff006e;
    animation: neonPulse 2s ease-in-out infinite alternate;
    margin-bottom: 0.5rem;
}

@keyframes neonPulse {
    from {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #ff006e,
            0 0 20px #ff006e,
            0 0 35px #ff006e;
    }

    to {
        text-shadow:
            0 0 2px #fff,
            0 0 5px #fff,
            0 0 8px #ff006e,
            0 0 12px #ff006e,
            0 0 18px #ff006e;
    }
}

.subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    font-weight: 400;
    animation: fadeInUp 1s ease-out;
}

/* SECRET TRIGGER BUTTON */
.secret-trigger {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: transparent;
    font-size: 6px;
    transition: all 0.3s ease;
    z-index: 100;
}

.secret-trigger:hover {
    background: linear-gradient(45deg, #ff006e, #8338ec);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
    transform: scale(1.2);
    color: white;
}

/* NAVIGATION LINKS */
.navigation .nav-link:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

.navigation .nav-link.active {
    color: #fff !important;
    border-color: #ff006e !important;
    background: rgba(255, 0, 110, 0.2) !important;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* KPI CARDS */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.kpi-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.kpi-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

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

    50% {
        opacity: 1;
    }

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

.kpi-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.kpi-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.kpi-value {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.3rem;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: countUp 2s ease-out;
}

.kpi-label {
    font-size: clamp(0.7rem, 2vw, 1rem);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ENHANCED PAGE LOADER */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
    max-width: 90vw;
    width: 100%;
    max-width: 500px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    margin-bottom: 2rem;
}

.loader-logo-img {
    width: 160px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #ff006e;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #8338ec;
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #06ffa5;
    animation-duration: 2.5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-main-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: textPulse 2s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
}

.loader-sub-text {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Loading Screen Responsive Design */
@media (max-width: 768px) {
    .loader-content {
        padding: 1.5rem 0.5rem;
        max-width: 95vw;
    }

    .loader-logo-img {
        width: 140px;
        max-height: 140px;
    }

    .loader-main-text {
        font-size: clamp(1rem, 5vw, 1.4rem);
        line-height: 1.2;
    }

    .loader-sub-text {
        font-size: clamp(0.8rem, 4vw, 1rem);
    }
}

@media (max-width: 480px) {
    .loader-content {
        padding: 1rem 0.5rem;
    }

    .loader-logo-img {
        width: 120px;
        max-height: 120px;
    }

    .loader-main-text {
        font-size: clamp(0.9rem, 6vw, 1.2rem);
        margin-bottom: 0.3rem;
    }

    .loader-sub-text {
        font-size: clamp(0.7rem, 5vw, 0.9rem);
        margin-bottom: 1.5rem;
    }

    .loader-spinner {
        width: 100px;
        height: 100px;
        margin: 0 auto 1.5rem;
    }
}

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

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

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

/* ERROR STYLES */
.error-container {
    text-align: center;
    padding: 4rem 0;
    display: none;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: shake 1s ease-in-out infinite;
}

@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.error-text {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* LEADERBOARD STYLES */
.leaderboard-section {
    margin: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* PODIUM STYLES - CLASSIC LAYOUT */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    min-height: 280px;
    flex-wrap: nowrap;
}

.podium-place {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem 0.8rem;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(255, 255, 255, 0.1);
    width: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Position Control - Order from left to right: 4th, 2nd, 1st, 3rd, 5th */
.podium-place.fourth {
    order: 1;
    height: 180px;
    background: linear-gradient(145deg, rgba(128, 0, 128, 0.5), rgba(102, 51, 153, 0.4), rgba(0, 0, 0, 0.4));
    border-color: rgba(128, 0, 128, 0.7);
}

.podium-place.second {
    order: 2;
    height: 220px;
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.6), rgba(169, 169, 169, 0.4), rgba(0, 0, 0, 0.4));
    border-color: rgba(192, 192, 192, 0.8);
}

.podium-place.first {
    order: 3;
    height: 260px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.6), rgba(255, 140, 0, 0.4), rgba(0, 0, 0, 0.4));
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.3);
}

.podium-place.third {
    order: 4;
    height: 220px;
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.6), rgba(184, 115, 51, 0.4), rgba(0, 0, 0, 0.4));
    border-color: rgba(205, 127, 50, 0.8);
}

.podium-place.fifth {
    order: 5;
    height: 180px;
    background: linear-gradient(145deg, rgba(0, 128, 128, 0.5), rgba(32, 178, 170, 0.4), rgba(0, 0, 0, 0.4));
    border-color: rgba(0, 128, 128, 0.7);
}

/* Content Layout Inside Cards */
.podium-place .profile-container {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.podium-place .rank {
    font-size: clamp(0.7rem, 2vw, 1rem);
    font-weight: 700;
    margin: 0.25rem 0;
    opacity: 0.9;
    flex-shrink: 0;
}

.podium-place .username {
    font-size: clamp(0.6rem, 2vw, 0.9rem);
    font-weight: 600;
    margin: 0.25rem 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    text-align: center;
    min-height: 1.2em;
}

.podium-place .count {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-top: auto;
    flex-shrink: 0;
    word-wrap: break-word;
}

/* Profile Picture Styles */
.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic Text Sizing Classes */
.text-tiny {
    font-size: clamp(0.5rem, 1.5vw, 0.6rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.text-small {
    font-size: clamp(0.6rem, 1.8vw, 0.75rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.text-medium {
    font-size: clamp(0.7rem, 2vw, 0.9rem) !important;
}

.text-large {
    font-size: clamp(0.8rem, 2.2vw, 1rem) !important;
}

.count-tiny {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
}

.count-small {
    font-size: clamp(1.1rem, 2.7vw, 1.4rem) !important;
}

.count-medium {
    font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
}

.count-large {
    font-size: clamp(1.3rem, 3.2vw, 1.8rem) !important;
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.medal-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    z-index: 10;
}

/* Hover Effects */
.podium-place:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(255, 255, 255, 0.3);
}

.podium-place.first:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(255, 215, 0, 0.5);
}

/* Animation Keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Apply animations with delays */
.podium-place.first {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.podium-place.second {
    animation: slideInUp 0.6s ease-out 0.1s both;
}

.podium-place.third {
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.podium-place.fourth {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.podium-place.fifth {
    animation: slideInUp 0.6s ease-out 0.5s both;
}

/* LEADERBOARD TABLE */
.section-title#full-leaderboard-title {
    margin-top: 10rem;
}

.leaderboard-table {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    overflow-x: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.table-header {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out;
    align-items: center;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 rgba(255, 0, 110, 0.8);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.row-rank {
    font-weight: 900;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-align: center;
    color: #ffd700;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.5);
}

.row-username {
    font-weight: 700;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-count {
    font-weight: 900;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-align: center;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.5);
    color: #06ffa5;
}

.row-last-active {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ANIMATIONS */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInUpFirst {
    from {
        opacity: 0;
        transform: translateY(30px) scale(1.08);
    }

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

@keyframes slideInUpSecond {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(30px);
    }
}

@keyframes slideInUpThird {
    from {
        opacity: 0;
        transform: translateY(90px);
    }

    to {
        opacity: 1;
        transform: translateY(60px);
    }
}

@keyframes slideInUpFourth {
    from {
        opacity: 0;
        transform: translateY(120px);
    }

    to {
        opacity: 1;
        transform: translateY(90px);
    }
}

@keyframes slideInUpFifth {
    from {
        opacity: 0;
        transform: translateY(150px);
    }

    to {
        opacity: 1;
        transform: translateY(120px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* RESPONSIVE DESIGN */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }

    .kpi-section {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .podium-place {
        min-width: 100px;
        padding: 0.9rem;
    }

    .profile-picture {
        width: 75px;
        height: 75px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        height: 100vh;
    }

    .dashboard-header {
        margin-bottom: 1rem;
    }

    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .kpi-card {
        padding: 1rem;
    }

    /* Stack podium in mobile with top 3 prominently, 4th and 5th smaller */
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
        min-height: auto;
        /* Reset min-height for mobile */
    }

    .podium-place {
        width: 90%;
        max-width: 300px;
        padding: 0.8rem;
        transform: none !important;
        /* Reset all transforms for mobile */
    }

    /* Reset all animations for mobile */
    .podium-place {
        animation: slideInUp 1.5s ease-out !important;
        animation-fill-mode: forwards !important;
    }

    /* Make first place stand out more on mobile */
    .podium-place.first {
        transform: scale(1.05) !important;
        order: 1;
    }

    .podium-place.second {
        order: 2;
        transform: none !important;
    }

    .podium-place.third {
        order: 3;
        transform: none !important;
    }

    /* Make 4th and 5th place smaller on mobile */
    .podium-place.fourth,
    .podium-place.fifth {
        order: 4;
        transform: scale(0.9) !important;
        opacity: 0.9;
    }

    /* Reset all hover effects for mobile */
    .podium-place:hover,
    .podium-place.first:hover,
    .podium-place.second:hover,
    .podium-place.third:hover,
    .podium-place.fourth:hover,
    .podium-place.fifth:hover {
        transform: scale(1.02) !important;
    }

    .profile-picture {
        width: 70px;
        height: 70px;
    }

    .medal-badge {
        font-size: 1.8rem;
        bottom: -4px;
        right: -4px;
    }

    .rank,
    .username,
    .count {
        font-size: 0.9rem;
    }

    .table-header,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 60px 80px;
        gap: 0.3rem;
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }

    .leaderboard-section {
        margin: 1rem 0;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    /* Hide splatter on mobile to reduce clutter */
    .container::before,
    .container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .kpi-section {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .kpi-card {
        padding: 0.8rem;
    }

    /* More compact podium for small screens */
    .podium {
        gap: 0.6rem;
    }

    .podium-place {
        width: 95%;
        padding: 0.6rem;
    }

    .podium-place.first {
        transform: scale(1);
    }

    /* Hide 4th and 5th place on very small screens to save space */
    .podium-place.fourth,
    .podium-place.fifth {
        display: none;
    }

    .profile-picture {
        width: 50px;
        height: 50px;
    }

    .medal-badge {
        font-size: 1.4rem;
        bottom: -3px;
        right: -3px;
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    }

    .rank,
    .username,
    .count {
        font-size: 0.8rem;
    }

    .table-header,
    .leaderboard-row {
        grid-template-columns: 35px 1fr 50px 70px;
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }

    /* Reduce watermark intensity on mobile */
    body::before,
    body::after {
        opacity: 0.01;
    }

    /* Make main content take more space */
    .main-content {
        gap: 1rem;
    }

    .left-panel {
        margin-bottom: 1rem;
    }
}

/* MAIN DASHBOARD STYLES */

.main-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.3);
    transform: translateY(-10px);
}

.dashboard-card.access-required:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
}

.dashboard-card.public:hover {
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 15px 50px rgba(0, 255, 0, 0.3);
}

.dashboard-card.secret:hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.3);
}

.dashboard-card.admin:hover {
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.3);
}

.card-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.card-title {
    color: #00ffff;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #00ffff;
}

.main-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1rem auto;
    display: block;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-mystery {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    border: 2px solid rgba(138, 43, 226, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-mystery:hover {
    background: linear-gradient(45deg, #9932cc, #6a5acd);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

.btn-admin {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-admin:hover {
    background: linear-gradient(45deg, #ff6666, #ff0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Navigation enhancements */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .navigation-bar {
        flex-direction: column;
        text-align: center;
    }

    .nav-center {
        order: -1;
    }

    .main-dashboard {
        padding: 1rem;
    }
}

/* DASHBOARD FOOTER STYLES */
.dashboard-footer {
    margin-top: 4rem;
    padding: 2rem 0 3rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.dashboard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff006e, #8338ec, #3a86ff, transparent);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.footer-links a:nth-child(1):hover {
    border-color: #7289da;
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

.footer-links a:nth-child(2):hover {
    border-color: #00ffff;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

.footer-links a:nth-child(3):hover {
    border-color: #ff006e;
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
}

/* Footer responsive design */
@media (max-width: 768px) {
    .dashboard-footer {
        margin-top: 2rem;
        padding: 1.5rem 0 2rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-links a {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content p {
        font-size: 0.9rem;
    }

    .footer-links a {
        width: 180px;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}

/* MISSING BUTTON STYLES */
.btn-primary {
    background: linear-gradient(45deg, #0066cc, #00ccff);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0080ff, #00ffff);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* STATS BANNER STYLES */
.stats-banner {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}