:root {
    --primary: #E56404;
    /* PG4F Orange */
    --primary-glow: rgba(229, 100, 4, 0.5);
    --secondary: #FAD120;
    /* PG4F Yellow */
    --secondary-glow: rgba(250, 209, 32, 0.5);
    --accent: #B20101;
    /* PG4F Red */
    --accent-dark: #8F0536;
    /* PG4F Maroon */
    --bg: #0A0A0C;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #D1D1D6;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    /* Custom cursor */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.glass {
    background: var(--glass-grad);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, var(--secondary-glow) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    z-index: 1002;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo {
    height: 40px;
    margin-right: -0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    margin-right: 1.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 1001;
    border-radius: 15px;
    animation: fadeInDown 0.3s ease;
    background: rgba(10, 10, 15, 0.98);
    /* Darker background */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.lang-dropdown.active {
    display: flex;
}

.lang-dropdown .lang-option {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.6rem 1rem;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.lang-dropdown .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.lang-dropdown .lang-option.active {
    color: var(--primary);
    background: rgba(255, 111, 0, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Nav Actions & Mobile Menu Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1002;
}

.user-profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-mini {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.user-avatar-mini:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.user-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* User Panel */
.user-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    padding: 1.5rem;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1001;
    animation: fadeInDown 0.3s ease;
    background: rgba(10, 10, 15, 0.98);
    /* Darker background */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.user-panel.active {
    display: flex;
}

.user-panel .user-info {
    text-align: left;
}

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-level-tag {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 0 10px var(--primary-glow);
}

.xp-progress-section {
    margin-bottom: 0.5rem;
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.xp-bar-container.large {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.user-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm i {
    margin-right: 8px;
}

.user-achievements {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge:hover {
    transform: scale(1.3);
}

.achievement-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #fff;
    width: 200px;
    z-index: 1002;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.achievement-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.achievement-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

/* Hero Glitch Effect */
.hero-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero-title:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
    }

    100% {
        transform: translate(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.hero-visual {
    flex: 0 0 50%;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HUD Visual Section */
.hud-container {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-panel {
    position: absolute;
    padding: 1rem;
    border-radius: 12px;
    z-index: 1;
    border: 1px solid var(--glass-border);
    animation: hudFloat 6s ease-in-out infinite;
}

.panel-1 {
    width: 200px;
    top: 5%;
    left: 5%;
    background: rgba(255, 111, 0, 0.05);
    animation-delay: 0s;
}

.panel-2 {
    width: 140px;
    bottom: 10%;
    right: 5%;
    background: rgba(255, 111, 0, 0.05);
    animation-delay: -2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.panel-3 {
    width: 180px;
    top: 15%;
    right: 5%;
    background: rgba(255, 111, 0, 0.05);
    animation-delay: -4s;
}

.hud-header {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.hud-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.4rem;
    border-radius: 1px;
}

.hud-line.short {
    width: 60%;
}

.hud-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4caf50;
}

.hud-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.hud-chart span {
    flex: 1;
    background: var(--primary);
    border-radius: 2px;
    animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {

    0%,
    100% {
        height: 30%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

.hud-chart span:nth-child(2) {
    animation-delay: 0.2s;
}

.hud-chart span:nth-child(3) {
    animation-delay: 0.4s;
}

.hud-chart span:nth-child(4) {
    animation-delay: 0.6s;
}

.hud-circle {
    position: absolute;
    border: 1px dashed rgba(255, 111, 0, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.decor-1 {
    width: 400px;
    height: 400px;
    animation: rotate 30s linear infinite;
}

.decor-2 {
    width: 300px;
    height: 300px;
    animation: rotate 20s linear reverse infinite;
}

@keyframes hudFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(5deg) rotateY(10deg);
    }

    50% {
        transform: translateY(-20px) rotateX(10deg) rotateY(-5deg);
    }
}

/* Float animation for the main LFG card */
.card-lfg {
    z-index: 10;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid var(--primary);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-right: 1.5rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Floating Card */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    padding: 1.5rem;
    border-radius: 20px;
    width: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.lfg-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-tag {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.valorant {
    background: #ff4655;
    color: white;
}

.cs2 {
    background: #de9b35;
    color: black;
}

.lfg-text {
    font-size: 0.85rem;
}

/* Global Section Styling */
section {
    padding: 100px 10%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* LFG Hub Styles */
.lfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.lfg-card {
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lfg-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.lfg-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lfg-user img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.lfg-username {
    font-weight: 700;
    font-size: 1rem;
}

.lfg-rank {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.lfg-msg {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.btn-minimal {
    margin-top: 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 4;
}

.btn-minimal:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.elden {
    background: var(--secondary);
    color: black;
}

.ow2 {
    background: var(--primary);
    color: white;
}

.lol {
    background: var(--accent);
    color: white;
}

.valorant {
    background: var(--accent-dark);
    color: white;
}

.cs2 {
    background: var(--primary);
    color: white;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Stats Section Refinement */
.stat-card {
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

/* User Profile Enhanced */
.user-achievements {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.badge {
    cursor: help;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

/* LFG Filters */
.lfg-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.85rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Featured Universes (Games) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--glass-border);
}

.game-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-img {
    height: 220px;
    width: 100%;
    transition: transform 0.6s ease;
}

.game-card:hover .game-img {
    transform: scale(1.1);
}

.game-info {
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.9), transparent);
    position: relative;
    z-index: 2;
}

.game-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.game-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Live Section */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stream-card {
    border-radius: 20px;
    overflow: hidden;
}

.stream-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Live Section Polish */
.stream-thumb::after {
    content: 'OGLĄDAJ TERAZ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(229, 100, 4, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-card:hover .stream-thumb::after {
    opacity: 1;
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff4655;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.viewer-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.stream-info {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.stream-meta h4 {
    font-size: 1rem;
}

.stream-meta p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Tournaments */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Tournaments Refinement */
.tournament-card {
    position: relative;
    padding: 0;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tourney-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.tournament-card[data-game="valorant"] .tourney-overlay {
    background: repeating-linear-gradient(45deg, #ff4655, #ff4655 10px, transparent 10px, transparent 20px);
}

.tournament-card[data-game="cs2"] .tourney-overlay {
    background: radial-gradient(circle at 50% 50%, #de9b35 0%, transparent 70%);
}

.tournament-card:hover .tourney-overlay {
    opacity: 0.25;
}

.tourney-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tourney-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.countdown {
    font-family: 'Space Grotesk', monospace;
    color: var(--secondary);
    font-weight: 700;
}

.tourney-body h3 {
    margin-bottom: 1rem;
}

.tourney-info {
    display: flex;
    gap: 1rem;
    /* Reduced gap */
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    /* Added wrap to prevent overflow */
}

.tourney-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.slots-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.slots-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-full {
    width: 100%;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary);
}

.toast.active {
    transform: translateX(0);
}

/* Quick Match Overlay */
.quick-match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.quick-match-overlay.active {
    display: flex;
}

.radar {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, var(--primary), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 12, 0.95));
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: -1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-dim);
    max-width: 300px;
}

.footer-brand .logo-text {
    font-size: 2rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.social-icon {
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateX(10px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .hero {
        padding: 100px 5% 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-bottom: 4rem;
        max-width: 100%;
    }

    .hero-visual {
        width: 100%;
        min-width: 100%;
        height: 500px;
        flex: none;
    }

    .hud-container {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .social-text {
        display: none;
    }

    .social-link {
        padding: 0.8rem;
        width: 50px;
        height: 50px;
    }

    section {
        padding: 60px 5%;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .lfg-grid,
    .news-grid,
    .games-grid,
    .streams-grid,
    .tournaments-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1.5rem auto 0;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
    }

    .user-panel {
        right: 0;
        width: 280px;
        top: calc(100% + 20px);
    }
}

@media (max-width: 480px) {
    .user-panel {
        position: fixed;
        left: 5%;
        right: 5%;
        width: 90%;
        top: 80px;
    }

    .tourney-info span {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .lang-switcher {
        margin-right: 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
    }

    .current-lang-code {
        display: none;
    }
}