:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --accent-start: #3b82f6;
    --accent-end: #8b5cf6;
    --success-start: #10b981;
    --success-end: #047857;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-darker); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Background Mesh Animation */
.background-mesh { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 40%); z-index: -1; animation: meshFlow 20s ease-in-out infinite alternate; pointer-events: none; }
@keyframes meshFlow { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(5deg) scale(1.1); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: #fff; }
.gradient-text { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu li { list-style: none; }
.nav-menu a { color: var(--text-secondary); font-weight: 500; font-size: 1rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--text-primary); }

/* Compact Hero */
.hero-compact { text-align: center; padding: 60px 20px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-compact h1 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.1; letter-spacing: -1px; }
.hero-compact p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 30px; }
.hero-search { width: 100%; max-width: 500px; margin: 0 auto; position: relative; }
.hero-search input { width: 100%; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-primary); padding: 16px 25px; border-radius: 50px; font-family: var(--font-body); font-size: 1.1rem; outline: none; transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.hero-search input:focus { background: rgba(255, 255, 255, 0.05); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.hero-search input::placeholder { color: #64748b; }

/* App Grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: 80px; }
.app-card { outline: none; border-radius: 16px; }
.app-card-glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 16px; backdrop-filter: blur(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.app-card:hover .app-card-glass { transform: translateY(-4px); background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); }
.app-icon { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #1e293b; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex-grow: 1; overflow: hidden; }
.app-info h3 { font-size: 1.05rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.app-info p { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.btn-sm { background: rgba(59, 130, 246, 0.1); color: var(--accent-start); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; }
.app-card:hover .btn-sm { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* Detail Page specific */
.detail-container { max-width: 800px; margin: 40px auto; }
.detail-glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; backdrop-filter: blur(16px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.detail-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--glass-border); }
.detail-icon { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; background: #1e293b; box-shadow: 0 10px 30px rgba(0,0,0,0.3); flex-shrink: 0; }
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-title h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.1; }
.badge { background: rgba(16, 185, 129, 0.15); color: #10b981; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* App Table */
.app-table-container { margin: 30px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.app-table { width: 100%; border-collapse: collapse; }
.app-table th, .app-table td { padding: 16px 20px; border-bottom: 1px solid var(--glass-border); text-align: left; font-size: 1rem; }
.app-table th { width: 35%; color: #94a3b8; font-weight: 500; }
.app-table td { color: #fff; font-weight: 600; }
.app-table tr:last-child th, .app-table tr:last-child td { border-bottom: none; }

/* Content Pages (SEO, Legal, Contact) */
.page-content { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; backdrop-filter: blur(10px); margin-bottom: 60px; margin-top: 40px;}
.page-content h1 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.page-content h2 { font-size: 1.8rem; margin-top: 40px; margin-bottom: 15px; color: #fff; }
.page-content h3 { font-size: 1.4rem; margin-top: 25px; margin-bottom: 10px; color: #e2e8f0; }
.page-content p { margin-bottom: 20px; font-size: 1.1rem; color: #cbd5e1; line-height: 1.7; }
.page-content ul, .page-content ol { margin-left: 20px; margin-bottom: 20px; color: #cbd5e1; font-size: 1.1rem; line-height: 1.7; }
.page-content li { margin-bottom: 10px; }

/* Button Download */
.btn-download { display: inline-block; background: linear-gradient(135deg, var(--success-start), var(--success-end)); color: white; padding: 18px 50px; border-radius: 50px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); transition: all 0.3s ease; text-align: center; }
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4); }

/* Navigation & Related Apps */
.app-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0; padding-top: 30px; border-top: 1px solid var(--glass-border); }
.nav-btn { display: flex; align-items: center; justify-content: center; padding: 12px 24px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-secondary); transition: all 0.3s; font-size: 0.95rem; font-weight: 500; flex: 1; text-align: center; }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.related-apps-section { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--glass-border); }
.related-apps-section h2 { font-size: 1.8rem; margin-bottom: 30px; text-align: center; color: #fff; }

/* Footer SEO */
.footer-seo { background: rgba(2, 6, 23, 0.95); border-top: 1px solid var(--glass-border); margin-top: 80px; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-about h3, .footer-links h3 { font-size: 1.3rem; margin-bottom: 20px; color: #fff; }
.footer-about p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-secondary); transition: color 0.3s; font-size: 1rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; color: #64748b; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.form-group input, .form-group textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); padding: 16px; border-radius: 12px; color: white; font-family: var(--font-body); font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-start); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.btn-submit { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); color: white; border: none; padding: 16px 30px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-start); }
::selection { background: rgba(59, 130, 246, 0.4); color: white; }

/* Mobile */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .hero-compact { padding: 40px 20px 20px; }
    .hero-compact h1 { font-size: 2.2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .detail-header { flex-direction: column; text-align: center; }
    .app-navigation { flex-direction: column; }
    .detail-glass, .page-content { padding: 25px; }
}
/* Star Rating UI */
.star-rating { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.stars-interactive { display: inline-flex; cursor: pointer; color: #475569; font-size: 1.2rem; }
.stars-interactive span { transition: color 0.2s; padding: 0 2px; }
.stars-interactive:hover span { color: #f59e0b; }
.stars-interactive span:hover ~ span { color: #475569; }
