@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0B0F19; 
    --bg-panel: #131B2F; 
    --bg-card: #1C2742;  
    --border-color: #2A3655;
    --accent-gold: #FBBF24; 
    --accent-gold-hover: #F59E0B;
    --text-main: #F8FAFC; 
    --text-muted: #94A3B8;
    --success: #10B981; --warning: #F59E0B; --danger: #EF4444;
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.text-center { text-align: center; } .text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); } .text-success { color: var(--success); }
.text-dark { color: #000 !important; }
.font-bold { font-weight: 700; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } 
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.w-100 { width: 100%; } .relative { position: relative; }
a { text-decoration: none; color: var(--accent-gold); cursor: pointer; transition: var(--transition);} 
a:hover { color: #FFF; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; border: none; cursor: pointer; transition: var(--transition); font-size: 0.95rem; }
.btn-gold { background: var(--accent-gold); color: #111; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2); } 
.btn-gold:hover { background: var(--accent-gold-hover); transform: translateY(-2px); }
.btn-outline-gold { background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); }
.btn-outline-gold:hover { background: rgba(251, 191, 36, 0.1); }
.btn-outline-light { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline-light:hover { border-color: var(--text-main); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-google { display: flex; gap: 10px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); }

.form-group { text-align: left; margin-bottom: 16px;}
.form-label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); font-weight: 600; }
.form-control { width: 100%; padding: 14px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-main); font-size: 1rem; transition: var(--transition);}
.form-control:focus { border-color: var(--accent-gold); outline: none; box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2); }
.select-custom { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBBF24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-size: 1.2em; background-position: calc(100% - 15px) center; background-repeat: no-repeat; }

.input-icon { position: absolute; right: 15px; top: 38px; cursor: pointer; opacity: 0.5; transition: var(--transition); user-select: none;}
.input-icon.active-eye { opacity: 1; filter: contrast(1.5) drop-shadow(0 0 3px var(--accent-gold)); transform: scale(1.1); }

.landing-page { animation: fadeIn 0.5s ease; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(11, 15, 25, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.nav-links { display: flex; gap: 10px; }
.hero-section { text-align: center; padding: 80px 20px; background: radial-gradient(circle at top, var(--bg-panel), var(--bg-main)); }
.badge-premium { display: inline-block; background: rgba(251, 191, 36, 0.1); color: var(--accent-gold); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(251, 191, 36, 0.3); }
.hero-section h1 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-section p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.stats-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 40px 5%; background: var(--bg-panel); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-gold); }
.stat-desc { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.auth-view { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at center, var(--bg-panel), var(--bg-main)); animation: fadeIn 0.4s ease; }
.auth-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px 30px; width: 100%; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); position: relative; }
.btn-back { position: absolute; top: 15px; left: 15px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.auth-logo { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: var(--text-muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider span { padding: 0 10px; }

.app-view { display: none; flex-direction: column; min-height: 100vh; max-width: 600px; margin: 0 auto; position: relative; background: var(--bg-main); box-shadow: 0 0 30px rgba(0,0,0,0.8); overflow-x: hidden; }
.main-content { flex: 1; padding-bottom: 0px; overflow-y: auto; scrollbar-width: none;}
.sub-view { display: none; animation: fadeIn 0.4s ease; } .sub-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.top-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 105; gap: 8px;}
.nav-icon-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); font-size: 1.2rem; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.nav-center-icons { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: flex-end; padding: 0 5px;}
.nav-center-icons::-webkit-scrollbar { display: none; }
.nav-badge { background: var(--bg-main); border: 1px solid var(--border-color); padding: 8px 10px; border-radius: 10px; font-size: 0.85rem; cursor: pointer; color: var(--text-main); display:flex; align-items:center; justify-content:center; white-space: nowrap; flex-shrink: 0;}
.nav-badge:hover { border-color: var(--accent-gold); }
.nav-tier { background: var(--bg-main); border: 1px solid var(--border-color); padding: 4px 8px; border-radius: 10px; font-size: 0.6rem; text-align: center; line-height: 1.2; white-space: nowrap; flex-shrink: 0;}
.dropdown-menu { display: none; position: absolute; top: 65px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.8); min-width: 140px; z-index: 1000;}
.dropdown-menu.show { display: block; animation: fadeIn 0.2s ease;}
.dropdown-item { padding: 12px 16px; cursor: pointer; transition: var(--transition); color: var(--text-main); font-size: 0.9rem; border-bottom: 1px solid var(--border-color); text-align: center;}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover, .dropdown-item.active { background: rgba(251, 191, 36, 0.1); color: var(--accent-gold); }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(2px);}
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar { position: fixed; top: 0; left: -100%; width: 280px; height: 100dvh; background: var(--bg-panel); z-index: 1001; transition: var(--transition); border-right: 1px solid var(--border-color); display: flex; flex-direction: column;}
.sidebar.active { left: 0; }
.sidebar-top { flex-shrink: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; padding-top: max(20px, env(safe-area-inset-top));}
.sidebar-profile { padding: 15px 15px 5px; text-align: center; } 
.profile-avatar { width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-gold), #EAB308); border-radius: 50%; margin: 0 auto 8px; display: flex; justify-content: center; align-items: center; font-size: 1.3rem; border: 3px solid var(--bg-card); box-shadow: 0 4px 10px rgba(251,191,36,0.3);}
.profile-balance { display: inline-block; background: var(--bg-main); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; margin-top: 5px; border: 1px solid var(--border-color); font-weight: 600;}
.sidebar-menu { flex: 1; overflow-y: auto; padding: 15px; scrollbar-width: none; }
.sidebar-menu::-webkit-scrollbar { display: none; }
.menu-group { margin-bottom: 12px; background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); } 
.menu-group-title { padding: 10px 15px; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-color); } 
.menu-list { list-style: none; }
.menu-item a { display: flex; align-items: center; padding: 10px 15px; color: var(--text-main); font-size: 0.9rem; border-left: 3px solid transparent;} 
.menu-item a:hover, .menu-item a.active { background: rgba(251, 191, 36, 0.05); border-left-color: var(--accent-gold); color: var(--accent-gold); }
.menu-icon { margin-right: 10px; font-size: 1.1rem; }
.badge-notif { background: var(--danger); color: #FFF; font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; margin-left: auto; }
.sidebar-bottom { flex-shrink: 0; padding: 15px; border-top: 1px solid var(--border-color); background: var(--bg-panel);}

.dashboard-wrapper { padding: 16px; }
.section-padding { padding: 16px; }
.card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; }
.card-inner { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--border-color); }
.promo-banner-img { background: linear-gradient(135deg, var(--bg-card), var(--border-color)); border-radius: 12px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border-color); position: relative; overflow: hidden;}
.bg-dark-slate { background: linear-gradient(90deg, #1E293B, #0F172A); }
.promo-banner-img::after { content:''; position:absolute; top:0; right:0; width:100px; height:100px; background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%); opacity: 0.1; }
.date-time-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 10px;}
.clock-badge { border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; background: var(--bg-main); font-family: monospace; color: var(--accent-gold); white-space: nowrap; flex-shrink: 0;}

