* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; overflow-x: hidden; }
body { background-color: #0b0c10; color: #ffffff; min-height: 100vh; display: flex; justify-content: center; position: relative; }

/* --- EFEK GLOWING BACKGROUND --- */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.6; animation: float 10s infinite alternate; }
.blob-1 { width: 300px; height: 300px; background: #4a00e0; top: -5%; left: -10%; }
.blob-2 { width: 250px; height: 250px; background: #8e2de2; top: 40%; right: -10%; }
.blob-3 { width: 300px; height: 300px; background: #00d2ff; bottom: -10%; left: 10%; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 50px) scale(1.1); } }

.app-container { width: 100%; max-width: 420px; padding: 20px; padding-bottom: 100px; position: relative; z-index: 1; }

/* --- LIQUID GLASS MURNI --- */
.glass-panel { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); transition: all 0.3s ease; }

/* --- NAVIGASI --- */
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- HEADER --- */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: #00d2ff; }
.logo-icon { color: #00d2ff; }
.header-actions { display: flex; gap: 10px; }
.profile-icon { width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; border-radius: 50%; position: relative; cursor: pointer; color: #00d2ff; text-decoration: none; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: #ff007f; color: white; font-size: 0.7rem; font-weight: 800; padding: 2px 6px; border-radius: 50%; }

/* --- HERO CARD --- */
.hero-card { padding: 25px; margin-bottom: 15px; background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(0, 210, 255, 0.2)); border: 1px solid rgba(255,255,255,0.3); }
.hero-title { font-size: 2rem; font-weight: 800; margin-bottom: 5px; }
.hero-title span { color: #00d2ff; }
.hero-subtitle { font-size: 0.85rem; color: #e2e8f0; line-height: 1.4; }

/* --- SEARCH & TABS --- */
.search-bar { display: flex; align-items: center; padding: 12px 15px; margin-bottom: 15px; border-radius: 15px; background: rgba(0,0,0,0.3); }
.search-bar i { color: #00d2ff; margin-right: 10px; }
.search-bar input { background: transparent; border: none; outline: none; color: white; width: 100%; font-family: 'Poppins', sans-serif; }
.category-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 15px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 8px 15px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: #cbd5e1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); white-space: nowrap; }
.tab-btn.active { background: rgba(0, 210, 255, 0.3); color: white; border-color: #00d2ff; }

/* --- PRODUK & CARD --- */
.section-title h2 { font-size: 1.2rem; margin-bottom: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.product-card { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)); }
.product-img { height: 80px; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.product-img img { height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.product-info h3 { font-size: 0.9rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { color: #00d2ff; font-weight: 800; margin-bottom: 10px; }
.btn-buy { width: 100%; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 8px; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.btn-buy:hover { background: rgba(255,255,255,0.2); }
.empty-state { text-align: center; padding: 40px 20px; color: #94a3b8; }
.empty-state i { font-size: 3rem; margin-bottom: 15px; color: #00d2ff; }

/* --- FORM & INPUT --- */
.form-card { padding: 20px; }
.form-card h3 { margin-bottom: 15px; font-size: 1.1rem; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: #cbd5e1; }
.input-group input, .input-group select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: white; outline: none; }
.input-group input:focus { border-color: #00d2ff; }
.input-group select option { background: #0b0c10; }

/* --- PEMBAYARAN --- */
.btn-back { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; }
.page-title { font-size: 1.3rem; }
.payment-method { padding: 15px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.2); margin-bottom: 10px; }
.payment-method.active { border-color: #00d2ff; background: rgba(0, 210, 255, 0.15); box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); }
.payment-details { display: none; border-radius: 15px; background: rgba(0,0,0,0.4); }
.payment-detail-box { display: none; }
.payment-detail-box.active { display: block; }
.checkout-action { padding: 20px; background: linear-gradient(135deg, rgba(0, 85, 255, 0.2), rgba(0, 210, 255, 0.2)); }
.btn-primary { background: linear-gradient(135deg, #0055ff, #00d2ff); color: white; border: none; padding: 12px 20px; border-radius: 12px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }

/* --- LIST & ITEM --- */
.list-container { display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; align-items: center; padding: 15px; gap: 15px; background: rgba(255,255,255,0.05); }
.cart-item img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; }
.cart-item-info p { color: #00d2ff; font-weight: 800; font-size: 0.9rem; }
.btn-delete { background: rgba(255, 51, 51, 0.8); color: white; border: none; width: 35px; height: 35px; border-radius: 10px; cursor: pointer; }

/* --- SUKSES --- */
.success-icon { font-size: 4rem; color: #00ff88; margin-bottom: 15px; text-shadow: 0px 0px 20px rgba(0, 255, 136, 0.5); }
.code-box { background: rgba(0,0,0,0.4); border: 1px dashed #00d2ff; padding: 15px; border-radius: 12px; margin-top: 15px; }

/* --- DETAIL GAMBAR (BIAR GAK KEGEDEAN) --- */
.detail-card { padding: 20px; text-align: center; margin-bottom: 20px; }
.detail-img { 
    width: 100%; 
    max-width: 200px; /* Maksimal lebar gambar 200px */
    height: 200px; /* Tinggi fix 200px */
    object-fit: contain; /* Biar gambar gak gepeng */
    border-radius: 15px; 
    margin: 0 auto 15px; 
    border: 1px solid rgba(255,255,255,0.2); 
    background: rgba(0,0,0,0.2);
}
.detail-title { font-size: 1.5rem; margin-bottom: 5px; }
.detail-desc { font-size: 0.9rem; color: #cbd5e1; margin-top: 15px; line-height: 1.5; }

/* --- BOTTOM NAVIGATION (FIXED & PURE GLASSMORPHISM) --- */
.bottom-nav { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 380px; height: 65px; display: flex; justify-content: space-around; align-items: center; padding: 0 10px; border-radius: 35px; z-index: 100; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); }
.nav-item { color: #64748b; font-size: 1.3rem; text-decoration: none; display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; border-radius: 50%; transition: 0.3s; }
.nav-item.active { color: #00d2ff; background: rgba(0, 210, 255, 0.1); text-shadow: 0 0 10px rgba(0, 210, 255, 0.8); }
.center-btn { background: #25D366; color: white; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.8rem; border: 4px solid #0b0c10; margin-top: -25px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5); }
.toast { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: #00d2ff; color: #000; padding: 10px 20px; font-weight: 800; z-index: 1000; transition: 0.3s; border-radius: 10px; }
.toast.show { top: 20px; }