:root {
    --bg-dark: #0b1f14;
    --bg-card: #123321;
    --bg-card-2: #0e2818;
    --border-col: #1c3d28;
    --gold: #f5c542;
    --text-light: #f5f9f5;
    --text-muted: #8fd8a8;
    --text-body: #c9e8d4;
    --green-accent: #5dcaa5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 70px;
    min-height: 100vh;
    position: relative;
}

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}
.topbar .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}
.topbar .logo span { color: var(--text-light); }
.topbar i { font-size: 20px; color: var(--text-body); }

/* Hero */
.hero {
    margin: 12px 16px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
    border-radius: 14px;
    padding: 18px;
}
.hero .eyebrow { color: var(--text-body); font-size: 13px; }
.hero h1 { color: var(--text-light); font-size: 22px; margin: 4px 0 8px; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; margin: 0; }

/* Stat grid */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 16px 18px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px 4px;
    text-align: center;
}
.stat-card .value { color: var(--text-light); font-size: 16px; font-weight: 700; }
.stat-card .label { color: var(--text-muted); font-size: 10px; margin-top: 2px; }

/* Section header */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 16px 10px;
}
.section-head h2 { font-size: 15px; color: var(--text-light); margin: 0; }
.section-head a { color: var(--green-accent); font-size: 12.5px; }

/* App card */
.app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    margin: 0 16px 10px;
}
.app-card .icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--border-col);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 700; font-size: 16px;
    flex-shrink: 0; overflow: hidden;
}
.app-card .icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card .info { flex: 1; min-width: 0; }
.app-card .info .name { color: var(--text-light); font-size: 14px; font-weight: 600; }
.app-card .info .meta { color: var(--text-muted); font-size: 11px; margin-top: 3px; }
.app-card .badge {
    display: inline-block;
    background: rgba(245,197,66,0.15);
    color: var(--gold);
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}
.btn-download {
    background: var(--gold);
    color: #1a2e1f;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    cursor: pointer;
}

/* Category chips */
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 16px 16px; padding-bottom: 4px; }
.chip {
    background: var(--bg-card);
    color: var(--text-body);
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}
.chip.active { background: var(--gold); color: #1a2e1f; font-weight: 600; }

/* Search box */
.search-box {
    margin: 4px 16px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px 12px;
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 13px;
    flex: 1;
}
.search-box i { color: var(--text-muted); }

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: var(--bg-card-2);
    border-top: 1px solid var(--border-col);
}
.bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-muted); font-size: 9px;
}
.bottom-nav .nav-item.active { color: var(--gold); }
.bottom-nav .nav-item i { font-size: 18px; }

/* Detail page */
.detail-banner { width: 100%; height: 160px; object-fit: cover; background: var(--bg-card); }
.detail-header { display: flex; gap: 14px; padding: 16px; align-items: center; }
.detail-header .icon { width: 64px; height: 64px; border-radius: 14px; background: var(--border-col); flex-shrink: 0; overflow: hidden; }
.detail-header .icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-header h1 { font-size: 17px; margin: 0 0 4px; color: var(--text-light); }
.detail-header .meta { font-size: 11.5px; color: var(--text-muted); }
.detail-body { padding: 0 16px; color: var(--text-body); font-size: 13px; line-height: 1.7; }
.detail-cta { padding: 16px; }
.btn-primary-full {
    display: block; width: 100%; text-align: center;
    background: var(--gold); color: #1a2e1f; font-weight: 700;
    padding: 13px; border-radius: 10px; font-size: 14px; border: none; cursor: pointer;
}
