/* --- GLOBAL RESET & TYPOGRAPHY --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            background-color: #ffffff;
            color: #1f2937;
            line-height: 1.6;
            overflow-x: hidden;
            font-weight: 400;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        
        /* Helper class for JS logic */
        .hidden { display: none !important; }
        
        .btn-disabled {
            opacity: 0.7;
            cursor: not-allowed !important;
            filter: grayscale(0.5);
            pointer-events: none;
        }

        /* --- ANNOUNCEMENT BAR --- */
        .announcement-bar {
            background: linear-gradient(135deg, #000000, #1a1a1a);
            color: white;
            text-align: center;
            padding: 10px 15px;
            font-weight: 600;
            font-size: 0.85rem;
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .announcement-text i {
            color: #1AFF64;
            margin-right: 8px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

        /* --- HEADER --- */
        header {
            background-color: #fffffff5;
            padding: 0 20px;
            height: 70px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
        }
        
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            position: relative; /* Added to allow absolute positioning of the menu */
        }
        
        .logo a img {
            width: 150px;
            display: block;
        }
        
        /* Desktop Menu - Centered */
        .desktop-menu {
            display: flex;
            align-items: center;
            gap: 30px;
            position: absolute; /* Takes menu out of normal flow */
            left: 50%;          /* Moves it to the middle */
            transform: translateX(-50%); /* Centers it perfectly */
        }
        
        .desktop-menu a {
            color: #333;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: color 0.3s;
            display: flex;
            gap: 5px;
        }
        
        .desktop-menu a:hover {
            color: #1AFF64;
        }
        
        .desktop-menu a i {
            font-size: 1.2rem;
        }

        /* --- PERMANENT DESKTOP SEARCH BAR --- */
        .desktop-search-wrapper {
            /* Removed flex-grow: 1 so it doesn't overlap the centered menu */
            width: 100%;
            max-width: 300px;
            margin-left: auto; /* Push to right */
            display: block;
        }

        .search-input-group {
            display: flex;
            align-items: center;
            background: #f3f4f6;
            border-radius: 50px;
            padding: 5px 5px 5px 20px;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
        }

        .search-input-group:focus-within {
            background: #fff;
            border-color: #1AFF64;
            box-shadow: 0 0 0 3px rgba(26, 255, 100, 0.1);
        }

        .search-input-group input {
            border: none;
            background: transparent;
            outline: none;
            flex: 1;
            font-size: 0.95rem;
            color: #333;
            width: 100%;
        }

        .search-input-group button {
            background: #1AFF64;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            color: #000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: transform 0.2s;
        }

        .search-input-group button:hover { transform: scale(1.05); }

        /* --- MOBILE HEADER ICONS --- */
        .mobile-header-icons {
            display: none; /* Hidden on Desktop */
            align-items: center;
            gap: 15px;
        }

        .icon-btn {
            background: none;
            border: none;
            font-size: 1.3rem;
            color: #1f2937;
            padding: 8px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .icon-btn:hover { color: #1AFF64; }

        /* --- MOBILE FULL SCREEN SEARCH OVERLAY --- */
        .mobile-search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #ffffff;
            z-index: 2000; /* Highest Priority */
            transform: translateX(-100%); /* Start hidden left */
            transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            display: flex;
            flex-direction: column;
        }

        .mobile-search-overlay.active {
            transform: translateX(0);
        }

        .search-overlay-header {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f1f1f1;
            gap: 15px;
            background: #fff;
        }

        .close-search-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: #555;
            padding: 10px;
            cursor: pointer;
        }

        .mobile-input-container {
            flex: 1;
            position: relative;
        }

        .mobile-input-container input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 1.1rem;
            color: #333;
            background: transparent;
        }

        .mobile-search-submit {
            background: #1AFF64;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .search-suggestions {
            padding: 20px;
        }

        .search-suggestions h4 {
            color: #9ca3af;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 15px;
        }

        .suggestion-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tag {
            background: #f3f4f6;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: #4b5563;
            cursor: pointer;
            transition: background 0.2s;
        }

        .tag:hover { background: #e5e7eb; }

        /* --- SIDE MENU (MOBILE) --- */
        .side-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100vh;
            background-color: #ffffff;
            transition: left 0.3s ease;
            z-index: 1500;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        
        .side-menu.active { left: 0; }
        
        .side-menu-header {
            padding: 20px;
            border-bottom: 1px solid #f1f1f1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .side-menu-header h3 { font-size: 1.2rem; color: #111; }
        .side-menu-header h3 i { color: #1AFF64; margin-right: 5px; }

        .menu-categories { padding: 20px; }
        .category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        
        .menu-category-item {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        
        .menu-category-item:hover {
            border-color: #1AFF64;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .menu-category-item i { font-size: 1.5rem; color: #1AFF64; }
        .menu-category-item span { font-size: 0.9rem; font-weight: 600; }

        .side-nav-links { padding: 10px 0; }
        .side-nav-links li { border-bottom: 1px solid #f9f9f9; }
        .side-nav-links a {
            display: flex;
            align-items: center;
            padding: 15px 25px;
            color: #333;
            font-size: 1rem;
        }
        .side-nav-links a i { width: 30px; color: #666; }
        .side-nav-links a:hover { color: #1AFF64; background: #f9f9f9; }
        
        /* --- APP PAGE SPECIFIC CONTENT STYLES --- */
        .app-page-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 25px 20px;
        }

        /* Breadcrumbs */
        .breadcrumbs {
            font-size: 0.8rem; 
            color: #6b7280; 
            margin-bottom: 25px;
            font-weight: 500; 
            letter-spacing: 0.3px;
        }
        
        .breadcrumbs a { 
            color: #4b5563; 
            text-decoration: none; 
            transition: color 0.2s;
        }
        
        .breadcrumbs a:hover { 
            color: #0f4c81; 
        }
        
        .breadcrumbs span { 
            margin: 0 8px; 
            color: #d1d5db;
        }

        /* Hero Section */
        .app-hero {
            display: flex; 
            align-items: flex-start; 
            gap: 25px; 
            margin-bottom: 30px;
        }
        
        .app-hero-icon {
            width: 130px; 
            height: 130px; 
            border-radius: 22px;
            background-size: cover; 
            background-position: center; 
            background-color: #000;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
            flex-shrink: 0;
            border: 3px solid white;
        }
        
        .app-hero-info { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
        }
        
        .app-hero-info h1 {
            font-size: 2rem; 
            font-weight: 700; 
            color: #111827; 
            line-height: 1.2; 
            margin-bottom: 8px;
            font-family: 'Poppins', sans-serif;
        }
        
        .version-tag { 
            font-size: 1rem; 
            color: #6b7280; 
            margin-bottom: 5px; 
            font-weight: 400;
        }
        
        .dev-name { 
            color: #0099e5; 
            font-weight: 600; 
            font-size: 0.95rem; 
            text-decoration: none; 
            transition: color 0.2s;
        }

        /* Stats Row */
        .app-stats {
            display: flex; 
            justify-content: space-between; 
            max-width: 450px;
            margin: 25px 0 35px 0; 
            padding: 15px 0;
            border-top: 1px solid #f3f4f6;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .stat-item { 
            text-align: center; 
            flex: 1; 
            border-right: 1px solid #e5e7eb; 
            padding: 0 10px;
        }
        
        .stat-item:last-child { border-right: none; }
        
        .stat-val {
            font-weight: 700; 
            font-size: 1.3rem; 
            color: #111827;
            display: flex; 
            align-items: center; 
            justify-content: center; 
            gap: 8px;
            margin-bottom: 5px;
        }
        
        .stat-label { 
            font-size: 0.85rem; 
            color: #6b7280; 
            font-weight: 400;
        }
        
        .stat-mod-text {
            color: #1AFF64; 
            font-weight: 700;
            font-size: 1.2rem;
        }

        /* Tagline */
        .app-tagline {
            font-size: 1.5rem; 
            font-weight: 600; 
            color: #111827; 
            margin-bottom: 30px; 
            line-height: 1.4;
            font-family: 'Poppins', sans-serif;
        }

        /* Buttons */
        .dl-btn-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 40px;
        }

        .btn-download-main {
            background: linear-gradient(135deg, #3dfb79 0%, #1AFF64 100%); 
            color: rgb(19, 19, 19); 
            border: none; 
            border-radius: 14px;
            padding: 18px 25px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center;
            text-decoration: none; 
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
            transition: all 0.3s ease;
            cursor: pointer;
            width: 100%;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        
        .btn-download-main:hover { 
            transform: translateY(-3px); 
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
        }

        .btn-text-group { display: flex; flex-direction: column; text-align: left;}
        .btn-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px;}
        .btn-subtitle { font-size: 0.85rem; opacity: 0.9; font-weight: 400;}
        .btn-icon { font-size: 1.8rem; }

        .btn-fast-download {
            background: linear-gradient(135deg, #fee125 0%, #fcd528 100%);
            color: #000000;
            border: none;
            border-radius: 14px;
            padding: 18px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
            transition: all 0.3s ease;
            cursor: pointer;
            width: 100%;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        
        .btn-fast-download:hover { 
            background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
            box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35); 
            transform: translateY(-3px); 
        }

        @media (min-width: 768px) {
            .dl-btn-container { flex-direction: row; gap: 20px; }
            .btn-download-main, .btn-fast-download { flex: 1; min-width: 0; }
        }

        /* Screenshots */
        .screenshots-container {
            display: flex; 
            overflow-x: auto; 
            gap: 16px; 
            padding: 15px 0 20px 0; 
            margin-bottom: 35px;
            scrollbar-width: thin;
        }
        .screenshot-img {
            height: 280px;
            width: auto;
            object-fit: contain;
            border-radius: 14px;
            border: 2px solid #f3f4f6; 
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        }

        /* Game Description */
        .game-description {
            background: #f9fafb; 
            border-radius: 16px; 
            padding: 30px; 
            margin-bottom: 35px;
            border: 1px solid #f3f4f6;
        }
        
        .game-description h3 { 
            font-size: 1.4rem; 
            color: #111827; 
            margin-bottom: 20px; 
            padding-bottom: 12px; 
            border-bottom: 3px solid #1AFF64;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        
        .game-description p {
            color: #4b5563; 
            font-size: 1rem; 
            line-height: 1.7; 
            margin-bottom: 18px;
            font-weight: 400;
        }
        
        .game-features {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
            gap: 12px;
            margin-top: 25px;
        }
        
        .feature-item {
            display: flex; 
            align-items: center; 
            gap: 12px;
            padding: 14px; 
            background: white; 
            border-radius: 10px;
            border: 1px solid #f3f4f6;
            transition: all 0.2s ease;
        }
        
        .feature-icon { 
            color: #1AFF64; 
            font-size: 1.1rem; 
            width: 24px;
            text-align: center;
        }

        /* --- COMMENTS SECTION STYLES --- */
.comments-section {
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
}

.comments-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

.comment-form-card textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.comment-form-card textarea:focus {
    border-color: #1AFF64;
}

.comment-form-footer {
    display: flex;
    gap: 10px;
}

.comment-form-footer input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    outline: none;
}

#post-comment-btn {
    background-color: #1AFF64;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

#post-comment-btn:hover {
    background-color: #1AFF64;
}

/* Individual Comment Display */
.single-comment {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-user { font-weight: 700; color: #333; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: #999; }
.comment-text { font-size: 0.95rem; color: #555; line-height: 1.5; }

.empty-comments {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
}

.empty-comments i { font-size: 3rem; margin-bottom: 10px; }

@media (max-width: 600px) {
    .comment-form-footer { flex-direction: column; }
    #post-comment-btn { padding: 12px; justify-content: center; }
}

        /* Related Apps */
        .related-wrapper { 
            background-color: #f8f9fa; 
            border-top: 1px solid #e5e7eb; 
            padding: 40px 20px; 
            margin-top: 40px;
        }
        .related-content { max-width: 1400px; margin: 0 auto; width: 95%; }
        .row-label {
            font-size: 0.9rem; 
            font-weight: 700; 
            color: #6b7280; 
            margin-bottom: 20px; 
            text-transform: uppercase; 
            letter-spacing: 0.5px;
        }
        .related-grid {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding-bottom: 20px;
            margin-bottom: 20px;
            scrollbar-width: none;
        }
        .update-card {
            min-width: 90px; 
            width: 90px;
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
            text-decoration: none; 
            cursor: pointer;
            position: relative;
        }
        .icon-wrapper {
            position: relative;
            width: 100%;
            padding-top: 100%; 
            border-radius: 22px; 
            overflow: hidden; 
            background-color: #f0f0f0; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .update-icon {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%; 
            height: 100%; 
            background-size: cover; 
            background-position: center; 
            background-repeat: no-repeat;
            transition: transform 0.3s ease;
        }
        .update-card:hover .update-icon { transform: scale(1.1); }
        .update-text { text-align: center; width: 100%; }
        .update-name {
            font-size: 0.8rem; 
            font-weight: 700; 
            color: #1f2937;
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis;
            display: block;
        }
        .update-desc {
            font-size: 0.7rem; 
            color: #9ca3af; 
            display: block;
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis;
        }

        @media (min-width: 1024px) {
            .related-grid {
                display: grid;
                grid-template-columns: repeat(10, 1fr); 
                gap: 25px 20px;
                overflow: visible;
            }
            .update-card { min-width: 0; width: 100%; }
        }

        /* --- FLOATING SOCIAL ICONS --- */
        .floating-socials {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1001; /* Above most content, below full overlays if needed */
        }
        
        .float-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-decoration: none;
        }
        
        .float-icon:hover {
            transform: scale(1.15) translateY(-3px);
        }
        
        .float-icon.telegram {
            background: linear-gradient(135deg, #0088cc, #005f8f);
        }
        
        .float-icon.instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        }

        /* Footer */
        footer {
            background-color: #2c3e50;
            color: white;
            padding: 40px 0 20px;
            margin-top: 60px;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            padding: 0 20px;
        }
        
        .footer-column h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: #1AFF64;
        }
        
        .footer-column p {
            margin-bottom: 20px;
            line-height: 1.6;
            color: #ecf0f1;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: #ecf0f1;
            text-decoration: none;
            transition: color 0.3s;
            display: flex;
            align-items: center;
        }
        
        .footer-links a:hover {
            color: #1AFF64;
        }
        
        .footer-links i {
            margin-right: 10px;
            font-size: 1.1rem;
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: background-color 0.3s, transform 0.3s;
        }
        
        .social-icons a:hover {
            background-color: #1AFF64;
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: #bdc3c7;
        }

        /* Breakpoints for Menu Visibility */
        @media (max-width: 768px) {
            .desktop-menu, .desktop-search-wrapper { display: none; }
            .mobile-header-icons { display: flex; }
            
            .app-hero {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 20px;
            }
            .app-hero-icon { width: 120px; height: 120px; }
            .app-hero-info h1 { font-size: 1.7rem; }
            .app-tagline { font-size: 1.3rem; }
            .game-features { grid-template-columns: 1fr; }
            .screenshot-img { height: 240px; }
            
            .floating-socials { bottom: 15px; right: 15px; gap: 10px; }
            .float-icon { width: 45px; height: 45px; font-size: 1.3rem; }
        }