/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #dfe6e9;
    --lighter: #f5f6fa;
    --white: #ffffff;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
    --gradient-3: linear-gradient(135deg, #fd79a8 0%, #fab1a0 100%);
    --gradient-hero: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #6c5ce7 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--lighter);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: rgba(108, 92, 231, 0.1);
    padding: 6px 0;
    text-align: center;
    font-size: 13px;
    color: var(--light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 11px;
    color: var(--secondary);
    display: block;
    margin-top: -3px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav a {
    color: var(--light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--white);
    background: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Search Bar */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.header-search:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
}

.header-search input {
    background: none;
    border: none;
    color: var(--white);
    font-size: 14px;
    width: 200px;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search button {
    background: var(--primary);
    border: none;
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.header-search button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* ===== AD CONTAINERS - OPTIMIZED ===== */
.ad-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.ad-unit-label {
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* Leaderboard Top */
.ad-leaderboard-top {
    background: linear-gradient(to right, rgba(108,92,231,0.03), rgba(108,92,231,0.08), rgba(108,92,231,0.03));
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(108,92,231,0.1);
}

/* In-Content Ads */
.ad-in-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px auto;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Sidebar Ads */
.ad-sidebar-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.ad-sidebar-sticky {
    position: sticky;
    top: 90px;
}

/* Native Ad */
.ad-native-wrapper {
    background: linear-gradient(to right, rgba(0,206,201,0.05), rgba(108,92,231,0.05));
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px auto;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Footer Ad */
.ad-footer-bar {
    background: rgba(45,52,54,0.95);
    padding: 10px;
    text-align: center;
}

/* Floating Bottom Ad */
.ad-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--white);
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sticky-bottom .close-sticky-ad {
    position: absolute;
    top: -12px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* Between Items Ad */
.ad-between {
    grid-column: 1 / -1;
    background: linear-gradient(to right, rgba(108,92,231,0.03), rgba(253,121,168,0.05), rgba(108,92,231,0.03));
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    border: 1px dashed rgba(108,92,231,0.2);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero h2 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 650px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: none;
    color: var(--white);
    font-size: 16px;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.hero-search button {
    padding: 16px 35px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat h3 {
    font-size: 32px;
    color: var(--white);
    font-weight: 800;
}

.hero-stat p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

/* ===== SECTION TITLES ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.section-title h2 .icon.purple { background: rgba(108,92,231,0.1); }
.section-title h2 .icon.green { background: rgba(0,206,201,0.1); }
.section-title h2 .icon.pink { background: rgba(253,121,168,0.1); }

.see-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.see-all:hover {
    color: var(--primary-dark);
}

/* ===== APP GRID ===== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.app-card-header {
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.app-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.app-card-info .developer {
    font-size: 12px;
    color: var(--dark-light);
}

.app-card-body {
    padding: 0 20px 15px;
}

.app-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.tag-category {
    background: rgba(108,92,231,0.1);
    color: var(--primary);
}

.tag-version {
    background: rgba(0,206,201,0.1);
    color: var(--secondary);
}

.tag-size {
    background: rgba(253,121,168,0.1);
    color: var(--accent);
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #fdcb6e;
    font-size: 13px;
}

.rating-text {
    font-size: 13px;
    color: var(--dark-light);
}

.app-card-footer {
    padding: 12px 20px;
    background: var(--lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-count {
    font-size: 12px;
    color: var(--dark-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-download {
    background: var(--gradient-1);
    color: var(--white);
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(108,92,231,0.35);
}

/* Badge */
.app-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-hot {
    background: var(--danger);
    color: var(--white);
}

.badge-updated {
    background: var(--primary);
    color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
    padding: 50px 0;
}

.section-alt {
    background: var(--white);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.category-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.cat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.cat-icon.c1 { background: rgba(108,92,231,0.1); }
.cat-icon.c2 { background: rgba(0,206,201,0.1); }
.cat-icon.c3 { background: rgba(253,121,168,0.1); }
.cat-icon.c4 { background: rgba(253,203,110,0.1); }
.cat-icon.c5 { background: rgba(0,184,148,0.1); }
.cat-icon.c6 { background: rgba(214,48,49,0.15); }

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.category-card p {
    font-size: 12px;
    color: var(--dark-light);
}

/* ===== TRENDING LIST ===== */
.trending-list {
    display: grid;
    gap: 12px;
}

.trending-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.trending-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateX(5px);
}

.trend-rank {
    font-size: 28px;
    font-weight: 900;
    min-width: 45px;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trend-rank.gold {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trend-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.trend-info {
    flex: 1;
}

.trend-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.trend-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--dark-light);
}

.trend-action .btn-download {
    padding: 8px 20px;
    font-size: 12px;
}

/* ===== PAGE HEADER ===== */
.page-hero {
    background: var(--gradient-hero);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 42px;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--secondary);
}

/* ===== LAYOUT WITH SIDEBAR ===== */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

.layout-sidebar.sidebar-left {
    grid-template-columns: 250px 1fr;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lighter);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--dark-light);
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background: rgba(108,92,231,0.08);
    color: var(--primary);
    padding-left: 18px;
}

.sidebar-menu li a .menu-icon {
    font-size: 18px;
}

.sidebar-menu li a .count {
    margin-left: auto;
    background: var(--lighter);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

/* ===== DOWNLOAD PAGE ===== */
.dl-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.dl-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    box-shadow: var(--shadow-md);
}

.dl-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.dl-developer {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dl-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.dl-meta-item {
    text-align: center;
    padding: 8px 15px;
    background: var(--lighter);
    border-radius: var(--radius-sm);
}

.dl-meta-item strong {
    display: block;
    font-size: 16px;
    color: var(--dark);
}

.dl-meta-item span {
    font-size: 11px;
    color: var(--dark-light);
}

.dl-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-dl-main {
    background: var(--gradient-1);
    color: var(--white);
    padding: 14px 40px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dl-main:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(108,92,231,0.4);
}

.btn-dl-alt {
    background: var(--lighter);
    color: var(--dark);
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--light);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-dl-alt:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Download Info Box */
.dl-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.dl-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid var(--lighter);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    font-size: 14px;
}

.info-table td:first-child {
    color: var(--dark-light);
    font-weight: 600;
    width: 150px;
}

.info-table td:last-child {
    color: var(--dark);
}

/* Screenshots */
.screenshots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.screenshots img {
    width: 200px;
    height: 356px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
    background: var(--lighter);
}

/* Install Guide */
.install-steps {
    counter-reset: step;
    list-style: none;
}

.install-steps li {
    counter-increment: step;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--lighter);
}

.install-steps li:last-child {
    border-bottom: none;
}

.install-steps li::before {
    content: counter(step);
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.install-steps li p {
    color: var(--dark-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Related Apps */
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lighter);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item .r-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.related-item .r-info {
    flex: 1;
}

.related-item .r-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.related-item .r-info span {
    font-size: 12px;
    color: var(--dark-light);
}

.related-item .r-dl {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.about-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.about-main h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.about-main h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 25px 0 12px;
}

.about-main p {
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.check-list {
    list-style: none;
    margin: 15px 0;
}

.check-list li {
    padding: 10px 0;
    color: var(--dark-light);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--lighter);
}

.check-list li .check {
    color: var(--success);
    font-size: 18px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: var(--lighter);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-card h4 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 12px;
    color: var(--dark-light);
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feat-card .feat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(108,92,231,0.1);
}

.feat-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 13px;
    color: var(--dark-light);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.contact-form-box h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--lighter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
}

.btn-submit {
    background: var(--gradient-1);
    color: var(--white);
    padding: 16px 45px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.35);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
}

.c-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lighter);
}

.c-info-item:last-child {
    border-bottom: none;
}

.c-info-item .ci-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(108,92,231,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.c-info-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.c-info-item p {
    font-size: 13px;
    color: var(--dark-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    margin-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-search {
        display: none;
    }

    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .dl-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .dl-meta {
        justify-content: center;
    }
    
    .dl-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: var(--shadow-xl);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero-stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
        justify-content: center;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-item {
        flex-wrap: wrap;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-hero h1 {
        font-size: 32px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 26px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card,
.category-card,
.trending-item,
.feat-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.2s; }
.app-card:nth-child(4) { animation-delay: 0.3s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lighter);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Padding for sticky bottom ad */
body {
    padding-bottom: 70px;
}