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

body {
    font-family: 'Neo Sans', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
}

/* Enhanced Animated Starfield - Multiple Layers */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Layer 1: Small moving stars */
body::before {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(1px 1px at 90px 10px, white, transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent),
        radial-gradient(1px 1px at 200px 150px, white, transparent),
        radial-gradient(1px 1px at 40px 180px, white, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: starMove1 120s linear infinite;
}

/* Layer 2: Medium twinkling stars */
body::after {
    background-image:
        radial-gradient(2px 2px at 100px 50px, rgba(76, 201, 240, 0.8), transparent),
        radial-gradient(2px 2px at 150px 120px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 75px 180px, rgba(76, 201, 240, 0.6), transparent),
        radial-gradient(2px 2px at 25px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 180px 40px, rgba(76, 201, 240, 0.8), transparent),
        radial-gradient(2px 2px at 120px 160px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 250px 250px;
    background-repeat: repeat;
    opacity: 0.4;
    animation: starMove2 180s linear infinite, twinkleFast 3s ease-in-out infinite;
}

/* Layer 3: Larger glowing stars */
.stars-layer3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(76, 201, 240, 0.4) 0%, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle, rgba(72, 149, 239, 0.4) 0%, transparent 2px);
    background-size: 400px 400px, 350px 350px, 450px 450px;
    background-position: 0 0, 100px 100px, 200px 50px;
    background-repeat: repeat;
    opacity: 0.3;
    animation: starMove3 240s linear infinite, twinkleSlow 5s ease-in-out infinite;
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 10px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.8),
        0 0 20px 4px rgba(76, 201, 240, 0.6);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: -100px;
    animation: shootingStar 4s ease-out infinite;
    animation-delay: 2s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    left: -100px;
    animation: shootingStar 3.5s ease-out infinite;
    animation-delay: 5s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: -100px;
    animation: shootingStar 4.2s ease-out infinite;
    animation-delay: 8s;
}

.shooting-star:nth-child(4) {
    top: 70%;
    left: -100px;
    animation: shootingStar 3.8s ease-out infinite;
    animation-delay: 11s;
}

.shooting-star:nth-child(5) {
    top: 20%;
    left: -100px;
    animation: shootingStar 4.5s ease-out infinite;
    animation-delay: 14s;
}

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

    5% {
        opacity: 1;
    }

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

/* Animation keyframes */
@keyframes starMove1 {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-200px) translateX(-200px);
    }
}

@keyframes starMove2 {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(250px) translateX(-250px);
    }
}

@keyframes starMove3 {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(-400px) translateX(400px) rotate(360deg);
    }
}

