        /* Your existing CSS remains exactly the same */
        :root {
            --primary: #3B82F6;
            --primary-dark: #2563EB;
            --secondary: #6366F1;
            --dark: #1F2937;
            --light: #F9FAFB;
            --gray: #6B7280;
            --gray-light: #E5E7EB;
            --success: #10B981;
            --gradient: linear-gradient(135deg, #3B82F6, #6366F1);
            --gradient-light: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
            --tf-primary: #3B82F6;
            --tf-accent: #2563EB;
            --tf-black: #1F2937;
            --tf-gray-100: #F3F4F6;
            --tf-gray-200: #E5E7EB;
            --tf-gray-400: #9CA3AF;
            --tf-gray-500: #6B7280;
            --tf-gray-600: #4B5563;
            --tf-gray-800: #1F2937;
            --tf-success: #10B981;
            --tf-radius: 8px;
            --tf-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --tf-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.1);
        }

        /* Specific Game Modal Styles (Inner Iframe / Full Screen Mode) */


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

        a {
            text-decoration: none !important;
            transition: all 0.3s ease;
        }

        body {
            font-family: 'Manrope', sans-serif;
            background-color: #FFFFFF;
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
            padding-top: 160px;
        }

        /* Hero Section */
        .hero-section {
            padding: 30px 0 50px; /* Reduced padding for better fit */
            display: flex;
            align-items: center;
            position: relative;
            background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
            overflow: hidden;
        }

        /* Simple Background Pattern */
        .background-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
            z-index: 1;
        }

        /* Container */
        .hero-container {
            position: relative;
            z-index: 2;
        }

        /* Content Column */
        .content-column {
            padding-right: 40px;
        }

        /* Badge */
        .badge {
            display: inline-flex;
            align-items: center;
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary-dark);
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 16px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border: 1px solid rgba(59, 130, 246, 0.2);
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.05);
        }

        /* Main Title */
        .main-title {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 16px;
            color: var(--dark);
            letter-spacing: -0.02em;
        }

        .title-gradient {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            position: relative;
            display: inline-block;
        }

        /* Description */
        .description {
            font-size: 1.1rem;
            color: var(--tf-gray-600);
            margin-bottom: 24px;
            line-height: 1.6;
            max-width: 580px;
        }

        /* Tech Stack */
        .tech-stack {
            margin-bottom: 40px;
        }

        .tech-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--gray);
            margin-bottom: 16px;
            letter-spacing: 0.05em;
        }

        .tech-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            min-height: 38px;
        }

        .tech-item {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.9);
            color: var(--tf-gray-800);
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        }

        .tech-item:hover {
            border-color: var(--primary);
            background: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
        }

        .tech-icon {
            margin-right: 8px;
            font-size: 1.1rem;
            color: var(--primary);
            width: 1.25em;
            display: inline-block;
            text-align: center;
        }

        /* CTA Buttons */
        .cta-buttons {
            display: flex;
            gap: 16px;
            margin-top: 40px;
        }

        .btn {
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background: var(--gradient);
            color: white;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
            color: white;
        }

        .btn-secondary {
            background: white;
            color: var(--primary);
            border: 2px solid var(--gray-light);
        }

        .btn-secondary:hover {
            background: var(--light);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
        }

        /* Image/Preview Column */
        .preview-column {
            position: relative;
        }

        /* Preview Card */
        .preview-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--gray-light);
            height: 100%;
            min-height: 350px;
            display: flex;
            flex-direction: column;
        }

        .card-header {
            background: var(--dark);
            padding: 18px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .card-title {
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
        }

        .card-title i {
            margin-right: 10px;
            color: var(--primary);
        }

        .card-content {
            padding: 40px 30px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .card-bg-animated {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-size: cover;
            background-position: center;
            z-index: 0;
            animation: slowZoom 20s ease-in-out infinite alternate;
        }

        .card-bg-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(to bottom, rgba(17, 24, 39, 0.3) 0%, rgba(17, 24, 39, 0.9) 100%);
            z-index: 1;
        }

        .card-content-inner {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-grow: 1;
        }

        @keyframes slowZoom {
            0% { transform: scale(1); }
            100% { transform: scale(1.15); }
        }

        .preview-image {
            font-size: 4rem;
            margin-bottom: 24px;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .preview-heading {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--dark);
        }

        .preview-text {
            color: var(--gray);
            font-size: 1rem;
            line-height: 1.6;
            max-width: 300px;
            margin: 0 auto 20px;
        }

        .preview-stats {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 20px;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
            line-height: 1;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .stats-light .stat-number { color: white !important; }
        .stats-light .stat-label { color: rgba(255,255,255,0.7) !important; }
        .text-white { color: white !important; }

        /* Floating Elements */
        .floating-badge {
            position: absolute;
            top: -15px;
            right: -15px;
            background: var(--gradient);
            color: white;
            padding:14px 28px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            z-index: 3;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {

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

            50% {
                transform: translateY(-8px);
            }
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .main-title {
                font-size: 2.8rem;
            }

            .content-column {
                padding-right: 30px;
            }
        }

        @media (max-width: 992px) {
            body { padding-top: 120px; }

            .hero-section {
                padding: 60px 0;
            }

            .content-column {
                padding-right: 0;
                margin-bottom: 50px;
            }

            .main-title {
                font-size: 2.4rem;
            }

            .description {
                font-size: 1.1rem;
            }

            .preview-card {
                max-width: 500px;
                margin: 0 auto;
            }

            .floating-badge {
                right: 20px;
            }
        }

        @media (max-width: 768px) {
            body { padding-top: 115px; }

            .main-title {
                font-size: 2rem;
            }

            .description {
                font-size: 1rem;
                margin-bottom: 30px;
            }

            .cta-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .tech-item {
                padding: 8px 16px;
                font-size: 0.9rem;
            }

            .preview-card {
                min-height: 350px;
            }

            .card-content {
                padding: 30px 20px;
            }

            .preview-image {
                font-size: 3rem;
            }
        }

        @media (max-width: 576px) {
            body { padding-top: 105px; }

            .main-title {
                font-size: 1.8rem;
            }

            .tech-grid {
                justify-content: center;
            }

            .preview-stats {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Search section with cards  */
        /* ===== TABS STYLING ===== */
        .tabs-container {
            background: white;
            border-radius: var(--tf-radius);
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--tf-shadow);
        }

        .filter-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--tf-gray-200);
            padding-bottom: 1rem;
        }

        .tab-btn {
            padding: 0.5rem 1.25rem;
            border: none;
            background: var(--tf-gray-100);
            color: var(--tf-gray-600);
            border-radius: 30px;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .tab-btn:hover {
            background: var(--tf-gray-200);
            color: var(--tf-gray-800);
        }

        .tab-btn.active {
            background: var(--tf-primary);
            color: white;
        }

        .search-filter {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .search-box {
            flex: 1;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--tf-gray-200);
            border-radius: var(--tf-radius);
            font-size: 0.9rem;
            transition: border-color 0.2s;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--tf-accent);
            box-shadow: 0 0 0 3px rgba(44, 145, 255, 0.1);
        }

        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--tf-gray-500);
        }

        .clear-btn {
            padding: 0.75rem 1.25rem;
            background: var(--tf-gray-100);
            border: none;
            border-radius: var(--tf-radius);
            color: var(--tf-gray-600);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .clear-btn:hover {
            background: var(--tf-gray-200);
            color: var(--tf-gray-800);
        }

        /* ===== PROJECT CARDS ===== */
        .project-card {
            background: white;
            border-radius: var(--tf-radius);
            overflow: hidden;
            box-shadow: var(--tf-shadow);
            transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--tf-shadow-hover);
        }

        .project-thumb {
            position: relative;
            height: 180px;
            overflow: hidden;
            background: #f5f7ff;
        }

        .project-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .project-card:hover .project-thumb img {
            transform: scale(1.03);
        }

        .image-indicator {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.45rem;
            border-radius: 4px;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .image-indicator i {
            font-size: 0.7rem;
        }

        .inner-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 2;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            color: white;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        .badge--best {
            background: #00a369;
        }

        .badge--new {
            background: #1d78d9;
        }

        .badge--trend {
            background: #d97706;
        }

        .project-body {
            padding: 1.25rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .project-title {
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 0.5rem;
            color: var(--tf-black);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .project-link {
            text-decoration: none;
            color: var(--tf-black);
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
            font-size: 0.85rem;
        }

        .author-avatar {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--tf-gray-200);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--tf-gray-800);
        }

        .verified-badge {
            color: var(--tf-success);
            margin-left: 4px;
            font-size: 0.9em;
        }

        .project-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.82rem;
            color: var(--tf-gray-500);
            margin: 0.3rem 0 0.8rem;
        }

        .rating i {
            color: #fbbf24;
        }

        .price {
            font-weight: 800;
            font-size: 1.35rem;
            color: var(--tf-primary);
            margin-top: auto;
        }

        .project-card:hover .price {
            color: var(--tf-accent);
        }

        /* ===== FILTER RESULTS ===== */
        .results-count {
            color: var(--tf-gray-600);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .results-count strong {
            color: var(--tf-primary);
        }

        /* ===== NO RESULTS ===== */
        .no-results {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--tf-gray-500);
        }

        .no-results i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--tf-gray-400);
        }

        /* Improved styles */
        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 3rem;
            color: var(--dark);
        }

        .section-title span {
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .card-placeholder {
            background: var(--gradient-light);
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
            font-size: 1.1rem;
        }

        .price-tag {
            font-size: 0.85rem;
            background: var(--gradient-light);
            color: var(--primary);
            padding: 2px 10px;
            border-radius: 12px;
            font-weight: 600;
            margin-left: 8px;
        }

        /* Smooth transitions */
        .project-item {
            transition: all 0.3s ease;
        }

        .fade-in {
            animation: fadeIn 0.5s ease;
        }

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

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

        /* ===== TOOLS SECTION STYLES ===== */
        .tools-section {
            background: linear-gradient(to bottom, #FFFFFF 0%, #F9FAFB 100%);
            padding: 80px 0;
        }

        .tool-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #E5E7EB;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .tool-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
        }

        .tool-icon-wrapper {
            width: 100%;
            height: 140px;
            background: linear-gradient(135deg, #3B82F6, #6366F1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .tool-icon-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        }

        .tool-card:hover .tool-icon-wrapper {
            background: linear-gradient(135deg, #2563EB, #4F46E5);
        }

        .tool-icon-wrapper i {
            font-size: 3.5rem;
            color: #ffffff;
            position: relative;
            z-index: 2;
            transition: transform 0.3s ease;
        }

        .tool-card:hover .tool-icon-wrapper i {
            transform: scale(1.1);
        }

        .tool-body {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .tool-title {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: #1F2937;
            line-height: 1.3;
        }

        .tool-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .tool-title a:hover {
            color: #3B82F6;
        }

        .tool-description {
            font-size: 0.9rem;
            color: #6B7280;
            margin-bottom: 1rem;
            line-height: 1.6;
            flex-grow: 1;
        }

        .tool-meta {
            padding-top: 1rem;
            border-top: 1px solid #E5E7EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tool-category {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.8rem;
            color: #6B7280;
            font-weight: 600;
            background: #F3F4F6;
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
        }

        .tool-category i {
            color: #3B82F6;
            font-size: 0.75rem;
        }

        .tool-link-icon {
            color: #3B82F6;
            font-size: 1.2rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .tool-card:hover .tool-link-icon {
            opacity: 1;
        }

        /* ===== FOOTER STYLES ===== */
        .footer {
            background-color: #fff;
            padding: 60px 0 30px;
            border-top: 1px solid #E5E7EB;
            margin-top: auto;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-brand {
            flex: 1;
            min-width: min(300px, 100%);
        }

        .footer-brand .tagline {
            margin-top: 15px;
            color: #6B7280;
            font-size: 0.95rem;
            line-height: 1.6;
            max-width: 300px;
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: #F3F4F6;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6B7280;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }

        .social-links a:hover {
            background: linear-gradient(135deg, #3B82F6, #6366F1);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }

        .footer-links {
            flex: 2;
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            justify-content: flex-end;
        }

        .link-group {
            min-width: 160px;
        }

        .link-group h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1F2937;
            margin-bottom: 24px;
        }

        .link-group ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .link-group ul li {
            margin-bottom: 14px;
        }

        .link-group ul li a {
            color: #6B7280;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            display: inline-block;
        }

        .link-group ul li a:hover {
            color: #3B82F6;
            transform: translateX(4px);
        }

        .footer-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 30px;
            border-top: 1px solid #E5E7EB;
            text-align: center;
            gap: 10px;
        }

        .footer-bottom p {
            color: #6B7280;
            font-size: 0.9rem;
            margin: 0;
        }

        /* Responsive Footer */
        @media (max-width: 991px) {
            .footer-content {
                flex-direction: column;
            }

            .footer-links {
                justify-content: flex-start;
            }
        }

        @media (max-width: 768px) {
            .footer {
                padding: 40px 0 20px;
            }

            .link-group {
                width: 45%;
                margin-bottom: 20px;
            }
        }

        @media (max-width: 576px) {
            .link-group {
                width: 100%;
            }
        }

        /* =====================================================
           MOBILE RESPONSIVE FIXES
           (must stay at the end of this style block — these
           override the desktop rules above for small screens)
        ===================================================== */

        /* Ads must never be wider than the screen */
        ins.adsbygoogle,
        ins.adsbygoogle iframe {
            max-width: 100% !important;
        }
        .ad-box,
        .ad-box iframe {
            max-width: 100%;
        }

        @media (max-width: 768px) {
            /* Smaller section titles on mobile */
            .section-title {
                font-size: 1.75rem;
                margin-bottom: 1.5rem;
            }

            /* Section header rows (title + "View All" link) */
            .d-flex .section-title {
                margin-bottom: 0;
                text-align: left;
            }
            .view-btn {
                white-space: nowrap;
                flex-shrink: 0;
                font-size: 0.85rem;
            }

            /* Filter tabs: horizontal scroll strip instead of a tall stack */
            .tabs-container {
                padding: 1rem;
            }
            .filter-tabs {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                padding-bottom: 0.75rem;
                margin-bottom: 1rem;
            }
            .filter-tabs::-webkit-scrollbar {
                display: none;
            }
            .tab-btn {
                flex: 0 0 auto;
                white-space: nowrap;
                font-size: 0.85rem;
                padding: 0.45rem 1rem;
            }

            /* Search box + clear button stack full-width */
            .search-filter {
                flex-wrap: wrap;
            }
            .search-box {
                flex: 1 1 100%;
            }
            .clear-btn {
                width: 100%;
            }

            /* Tools/games cards: tighter icon banner and section padding */
            .tools-section {
                padding: 48px 0;
            }
            .tool-icon-wrapper {
                height: 110px;
            }
            .tool-icon-wrapper i {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 576px) {
            .section-title {
                font-size: 1.5rem;
            }
        }

            /* ===== HEADER ===== */
            .header {
                background: white;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
                padding: 10px 0;
                position: fixed;
                width: 100%;
                top: 0;
                left: 0;
                z-index: 1000;
                border-bottom: 1px solid rgba(0,0,0,0.03);
                transition: all 0.3s ease;
            }

            .admin-bar .header {
                top: 32px;
            }

            .header .container {
                max-width: 1140px;
            }

            .header-content {
                display: flex;
                flex-direction: column;
                gap: 0;
                transition: gap 0.3s ease;
            }

            .header.scrolled {
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            }

            /* Logo */
            .logo-container {
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .icon-box {
                width: 36px;
                height: 36px;
                border-radius: 8px;
                background: var(--gradient);
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-size: 1.1rem;
            }

            .site-name {
                font-size: 1.4rem;
                font-weight: 700;
                color: var(--dark);
            }

            .site-name span {
                color: var(--primary);
            }

            /* Nav Center */
            .nav-center ul {
                display: flex;
                gap: 2rem;
                list-style: none;
                margin: 0;
                padding: 0;
            }

            .nav-center a {
                text-decoration: none;
                color: var(--tf-gray-600);
                font-weight: 600;
                font-size: 0.95rem;
                transition: all 0.3s ease;
                padding: 5px 0;
                position: relative;
            }

            .nav-center a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background: var(--primary);
                transition: width 0.3s ease;
                border-radius: 2px;
            }

            .nav-center a:hover::after,
            .nav-center a.active::after {
                width: 100%;
            }

            .nav-center a:hover,
            .nav-center a.active {
                color: var(--primary);
            }

            /* Auth Buttons */
            .auth-buttons {
                display: flex;
                gap: 12px;
                position: relative;
            }

            .auth-btn {
                padding: 8px 16px;
                border-radius: var(--tf-radius);
                font-weight: 600;
                font-size: 0.9rem;
                cursor: pointer;
                transition: all 0.2s ease;
                border: 1px solid var(--tf-gray-200);
            }

            .login-btn {
                background: white;
                color: var(--primary);
            }

            .register-btn {
                background: var(--gradient);
                color: white;
                border: none;
            }

            .auth-btn:hover {
                transform: translateY(-2px);
                box-shadow: var(--tf-shadow-hover);
            }

            /* User Menu Dropdown */
            .user-menu-container {
                position: relative;
            }

            .user-icon-btn {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 8px 20px;
                text-decoration: none;
                background: var(--light);
                border: 1px solid var(--tf-gray-200);
                border-radius: 30px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-weight: 600;
                color: var(--dark);
            }
            
            .user-icon-btn:hover {
                background: var(--primary);
                color: white;
                border-color: var(--primary);
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
            }
            
            .user-icon-btn:hover i.fa-user-circle {
                color: white;
            }

            .user-icon-btn i.fa-user-circle {
                font-size: 1.5rem;
                color: var(--primary);
            }

            .user-icon-btn .fa-chevron-down {
                font-size: 0.75rem;
                transition: transform 0.2s;
            }

            .user-icon-btn:hover {
                border-color: var(--primary);
                box-shadow: var(--tf-shadow);
            }

            .user-icon-btn.active .fa-chevron-down {
                transform: rotate(180deg);
            }

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

            .user-dropdown {
                position: absolute;
                top: calc(100% + 8px);
                right: 0;
                background: white;
                border-radius: var(--tf-radius);
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
                min-width: 260px;
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: all 0.3s ease;
                z-index: 1000;
            }

            .user-dropdown.show {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .dropdown-header {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 16px;
                background: var(--gradient-light);
            }

            .dropdown-header i {
                font-size: 2.5rem;
                color: var(--primary);
            }

            .dropdown-header div {
                display: flex;
                flex-direction: column;
            }

            .dropdown-header strong {
                font-size: 1rem;
                color: var(--dark);
                margin-bottom: 2px;
            }

            .dropdown-header span {
                font-size: 0.8rem;
                color: var(--tf-gray-500);
            }

            .dropdown-divider {
                height: 1px;
                background: var(--tf-gray-200);
                margin: 8px 0;
            }

            .dropdown-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px 16px;
                color: var(--tf-gray-800);
                text-decoration: none;
                transition: all 0.2s ease;
                font-weight: 500;
                font-size: 0.9rem;
            }

            .dropdown-item i {
                width: 20px;
                color: var(--tf-gray-500);
                font-size: 1rem;
            }

            .dropdown-item:hover {
                background: var(--tf-gray-100);
                color: var(--primary);
            }

            .dropdown-item:hover i {
                color: var(--primary);
            }

            .dropdown-item.logout {
                color: #dc2626;
            }

            .dropdown-item.logout:hover {
                background: #fee2e2;
                color: #dc2626;
            }

            .dropdown-item.logout i {
                color: #dc2626;
            }

            /* Hamburger (mobile) */
            /* .hamburger {
                                  display: none;
                                  flex-direction: column;
                                  gap: 4px;
                                  cursor: pointer;
                                }
                                .hamburger span {
                                  width: 24px;
                                  height: 2px;
                                  background: var(--dark);
                                  border-radius: 2px;
                                } */

            .hamburger {
                display: none;
                flex-direction: column;
                justify-content: space-between;
                width: 30px;
                height: 21px;
                cursor: pointer;
            }

            .hamburger span {
                height: 3px;
                width: 100%;
                background: var(--primary);
                border-radius: 2px;
                transition: 0.3s;
            }

            /* Categories Wrapper */
            .categories-wrapper {
                display: flex;
                position: relative;
                align-items: center;
                gap: 12px;
                transition: all 0.4s ease;
                min-height: 48px;
            }

            .categories-container {
                overflow-x: auto;
                white-space: nowrap;
                scrollbar-width: none;
                /* Firefox */
                -ms-overflow-style: none;
                /* IE/Edge */
                flex: 1;
                min-width: 0;
            }

            .categories-container::-webkit-scrollbar {
                display: none;
            }

            .categories {
                display: flex;
                gap: 16px;
                list-style: none;
                margin: 0;
                /* Side padding keeps the first/last pill clear of the round
                   arrow buttons that sit on top of the scroller */
                padding: 8px 52px;
            }

            .categories a {
                text-decoration: none;
                color: var(--tf-gray-600);
                font-weight: 600;
                font-size: 0.9rem;
                padding: 6px 12px;
                border-radius: 20px;
                transition: all 0.2s ease;
                white-space: nowrap;
            }

            .categories a:hover {
                background: var(--tf-gray-100);
                color: var(--primary);
            }

            .categories a.active {
                background: var(--gradient);
                color: white !important;
            }

            .categories a {
                position: relative;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .category-count {
                background: var(--primary);
                color: white;
                font-size: 0.7rem;
                padding: 2px 6px;
                border-radius: 10px;
                min-width: 18px;
                text-align: center;
                line-height: 1;
                font-weight: 700;
            }

            .categories a.active .category-count {
                background: white;
                color: var(--primary);
            }

            .scroll-btn {
                background: white;
                border: 1px solid var(--tf-gray-200);
                width: 36px;
                height: 36px;
                border-radius: 50%;
                position: absolute;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                color: var(--tf-gray-500);
                transition: all 0.2s ease;
                z-index: 2;
                flex-shrink: 0;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            }

            .scroll-btn.left {
                left: 0;
            }

            .scroll-btn.right {
                right: 0;
            }

            /* Soft fade so pills glide under the arrows instead of clipping */
            .scroll-btn.left::after,
            .scroll-btn.right::after {
                content: '';
                position: absolute;
                top: -8px;
                bottom: -8px;
                width: 26px;
                pointer-events: none;
            }

            .scroll-btn.left::after {
                left: 100%;
                background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
            }

            .scroll-btn.right::after {
                right: 100%;
                background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
            }

            .scroll-btn:hover {
                background: var(--tf-gray-100);
                color: var(--primary);
            }

            /* Mobile Menu */
            .mobile-menu {
                display: none;
                background: white;
                padding: 20px;
                border-radius: var(--tf-radius);
                box-shadow: var(--tf-shadow);
                margin-top: 16px;
            }

            .mobile-menu ul {
                list-style: none;
                padding: 0;
                margin: 0 0 20px 0;
            }

            .mobile-menu a {
                display: block;
                padding: 10px 0;
                color: var(--dark);
                text-decoration: none;
                font-weight: 600;
            }

            .mobile-menu a:hover {
                color: var(--primary);
            }

            .mobile-auth {
                display: flex;
                gap: 12px;
                flex-direction: column;
            }

            .mobile-user-info {
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 12px;
                background: var(--gradient-light);
                border-radius: var(--tf-radius);
                margin-bottom: 10px;
            }

            .mobile-user-info i {
                font-size: 2rem;
                color: var(--primary);
            }

            .mobile-user-info strong {
                color: var(--dark);
                font-size: 1rem;
            }

            .mobile-auth .auth-btn {
                width: 100%;
                text-align: center;
                text-decoration: none;
                display: block;
            }

            .mobile-auth .logout-btn {
                background: #fee2e2;
                color: #dc2626;
                border: 1px solid #dc2626;
            }

            .mobile-auth .logout-btn:hover {
                background: #dc2626;
                color: white;
            }

            .header-top {
                display: flex;
                width: 100%;
                align-items: center;
                justify-content: space-between;
                transition: all 0.3s ease;
                max-height: 100px;
                overflow: hidden;
            }

            .header.scrolled .header-top {
                max-height: 0;
                opacity: 0;
                margin: 0;
                padding: 0;
                overflow: hidden;
            }

            /* Categories stay visible on scroll */

            /* ===== MEDIA QUERIES ===== */
            @media (max-width: 992px) {
                .nav-center {
                    display: none;
                }

                .hamburger {
                    display: flex;
                }

                .mobile-menu.active {
                    display: block;
                }

                /* Hide username text on smaller screens, keep icon */
                .user-name {
                    display: none;
                }

                .user-icon-btn {
                    padding: 8px 12px;
                }
            }

            @media (max-width: 992px) {
                .site-logo-img {
                    max-height: 70px !important;
                }
                .header {
                    padding: 8px 0;
                }
            }

            @media (max-width: 768px) {
                .site-logo-img {
                    max-height: 55px !important;
                }
                .categories a {
                    font-size: 0.85rem;
                    padding: 6px 10px;
                }
            }

            @media (max-width: 576px) {
                .site-logo-img {
                    max-height: 46px !important;
                }
                .auth-buttons .login-btn,
                .auth-buttons .register-btn {
                    padding: 6px 12px;
                    font-size: 0.8rem;
                }
                .user-icon-btn {
                    padding: 6px 10px;
                }
                .categories-wrapper {
                    padding: 0 2px;
                }
            }

        /* ===== PREMIUM AUTH MODAL (FIXED) ===== */
        .auth-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.7);
            /* backdrop-filter: blur(8px); */
            z-index: 9999;
            /* Ensure it's on top of Bootstrap navbars */
            display: none;
            align-items: center;
            justify-content: center;
            padding: 15px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .auth-modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .auth-modal-container {
            background: #FFFFFF;
            width: 100%;
            max-width: 440px;
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            position: relative;
            transform: translateY(30px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            /* Reset text align */
            text-align: left;
        }

        .auth-modal-overlay.active .auth-modal-container {
            transform: translateY(0) scale(1);
        }

        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #F3F4F6;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            color: var(--gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            z-index: 10;
        }

        .modal-close-btn:hover {
            background: var(--dark);
            color: white;
        }

        /* Header Section */
        .auth-header-section {
            text-align: center;
            padding: 30px 30px 10px;
            background: linear-gradient(to bottom, #ffffff, #f9fafb);
        }

        .logo-mini {
            width: 40px;
            height: 40px;
            background: var(--gradient);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin: 0 auto 15px;
            font-size: 1.2rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .auth-header-section h3 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--dark);
            margin: 0 0 5px 0;
        }

        .auth-header-section p {
            color: var(--gray);
            font-size: 0.95rem;
            margin: 0;
        }

        /* Tabs */
        .auth-tabs-wrapper {
            padding: 10px 30px 0;
            background: #f9fafb;
        }

        .auth-tabs {
            display: flex;
            background: #E5E7EB;
            padding: 4px;
            border-radius: 12px;
            gap: 0;
            /* Reset bootstrap gap if any */
        }

        .auth-tab-btn {
            flex: 1;
            padding: 10px;
            border: none;
            background: transparent;
            color: var(--gray);
            font-weight: 600;
            font-size: 0.9rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .auth-tab-btn.active {
            background: white;
            color: var(--dark);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        /* Body */
        .auth-body {
            padding: 25px 30px 35px;
        }

        /* Google Button */
        .google-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: white;
            border: 1px solid #E5E7EB;
            padding: 12px;
            border-radius: 12px;
            font-weight: 600;
            color: var(--dark);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .google-btn:hover {
            background: #F9FAFB;
            border-color: #D1D5DB;
        }

        /* Divider */
        .auth-divider {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .auth-divider span {
            padding: 0 10px;
            color: #9CA3AF;
            font-size: 0.8rem;
            font-weight: 600;
            background: white;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #E5E7EB;
        }

        /* Forms */
        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        /* Custom Input Groups - Avoiding Bootstrap Conflicts */
        .auth-group {
            margin-bottom: 18px;
            display: block;
            /* Force block */
        }

        .auth-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 6px;
            margin-left: 2px;
        }

        .auth-input-wrapper {
            position: relative;
            width: 100%;
        }

        .auth-input-wrapper i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9CA3AF;
            pointer-events: none;
            /* Let clicks pass through to input */
            z-index: 2;
        }

        .auth-input-wrapper input {
            width: 100%;
            display: block;
            padding: 12px 14px 12px 42px;
            /* Left padding for icon */
            background: #F9FAFB;
            border: 1px solid transparent;
            border-radius: 12px;
            font-size: 0.95rem;
            color: var(--dark);
            transition: all 0.2s ease;
            font-weight: 500;
            box-shadow: none;
            /* Remove bootstrap shadows */
            height: auto;
            /* Prevent bootstrap fixed heights */
        }

        .auth-input-wrapper input:focus {
            background: white;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
            outline: none;
        }

        .auth-input-wrapper input:focus+i {
            color: var(--primary);
        }

        .forgot-wrapper {
            text-align: right;
            margin-top: 6px;
        }

        .forgot-wrapper a {
            font-size: 0.85rem;
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            background: var(--gradient);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
        }

        .legal-text {
            font-size: 0.75rem;
            color: #9CA3AF;
            text-align: center;
            margin-top: 15px;
        }

        .auth-message {
            padding: 12px 15px;
            margin-bottom: 15px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            display: none;
            text-align: center;
            animation: slideDown 0.3s ease;
        }

        .auth-message.success {
            background-color: #d1fae5;
            color: #065f46;
            border: 1px solid #34d399;
            display: block;
        }

        .auth-message.error {
            background-color: #fee2e2;
            color: #991b1b;
            border: 1px solid #f87171;
            display: block;
        }

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

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