/* ═══════════════════════════════════════════════════════════
   FAZZA PLAY — PROFESSIONAL REDESIGN 2025
   Dark-first, Store-grade UI
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Core Palette */
    --bg:           #080e1a;
    --bg2:          #0d1526;
    --bg3:          #111d33;
    --card:         #0d1829;
    --card-hover:   #111f38;
    --border:       rgba(255,255,255,0.07);
    --border-hover: rgba(99,179,237,0.35);
    
    /* Text */
    --text:         #f0f4ff;
    --text-muted:   #8899b0;
    --text-dim:     #4a5a70;
    
    /* Accent */
    --blue:         #3b82f6;
    --blue-light:   #60a5fa;
    --cyan:         #06b6d4;
    --purple:       #8b5cf6;
    --green:        #10b981;
    --orange:       #f59e0b;
    
    /* Gradients */
    --grad-brand:   linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --grad-card:    linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(6,182,212,0.04) 100%);
    --grad-hero:    linear-gradient(160deg, #0f1e38 0%, #080e1a 60%);
    
    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
    --shadow-hover: 0 16px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(59,130,246,0.15);
    --shadow-btn:  0 4px 16px rgba(59,130,246,0.35);
    
    /* Navbar */
    --nav-h: 70px;
}

/* Light Mode */
body.light-mode {
    --bg:         #f0f4ff;
    --bg2:        #e6ecf8;
    --bg3:        #dbe4f5;
    --card:       #ffffff;
    --card-hover: #f5f8ff;
    --border:     rgba(0,0,0,0.07);
    --border-hover: rgba(59,130,246,0.4);
    --text:       #0f172a;
    --text-muted: #475569;
    --text-dim:   #94a3b8;
    --grad-hero:  linear-gradient(160deg, #dbeafe 0%, #f0f4ff 60%);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(59,130,246,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════ NAVBAR ═══════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 14, 26, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

body.light-mode header {
    background: rgba(240, 244, 255, 0.88);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--nav-h);
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo */
.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(59,130,246,0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.logo-text span:last-child {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Nav Links */
.navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    flex: 1;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s var(--ease);
    position: relative;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.filter-btn.active {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* View Select */
.view-mode select {
    appearance: none;
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-family: 'Inter', 'Tajawal', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.view-mode select:hover, .view-mode select:focus {
    border-color: var(--blue);
}

/* Theme Toggle */
.theme-toggle-btn {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--grad-brand);
    border-radius: 50%;
    left: 4px;
    transition: transform 0.3s var(--ease);
    box-shadow: 0 2px 6px rgba(59,130,246,0.4);
}

body.light-mode .theme-toggle-btn::before {
    transform: translateX(24px);
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    position: absolute;
    width: 14px;
    height: 14px;
    transition: all 0.3s var(--ease);
    transform: translateY(-50%);
    top: 50%;
}

.theme-toggle-btn .sun-icon {
    right: 6px;
    color: var(--orange);
    opacity: 0;
}

.theme-toggle-btn .moon-icon {
    left: 6px;
    color: var(--blue-light);
    opacity: 1;
}

body.light-mode .theme-toggle-btn .sun-icon { opacity: 1; }
body.light-mode .theme-toggle-btn .moon-icon { opacity: 0; }

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
    background: var(--bg3);
    border: 1px solid var(--border);
}

.navbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* Search Bar */
.search-wrapper {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.search-container {
    position: relative;
    max-width: 600px;
}

#searchInput {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', 'Tajawal', sans-serif;
    outline: none;
    transition: all 0.25s var(--ease);
}

#searchInput::placeholder { color: var(--text-dim); }

#searchInput:focus {
    border-color: var(--blue);
    background: var(--bg3);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    pointer-events: none;
}

/* ═══════════════ HERO / STATS BANNER ═══════════════ */
.hero-stats {
    background: var(--grad-hero);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 28px;
    position: relative;
    overflow: hidden;
}

.hero-stats::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-headline h2 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-headline h2 span {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

.stats-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ═══════════════ CATEGORY PILLS ═══════════════ */
.category-section {
    padding: 24px 0 0;
}

.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--grad-brand);
    border-radius: 2px;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg2);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

/* ═══════════════ APPS GRID ═══════════════ */
.apps-section { padding: 20px 0 60px; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* ─── APP CARD ─── */
.app-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    overflow: hidden;
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    border-radius: var(--r-lg);
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.app-card:hover::before { opacity: 1; }

/* Card Top */
.card-top {
    padding: 20px 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.app-card img {
    width: 68px;
    height: 68px;
    border-radius: var(--r-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.card-info { flex: 1; min-width: 0; }

.app-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-family: 'Tajawal', sans-serif;
}

.app-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-family: 'Tajawal', sans-serif;
}

/* Badge */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 50px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-windows { background: rgba(59,130,246,0.15); color: var(--blue-light); border: 1px solid rgba(59,130,246,0.2); }
.badge-android { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-web     { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }

/* Card Actions */
.app-card-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s var(--ease);
    font-family: 'Inter', 'Tajawal', sans-serif;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.details-btn {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--border);
}

.details-btn:hover {
    background: var(--bg2);
    border-color: var(--blue);
    color: var(--blue-light);
}

.download-btn {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-btn);
    border: none;
}

.download-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}

/* ─── COMPACT LAYOUT ─── */
.apps-grid.layout-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.layout-compact .card-top { padding: 14px 14px 10px; gap: 10px; }
.layout-compact .app-card img { width: 50px; height: 50px; }
.layout-compact .app-card h3 { font-size: 0.85rem; }
.layout-compact .app-card p { display: none; }
.layout-compact .app-card-actions { padding: 0 12px 12px; }
.layout-compact .btn { padding: 8px 8px; font-size: 0.78rem; }

/* ─── LIST LAYOUT ─── */
.apps-grid.layout-list { grid-template-columns: 1fr; gap: 10px; }

.layout-list .app-card {
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.layout-list .card-top {
    flex: 1;
    align-items: center;
    padding: 14px 16px;
}

.layout-list .app-card img { width: 52px; height: 52px; }
.layout-list .app-card h3 { white-space: normal; }
.layout-list .app-card p { -webkit-line-clamp: 1; }

.layout-list .app-card-actions {
    padding: 14px 16px;
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
    width: 220px;
}

/* ═══════════════ NO RESULTS ═══════════════ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-dim);
    margin: 0 auto 16px;
    display: block;
}

.no-results h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

/* ═══════════════ AD UNITS ═══════════════ */
.fazza-ad-unit {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 28px auto !important;
    min-height: 90px !important;
    width: 100% !important;
    background: var(--bg2) !important;
    border-radius: var(--r-md) !important;
    border: 1px solid var(--border) !important;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-brand);
    opacity: 0.6;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    align-items: flex-start;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: all 0.2s var(--ease);
}

.footer-nav a:hover {
    color: var(--text);
    border-color: var(--blue);
    background: rgba(59,130,246,0.08);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: all 0.25s var(--ease);
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 8px 20px rgba(59,130,246,0.2);
}

.social-links a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s var(--ease);
    z-index: 999;
    border: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59,130,246,0.5);
}