@keyframes twinkleFast {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes twinkleSlow {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(15, 20, 35, 0);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.logo-section h1 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-info {
    cursor: pointer;
}

.username {
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.global-rank-display {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(76, 201, 240, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.global-rank-display:hover {
    box-shadow: 0 0px 20px #4cc9f0;
    transition: all 0.3s;
}


.global-rank-display i {
    color: #4cc9f0;
}

#profileGlobalRankValue {
    font-weight: bold;
    color: #4cc9f0;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
    font-size: 1.1rem;
}


.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(76, 201, 240, 0.15);
    color: white;
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    transform: translateY(-2px);
    background: rgba(76, 201, 240, 0.25);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.btn-logout {
    height: 50px;
    padding: 10px 20px;
    background: rgba(244, 67, 54, 0.2);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 25px;
}

/* Game Modes */
/* Info Box Section */
.info-box {
    background: rgba(15, 20, 35, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.6s ease-out 0.05s both;
    min-height: 50px;
    display: none;
    /* Hidden by default until content is added, or keep visible if they want to 'see' it */
}

.info-box:not(:empty) {
    display: block;
}

.game-modes {
    background: rgba(15, 20, 35, 0);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.6s ease-out 0.1s both;
    max-height: fit-content;
}

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

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

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.modes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-card {
    background: rgba(30, 40, 60, 0);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.mode-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0px 20px #4cc9f0;
    background: rgba(30, 40, 60, 0);
}

.mode-card>div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.mode-icon {
    font-size: 2.5rem;
    color: #4cc9f0;
    width: 60px;
    text-align: center;
}

.mode-info {
    flex: 1;
}

.mode-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.mode-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.play-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    word-break: break-word;
    height: auto;
    min-height: 44px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.5);
    background: linear-gradient(135deg, #4895ef 0%, #4361ee 100%);
}


/* Left Column Wrapper */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Links & Social Section */
.links-social-section {
    background: rgba(15, 20, 35, 0);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.6s ease-out 0.15s both;
}

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

.link-card {
    background: rgba(30, 40, 60, 0);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-info {
    flex: 1;
}

.link-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.link-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Specific link styles */
.news-link .link-icon {
    background: linear-gradient(135deg, #7cff6b, #06aa00);
    color: white;
}

.news-link:hover {
    border-color: rgba(79, 211, 62, 0.5);
    box-shadow: 0 0px 20px rgb(99, 255, 52);
}

.discord-link .link-icon {
    background: linear-gradient(135deg, #a1a9ff, #4752C4);
    color: white;
}

.discord-link:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 0px 20px rgba(88, 101, 242);
}

.tiktok-link .link-icon {
    background: linear-gradient(135deg, #fc96ff, #b70dd9);
    color: white;
}

.tiktok-link:hover {
    border-color: rgba(199, 29, 242, 0.5);
    box-shadow: 0 0px 20px rgb(242, 29, 224);
}

.youtube-link .link-icon {
    background: linear-gradient(135deg, #ff5f5f, #cc0000);
    color: white;
}

.youtube-link:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0px 20px rgba(255, 0, 0);
}

.paypal-link .link-icon {
    background: linear-gradient(135deg, #3665FF, #123c8a);
    color: white;
}

.paypal-link:hover {
    border-color: rgb(54, 101, 255, 0.5);
    box-shadow: 0 0px 20px rgb(18, 60, 138);
}

.instagram-link .link-icon {
    background: linear-gradient(135deg, #ffbf36, #ff00dd);
    color: white;
}

.instagram-link:hover {
    border-color: rgb(255, 0, 170, 0.5);
    box-shadow: 0 0px 20px rgb(255, 191, 54);
}

.wiki-link .link-icon {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
}

.wiki-link:hover {
    border-color: rgba(76, 201, 240, 0.5);
    box-shadow: 0 8px 25px rgba(76, 201, 240);
}



/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card,
.leaderboard-card {
    background: rgba(15, 20, 35, 0);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(30, 40, 60, 0);
    border-radius: 10px;
    transition: all 0.3s;
}

.stat-item:hover {
    box-shadow: 0 0px 20px #4cc9f0;
    background: rgba(30, 40, 60, 0);
}


.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4cc9f0;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.leaderboard-list {
    margin-top: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(30, 40, 60, 0);
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    color: white;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    overflow: unset;
    box-shadow: 0 0px 20px #4cc9f0;
}

.leaderboard-rank {
    width: 30px;
    height: 30px;
    background: rgba(76, 201, 240, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.leaderboard-rank.top1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.leaderboard-rank.top2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.leaderboard-rank.top3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.leaderboard-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.leaderboard-name {
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-elo {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.view-all-btn {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.5);
}

/* Search Bar */
.search-section {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(30, 40, 60, 0);
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

.search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: hidden;
    overflow: unset;
}

/* Hide rank circle in search results */
.search-results .leaderboard-rank {
    display: none;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(20px);
}

.modal-content {
    background: rgba(15, 20, 35, 0);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s;
    backdrop-filter: blur(20px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

#profileModal {
    z-index: 1001;
}

#leaderboardModal {
    z-index: 1000;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(244, 67, 54, 0.3);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(244, 67, 54, 0.5);
    transform: rotate(90deg);
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 15px;
    color: white;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.profile-stat {
    text-align: center;
    padding: 15px;
    background: rgba(30, 40, 60, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat:hover {
    box-shadow: 0 0px 20px #4cc9f0;
    transition: all 0.3s;
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4cc9f0;
}

.profile-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.btn-report {
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(244, 67, 54, 0.3);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-report:hover {
    background: rgba(244, 67, 54, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        flex-direction: column;
        text-align: center;
    }

    .mode-card>div:first-child {
        flex-direction: column;
    }

    .play-btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: rgba(15, 20, 35, 0);
    border-radius: 15px;
    padding: 20px 30px;
    margin-top: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    justify-content: space-between;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(76, 201, 240, 0.15);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: rgba(76, 201, 240, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

/* ============================
   MOBILE RESPONSIVE STYLES
   ============================ */

/* Big Tablets / Small Laptops (under 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-column {
        order: -1;
        /* Move stats/leaderboard to top on tablets */
    }

    .modal-content {
        max-width: 90%;
        padding: 25px;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 0;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        text-align: center;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        justify-content: center !important;
        width: 100%;
    }

    .logo-section {
        justify-content: center;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .logo-section h1 {
        font-size: 1.3rem;
    }

    .logo-section img {
        width: 28px;
        height: auto;
    }

    .version-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        gap: 4px;
        border-radius: 6px;
    }

    .version-badge i {
        font-size: 0.7rem;
    }

    .user-section {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .username {
        justify-content: center;
        font-size: 1rem;
        gap: 6px;
    }

    .role-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
        letter-spacing: 0.3px;
    }

    .elo-display {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-logout {
        padding: 8px 15px;
        font-size: 0.85rem;
        height: 40px;
    }

    .btn-logout span {
        display: none;
        /* Hide 'Kilépés' text on target mobile to save space */
    }

    /* Panels (Friends, Notifications) */
    .friends-panel,
    .notifications-panel {
        width: 100% !important;
        right: -100% !important;
        border-left: none;
    }

    .friends-panel.active,
    .notifications-panel.active {
        right: 0 !important;
    }

    /* Main Content */
    .main-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Game Modes */
    .game-modes {
        padding: 15px;
    }

    .section-title {
        font-size: 1.2rem;
        justify-content: center;
        margin-bottom: 15px;
    }

    .mode-card-group {
        padding: 15px;
        margin-bottom: 15px;
    }

    .mode-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .mode-info {
        width: 100%;
        text-align: center;
    }

    .mode-icon {
        font-size: 1.8rem;
        width: 100%;
        margin-bottom: 5px;
    }

    .mode-name {
        font-size: 1.15rem !important;
    }

    .mode-desc {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }

    .variant-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .variant-btn {
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    /* Modal scaling */
    .modal-content {
        width: 95% !important;
        padding: 20px !important;
        margin: 10px;
    }

    .profile-header {
        margin-bottom: 15px;
    }

    .profile-username {
        font-size: 1.5rem;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.22rem;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    /* Specific element fixes from previous stray code */
    .link-desc {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .leaderboard-item {
        padding: 12px;
    }

    .player-rank {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .player-avatar-small {
        width: 40px;
        height: 40px;
    }

    .player-info {
        font-size: 0.95rem;
    }

    .player-elo {
        font-size: 0.9rem;
    }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .header {
        padding: 8px;
        gap: 8px;
    }

    .logo-icon {
        width: 22px;
        height: 22px;
        font-size: 0.85rem;
    }

    .logo-section h1 {
        font-size: 1.05rem;
    }

    .logo-section img {
        width: 18px;
    }

    .version-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .username {
        font-size: 0.75rem;
    }

    .role-badge {
        font-size: 0.45rem;
        padding: 1px 4px;
    }

    .elo-display {
        font-size: 0.7rem;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .btn-logout {
        height: 32px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .mode-card-group {
        padding: 12px;
    }

    .mode-icon {
        font-size: 1.1rem;
    }

    .mode-name {
        font-size: 0.95rem;
    }

    .mode-desc {
        font-size: 0.7rem;
    }

    .variant-btn {
        padding: 10px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .link-name {
        font-size: 0.95rem;
    }

    .link-desc {
        font-size: 0.7rem;
    }

    .leaderboard-item {
        padding: 8px;
    }

    .player-rank {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .player-avatar-small {
        width: 30px;
        height: 30px;
    }

    .modal-content {
        padding: 18px !important;
    }

    .profile-avatar-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .profile-username {
        font-size: 1.3rem;
    }
}

/* Extra small devices (up to 360px) */
@media (max-width: 360px) {
    body {
        padding: 5px;
    }

    .header {
        padding: 6px;
        gap: 6px;
    }

    .logo-section h1 {
        font-size: 1rem;
    }

    .logo-section img {
        width: 18px;
    }

    .version-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .username {
        font-size: 0.7rem;
    }

    .role-badge {
        font-size: 0.4rem;
        padding: 1px 3px;
    }

    .elo-display {
        font-size: 0.65rem;
    }

    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .btn-logout {
        height: 30px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .mode-card-group {
        padding: 10px;
    }

    .mode-card {
        padding: 10px;
    }

    .mode-icon {
        font-size: 1rem;
    }

    .mode-name {
        font-size: 0.9rem;
    }

    .mode-desc {
        font-size: 0.65rem;
    }

    .variant-btn {
        padding: 10px;
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .link-card {
        padding: 12px;
    }

    .link-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .link-name {
        font-size: 0.9rem;
    }

    .link-desc {
        font-size: 0.65rem;
    }

    .modal-content {
        padding: 15px !important;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .profile-username {
        font-size: 1.2rem;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 10px 15px;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .mode-card {
        padding: 12px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    backdrop-filter: blur(20px);

    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    color: #ffffff;
}

.notifications-panel.active {
    right: 0;
}

.notifications-header {
    padding: 20px;
    border-bottom: 2px solid rgba(76, 201, 240, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.notifications-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.btn-text {
    background: transparent;
    border: 2px solid rgba(76, 201, 240, 0);
    color: #4cc9f0;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-text:hover {
    background: rgba(76, 201, 240, 0.2);
    border-color: #4cc9f0;
}

/* Notifications Filter */
.notifications-filter {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: rgba(30, 40, 60, 0.3);
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    overflow-x: auto;
}

.filter-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
    font-weight: 600;
}

.filter-tab:hover {
    border-color: rgba(76, 201, 240, 0.5);
    color: #4cc9f0;
}

/* Notifications List */
.notifications-list {
    padding: 15px;
}

.notification-item {
    background: rgba(30, 40, 60, 0);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-item.unread {
    background: rgba(76, 201, 240, 0.1);
    border-left-color: #4cc9f0;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #4cc9f0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.8);
}

.notification-item:hover {
    background: rgba(30, 40, 60, 0);
    transform: translateX(-5px);
}

/* Notification Types */
.notification-item.punishment {
    border-color: #f44336;
}

.notification-item.report_update {
    border-color: #ff9800;
}

.notification-item.info {
    border-color: #2196f3;
}

.notification-item.warning {
    border-color: #ff9800;
}

.notification-item.alert {
    border-color: #f44336;
}

.notification-item.success {
    border-color: #4caf50;
}

.notification-item.punishment:hover {
    border-color: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.notification-item.report_update:hover {
    border-color: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}

.notification-item.info:hover {
    border-color: #2196f3;
    box-shadow: 0 0 10px #2196f3;
}

.notification-item.warning:hover {
    border-color: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}

.notification-item.alert:hover {
    border-color: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.notification-item.success:hover {
    border-color: #4caf50;
    box-shadow: 0 0 10px #4caf50;
}

.notification-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.notification-type-badge.punishment {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.notification-type-badge.reportupdate {
    background: rgba(221, 221, 221, 0.2);
    color: #a3a3a3;
    border: 1px solid rgba(211, 211, 211, 0.5);
}

.notification-type-badge.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.notification-type-badge.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.notification-type-badge.success {
    background: rgba(167, 255, 126, 0.2);
    color: #2bff00;
    border: 1px solid rgba(0, 255, 13, 0.5);
}

.notification-type-badge.alert {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.notification-subject {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.notification-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-notifications i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-notifications p {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-panel {
        width: 100%;
        right: -100%;
    }

    .notifications-header h2 {
        font-size: 1.2rem;
        padding: 15px;
    }

    .btn-text {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Report Modal */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(10px);
}

.report-modal-overlay.active {
    display: flex;
}

.report-modal-content {
    background: rgba(15, 20, 35, 0);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    color: white;
}

.report-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #f44336;
    text-align: center;
}

.report-modal-content p {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.report-option {
    background: rgba(30, 40, 60, 0);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.report-option:hover {
    border-color: rgba(244, 67, 54, 0.5);
}

.report-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f44336;
}

.report-option span {
    font-size: 1rem;
    font-weight: 500;
}

#reportDetails {
    width: 100%;
    background: rgba(30, 40, 60, 0);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 20px;
}

#reportDetails::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#reportDetails:focus {
    outline: none;
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(30, 40, 60, 0);
}

.report-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-report-cancel,
.btn-report-submit {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-report-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-report-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-report-submit {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-report-submit:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.5);
}

/* Mobile Responsive for Report Modal */
@media (max-width: 768px) {
    .report-modal-content {
        padding: 25px 20px;
        width: 95%;
    }

    .report-modal-content h2 {
        font-size: 1.5rem;
    }

    .report-option {
        padding: 12px;
    }

    .report-modal-actions {
        flex-direction: column;
    }

    .btn-report-cancel,
    .btn-report-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .report-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        right: 50px;
        top: 5px;
    }
}

/* Support Form Styles */
.support-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 40, 60, 0);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #4cc9f0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4cc9f0;
    background: rgba(30, 40, 60, 0);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.4);
}

.btn-secondary {
    background: rgba(100, 100, 100, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(100, 100, 100, 0.5);
}

/* ============================================
   CUSTOM BADGE STYLES (Game + Admin)
   ============================================ */

.role-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    transition: all 0.3s ease;
    cursor: default;
}

.role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ADMIN badge - Red/Pink gradient */
.role-badge.admin {
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
    color: white;
    border: 2px solid rgba(109, 19, 19, 0.5);
}

/* MOD badge - Blue gradient */
.role-badge.mod {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    color: white;
    border: 2px solid rgba(76, 201, 240, 0.5);
}

/* OG badge - Gold gradient */
.role-badge.og {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    border: 2px solid rgba(255, 215, 0, 0.7);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* VIP badge - Purple gradient */
.role-badge.vip {
    background: linear-gradient(135deg, #d399ff, #ec17ff);
    color: white;
    border: 2px solid rgba(85, 8, 143, 0.5);
}

/* STAFF badge - Cyan/Green gradient */
.role-badge.staff {
    background: linear-gradient(135deg, #06ffa5, #00d9ff);
    color: #000;
    border: 2px solid rgba(6, 255, 165, 0.6);
    text-shadow: 0 0 5px rgba(6, 255, 165, 0.6);
}

/* SUPPORTER badge - Pink/Yellow gradient */
.role-badge.supporter {
    background: linear-gradient(135deg, #ff9ff3, #feca57);
    color: #ffffff;
    border: 2px solid rgba(255, 159, 243, 0.6);
}

/* DEVELOPER badge - Purple gradient */
.role-badge.developer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

/* TESTER badge - Green gradient */
.role-badge.tester {
    background: linear-gradient(135deg, #18c752, #078c96);
    color: #ffffff;
    border: 2px solid rgb(139, 255, 178);
    text-shadow: 0 0 5px rgba(67, 233, 123, 0.5);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* PARTNER badge - Orange gradient */
.role-badge.partner {
    background: linear-gradient(135deg, #fa8231, #f5576c);
    color: white;
    border: 2px solid rgba(250, 130, 49, 0.5);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* CONTENT CREATOR badge - Rainbow gradient */
.role-badge.hunguessr {
    background: linear-gradient(135deg, #ff6b6b, #f5576c, #fa8231, #feca57, #43e97b, #4cc9f0, #667eea);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: rainbow-shift 1s linear infinite;
}

/* VERIFIED badge - Blue checkmark style */
.role-badge.verified {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    border: 2px solid rgba(29, 161, 242, 0.5);
}

/* PREMIUM badge - Gold/Black gradient */
.role-badge.premium {
    background: linear-gradient(135deg, #d4af37, #ffd700, #d4af37);
    color: #000;
    border: 2px solid rgba(255, 215, 0, 0.8);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Badge in user cards (admin panel) */
.user-card .role-badge {
    margin-left: 5px;
    font-size: 0.6rem;
    padding: 2px 6px;
}

/* Badge selector in admin panel */
.badge-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge-option {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-option.selected {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.badge-manager {
    background: rgba(76, 201, 240, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.badge-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-option:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.current-badge {
    font-size: 1rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Custom Scrollbar for Support Modal Textarea - Matching Admin Style */
#supportMessage::-webkit-scrollbar {
    width: 8px;
}

#supportMessage::-webkit-scrollbar-track {
    background: rgba(30, 40, 60, 0.3);
    border-radius: 10px;
}

#supportMessage::-webkit-scrollbar-thumb {
    background: rgba(76, 201, 240, 0.5);
    border-radius: 10px;
}

#supportMessage::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 201, 240, 0.7);
}

/* Custom Scrollbar for Report Details Textarea */
#reportDetails::-webkit-scrollbar {
    width: 8px;
}

#reportDetails::-webkit-scrollbar-track {
    background: rgba(30, 40, 60, 0.3);
    border-radius: 10px;
}

#reportDetails::-webkit-scrollbar-thumb {
    background: rgba(76, 201, 240, 0.5);
    border-radius: 10px;
}

#reportDetails::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 201, 240, 0.7);
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 40, 60, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(76, 201, 240, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 201, 240, 0.7);
}

/* Custom Scrollbar for Notifications Panel */
.notifications-panel::-webkit-scrollbar {
    width: 8px;
}

.notifications-panel::-webkit-scrollbar-track {
    background: rgba(30, 40, 60, 0.3);
    border-radius: 10px;
}

.notifications-panel::-webkit-scrollbar-thumb {
    background: rgba(76, 201, 240, 0.5);
    border-radius: 10px;
}

.notifications-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 201, 240, 0.7);
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(30, 40, 60, 0.3);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(76, 201, 240, 0.5);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 201, 240, 0.7);
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.version-badge i {
    font-size: 1.2rem;
}

.version-major {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

.version-minor {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.3);
}


/* ===== ÚJ JÁTÉKMÓD KÁRTYÁK - ILLESZKEDIK AZ OLDAL TÉMÁJÁHOZ ===== */

.mode-card-group {
    background: rgba(30, 40, 60, 0);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: default;
    backdrop-filter: blur(10px);
}

.mode-card-group:hover {
    transform: translateX(5px);
    box-shadow: 0 0px 20px #4cc9f0;
    background: rgba(30, 40, 60, 0);
}

.mode-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.mode-card-group .mode-icon {
    font-size: 2.5rem;
    color: #4cc9f0;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.mode-info {
    flex: 1;
}

.mode-card-group .mode-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.mode-card-group .mode-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== VARIANT GOMBOK - ILLESZKEDIK A PLAY-BTN STÍLUSHOZ ===== */

.variant-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.variant-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.variant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.5);
    background: linear-gradient(135deg, #4895ef 0%, #4361ee 100%);
}

.variant-btn:active {
    transform: translateY(0px);
}

.variant-btn i {
    font-size: 1.1rem;
}

/* Media Query removed as it's handled in the consolidated section above */

/* Friends Panel */
.friends-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: rgba(15, 20, 35, 0);
    backdrop-filter: blur(20px);
    z-index: 2000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.friends-panel.active {
    right: 0;
}

.friends-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friends-header h2 {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friends-actions {
    display: flex;
    gap: 10px;
}

.friends-tabs {
    display: flex;
    padding: 10px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.friend-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.friend-tab.active {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    color: white;
    font-weight: 600;
}

.friend-tab:hover {
    border-color: rgba(76, 201, 240, 0.5);
    color: #4cc9f0;
}

.friends-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.friend-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #0f1423;
}

.status-dot.online {
    background: #4CAF50;
}

.status-dot.offline {
    background: #9E9E9E;
}

.status-dot.ingame {
    background: #FFC107;
}

.friend-info {
    flex: 1;
}

.friend-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.friend-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.friend-actions {
    display: flex;
    gap: 5px;
}

.btn-friend-action {
    width: 64px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.btn-challenge {
    background: rgba(76, 201, 240, 0.2);
    color: #4cc9f0;
}

.btn-challenge:hover {
    background: #4cc9f0;
    color: white;
}

.btn-remove {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.btn-remove:hover {
    background: #f44336;
    color: white;
}

.btn-accept {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.btn-accept:hover {
    background: #4CAF50;
    color: white;
}

/* Friend Search */
.friend-search-container {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: rgba(15, 20, 35, 0);
    backdrop-filter: blur(20px);
    z-index: 2000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.notifications-panel.active {
    right: 0;
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h2 {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
}

.notification-item {
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.notification-item.unread {
    border-left: 3px solid #4cc9f0;
}

/* Challenge Modal Styles */
.mode-selector {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mode-btn {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mode-btn.active {
    background: rgba(76, 201, 240, 0.2);
    border-color: #4cc9f0;
    color: #4cc9f0;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
}

.mode-btn i {
    font-size: 1.5rem;
}

.form-select {
    width: 100%;
    padding: 12px;
    background: rgba(30, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    margin-top: 8px;
}

.form-select option {
    background: #1e283c;
    color: white;
}

/* Modal Overlays should be hidden by default */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    color: white;
}

.modal-overlay.active {
    display: flex;
    /* Shown when active */
}

/* =========================================
   RESPONSIVE DESIGN (MOBIL ÉS TABLET)
   Illeszd ezt a fájl legvégére
   ========================================= */

/* --- Tablet és kisebb Laptopok (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* A fő rács átalakítása egyoszloposra */
    .main-grid {
        grid-template-columns: 1fr;
        /* Az oldalsáv (sidebar) a tartalom alá kerül */
        gap: 30px;
    }

    /* Az oldalsáv szélességének korlátozása, hogy ne legyen túl széles */
    .sidebar {
        width: 100%;
        max-width: 100%;
        order: 2;
        /* Biztosítjuk, hogy a tartalom után jöjjön */
    }

    .game-modes {
        order: 1;
    }
}

/* --- Mobil eszközök (max-width: 768px) --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
        /* Kisebb külső margó mobilon */
    }

    .container {
        padding: 0;
    }

    /* HEADER: Elemek egymás alá rendezése */
    .header {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
        width: 100%;
    }

    .user-section {
        flex-direction: column;
        /* Avatar és név egymás alá */
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .btn-logout {
        width: 100%;
        /* Kijelentkezés gomb teljes szélességű */
        justify-content: center;
    }

    /* JÁTÉK MÓD KÁRTYÁK */
    .game-modes {
        padding: 20px 15px;
    }

    .mode-card {
        flex-direction: column;
        /* Ikon, szöveg és gomb egymás alá */
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .mode-card>div:first-child {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .mode-icon {
        width: auto;
        /* Ikon középre */
        margin-bottom: 5px;
    }

    .play-btn {
        width: 100%;
        /* Könnyebb rányomni mobilon */
        margin-top: 10px;
        text-align: center;
        justify-content: center;
    }

    /* LINKEK ÉS KÖZÖSSÉGI MÉDIA */
    .links-grid {
        grid-template-columns: 1fr;
        /* Egy oszlopba rendezés */
    }

    .link-card {
        justify-content: center;
        /* Kártyák tartalmának igazítása */
    }

    /* OLDALSÁV (SIDEBAR) */
    .sidebar .stat-grid {
        grid-template-columns: 1fr;
        /* Statisztikák egymás alá */
    }

    /* KERESŐ */
    .search-input {
        font-size: 16px;
        /* iOS-en megakadályozza a zoomolást */
    }

    /* MODAL (Profil ablak) */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .profile-stats {
        gap: 10px;
    }

    .profile-stat-value {
        font-size: 1.4rem;
    }
}