/**
 * HGK-Revamp Gaming Platform - Main Stylesheet
 * 
 * A modern, neon-themed gaming platform UI with glass morphism effects.
 * Designed for mobile-first responsive experience.
 * 
 * @author Ronomade
 * @version 1.0.0
 * 
 * TABLE OF CONTENTS:
 * 1. CSS Variables & Theme Colors
 * 2. Global Resets & Base Styles
 * 3. Header & Navigation
 * 4. Hero Section
 * 5. Navigation Tabs
 * 6. Games Grid & Cards
 * 7. Bottom Navigation Bar
 * 8. Sidebar Menu
 * 9. Search Functionality
 * 10. Tournament Pages
 * 11. Leaderboard System
 * 12. Challenge Pages
 * 13. Profile Pages
 * 14. Authentication Pages
 * 15. Kenyan Local Content Section
 * 16. Utility Classes & Animations
 * 
 * THEME COLORS:
 * - Primary Neon: #FF005C (Pink/Red)
 * - Secondary Neon: #00F0FF (Cyan)
 * - Accent Purple: #7600FF
 * - Kenya Flag: Black, Red, Green with white borders
 * - Background: #09090b (Deep charcoal)
 * 
 * DESIGN FEATURES:
 * - Glass morphism cards with backdrop-filter blur
 * - Neon glow effects on interactive elements
 * - Gradient overlays for text readability
 * - Smooth transitions and hover states
 * - Mobile-optimized with fixed bottom navigation
 * - Sticky header with blur effect
 * 
 * VENDOR PREFIX WARNINGS FIXED:
 * - Line 133: Added standard 'background-clip' property
 * - Line 558: Added standard 'line-clamp' property (via -webkit prefix)
 * - Line 1837: Added standard 'background-clip' property
 * - Line 2300: Added standard 'background-clip' property
 * 
 * RESPONSIVE BREAKPOINTS:
 * - Mobile: Default (< 768px)
 * - Desktop: 500px+ (centered layout)
 * 
 * FONT FAMILIES:
 * - Orbitron: Headers, titles, scores (tech/gaming aesthetic)
 * - Poppins: Body text, UI elements (clean readability)
 */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Poppins:wght@300;400;600&display=swap");

:root {
    --bg-dark: #09090b;
    /* Very deep charcoal/black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-gradient: linear-gradient(135deg, #FF005C 0%, #7600FF 100%);
    --secondary-gradient: linear-gradient(135deg, #00F0FF 0%, #0055FF 100%);
    --glass: rgba(24, 24, 27, 0.7);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --radius-xl: 24px;
    --radius-md: 16px;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --text-gold: #fbbf24;
    --hgk-sky-blue: #38bdf8;
    --accent-purple: #7600FF;
    --primary-neon: #FF005C;
    --secondary-neon: #00F0FF;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    padding-bottom: 100px;
    /* Space for bottom nav */
    overflow-x: hidden;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    /* border-bottom: .1px solid #14141a; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i {
    color: #FF005C;
    text-shadow: 0 0 10px rgba(255, 0, 92, 0.6);
}

.header-icons i {
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding: 0 20px;
    margin-top: 10px;
}

.hero-card {
    background: linear-gradient(180deg, #1e1e24 0%, #000000 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(118, 0, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Decorative glow behind the car */
.hero-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 150px;
    height: 150px;
    background: var(--secondary-gradient);
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-content {
    z-index: 2;
    max-width: 60%;
}

.hero-content.challenge-hero-content {
    max-width: 100%;
    text-align: left;
}

.hero-content h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
}

.highlight-text {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 92, 0.4);
    transition: transform 0.2s ease;
}

.hero-btn:active {
    transform: scale(0.95);
}

.hero-image {
    width: 120px;
    z-index: 2;
    /* Using a placeholder image for the car */
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

/* --- Navigation Tabs --- */
.nav-tabs {
    display: flex;
    gap: 12px;
    padding: 16px 0px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar Chrome */

.tab {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Little dot indicator for active tab */
.tab.active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #FF005C;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #FF005C;
}

/* --- Games Grid --- */
.section-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.see-all {
    color: #00F0FF;
    font-size: 0.85rem;
    text-decoration: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    /* padding: 0 20px; */
}

.game-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Darken image slightly so text pops */
    filter: brightness(0.8);
}

/* The gradient overlay at the bottom of the card */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.game-title-small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
}

