:root {
    --bg: #0a0a0a;
    --bg-card: #121212;
    --bg-input: #1a1a1a;
    --border: #2a2a2a;
    --gold: #ffd700;
    --gold-dim: #c9a227;
    --gold-glow: rgba(255, 215, 0, 0.25);
    --text: #f5f5f5;
    --text-muted: #999;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 14px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(70px + var(--safe-bottom));
    background: var(--bg);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--gold), #fff3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header .logo img {
    height: 36px;
    width: auto;
}

.header .status {
    font-size: 11px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header .status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--success);
}

/* ===== BANNER SLIDER ===== */
.banner-wrap {
    padding: 12px 12px 0;
}

.banner-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 16/9;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
}

.banner-dots span.active {
    background: var(--gold);
    width: 16px;
    border-radius: 4px;
}

/* ===== QUICK ACTIONS (big buttons) ===== */
.quick-actions {
    padding: 16px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}

.btn-main:active { transform: scale(0.98); }

.btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #e6b800 50%, #c9a227 100%);
    color: #111;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}

.btn-red-glow {
    background: linear-gradient(135deg, #ffd700, #e6b800);
    color: #111;
    box-shadow: 0 0 0 2px #c41e3a, 0 4px 20px var(--gold-glow);
}

/* ===== MENU GRID ===== */
.section {
    padding: 8px 12px 16px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.menu-card:active {
    border-color: var(--gold);
    background: #1a1600;
}

.menu-card i {
    font-size: 22px;
    color: var(--gold);
}

.menu-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ===== CONTENT CARDS ===== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.content-card img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #222;
}

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

.content-card .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.content-card .value {
    font-weight: 700;
    color: var(--gold);
    font-size: 15px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.badge-hot {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-rtp {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #0f0f0f;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + var(--safe-bottom));
    z-index: 100;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-muted);
    padding: 4px 12px;
    min-width: 60px;
}

.bottom-nav a.active,
.bottom-nav a:active {
    color: var(--gold);
}

.bottom-nav a i {
    font-size: 20px;
}

/* ===== DOWNLOAD PAGE ===== */
.download-page {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    background: radial-gradient(ellipse at top, #1a1500 0%, #0a0a0a 55%);
}

.download-page .logo-big {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--gold), #fff3a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-page .subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 24px;
}

.download-card .apk-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #111;
    box-shadow: 0 8px 30px var(--gold-glow);
}

.download-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.download-card .version {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffd700, #c9a227);
    color: #111;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px var(--gold-glow);
}

.btn-download:active { transform: scale(0.98); }

.download-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.5;
}

/* ===== MAINTENANCE ===== */
.maintenance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg);
}

.maintenance h1 {
    color: var(--gold);
    margin-bottom: 12px;
}

/* ===== UTILS ===== */
.empty-state {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