.balance-cards-container { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.balance-cards-container::-webkit-scrollbar { display: none; }
.flex-1 { flex: 1; min-width: 110px;}
.flex-2 { flex: 1.8; min-width: 180px;}
.text-muted-sm { color: var(--text-muted); font-size: 0.75rem; }
.text-lg { font-size: 1.3rem; }
.text-xl { font-size: 1.2rem; }
.text-md { font-size: 0.95rem; }
.text-bold { font-weight: bold; }
.balance-card { background: rgba(251, 191, 36, 0.05); border-color: rgba(251, 191, 36, 0.3); display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.btn-plus { background: var(--accent-gold); border: none; color: #000; width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; font-weight:bold; flex-shrink: 0; display:flex; justify-content:center; align-items:center;}
.stats-grid-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 15px;}
.stat-box-dash { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; overflow: hidden;}
.stat-icon-dash { font-size: 1.3rem; background: var(--bg-main); padding: 8px; border-radius: 10px; border: 1px solid var(--border-color); flex-shrink: 0;}
.stat-label-dash { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; white-space: normal; line-height: 1.2; word-wrap: break-word;}
.stat-value-dash { font-size: 0.95rem; font-weight: bold; color: var(--text-main); word-wrap: break-word;}

.section-heading { border-left: 3px solid var(--accent-gold); padding-left: 10px; margin-bottom: 15px; }
.category-icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 10px; margin-bottom: 15px; }
.cat-icon { aspect-ratio: 1; border-radius: 12px; cursor: pointer; opacity: 0.8; transition: var(--transition); overflow: hidden; display: flex; justify-content: center; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color);}
.cat-icon:hover { opacity: 1; transform: scale(1.05); border-color: var(--accent-gold); box-shadow: 0 4px 10px rgba(251,191,36,0.2);}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.buat-pesanan-header { display: flex; align-items: center; gap: 15px; background: var(--bg-panel); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); }
.bp-icon { font-size: 1.8rem; background: var(--bg-card); padding: 10px; border-radius: 10px; flex-shrink: 0;}
.bp-title { font-size: 1.1rem; margin-bottom: 2px; font-weight: bold; }
.performa-box { background: var(--bg-main); border: 1px dashed var(--border-color); padding: 15px; border-radius: 12px; }
.performa-header { display: flex; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 5px;}
.performa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.perf-item { background: var(--bg-panel); padding: 12px; border-radius: 10px; border: 1px solid var(--border-color); }
.perf-val { font-size: 1.2rem; font-weight: bold; margin-top: 5px; }
.biaya-box { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; }
.biaya-header { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px; flex-wrap: wrap; gap: 5px;}
.biaya-content { display: flex; justify-content: space-between; font-size: 1.2rem; flex-wrap: wrap; gap: 5px;}
.btn-order { padding: 16px; font-size: 1.1rem; color:#000; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.custom-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; min-width: 400px; }
.custom-table th, .custom-table td { border-bottom: 1px solid var(--border-color); padding: 12px 10px; color: var(--text-main); }
.custom-table th { color: var(--accent-gold); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; }
.notif-row { display:flex; justify-content:space-between; border-bottom:1px solid var(--border-color); padding:10px 0; align-items: center;}

.floating-bot { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: var(--accent-gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); z-index: 90; cursor: pointer; transition: transform 0.3s ease; }
.floating-bot:hover { transform: scale(1.1); }
.ai-window-style { position:fixed; bottom:90px; right:20px; width:calc(100vw - 40px); max-width: 320px; height:450px; z-index:100; flex-direction:column; padding:0; border: 1px solid var(--accent-gold); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.ai-header { background: var(--bg-panel); padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; border-radius: 20px 20px 0 0; }
.ai-header-info { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width:35px; height:35px; background:var(--accent-gold); border-radius:50%; display:flex; justify-content:center; align-items:center; }
.ai-title { margin:0; font-size:1rem; color:var(--text-main); }
.ai-status { font-size:0.7rem; }
.ai-close-btn { width:30px; height:30px; background:transparent; }
.chat-box-container { flex:1; overflow-y:auto; padding:15px; display:flex; flex-direction:column; gap:10px; background: var(--bg-main); }
.ai-input-area { padding:10px; background:var(--bg-panel); border-top:1px solid var(--border-color); display:flex; gap:10px; border-radius: 0 0 20px 20px; }
.ai-input-field { padding:10px; border-radius:15px; flex: 1; min-width: 0;}
.ai-send-btn { padding:0; width:45px; border-radius:15px; color:#000; flex-shrink: 0;}
.chat-msg { display: flex; gap: 10px; margin-bottom: 10px; }
.chat-msg.user-msg { justify-content: flex-end; }
.msg-bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word;}
.ai-msg .msg-bubble { background: var(--bg-card); border-bottom-left-radius: 4px; border: 1px solid var(--border-color); }
.user-msg .msg-bubble { background: var(--accent-gold); color:#000; border-bottom-right-radius: 4px; font-weight: 500;}

.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 400px; }
.info-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px);}
.info-modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: var(--bg-panel); padding: 30px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 100%; max-width: 400px; position: relative; }
.close-modal { color: var(--text-muted); position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; }
.close-modal:hover { color: var(--danger); }