/* Play icon that appears on hover/touch */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- Floating Bottom Navigation --- */
.bottom-nav-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.bottom-nav {
    background: rgba(30, 30, 36, 0.85);
    backdrop-filter: blur(15px);
    padding: 10px 30px;
    border-radius: 50px;
    display: flex;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #00F0FF;
}

.nav-item.active i {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* --- Sidebar Styling --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(9, 9, 11, 0.95);
    /* Deep dark background */
    backdrop-filter: blur(15px);
    /* Glass effect */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    transform: translateX(0);
}

/* Dim the background when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Header Area */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #FF005C;
    box-shadow: 0 0 10px #FF005C;
    color: white;
}

/* Menu List */
.sidebar-menu {
    list-style: none;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 15px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
}

.menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: color 0.2s;
}

/* Hover Effects */
.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 20px;
    /* Slight movement to right */
}

.menu-item:hover i {
    color: #00F0FF;
    /* Neon Cyan glow on icon hover */
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Active State */
.menu-item.active {
    background: linear-gradient(90deg, rgba(255, 0, 92, 0.15), transparent);
    color: white;
}

.menu-item.active i {
    color: #FF005C;
    text-shadow: 0 0 10px rgba(255, 0, 92, 0.6);
}

/* The neon bar on the left for active state */
.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: #FF005C;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #FF005C;
}

/* Utilities */
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 15px;
}

