:root {
            --primary: #6c5ce7;
            --primary-dark: #5649c0;
            --secondary: #a29bfe;
            --dark: #0f0e17;
            --darker: #0a0a12;
            --light: #f5f6fa;
            --accent: #ff8906;
            --success: #00b894;
            --text: #fffffe;
            --text-secondary: #a7a9be;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        @font-face {
            font-family: 'Poppins';
            src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        }
        
        body {
            background-color: var(--darker);
            color: var(--text);
            overflow-x: hidden;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* Header Styles */
        header {
            background: rgba(15, 14, 23, 0.95);
            padding: 1rem 2rem;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }
        
        header.scrolled {
            padding: 0.7rem 2rem;
            background: rgba(10, 10, 18, 0.98);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }
        
        .logo i {
            font-size: 2.2rem;
            color: var(--primary);
            animation: pulse 2s infinite;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            background: linear-gradient(to right, var(--secondary), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
            letter-spacing: -0.5px;
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        
        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-links a:hover {
            color: var(--text);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        /* Search Bar with Animation */
        .search-container {
            position: relative;
            width: 40%;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .search-container:focus-within {
            transform: scale(1.03);
        }
        
        .search-bar {
            width: 100%;
            padding: 0.9rem 1.8rem;
            padding-left: 3.5rem;
            border-radius: 50px;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            color: white;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .search-bar::placeholder {
            color: rgba(255, 255, 255, 0.6);
            font-weight: 300;
        }
        
        .search-bar:focus {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 25px rgba(108, 92, 231, 0.5);
            border-color: rgba(108, 92, 231, 0.3);
        }
        
        .search-icon {
            position: absolute;
            left: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.6);
            transition: all 0.3s ease;
        }
        
        .search-bar:focus + .search-icon {
            color: var(--primary);
            transform: translateY(-50%) scale(1.15);
        }
        
        .user-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .btn-login {
            background: transparent;
            color: var(--text);
            padding: 0.7rem 1.5rem;
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-login:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .btn-signup {
            background: var(--primary);
            color: white;
            padding: 0.7rem 1.5rem;
            border-radius: 50px;
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-signup:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
        }
        
        /* Main Content */
        main {
            margin-top: 90px;
            padding: 2rem;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
            flex: 1;
        }
        
        /* Categories Section */
        .section-title {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--accent));
            border-radius: 2px;
        }
        
        .categories {
            margin-bottom: 3rem;
        }
        
        .category-list {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding-bottom: 1.5rem;
            scrollbar-width: thin;
            scrollbar-color: var(--primary) transparent;
        }
        
        .category-list::-webkit-scrollbar {
            height: 6px;
        }
        
        .category-list::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .category-list::-webkit-scrollbar-thumb {
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .category-item {
            min-width: 140px;
            padding: 0.9rem 1.5rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .category-item:hover {
            background: rgba(108, 92, 231, 0.2);
            color: var(--text);
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2);
        }
        
        .category-item.active {
            background: var(--primary);
            color: white;
            font-weight: 600;
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
            border-color: var(--primary-dark);
        }
        
        /* Games Grid */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2.5rem;
            margin-top: 2rem;
        }
        
        .game-card {
            background: linear-gradient(145deg, #16213e, #1a1a2e);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.07);
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s forwards;
            animation-delay: calc(var(--delay) * 0.1s);
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .game-card:hover {
            transform: translateY(-10px) scale(1.03);
            box-shadow: 0 20px 50px rgba(108, 92, 231, 0.35);
            border-color: rgba(108, 92, 231, 0.3);
        }
        
        .game-image-container {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .game-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s ease;
        }
        
        .game-card:hover .game-image {
            transform: scale(1.1);
        }
        
        .game-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent);
            color: var(--dark);
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(255, 137, 6, 0.3);
            z-index: 2;
        }
        
        .game-info {
            padding: 1.5rem;
        }
        
        .game-title {
            font-size: 1.3rem;
            margin-bottom: 0.7rem;
            color: var(--text);
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .game-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .game-category {
            display: inline-block;
            background: rgba(108, 92, 231, 0.2);
            color: var(--secondary);
            padding: 0.4rem 0.9rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .game-rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: #ffd700;
            font-size: 0.9rem;
        }
        
        .game-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 1.8rem;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .game-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .game-price {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--text);
        }
        
        .game-price.free {
            color: var(--success);
        }
        
        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .download-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }
        
        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(108, 92, 231, 0.6);
        }
        
        .download-btn:hover::before {
            left: 100%;
        }
        
        .download-btn:active {
            transform: translateY(0);
        }
        
        /* Featured Banner */
        .featured-banner {
            background: linear-gradient(135deg, #0f0c29, #302b63);
            padding: 3rem;
            border-radius: 16px;
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
        }
        
        .featured-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
            animation: rotate 20s linear infinite;
            z-index: 1;
        }
        
        .featured-content {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 3rem;
        }
        
        .featured-image-container {
            flex-shrink: 0;
            width: 380px;
            height: 380px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            transition: all 0.5s ease;
            position: relative;
        }
        
        .featured-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s ease;
        }
        
        .featured-image-container:hover {
            transform: rotate(-2deg) scale(1.03);
        }
        
        .featured-image-container:hover .featured-image {
            transform: scale(1.1);
        }
        
        .featured-text {
            flex: 1;
        }
        
        .featured-text h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            background: linear-gradient(to right, #fff, var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .featured-text p {
            margin-bottom: 2rem;
            max-width: 600px;
            color: var(--text-secondary);
            font-size: 1.1rem;
        }
        
        .featured-badge {
            display: inline-block;
            background: var(--accent);
            color: var(--dark);
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            font-weight: 700;
            margin-bottom: 1.5rem;
            box-shadow: 0 5px 20px rgba(255, 137, 6, 0.3);
        }
        
        .featured-btn {
            background: var(--accent);
            color: var(--dark);
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 5px 25px rgba(255, 137, 6, 0.3);
            border: none;
            cursor: pointer;
        }
        
        .featured-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 35px rgba(255, 137, 6, 0.4);
            background: #ff9a2e;
        }
        
        .featured-btn:active {
            transform: translateY(0);
        }
        
        .featured-meta {
            display: flex;
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.7rem;
        }
        
        .meta-item i {
            color: var(--primary);
            font-size: 1.2rem;
        }
        
        /* Footer Styles */
        footer {
            background: linear-gradient(to right, #0a0a12, #0f0e17);
            color: var(--text-secondary);
            padding: 3rem 2rem;
            margin-top: 4rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 1.5rem;
        }
        
        .footer-logo i {
            font-size: 1.8rem;
            color: var(--primary);
        }
        
        .footer-logo h2 {
            font-size: 1.5rem;
            background: linear-gradient(to right, var(--secondary), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
        }
        
        .footer-about p {
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }
        
        .footer-links h3 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: var(--text);
            position: relative;
            display: inline-block;
        }
        
        .footer-links h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: var(--text);
            transform: translateX(5px);
        }
        
        .footer-newsletter p {
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }
        
        .newsletter-form {
            display: flex;
            margin-bottom: 1.5rem;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 5px 0 0 5px;
            background: rgba(255, 255, 255, 0.1);
            color: var(--text);
            outline: none;
        }
        
        .newsletter-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 1.5rem;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .newsletter-btn:hover {
            background: var(--primary-dark);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        /* Animations */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* Floating animation for featured games */
        .floating {
            animation: floating 4s ease-in-out infinite;
        }
        
        @keyframes floating {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        /* Responsive Design */
        @media (max-width: 1200px) {
            .featured-image-container {
                width: 240px;
                height: 320px;
            }
            
            .featured-text h2 {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }
            
            .search-container {
                width: 60%;
            }
            
            .featured-content {
                flex-direction: column;
                text-align: center;
            }
            
            .featured-image-container {
                width: 280px;
                height: 380px;
                margin-bottom: 2rem;
            }
            
            .featured-text h2 {
                font-size: 2rem;
            }
            
            .featured-meta {
                justify-content: center;
            }
            
            .footer-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            header {
                padding: 1rem;
            }
            
            header.scrolled {
                padding: 0.7rem 1rem;
            }
            
            .logo h1 {
                font-size: 1.5rem;
            }
            
            .logo i {
                font-size: 1.8rem;
            }
            
            .search-container {
                width: 100%;
                order: 3;
                margin-top: 1rem;
            }
            
            main {
                margin-top: 120px;
                padding: 1rem;
            }
            
            .featured-banner {
                padding: 2rem 1.5rem;
            }
            
            .featured-image-container {
                width: 220px;
                height: 300px;
            }
            
            .featured-text h2 {
                font-size: 1.8rem;
            }
            
            .games-grid {
                grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
                gap: 1.5rem;
            }
        }
        
        @media (max-width: 576px) {
            .user-actions {
                display: none;
            }
            
            .featured-image-container {
                width: 180px;
                height: 240px;
            }
            
            .featured-text h2 {
                font-size: 1.6rem;
            }
            
            .featured-meta {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }
            
            .section-title {
                font-size: 1.7rem;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-input {
                border-radius: 5px;
                margin-bottom: 0.5rem;
            }
            
            .newsletter-btn {
                border-radius: 5px;
                padding: 0.8rem;
            }
        }

        

        /* Admin Button */
.btn-admin {
    padding: 8px 15px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background-color: #5649c0;
}

/* Top Games Section */
.top-games {
    margin: 30px 0;
    padding: 0 20px;
}

.top-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.top-game-card {
    display: flex;
   background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.top-game-card:hover {
    transform: translateY(-5px);
}

.top-game-rank {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    color: #2d3436;
}

.top-game-image-container {
    width: 80px;
    height: 80px;
}

.top-game-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-game-info {
    padding: 10px;
    flex: 1;
}

.top-game-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.top-game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b2bec3;
}