.complex-footer { background: var(--bg-main); border-top: 1px solid var(--border-color); padding: 40px 5% 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 20px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 15px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer-col ul li a { color: var(--text-muted); cursor: pointer; }
.footer-col ul li a:hover { color: var(--accent-gold); }
.f-icon { width: 20px; text-align: center; color: var(--text-muted); }

.panel-footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem; margin-top: 20px; }

/* CSS BARU UNTUK BADGE VERIFIED SVG */
.verified-badge { vertical-align: middle; display: inline-block; filter: drop-shadow(0 2px 4px rgba(29, 155, 240, 0.4)); }

.login-ratings { width: 100%; max-width: 420px; animation: fadeIn 0.8s ease; }
.rating-cards { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.rating-cards::-webkit-scrollbar { display: none; }
.rating-card { background: rgba(28, 39, 66, 0.7); border: 1px solid var(--border-color); padding: 15px; border-radius: var(--radius-md); min-width: 220px; flex: 1; backdrop-filter: blur(5px);}
.rating-text { font-size: 0.85rem; color: var(--text-main); margin: 8px 0; font-style: italic; line-height: 1.4;}

.scrolling-text-container { background: var(--bg-main); border: 1px solid var(--border-color); padding: 12px; border-radius: var(--radius-md); overflow: hidden; white-space: nowrap; position: relative; }
.scrolling-text { display: inline-block; padding-left: 100%; animation: scrollText 15s linear infinite; font-size: 0.95rem; color: var(--accent-gold); font-weight: 500;}
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.faq-section { padding: 60px 5%; background: var(--bg-panel); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); margin-bottom: 12px; border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 18px 20px; background: transparent; border: none; color: var(--text-main); font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition);}
.faq-question:hover { background: rgba(251, 191, 36, 0.05); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent-gold); transition: transform 0.3s ease; }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-main); }
.faq-answer p { padding: 15px 20px; font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.6;}