* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Nunito', sans-serif; background-color: #f8fafc; margin: 0; padding: 0; min-height: 100vh; }
.app-container { width: 100%; max-width: 600px; min-height: 100vh; margin: 0 auto; background-color: #f8fafc; padding: 20px 20px 110px; position: relative; overflow-x: hidden; }

/* CSS UNTUK HALAMAN SINGLE PAGE (SPA) - Mulus Tanpa Loading! */
.page-section {
    display: none; /* Sembunyikan semua halaman secara default */
    width: 100%;
}
.page-section.active {
    display: block; /* Hanya tampilkan halaman yang aktif */
    animation: fadeIn 0.25s ease-out; /* Animasi mulus saat pindah halaman */
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Komponen */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; }
.page-title-header h2 { font-size: 22px; font-weight: 800; color: #0f172a; }
.diamond-badge { background: #ffffff; padding: 8px 18px; border-radius: 20px; font-weight: 800; font-size: 15px; color: #1e293b; border: 1.5px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.diamond-badge i { color: #c084fc; font-size: 16px; }
.notification { font-size: 24px; color: #1e293b; position: relative; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; }
.notification .dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; background: #ec4899; border-radius: 50%; }
.profile-card { background: linear-gradient(135deg, #cbf4f9 0%, #e0e7ff 50%, #fce7f3 100%); border-radius: 35px; padding: 50px 20px 24px; text-align: center; position: relative; margin-bottom: 30px; }
.avatar-container { width: 90px; height: 90px; background: #cbf4f9; border-radius: 50%; position: absolute; top: -45px; left: 50%; transform: translateX(-50%); border: 6px solid #f8fafc; box-shadow: 0 10px 20px rgba(0,0,0,0.08); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2) translateY(5px); }
.profile-card h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 6px; letter-spacing: -0.5px; }
.membership { font-size: 13px; color: #475569; font-weight: 700; margin-bottom: 24px; }
.profile-actions { display: flex; gap: 12px; }
.action-btn { background: #ffffff; flex: 1; border-radius: 24px; padding: 14px 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 15px rgba(0,0,0,0.03); }
.icon-box { width: 42px; height: 42px; border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 18px; }
.icon-box.blue { background: #e0f2fe; color: #3b82f6; }
.icon-box.pink { background: #fce7f3; color: #ec4899; }
.text-box { text-align: left; display: flex; flex-direction: column; }
.text-box .title { font-size: 15px; font-weight: 800; color: #0f172a; }
.text-box .desc { font-size: 10px; color: #94a3b8; font-weight: 700; }
.nav-tabs { display: flex; justify-content: space-between; margin-bottom: 24px; padding: 0 5px; }
.tab { padding: 10px 16px; font-size: 14px; font-weight: 800; color: #64748b; border-radius: 24px; cursor: pointer; transition: all 0.3s ease; text-transform: capitalize; }
.tab.active { background: #ffffff; color: #0f172a; box-shadow: 0 6px 12px rgba(0,0,0,0.04); }
.section-heading { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 16px; text-align: left; }
.player-list, .list-container { display: flex; flex-direction: column; gap: 14px; }
.player-card, .item-card-row { background: #ffffff; padding: 14px 20px; border-radius: 26px; display: flex; align-items: center; gap: 16px; box-shadow: 0 6px 15px rgba(0,0,0,0.02); }
.p-avatar { width: 50px; height: 50px; border-radius: 50%; background: #f1f5f9; }
.p-name { font-weight: 800; font-size: 15px; color: #0f172a; flex: 1; text-align: left; }
.p-score { font-size: 12px; color: #94a3b8; font-weight: 700; }
.p-icon { color: #334155; font-size: 18px; margin-left: 8px; }
.rank-number { font-size: 16px; font-weight: 900; width: 24px; }
.rank-number.gold { color: #eab308; }
.rank-number.silver { color: #94a3b8; }
.icon-circle-bg { width: 46px; height: 46px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; }
.icon-circle-bg.pink { background: #fce7f3; color: #ec4899; }
.icon-circle-bg.blue { background: #e0f2fe; color: #3b82f6; }
.item-details { flex: 1; text-align: left; }
.item-details h4 { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.item-details p { font-size: 12px; color: #94a3b8; font-weight: 600; }
.reward-tag { font-weight: 800; color: #ec4899; font-size: 14px; }
.reward-tag-btn { padding: 8px 16px; border-radius: 16px; font-size: 12px; font-weight: 800; cursor: pointer; }
.reward-tag-btn.claimable { background: #f3e8ff; color: #a855f7; }
.reward-tag-btn.buy { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }

/* Bottom Nav Dinamis (Tombol Aktif Membesar 100%) */
.bottom-nav { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 552px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); height: 76px; border-radius: 40px; display: flex; justify-content: space-around; align-items: center; box-shadow: 0 15px 35px rgba(0,0,0,0.06); padding: 0 10px; z-index: 1000; }
.nav-item { font-size: 24px; color: #cbd5e1; cursor: pointer; position: relative; display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.nav-item.active { background: linear-gradient(135deg, #c084fc, #f472b6); width: 66px; height: 66px; border-radius: 50%; color: #ffffff !important; font-size: 28px; transform: translateY(-22px); box-shadow: 0 12px 24px rgba(236, 72, 153, 0.35); border: 4px solid #f8fafc; }
.nav-item i { color: inherit; }
.nav-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; background: #ec4899; border-radius: 50%; }
.nav-item.active .nav-dot { display: none; }