        /* Windows 8.1 Metro UI CSS - Enhanced */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Segoe WP', 'Segoe', Tahoma, Arial, sans-serif;
        }

        body {
            background-color: #1d1d1d;
            color: #ffffff;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
        }

        /* Windows 8.1 Store Header - Metro UI Style */
        .windows-header {
            background-color: #8B0000;
            height: 48px;
            display: flex;
            align-items: center;
            padding: 0 20px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .windows-header .back-btn {
            color: white;
            font-size: 16px;
            text-decoration: none;
            display: none;
            align-items: center;
            margin-right: 20px;
            padding: 8px 12px;
            transition: background-color 0.1s;
        }

        .windows-header .back-btn:hover {
            background-color: rgba(255,255,255,0.1);
        }

        .windows-header .store-title {
            font-size: 20px;
            font-weight: 300;
            letter-spacing: 0.5px;
            margin-left: 8px;
        }

        .windows-header .search-container {
            margin-left: auto;
            display: flex;
            align-items: center;
            background-color: rgba(255, 255, 255, 0.15);
            height: 32px;
            padding: 0 12px;
            width: 300px;
        }

        .windows-header .search-icon {
            color: rgba(255, 255, 255, 0.7);
            margin-right: 8px;
        }

        .windows-header .search-box {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            font-size: 14px;
            outline: none;
        }

        .windows-header .search-box::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        /* Main Layout */
        .main-container {
            display: flex;
            height: 100vh;
            padding-top: 48px;
        }

        /* Sidebar - Metro UI Style */
        .sidebar {
            width: 240px;
            background-color: #2b2b2b;
            border-right: 1px solid #3c3c3c;
            overflow-y: auto;
            flex-shrink: 0;
        }

        .sidebar h3 {
            padding: 20px;
            font-size: 20px;
            font-weight: 300;
            color: #ffffff;
            margin: 0;
            background-color: #1f1f1f;
        }

        .nav-menu {
            list-style: none;
            padding: 10px 0;
        }

        .nav-item {
            margin: 2px 10px;
        }

        .nav-link {
            color: #ffffff;
            text-decoration: none;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            font-size: 16px;
            font-weight: 400;
            transition: all 0.1s ease;
        }

        .nav-link:hover {
            background-color: #3c3c3c;
            color: #ffffff;
        }

        .nav-link.active {
            background-color: #8B0000;
            color: #ffffff;
        }

        .nav-icon {
            margin-right: 16px;
            width: 20px;
            text-align: center;
            font-size: 18px;
        }

        /* Main Content - Metro UI Grid */
        .main-content {
            flex: 1;
            overflow-y: auto;
            background-color: #1d1d1d;
            padding: 20px;
        }

        /* Featured Banner - Metro UI */
        .featured-section {
            background: linear-gradient(135deg, #8B0000 0%, #7A0000 100%);
            padding: 40px;
            margin-bottom: 30px;
            border: none;
        }

        .featured-title {
            font-size: 36px;
            font-weight: 100;
            margin-bottom: 12px;
            color: white;
            letter-spacing: 1px;
        }

        .featured-subtitle {
            color: rgba(255, 255, 255, 0.9);
            font-size: 18px;
            font-weight: 300;
        }

        /* Apps Section */
        .apps-section {
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 28px;
            font-weight: 100;
            margin-bottom: 25px;
            color: #ffffff;
            padding-bottom: 12px;
            border-bottom: 2px solid #8B0000;
            letter-spacing: 0.5px;
        }

        /* Metro UI App List - Enhanced */
        .metro-app-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        /* Metro UI App Tile */
        .app-item {
            background-color: #2b2b2b;
            display: flex;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            height: auto;
            position: relative;
            border: none;
            overflow: hidden;
        }

        .app-item:hover {
            background-color: #3c3c3c;
            transform: translateY(-4px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }

        .app-item:active {
            background-color: #4a4a4a;
            transform: translateY(-2px);
        }

        .app-item.featured {
            border-left: 8px solid #ffb900;
        }

        /* App Icon - Metro UI Square */
.app-icon-container {
    width: 180px;
    background-color: #8B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}
        .app-icon-container:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        }

        .app-icon-container img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

        /* App Info - Metro UI Text Alignment */
        .app-info-container {
            padding: 25px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .app-title {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 10px;
            color: white;
            letter-spacing: 0.3px;
            line-height: 1.2;
        }

        .app-publisher {
            font-size: 14px;
            color: #a6a6a6;
            margin-bottom: 15px;
            font-weight: 400;
        }

.app-description {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* was 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}
        .app-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
        }

        .app-version {
            font-size: 13px;
            color: #888;
            font-weight: 300;
        }
.app-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-meta span {
    background-color: rgba(255,255,255,0.06);
    padding: 4px 8px;
    border-radius: 2px;
}


        /* Metro UI Button */
        .download-btn {
            background-color: #8B0000;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            min-height: 36px;
            min-width: 120px;
            justify-content: center;
        }

        .download-btn:hover {
            background-color: #7A0000;
            transform: translateY(-1px);
        }

        .download-btn:active {
            background-color: #0c5c0c;
            transform: translateY(0);
        }

        /* App Detail Page - Metro UI */
        .app-detail-page {
            display: none;
            position: fixed;
            top: 48px;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #1d1d1d;
            z-index: 900;
            overflow-y: auto;
        }

        .detail-header {
            background: linear-gradient(135deg, #8B0000 0%, #7A0000 100%);
            padding: 50px 40px;
            display: flex;
            align-items: center;
            border: none;
        }

        .detail-icon {
            width: 160px;
            height: 160px;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 40px;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .detail-icon:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
        }

        .detail-icon img {
            width: 100px;
            height: 100px;
            object-fit: contain;
        }

        .detail-header-info {
            flex: 1;
        }

        .detail-title {
            font-size: 40px;
            font-weight: 100;
            margin-bottom: 12px;
            color: white;
            letter-spacing: 0.5px;
            line-height: 1.1;
        }

        .detail-publisher {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 16px;
            font-weight: 300;
        }

        .detail-version {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 20px;
            font-weight: 300;
        }

        /* Metro UI Primary Button */
        .detail-download-btn {
            background-color: #ffffff;
            color: #8B0000;
            border: none;
            padding: 16px 32px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
            min-height: 48px;
            min-width: 200px;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .detail-download-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }

        .detail-download-btn:active {
            background-color: #e0e0e0;
            transform: translateY(0);
        }

        .detail-content {
            padding: 50px;
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 50px;
        }

        .detail-section {
            margin-bottom: 40px;
        }

        .detail-section h3 {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 20px;
            color: #ffffff;
            padding-bottom: 12px;
            border-bottom: 2px solid #8B0000;
            letter-spacing: 0.3px;
        }

        .detail-section p {
            font-size: 16px;
            line-height: 1.7;
            color: #cccccc;
            font-weight: 300;
        }

        .screenshots {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding: 15px 0;
            margin: 0 -5px;
        }

        .screenshot {
            width: 280px;
            height: 210px;
            background-color: #2b2b2b;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 16px;
            font-weight: 300;
            border: none;
            transition: all 0.2s ease;
        }

        .screenshot:hover {
            background-color: #3c3c3c;
        }

        .detail-info-list {
            list-style: none;
        }

        .detail-info-list li {
            padding: 16px 0;
            border-bottom: 1px solid #3c3c3c;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .detail-info-list .label {
            color: #a6a6a6;
            font-size: 15px;
            font-weight: 400;
        }

        .detail-info-list .value {
            color: #ffffff;
            font-weight: 500;
            font-size: 15px;
        }

        /* Metro UI Scrollbar */
        ::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }

        ::-webkit-scrollbar-track {
            background: #2b2b2b;
        }

        ::-webkit-scrollbar-thumb {
            background: #8B0000;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #7A0000;
        }

        /* Utilities */
        .hidden {
            display: none;
        }

        /* Loading State - Metro UI */
        .loading {
            text-align: center;
            padding: 80px 20px;
            color: #a6a6a6;
        }

        .loading-spinner {
            font-size: 56px;
            margin-bottom: 25px;
            color: #8B0000;
            animation: spin 1.5s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading p {
            font-size: 18px;
            font-weight: 300;
            margin: 8px 0;
        }

        /* No Results - Metro UI */
        .no-results {
            text-align: center;
            padding: 80px 20px;
            color: #a6a6a6;
        }

        .no-results i {
            font-size: 56px;
            margin-bottom: 25px;
            opacity: 0.5;
            color: #8B0000;
        }

        .no-results h3 {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 15px;
        }

        .no-results p {
            font-size: 16px;
            font-weight: 300;
        }

        /* Error State - Metro UI */
        .error-state {
            text-align: center;
            padding: 80px 20px;
            color: #ff6b6b;
        }

        .error-state i {
            font-size: 56px;
            margin-bottom: 25px;
        }

        .error-state h3 {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 15px;
        }

        .error-state p {
            font-size: 16px;
            font-weight: 300;
            margin: 8px 0;
            color: #cccccc;
        }

        /* Metro UI Retry Button */
        .retry-btn {
            background-color: #8B0000;
            color: white;
            border: none;
            padding: 14px 28px;
            margin-top: 25px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s ease;
        }

        .retry-btn:hover {
            background-color: #7A0000;
            transform: translateY(-1px);
        }

        /* Footer - Metro UI */
        .footer {
            background-color: #2b2b2b;
            padding: 30px;
            text-align: center;
            color: #a6a6a6;
            font-size: 14px;
            margin-top: 50px;
            border-top: 1px solid #3c3c3c;
        }

        .footer p {
            margin: 8px 0;
            font-weight: 300;
        }

        /* Metro UI Typography Improvements */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 100 !important;
        }

        /* Better Text Alignment */
        .app-title, .app-publisher, .app-description, .app-version {
            text-align: left;
        }

        .detail-title, .detail-publisher, .detail-version {
            text-align: left;
        }

        .detail-section p, .detail-section h3 {
            text-align: left;
        }

        /* Metro UI Spacing */
        .app-info-container > * {
            margin-bottom: 12px;
        }

        .app-info-container > *:last-child {
            margin-bottom: 0;
        }

        /* Metro UI Shadows */
        .app-item, .detail-icon, .detail-download-btn, .screenshot {
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
