:root {
    --bg-dark: #090B10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #6d5dfc;
    --secondary: #e44dff;
    --accent: #00f2ff;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.premium-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    filter: blur(4px) brightness(0.6);
    z-index: -3;
    animation: driftBg 30s linear infinite alternate;
}
@keyframes driftBg {
    from { transform: scale(1.0); }
    to { transform: scale(1.1); }
}

.glass-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, rgba(9, 11, 16, 0.8) 0%, rgba(9, 11, 16, 0.95) 100%);
    z-index: -2;
}

.ambient-glow {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(109, 93, 252, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(228, 77, 255, 0.2) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.container {
    max-width: 600px; /* Kept very narrow for a phone-like App Store feel on Desktop too */
    margin: 0 auto;
    padding: 0 20px;
}

/* Minimal Top Bar */
.top-bar {
    text-align: center;
    padding: 30px 0 20px;
}

.live-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #fff, #a78bfa, #00f2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineTitle 4s linear infinite;
    position: relative;
    text-shadow: 0 5px 15px rgba(109, 93, 252, 0.4);
}
@keyframes shineTitle {
    to { background-position: 200% center; }
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

/* App Tile */
.app-tile {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.app-tile::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: shineGlass 5s infinite;
}
@keyframes shineGlass {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.app-tile:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.05);
}

.app-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 16px;
}
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Custom Highlights */
#tile-brawl:hover { box-shadow: 0 15px 30px rgba(250, 204, 21, 0.15); border-color: rgba(250, 204, 21, 0.4); }
#tile-clash:hover { box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }
#tile-roblox:hover { box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); }
#tile-minecraft:hover { box-shadow: 0 15px 30px rgba(163, 230, 53, 0.15); border-color: rgba(163, 230, 53, 0.4); }
#tile-fortnite:hover { box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15); border-color: rgba(0, 229, 255, 0.4); }
#tile-fcmobile:hover { box-shadow: 0 15px 30px rgba(0, 230, 118, 0.15); border-color: rgba(0, 230, 118, 0.4); }
#tile-valorant:hover { box-shadow: 0 15px 30px rgba(255, 70, 85, 0.15); border-color: rgba(255, 70, 85, 0.4); }

/* Badges for urgency */
.game-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 10;
    transform: rotate(5deg);
    animation: floatBadge 3s infinite ease-in-out;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
}

.badge-hot { background: linear-gradient(135deg, #ff4d4d, #f9cb28); border: 1px solid #ff4d4d; }
.badge-new { background: linear-gradient(135deg, #00E676, #00b35c); border: 1px solid #00E676; }
.badge-update { background: linear-gradient(135deg, #B500FF, #7000ff); border: 1px solid #B500FF; }
.badge-premium { background: linear-gradient(135deg, #FF4655, #9c1f28); border: 1px solid #FF4655; }

/* Trust Widget */
.trust-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 25px;
}
.trust-stars {
    display: flex;
    gap: 4px;
}
.trust-stars span {
    background: #00b67a;
    color: white;
    padding: 3px 4px;
    border-radius: 2px;
    font-size: 0.9rem;
    line-height: 1;
}
.trust-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.trust-text strong {
    color: #fff;
}

/* First tile spans full width for featured look */
.apps-grid .app-tile:nth-child(1) {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.apps-grid .app-tile:nth-child(1) .app-icon {
    margin-bottom: 0;
}

/* Notifications */
.hub-notif {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000; width: 90%; max-width: 400px;
}
.hub-notif-inner {
    background: rgba(8, 10, 16, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 12px 20px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-top: 3px solid var(--primary);
    text-align: center;
}
.hub-notif-badge {
    background: var(--primary); color: #fff;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 8px; border-radius: 10px;
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
}
.hub-notif-content { font-size: 0.95rem; margin-top: 5px; }
.hub-notif-game { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

footer {
    padding: 20px 0 40px;
}
footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Mobile Tweaks */
@media (max-width: 400px) {
    .apps-grid { gap: 12px; }
    .page-title { font-size: 1.4rem; }
}