/* ─── VISUALLY HIDDEN ─── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════ SKELETON LOADER ═══════════════ */
.skeleton {
    background: var(--bg3);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .stats-row { gap: 16px; }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    
    .navbar { padding: 0 16px; gap: 12px; }
    
    .navbar-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 6px;
        z-index: 999;
    }
    
    .navbar-links.active { display: flex; }
    .navbar-toggle { display: flex; }
    
    .view-mode select { display: none; }
    
    .apps-grid { grid-template-columns: 1fr; gap: 12px; }
    
    .layout-list .app-card-actions { width: 160px; flex-direction: column; }
    
    .search-wrapper { padding: 12px 16px; }
    
    .container { padding: 0 16px; }
    
    .back-to-top-btn { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .apps-grid:not(.layout-list) .app-card {
        flex-direction: row;
        align-items: center;
    }
    
    .apps-grid:not(.layout-list) .card-top {
        flex: 1;
        border-bottom: none;
    }
    
    .apps-grid:not(.layout-list) .app-card img { width: 56px; height: 56px; }
    
    .apps-grid:not(.layout-list) .app-card-actions {
        padding: 0 12px 12px;
        flex-direction: row;
    }
    
    .hero-stats { padding: 20px 0 18px; }
    .stat-num { font-size: 1.3rem; }
    .stats-row { gap: 12px; }
}

/* ─── APP DETAIL PAGE STYLES ─── */
.app-page-main {
    min-height: calc(100vh - var(--nav-h));
    background: var(--bg);
    padding: 0;
}

.app-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* App Header Section */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0 60px;
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
    border-radius: var(--r-xl);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0.05;
    border-radius: var(--r-xl);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--r-lg);
    object-fit: cover;
    border: 3px solid var(--border);
    background: var(--bg3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.app-title-group {
    position: relative;
    z-index: 2;
}

.app-title-group h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.app-title-group p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

/* App Description Section */
.app-description {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.app-description h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-description h2::before {
    content: '📱';
    font-size: 1.2rem;
}

.app-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.app-description p:last-child {
    margin-bottom: 0;
}

/* App Download Section */
.app-download-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.app-download-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.app-download-section h2::before {
    content: '⬇️';
    font-size: 1.2rem;
}

.download-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--grad-brand);
    color: white;
    padding: 18px 40px;
    border-radius: var(--r-lg);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-btn);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.download-button-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.download-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59,130,246,0.4);
}

.download-button-large:hover::before {
    opacity: 1;
}

.download-button-large:active {
    transform: translateY(-1px);
}

/* Header Styles */
header {
    background: rgba(8, 14, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.logo-link span:first-child {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    background: var(--bg3);
    color: var(--text);
    padding: 10px 20px;
    border-radius: var(--r-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    border: 1px solid var(--border);
}

.back-btn:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design for App Pages */
@media (max-width: 768px) {
    .app-details {
        padding: 20px 16px;
    }

    .app-header {
        padding: 30px 20px 40px;
        margin-bottom: 30px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .app-title-group h1 {
        font-size: 2rem;
    }

    .app-title-group p {
        font-size: 1rem;
    }

    .app-description {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .app-description h2 {
        font-size: 1.3rem;
    }

    .app-download-section {
        padding: 30px 20px;
    }

    .app-download-section h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .download-button-large {
        padding: 16px 30px;
        font-size: 1rem;
        min-width: 180px;
    }

    header .container {
        padding: 16px;
    }

    .logo-link {
        font-size: 1.3rem;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 25px 16px 35px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .app-title-group h1 {
        font-size: 1.8rem;
    }

    .app-title-group p {
        font-size: 0.95rem;
    }

    .app-description {
        padding: 25px 16px;
    }

    .app-description h2 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .app-download-section {
        padding: 25px 16px;
    }

    .app-download-section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .download-button-large {
        padding: 14px 25px;
        font-size: 0.95rem;
        min-width: 160px;
    }
}