.menu-spacer {
    flex-grow: 1;
    /* Pushes the next items to the bottom */
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.search-field {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #09090b;
}

.search-field:focus {
    outline: none;
    border-color: var(--hgk-sky-blue);
    color: #fff;
}

.search-icon {
    display: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .search-container.active {
        display: block;
        position: absolute;
        left: 60px;
        right: 20px;
        max-width: none;
    }

    .search-icon {
        display: block;
    }
}

.gallery-cell {
    width: 100%;
    min-height: 160px;
    padding: 5px;
    counter-increment: gallery-cell;
    display: flex;
    justify-content: center;
    margin: 0px 20px;
    border-radius: 5px;
}

nav.nav-tabs a {
    text-decoration: none;
}

span.one-liner {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.divider-section {
    margin-bottom: 30px;
}

/* SEARCH MODAL & RESULTS */
.search-results-modal {
    position: fixed;
    top: 80px;
    /* Space for topbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 999;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.search-results-content {
    max-width: 800px;
    margin: 20px auto;
    background: #000008;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.close-search-results {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.close-search-results:hover {
    color: #00a859;
}

.search-results-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #00a859;
    font-size: 1.2rem;
}

.search-results-list {
    display: grid;
    gap: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(0, 168, 89, 0.1);
    transform: translateX(5px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .search-results-modal {
        top: 70px;
    }

    .search-results-content {
        margin: 10px;
        border-radius: 8px;
    }

    .search-result-image {
        width: 100px;
        height: 100px;
    }
}

.bottom-nav a {
    text-decoration: none;
}

.play-button {
    background-color: #201f31;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
    display: inline-block;

}

/* --- 1. HERO SECTION --- */


.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.hero-content {
    width: 100%;
}

.time-badge {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.meta-tags {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- 2. PRIZE PODIUM (New Feature) --- */
.section {
    padding: 25px 16px;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prize-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.prize-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold Card Special Styling */
.prize-card.gold {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.medal-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-info h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.prize-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- 3. DESCRIPTION TEXT (Readable) --- */
.desc-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.highlight-box {
    background: rgba(56, 189, 248, 0.1);
    border-left: 3px solid #38bdf8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: #38bdf8;
    display: block;
    margin-bottom: 4px;
}

/* --- 4. PLAYERS JOINED --- */
.avatars {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    background-color: #475569;
    margin-right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.join-counts {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* --- 5. STICKY BOTTOM BAR --- */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    /* Center for desktop, spans full on mobile */
    z-index: 100;
}

/* Constrain footer width on desktop to match body */
@media (min-width: 500px) {
    .sticky-footer {
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
    }
}

.play-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.play-btn:active {
    transform: scale(0.98);
}

/* HEADER NAV (Simple overlay) */
.nav-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
}

/* --- 1. IMMERSIVE HERO --- */


/* Darkening the bottom of the image for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2) 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.game-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.main-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* --- 2. BUTTONS --- */
.btn-play {
    background: var(--primary-accent);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
    animation: pulse 2s infinite;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-like {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- 3. GLASS CARD (Description) --- */
.details-container {
    /* padding: 0 20px; */
    margin-top: -10px;
    /* Overlap with hero for seamless look */
}

.glass-card {
    background: rgba(30, 30, 36, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.section-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.description {
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {


    padding: 6px 14px;

    font-size: 0.8rem;
    font-weight: 600;
    /* padding: 10px 20px; */
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    white-space: nowrap;

    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- 4. SIMILAR GAMES GRID --- */
.similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game-thumb {
    aspect-ratio: 1/1;
    border-radius: 12px;
    background-color: var(--bg-card);
    background-size: cover;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px;
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
}

/* --- Tournaments Page Styling --- */

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Featured Card */
.featured-tournament {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.tournament-banner {
    position: relative;
    height: 300px;
}

.tournament-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF005C;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 0, 92, 0.6);
}

.tournament-info {
    padding: 20px;
}

.info-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #00F0FF;
    font-weight: 600;
}

.meta-item.prize {
    color: #FFD700;
    /* Gold for prize info */
}

.tournament-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.tournament-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Action Buttons */
.action-row {
    display: flex;
    gap: 12px;
}

.btn-play {
    flex: 1;
    background: var(--primary-gradient);
    /* Neon Blue/Cyan */
    border: none;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* Compact List Rows */
.tournament-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 12px;
    gap: 15px;
}

.row-thumb {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.row-content h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.row-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-outline {
    margin-left: auto;
    background: transparent;
    border: 1.5px solid #00F0FF;
    color: #00F0FF;
    padding: 6px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-details-H {
    background: var(--secondary-gradient);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex: 1;
}

.play-button.tournament {
    flex: 1;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px;
    display: flex;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    text-decoration: none;
    align-items: center;
    text-align: center;
    gap: 5px;

}

/* --- Header & Selector --- */
.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin: 0;
}

.tournament-selector-wrapper {
    position: relative;
    margin-top: 20px;
    z-index: 10;
}

.custom-select {
    width: 100%;
    background: #0f0f13;
    border: 1px solid rgba(118, 0, 255, 0.5);
    color: #fff;
    padding: 14px 15px 14px 45px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00F0FF;
    pointer-events: none;
}

/* --- Tab System --- */
.leaderboard-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
    margin: 20px 0;
}

.lb-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.lb-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 92, 0.3);
}

.timer-banner {
    text-align: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px dashed #00F0FF;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #00F0FF;
    margin-bottom: 30px;
}

/* --- Podium Section --- */
/* Podium Design */
.podium-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 40px;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.podium-spot {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-avatar {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: #222;
}

.rank-1 .rank-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.rank-2 .rank-avatar {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.rank-3 .rank-avatar {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.rank-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.rank-badge {
    position: absolute;
    bottom: -5px;
    background: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
}

.rank-1 .rank-badge {
    color: #FFD700;
}

.rank-2 .rank-badge {
    color: #C0C0C0;
}

.rank-3 .rank-badge {
    color: #CD7F32;
}

.crown {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px gold);
}

.player-id {
    display: block;
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: 600;
}

.prize-tag {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.score {
    font-family: 'Orbitron', sans-serif;
    color: #00F0FF;
    font-size: 1.1rem;
}

/* --- List Section --- */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.list-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.07);
}

.item-player-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-rank {
    width: 20px;
    font-family: 'Orbitron', sans-serif;
    color: #00F0FF;
    font-size: 0.9rem;
}

.list-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.3);
    background: #222;
}

.item-prize {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.item-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    width: 40px;
    text-align: right;
}

/* Content switch animation */
.lb-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List Design */
.list-header {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 10px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 1px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-rank {
    width: 25px;
    color: #FF005C;
    font-weight: bold;
    font-size: 0.9rem;
}

.item-id {
    font-size: 0.85rem;
}

.item-prize {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.item-score {
    font-family: 'Orbitron', sans-serif;
    width: 40px;
    text-align: right;
}

/* CHALLENGES PAGE */
[data-tab-content] {
    display: none;
}

.active[data-tab-content] {
    display: block;
}

.tabs li {
    display: inline-block;
    flex: 1;
    text-align: center;
    border-radius: 30px;
}

.tabs.lb-tabs {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    margin: 0;
    padding: 5px;
    background-color: hsl(245deg 30% 7.84%);
    border-radius: 30px;
    margin-bottom: 20px;
    color: #fff;
}

.tab.lb-tab {
    cursor: pointer;
    padding: 15px;
}

.tab.lb-tab.active {
    background-color: #1e1c37;
    color: #fff;
}

.tab.lb-tab:hover {
    background-color: #1e1c37;
}

/* Style the buttons inside the tab */
.inner-tab button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
    font-size: 15px;
    display: inline-block;
    font-weight: bold;
    flex: 1;
    /* Make buttons take equal space */
    text-align: center;
    /* Center the text inside the button */
    color: #fff;
    border-bottom: 3px solid transparent;

}

/* Change background color of buttons on hover */
.inner-tab button:hover {
    background-color: transparent;
    font-weight: bold;
    border-bottom: 3px solid #fff;

}

/* Create an active/current tablink class */
.inner-tab button.active {
    background-color: transparent;
    font-weight: bold;
    border-bottom: 3px solid #ecc902;
}

/* Style the tab content */
.tabcontent {
    display: none;
    border-top: none;
}

div.leaderboard-page {
    padding: 16px;
    /* padding-bottom: 100px; */
}

ul.sidebar-menu a {
    text-decoration: none;
}

#mainContent {
    padding: 5px 16px 100px 16px;
}

/* --- Profile Page Styling --- */
.profile-page {
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.player-card {
    background: rgba(30, 30, 36, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Avatar with Neon Ring */
.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 0, 92, 0.5);
}

.edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #7600FF;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--bg-dark);
    z-index: 3;
    box-shadow: 0 0 10px rgba(118, 0, 255, 0.6);
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.player-email,
.joined-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Stats Display */
.stats-row {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.stat-tile {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #7600FF;
    text-shadow: 0 0 10px rgba(118, 0, 255, 0.3);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
}

/* Info Bar */
.info-field {
    background: #000;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.field-label {
    color: var(--text-muted);
    font-weight: 600;
}

.field-value {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Centered Edit Card --- */
.edit-profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-profile-card h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Avatar Picker Grid --- */
.avatar-selection-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #222;
    overflow: hidden;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: rgba(0, 240, 255, 0.3);
}

.avatar-option.selected {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 15px var(--secondary-neon);
    transform: scale(1.1);
}

/* --- Form Fields --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-neon);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(118, 0, 255, 0.05);
    box-shadow: 0 0 10px rgba(118, 0, 255, 0.2);
}

/* --- Action Buttons --- */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    flex: 2;
    background: linear-gradient(135deg, var(--accent-purple), #4c00a4);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(118, 0, 255, 0.3);
}

.btn-save:hover {
    box-shadow: 0 0 20px rgba(118, 0, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cancel {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* --- Current Avatar Display --- */
.current-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar-preview-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary-neon);
    padding: 3px;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.avatar-preview-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.avatar-preview-wrapper:hover .edit-overlay {
    opacity: 1;
}

.btn-change-avatar {
    background: transparent;
    border: 1px solid var(--secondary-neon);
    color: var(--secondary-neon);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* --- Modal Styling --- */
.avatar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.avatar-modal-content {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.close-modal {
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--primary-neon);
}

.alert {
    background-color: #f44336;
    /* Red */
    color: white;
    padding: 20px 30px;
    margin: auto;
    border-radius: 5px;
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    text-align: center;
    border-radius: 30px;
}

.alert.success {
    background-color: #4BB543;
}

/* Green */

.alert.info {
    background-color: #2196F3;
}

/* Blue */

.alert.warning {
    background-color: #ff9800;
}

/* Orange */

.alert.danger {
    background-color: rgb(244 67 54 / 60%);
}

/* Red */

.alert.closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.alert.closebtn:hover {
    color: black;
}

.alert.closebtn:after {
    content: "×";
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    right: 10px;
    top: 0;
}

.alert.closebtn:hover:after {
    color: black;
}

body#main-wrapper {
    position: relative;
}

main {
    max-width: 500px;
    margin: auto;
}

/* --- Main Login Card --- */
.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;

    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.logo-area i {
    font-size: 3rem;
    color: var(--secondary-neon);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    margin-bottom: 15px;
}

h1 {
    /* font-family: 'Orbitron', sans-serif; */
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* --- Input Styling --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-neon);
}

input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-neon), var(--accent-purple));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 0, 92, 0.3);
    transition: 0.3s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 92, 0.5);
}

/* --- Floating Action Button --- */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary-neon);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    z-index: 100;
    transition: 0.3s;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

/* --- Bottom Sheet --- */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.bottom-sheet {
    width: 100%;
    background: #121217;
    border-top: 2px solid var(--secondary-neon);
    border-radius: 30px 30px 0 0;
    padding: 30px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.bottom-sheet.show {
    transform: translateY(0);
}

.handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
}

/* --- Header with Local Flair --- */
.ke-header {
    padding: 30px 0px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.ke-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom, var(--ke-black) 25%, var(--ke-red) 25%, var(--ke-red) 50%, var(--ke-green) 50%, var(--ke-green) 75%);
    border-radius: 2px;
    position: relative;
}

/* White separators for the flag */
.flag-icon::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 0;
    width: 100%;
    height: 30%;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    box-sizing: border-box;
    pointer-events: none;
}

.ke-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 10px 0;
}

.highlight-ke {
    background: linear-gradient(90deg, var(--ke-red), var(--ke-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Featured Game (Hero) --- */
.featured-showcase {
    margin: 0 0 40px;
    position: relative;
}

.showcase-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.showcase-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Darken for text readability */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.dev-tag {
    font-size: 0.75rem;
    color: var(--ke-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.showcase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.btn-play-hero {
    background: white;
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
}

/* --- Developer Spotlight --- */
.dev-row {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dev-profile {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #222;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Studio colors */
.dev-profile:nth-child(1) .dev-avatar {
    border-color: var(--ke-red);
}

.dev-profile:nth-child(2) .dev-avatar {
    border-color: var(--ke-green);
}

.dev-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Games Grid --- */
.grid-header {
    padding: 0 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.grid-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.filter-btn {
    color: var(--ke-green);
    font-size: 0.85rem;
    cursor: pointer;
}

.local-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
}

.local-card {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    gap: 15px;
    align-items: center;
    transition: transform 0.2s;
}

.local-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.local-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.local-info {
    flex: 1;
}

.local-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.local-genre {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.rating {
    color: var(--gold);
    font-size: 0.7rem;
}

.downloads {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.play-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* --- Welcome Section Styling --- */
/* .welcome-section {
    padding: 25px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
    animation: slideDown 0.5s ease-out;
} */

.welcome-content {
    flex: 1;
}

.sub-greeting {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

.welcome-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0;
    color: white;
}

/* The Eye-Catchy Neon Text Effect */
.neon-text {
    background: var(--secondary-gradient);
    /* Uses your Cyan/Blue gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

/* --- Gamified Streak Badge --- */
.streak-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fire-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF9D00, #FF4D00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.4);
    animation: pulseFire 2s infinite;
}

.streak-info {
    display: flex;
    flex-direction: column;
}

.streak-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: white;
    line-height: 1;
}

.streak-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation for the Fire Icon */
@keyframes pulseFire {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 77, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Tweak: Stack them on very small screens */
@media (max-width: 360px) {
    /* .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    } */
}
.btn-like.liked{
    background: rgba(243, 0, 105, .7);
}