  /* ==========================================================================
	   DESIGN SYSTEM & VARIABLES (Pusat Kendali Data / Anti Double)
	   ==========================================================================
	*/
	:root {
		--font-main: 'Inter', sans-serif;
		
		/* Light Mode Palette */
		--bg-app: #f1f5f9;
		--bg-card: #ffffff;
		--text-main: #0f172a;
		--text-muted: #64748b;
		--border-color: #e2e8f0;
		
		/* Semantic Colors */
		--blue: #3b82f6;
		--blue-light: rgba(59, 130, 246, 0.12);
		
		--emerald: #10b981;
		--emerald-light: rgba(16, 185, 129, 0.12);
		
		--amber: #f59e0b;
		--amber-light: rgba(245, 158, 11, 0.12);
		
		--rose: #f43f5e;
		--rose-light: rgba(244, 63, 94, 0.12);
		
		--indigo: #6366f1;
		--indigo-light: rgba(99, 102, 241, 0.12);
		
		--purple: #9333ea;
		--purple-light: rgba(147, 51, 234, 0.12);

		/* Gradients */
		--rose-gradient: linear-gradient(135deg, #f43f5e, #fda4af);
		
		/* Shadows & Radius */
		--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
		--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
		--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
		--radius-lg: 24px;
		--radius-md: 16px;
		--radius-sm: 12px;
	}

	/* Dark Mode Overrides (Menimpa Variabel, Layout Tetap Sama) */
	html.dark {
		--bg-app: #0f172a;
		--bg-card: #1e293b;
		--text-main: #f8fafc;
		--text-muted: #94a3b8;
		--border-color: #334155;
		
		--blue-light: rgba(59, 130, 246, 0.2);
		--emerald-light: rgba(16, 185, 129, 0.2);
		--amber-light: rgba(245, 158, 11, 0.2);
		--rose-light: rgba(244, 63, 94, 0.2);
		--indigo-light: rgba(99, 102, 241, 0.2);
		--purple-light: rgba(147, 51, 234, 0.12);
		
		--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.2);
		--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
	}
	
	/* ==========================================================================
	   BASE & RESET + NATIVE RIGID LOCK
	   ==========================================================================
	*/
	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
	}

	body {
		font-family: var(--font-main);
		/* 🚀 REVISI TASKBAR: Selaraskan background luar dengan warna top taskbar premium */
		background-color: #0b172b; 
		color: var(--text-main);
		display: flex;
		justify-content: center;
		min-height: 100vh;
		
		/* 🔒 LOCK SCROLL BROWSER: Mencegah layar ditarik lepas (overscroll bouncing) */
		overscroll-behavior: none; 
	}

	/* Helper & Utility Classes */
	.font-bold { font-weight: 700; }
	.text-emerald { color: var(--emerald) !important; }
	.text-rose { color: var(--rose) !important; }
	.text-amber { color: var(--amber) !important; }
	.text-blue { color: var(--blue) !important; }
	.text-indigo { color: var(--indigo) !important; }
	.text-purple { color: var(--purple) !important; }

	.bg-light-emerald { background-color: var(--emerald-light); }
	.bg-light-rose { background-color: var(--rose-light); }
	.bg-light-amber { background-color: var(--amber-light); }
	.bg-light-blue { background-color: var(--blue-light); }
	.bg-light-indigo { background-color: var(--indigo-light); }
	.bg-light-purple { background-color: var(--purple-light); }

	.bg-blue-gradient { background: linear-gradient(135deg, #3b82f6, #2563eb); }
	.bg-emerald-gradient { background: linear-gradient(135deg, #10b981, #059669); }
	.bg-amber-gradient { background: linear-gradient(135deg, #f59e0b, #d97706); }
	.bg-rose-gradient { background: linear-gradient(135deg, #f43f5e, #be123c); }
	.bg-purple-gradient { background: linear-gradient(135deg, #9333ea, #6d28d9); }

	.border-x { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
	.text-center { text-align: center; }
	.text-right { text-align: right; }
	.mr-4 { margin-right: 8px; }
	.mr-5 { margin-right: 10px; }
	.hidden { display: none !important; }

	/* Width Utilities for Progress Bar */
	.w-15 { width: 15%; }
	.w-40 { width: 40%; }
	.w-72-5 { width: 72.5%; }
	
	/* ==========================================================================
	   APP SHELL LAYOUT (Kunci Dimensi FIXED Rigid)
	   ==========================================================================
	*/
	#app-container {
		width: 100%;
		max-width: 425px;
		height: 100vh;
		height: calc(var(--vh, 1vh) * 100); 		
		background-color: var(--bg-app);
		color: var(--text-main);
		position: relative;
		overflow: hidden; 
		display: flex;
		flex-direction: column;
		box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
		
		/* 🔒 LOCK OVERFLOW: Matikan total kelenturan tarikan pull-to-refresh Chrome Android */
		overscroll-behavior-y: none; 
	}

	#app-header {
		/* FIXED VIEWPORT: Dikunci permanen di langit-langit layar */
		position: fixed;
		top: 0;
		left: 50%;
		transform: translateX(-50%); 
		
		width: 100%;
		max-width: 425px; 
		height: 70px; 
		padding: 16px;
		background-color: var(--bg-card);
		border-bottom: 1px solid var(--border-color);
		display: flex;
		justify-content: space-between;
		align-items: center;
		z-index: 1000; 
		transition: background-color 0.3s ease;
		box-sizing: border-box;
	}
	
	/* ==========================================================================
	   LAYOUT MAIN CONTENT (NATIVE PREMIUM SCROLL COMPONENT)
	   ==========================================================================
	*/
	#main-content {
		flex: 1;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		transition: opacity 0.4s ease, transform 0.4s ease;
	}

	.scroll-container {
		flex: 1;
		overflow-y: auto;
		
		/* 🚀 NATIVE FEEL INTERACTION: Kecepatan akselerasi scroll setara aplikasi asli */
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch; 
		overscroll-behavior-y: contain; /* Isolasi paksa pergerakan scroll hanya di area tengah */
		
		/* 📐 REVISI JARAK: 
		   - Atas dipangkas jadi 60px (Merapatkan celah kosong ke Card Saldo)
		   - Bawah di-set 115px (Memberi area aman scroll di atas navbar bawah)
		*/
		padding: 60px 20px calc(115px + env(safe-area-inset-bottom)) 20px; 
		
		display: flex;
		flex-direction: column;
		/* 📐 REVISI GAP: Dirapatkan dari 24px menjadi 16px agar widget padat berisi */
		gap: 16px; 
	}

	/* Sembunyikan Scrollbar biar Estetik Elegan */
	.scroll-container::-webkit-scrollbar {
		display: none;
		width: 0px;
	}
	
	/* 📐 REVISI KHUSUS: Mengurangi margin bawah barisan tombol menu bundar */
	.feature-buttons-row {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		margin-bottom: -4px !important; /* Menarik naik card di bawahnya agar gap pas seimbang */
	}
	
	/* ==========================================================================
	   PREMIUM STICKY BOTTOM APP NAVIGATION BAR (FIXED POSITION)
	   ==========================================================================
	*/
	#app-nav {
		position: fixed; 
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);		
		width: 100%;
		max-width: 425px; 
		height: 68px; 
		background-color: var(--bg-card);
		border-top: 1px solid var(--border-color);
		display: flex;
		justify-content: space-between;
		align-items: center;		
		padding: 0 12px calc(12px + env(safe-area-inset-bottom)) 12px; 
		box-sizing: content-box; 
		z-index: 9999; 
		transition: background-color 0.3s ease;
		border:1px solid red;
	}

	.nav-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		flex: 1;
		height: 68px; 
		cursor: pointer;
		color: var(--text-muted);
		transition: color 0.2s ease;
		position: relative;
	}
	.nav-item i { font-size: 21px; margin-bottom: 2px; }
	.nav-item span { font-size: 10px; font-weight: 500; }

	/* Premium Visual Feedback on Tab Active State */
	.nav-item.active {
		color: var(--emerald);
	}
	.nav-item.active::after {
		content: '';
		position: absolute;
		top: 0;
		width: 24px;
		height: 3px;
		background-color: var(--emerald);
		border-radius: 0 0 4px 4px;
		animation: tab-line-fade 0.2s ease-out;
	}

	@keyframes tab-line-fade {
		from { opacity: 0; transform: scaleX(0); }
		to { opacity: 1; transform: scaleX(1); }
	}

	/* Centerpiece Floating Action Plus Button Header Custom */
	.nav-center-action {
		flex: 1;
		display: flex;
		justify-content: center;
		position: relative;
		height: 68px;
	}
	.action-plus-btn {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		background-color: var(--emerald);
		color: #ffffff;
		font-size: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: -14px; /* Efek melayang presisi di atas navbar */
		box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
		cursor: pointer;
		transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
		animation: center-pulse 2s infinite ease-in-out;
	}
	.action-plus-btn:active {
		transform: scale(0.9) translateY(2px);
	}

	/* Efek Denyut Subtle Pulse biar Tombol Tengah Hidup */
	@keyframes center-pulse {
		0% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
		50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.7), 0 0 0 6px rgba(16, 185, 129, 0.15); }
		100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
	}

	/* Animate Pulse for Fire Icon */
	.animate-pulse {
		animation: heart-beat 1.5s infinite ease-in-out;
	}
	@keyframes heart-beat {
		0%, 100% { transform: scale(1); }
		50% { transform: scale(1.15); }
	}
	
	/* ==========================================================================
	   BASE & RESET + COMPLETE RIGID LOCK (ANTI GOYANG)
	   ==========================================================================
	*/
	html {
		/* Mengunci html agar tidak ikut tergeser atau membal */
		overflow: hidden;
		height: 100%;
		overscroll-behavior: none;
	}

	body {
		font-family: var(--font-main);
		background-color: #0b172b; 
		color: var(--text-main);
		display: flex;
		justify-content: center;
		
		/* Kunci mati dimensi body biar ga ada celah goyang */
		height: 100%;
		width: 100%;
		overflow: hidden; 
		position: fixed; /* Trik pamungkas mengunci viewport iOS/Android */
		
		/* Matikan semua interaksi bouncing bawaan sistem browser */
		overscroll-behavior: none; 
		-webkit-overflow-scrolling: none;
	}

	/* ==========================================================================
	   APP SHELL LAYOUT (Kunci Dimensi Rumah Aplikasi)
	   ==========================================================================
	*/
	#app-container {
		width: 100%;
		max-width: 425px;
		
		/* Menggunakan height 100% dari parent yang sudah di-lock fixed */
		height: 100%;
		height: calc(var(--vh, 1vh) * 100); 		
		
		background-color: var(--bg-app);
		color: var(--text-main);
		position: relative;
		
		/* Kunci total! Elemen di dalam tidak boleh bikin container luar melar */
		overflow: hidden; 
		display: flex;
		flex-direction: column;
		box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
		
		/* Double lock anti pull-to-refresh & anti goyang horizontal */
		overscroll-behavior: none; 
	}

	#app-header {
		position: fixed;
		top: 0;
		left: 50%;
		transform: translateX(-50%); 
		
		width: 100%;
		max-width: 425px; 
		height: 70px; 
		padding: 16px;
		background-color: var(--bg-card);
		border-bottom: 1px solid var(--border-color);
		display: flex;
		justify-content: space-between;
		align-items: center;
		z-index: 1000; 
		transition: background-color 0.3s ease;
		box-sizing: border-box;
	}
	
	/* ==========================================================================
	   LAYOUT MAIN CONTENT & ONLY ALLOWED SCROLL AREA
	   ==========================================================================
	*/
	#main-content {
		flex: 1;
		display: flex;
		flex-direction: column;
		
		/* Pastikan area pembungkus ini juga kaku mati */
		overflow: hidden;
		height: 100%;
		position: relative;
		transition: opacity 0.4s ease, transform 0.4s ease;
	}

	.scroll-container {
		flex: 1;
		/* HANYA di bagian ini scroll diizinkan secara vertikal */
		overflow-y: scroll; 
		overflow-x: hidden; /* Haramkan goyang ke kanan-kiri */
		
		/* Mengaktifkan momentum scroll native yang kaku tapi smooth */
		-webkit-overflow-scrolling: touch; 
		
		/* Isolasi scroll: Pas mentok atas/bawah, jangan oper scroll-nya ke browser */
		overscroll-behavior-y: contain; 
		overscroll-behavior-x: none;
		
		padding: 60px 20px calc(115px + env(safe-area-inset-bottom)) 20px; 
		display: flex;
		flex-direction: column;
		gap: 16px; 
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	/* 
	   ==========================================================================
	   SKELETON
	   ==========================================================================
	*/
	/* Skeleton */
	#skeleton-screen {
		position: absolute;
		top: 0; left: 0; right: 0; bottom: 0;
		background-color: var(--bg-app);
		z-index: 999;
		padding: 16px;
		transition: opacity 0.5s ease;
		height: calc(100% - 68px); 
	}
	.skeleton-body {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}		
	/* Skeleton - Global Rule Animation */
	.sk-w-20, .sk-w-24, .sk-w-28, .sk-circle-btn, .sk-widget-box, .sk-box, .sk-item, .sk-toggle, .card-saldo-sk, .sk-text-btn {
		background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-app) 50%, var(--border-color) 75%);
		background-size: 200% 100%;
		animation: loading-shimmer 1.5s infinite linear;
		border-radius: var(--radius-sm);
	}		
	/* Skeleton - Tuning lebar text placeholder */
	.sk-w-20 { width: 81px; margin-top:3px; margin-left:5px;}
	.sk-w-24 { width: 100px; border-radius:999px; margin-right:5px; }
	.sk-w-28 { width: 120px; }
	.h-2 { height: 8px; }
	.h-3 { height: 11px; }
	.h-4 { height: 15px; }
	.h-5 { height: 17px; }
	.h-7 { height: 26.5px; }	
	
	/* Sinkronisasi Widget Box Display */
	.sk-filter-group { display: flex; flex-direction: column; gap: 10px; margin-top:9px; }
	.sk-flex-between { display: flex; justify-content: space-between; }
	.sk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.sk-box { height: 65px; border-radius: var(--radius-sm); margin-left:5px; margin-right:12px; width:97%;}
	.sk-section { display: flex; flex-direction: column; gap: 10px; }
	.sk-item { height: 58px; border-radius: var(--radius-sm); }

	@keyframes loading-shimmer {
		0% { background-position: 200% 0; }
		100% { background-position: -200% 0; }
	}

	.hide-content { opacity: 0; transform: translateY(10px); }
	
	/* 
	   ==========================================================================
	   HEADER
	   ==========================================================================
	*/
	/* Header */
	.main-header {
		position: sticky;
		top: 0;
		left: 0;
		width: 100%;
		padding: 16px 20px 16px 20px;
		background-color: var(--bg-app);
		display: flex;
		justify-content: space-between;
		align-items: center;
		z-index: 50;
		margin-bottom:5px;
	}		
	/* Header - Skeleton */
	.main-header-sk {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin:0px  5px;
		margin-bottom:5px;
	}
	
	/* User Profile */
	.user-profile-section {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	/* User Profile - Skeleton */
	.user-profile-section-sk {
		display: flex;
		gap: 12px;
		align-items: center;
	}		
	
	/* User Avatar */
	.avatar-wrapper {
		width: 46px;
		height: 46px;
		border-radius: 50%;
		overflow: hidden;
		border: 2px solid var(--emerald);
		cursor: pointer;
	}
	.avatar-wrapper:active {
		transform: scale(0.95);
	}
	.avatar-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	/* User Avatar - Skeleton */
	.avatar-wrapper-sk {
		width: 46px;
		height: 46px;
		border-radius: 50%;
		background-color: var(--border-color);
	}
	
	/* User Info */		
	.user-info h3 {
		font-size: 12px;
		font-weight: 500;
		color: var(--text-muted);
	}
	.user-info h2 {
		font-size: 16px;
		font-weight: 700;
		color: var(--text-main);
	}
	.current-date {
		font-size: 10px;
		color: var(--text-muted);
	}		
	/* User Info - Skeleton */		
	.user-info-sk {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	
	/* Toggle */
	#theme-toggle {
		width: 54px;
		height: 28px;
		background-color: var(--border-color);
		border-radius: 9999px;
		position: relative;
		cursor: pointer;
		overflow: hidden;
		transition: background-color 0.3s ease;
	}
	#toggle-bg {
		width: 24px;
		height: 24px;
		background-color: var(--emerald); /* Warna bola pengenal status */
		border-radius: 50%;
		position: absolute;
		left: 2px;
		top: 2px;
		transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	}
	.toggle-icons-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 2; /* Menjaga icon tetap di atas lingkaran hitam/hijau */
		pointer-events: none; /* Klik tembus langsung ke container parent */
	}
	.icon-slot {
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 11px;
		transition: color 0.3s ease;
	}
	.slot-left {
		color: #ffffff; /* Saat light mode, icon matahari di atas bola emerald jadi putih */
	}
	.slot-right {
		color: var(--text-muted);
	}
	html.dark #toggle-bg {
		transform: translateX(26px);
		background-color: var(--indigo); /* Bola berubah warna saat dark mode */
	}
	html.dark .slot-left {
		color: var(--text-muted);
	}
	html.dark .slot-right {
		color: #ffffff; /* Saat dark mode, icon bulan di atas bola indigo jadi putih */
	}
	
	/* Toggle - Skeleton */
	.sk-toggle {
		width: 54px;
		height: 28px;
		border-radius:9999px;
		margin-top:2px;
	}
	
	/* 
	   ==========================================================================
	   CARD SALDO
	   ==========================================================================
	*/
	/* Card Saldo */
	.card-saldo {
		background-color: var(--bg-card);
		border-radius: var(--radius-lg);
		padding: 20px;
		box-shadow: var(--shadow-md);
		border: 1px solid var(--border-color);
	}
	/* Card Saldo - Skeleton */
	.card-saldo-sk { 
		height: 155px;
		border-radius: var(--radius-md);			
		margin:0px  5px;
	}

	.card-label {
		font-size: 10px;
		color: var(--text-muted);
		font-weight:500;
		text-transform:uppercase;
		letter-spacing: 0.05em;
	}
	.card-balance {
		font-size: 25px;
		font-weight: 700;
		margin: 4px 0 15px 0;
		letter-spacing: -0.5px;
	}
	.card-footer-grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 4px;
		padding-top: 15px;
		border-top: 1px dashed var(--border-color);
	}
	.footer-col p:first-child {
		font-size: 9px;
		color: var(--text-muted);
		margin-bottom: 2px;
	}
	.footer-col p:last-child {
		font-size: 11px;
	}
	
	/* 
	   ==========================================================================
	   FEATURE BUTTON (WIDGET SWITCHER)
	   ==========================================================================
	*/
	/* Feature */
	.feature-buttons-row {
		display: flex;
		justify-content: space-between;
		gap: 6px;
	}
	.circle-btn-wrapper {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		cursor: pointer;
		flex: 1;			
	}
	.circle-icon {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}
	.circle-btn-wrapper span {
		font-size: 11px;
		font-weight: 500;
		color: var(--text-muted);
	}
	
	
	/* Fitur Button - Skeleton */
	.feature-buttons-row-sk { 
		display: flex; 
		justify-content: space-between;
		gap: 6px;
		margin:7px 5px;
	}		
	.sk-btn-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		flex: 1;
	}
	/* Bulatan lingkaran */
	.sk-circle-btn { 
		width: 50px; 
		height: 50px; 
		border-radius: 50%; 
		margin: 0 auto;
	}
	/* Kotak Placeholder Text Dibawah Lingkaran */
	.sk-text-btn {
		width: 50px;
		height: 11px;  
		border-radius: 99px;
		margin-top: 5px;
	}
	
	
	/* Active State & Visual Feedback Premium */
	/* 1. Efek Aktif - Kesehatan (Blue) */
	.circle-btn-wrapper.active.focused-health .circle-icon { 
		transform: translateY(-2px); 
		box-shadow: 0 8px 12px var(--blue-light); 
		border: 2px solid var(--blue); 
	}
	.circle-btn-wrapper.active.focused-health span { 
		color: var(--blue) !important;
	}

	/* 2. Efek Aktif - Kantong (Emerald) */
	.circle-btn-wrapper.active.focused-pocket .circle-icon { 
		transform: translateY(-2px); 
		box-shadow: 0 8px 12px var(--emerald-light); 
		border: 2px solid var(--emerald); 
	}
	.circle-btn-wrapper.active.focused-pocket span { 
		color: var(--emerald) !important;
	}

	/* 3. Efek Aktif - Target (Purple) */
	.circle-btn-wrapper.active.focused-goals .circle-icon { 
		transform: translateY(-2px); 
		box-shadow: 0 8px 12px var(--purple-light); 
		border: 2px solid var(--purple); 
	}
	.circle-btn-wrapper.active.focused-goals span { 
		color: var(--purple) !important;
	}

	/* 4. Efek Aktif - Target (Amber) */
	.circle-btn-wrapper.active.focused-gold .circle-icon { 
		transform: translateY(-2px); 
		box-shadow: 0 8px 12px var(--amber-light); 
		border: 2px solid var(--amber); 
	}
	.circle-btn-wrapper.active.focused-gold span { 
		color: var(--amber) !important;
	}

	/* 5. Efek Aktif - Paylater (Rose) */
	.circle-btn-wrapper.active.focused-paylater .circle-icon { 
		transform: translateY(-2px); 
		box-shadow: 0 8px 12px var(--rose-light); 
		border: 2px solid var(--rose); 
	}
	.circle-btn-wrapper.active.focused-paylater span { 
		color: var(--rose) !important;
	}

	/* Aturan global font-weight untuk teks yang sedang aktif */
	.circle-btn-wrapper.active span {
		font-weight: 600;
	}
	
	/* 
	   ==========================================================================
	   FEATURE - WIDGET DISPLAY
	   ==========================================================================
	*/
	/* Feature Widget Display */
	.widget-display-box {
		background-color: var(--bg-card);
		border-radius: var(--radius-md);
		padding: 16px;
		padding-top: 15px;
		box-shadow: var(--shadow-sm);
		border: 1px solid var(--border-color);
		box-sizing: border-box; 
		/* FIX UTAMA: Jangan pakai 'hidden' kalau kontennya dinamis dan panjang, 
		   ubah ke 'visible' atau hilangkan min-height kaku agar box otomatis melar ke bawah */
		overflow: visible; 
		height: auto;
		min-height: auto;
	}

	/* Widget Display - Skeleton */
	.sk-widget-box { 
		height: 180px;
		margin: 0px 5px;
	}

	.widget-pane {
		animation: fadeInWidget 0.25s ease-in-out;
		/* Tambahkan ini untuk memastikan container pane ikut melar mengikuti konten */
		height: auto;
		overflow: visible;
	}
	@keyframes fadeInWidget { 
		from { opacity: 0; transform: translateY(3px); } 
		to { opacity: 1; transform: translateY(0); } 
	}

	.widget-pane-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 16px;
	}
	.widget-pane-header h5 {
		font-size: 13px;
		font-weight: 600;
		margin: 0;
	}
	.badge-status {
		font-size: 10px;
		padding: 4px 8px;
		border-radius: 999px;
		font-weight: 600;
	}
	.widget-action-btn-box {
		width: 24px;
		height: 24px;
		border-radius: 6px;
		background-color: var(--bg-app);
		border: 1px solid var(--border-color);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 12px;
		cursor: pointer;
	}    
	.widget-action-btn-box:active {
		transform: scale(0.9);
	}
	.widget-pane-desc {
		font-size: 11px;
		color: var(--text-muted);
		margin-bottom: 12px;
		line-height: 1.5;
	}

	/* Multi Pocket & Grid Layouts */
	.pocket-list-grid {
		display: grid;
		gap: 12px;
		width: 100%;
		box-sizing: border-box;
		/* Tambahkan margin bottom sedikit agar item paling bawah tidak nempel ke border luar */
		margin-bottom: 4px; 
	}
	.pocket-grid-2-2 { grid-template-columns: 1fr 1fr; }
	.pocket-grid-full { grid-template-columns: 1fr; }

	.pocket-mini-item {
		background-color: var(--bg-app);
		border: 1px solid var(--border-color);
		padding: 15px 12px;
		border-radius: var(--radius-sm);
		display: flex;
		flex-direction: column;
		gap: 2px;
		box-sizing: border-box;
	}
	.pocket-mini-item.pocket {
		padding: 10px 12px;
	}
	.pocket-title {
		font-size: 10px;
		color: var(--text-muted);
	}
	.pocket-val {
		font-size: 13px;
		color: var(--text-main);
		margin-top: 3px;
	}

	/* Progress Bars & Labels Components */
	.progress-bar-container {
		width: 100%;
		height: 9px;
		background-color: var(--border-color);
		border-radius: 999px;
		overflow: hidden;
		margin: 12px 0 6px 0;
	}

	.progress-bar-fill {
		height: 100%;
		border-radius: 999px;
	}

	.progress-bar-labels {
		display: flex;
		justify-content: space-between;
		font-size: 10px;
		color: var(--text-muted);
		margin-top: auto;
		width: 100%;
		box-sizing: border-box;
	}

	/* Custom Widget Needs */
	.health-progress-container { height: 9px; margin: 14px 0 8px 0; }
	.health-progress-fill { width: 5.6%; } 
	.health-progress-labels { font-size: 10px; font-weight: 500; margin-top: 12px;}

	/* FIX STRUCTURE: Card Goals Mandiri */
	.goal-box-item { 
		background-color: var(--bg-app); 
		border: 1px solid var(--border-color);
		padding: 14px 12px; 
		border-radius: var(--radius-sm);
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		width: 100%;
	}
	.goal-meta-top { 
		display: flex; 
		justify-content: space-between; 
		align-items: center;
		font-size: 11.5px; 
	}

	/* Mengunci posisi baris update paling bawah */
	#widget-gold .progress-bar-labels {
		border-top: 1px solid var(--border-color);
		margin-top: 15px;
		padding-top: 13px;
		font-size: 11px;
		color: var(--text-muted);
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
	}
	
	/* 
	   ==========================================================================
	   HABIT STREAK DISIPLIN TRACKER
	   ==========================================================================
	*/
	.habit-streak-section {
		background-color: var(--bg-card);
		border-radius: var(--radius-md);
		padding: 16px;
		box-shadow: var(--shadow-sm);
		border: 1px solid var(--border-color);
	}
	.habit-header-flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 14px;
	}
	.section-title {
		font-size: 11px;
		font-weight: 600;
		text-transform:uppercase;
		margin-top:2px;
	}
	.streak-count-badge {
		font-size: 11px;
		background-color: var(--rose-light);
		color: var(--rose);
		padding: 4px 10px;
		border-radius: 999px;
		font-weight: 600;
	}
	.streak-days-row {
		display: flex;
		justify-content: space-between;
		gap: 4px;
		margin-bottom: 14px;
	}
	.day-bubble {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		flex: 1;
	}
	.day-name {
		font-size: 10px;
		color: var(--text-muted);
	}
	.day-bubble .bubble-icon {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background-color: var(--bg-app);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 11px;
		color: var(--text-muted);
	}
	/* Day Bubble States */
	.day-bubble.done .bubble-icon {
		background-color: var(--emerald);
		color: #ffffff;
	}
	.day-bubble.current .bubble-icon {
		border: 2px solid var(--rose);
		color: var(--rose);
		background-color: transparent;
	}
	/* Action Habit Button */
	.btn-safe-habit-check {
		width: 100%;
		padding: 12px;
		background-color: var(--text-main);
		color: var(--bg-card);
		border: none;
		border-radius: var(--radius-sm);
		font-family: var(--font-main);
		font-size: 12px;
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		cursor: pointer;
	}
	.btn-safe-habit-check:active { transform: scale(0.98); }
	.btn-safe-habit-check.habit-completed {
		background-color: var(--emerald-light) !important;
		color: var(--emerald) !important;
		cursor: default;
		pointer-events: none;
	}
	
	/* ==========================================================================
	FILTER PERIODE SECTION & POPOVER DIALOG
	==========================================================================
	*/
	.filter-periode-section {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.section-header-flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
	}
	#popover-trigger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		background-color: var(--bg-card);
		padding: 6px 12px;
		border-radius: 999px;
		font-size: 11px;
		font-weight: 600;
		cursor: pointer;
		border: 1px solid var(--border-color);
		line-height: 1;
	}
	#popover-trigger .icon-cal { 
		color: var(--text-main); 
		display: inline-flex;
		align-items: center;
		line-height: 1;
		position: relative;
		top: -1px;
		margin-right:1px;
	}
	
	
	#popover-trigger .icon-arrow { font-size: 9px; color: var(--text-muted); }

	/* Popover Content Box Floating */
	#popover-menu {
		position: absolute;
		top: 36px;
		right: 0;
		width: 240px;
		background-color: var(--bg-card);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-lg);
		border: 1px solid var(--border-color);
		z-index: 100;
		padding: 12px;
	}

	/* Navigasi Tahun Baru (Tengah & Interaktif) */
	.popover-year-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 12px;
		padding: 0 4px;
	}
	#popover-year-text {
		font-size: 13px;
		font-weight: 700;
		color: var(--text-main);
	}
	.popover-year-nav i {
		font-size: 10px;
		color: var(--text-muted);
		cursor: pointer;
		padding: 4px 8px;
		border-radius: 4px;
	}
	.popover-year-nav i:hover {
		background-color: var(--bg-app);
		color: var(--text-main);
	}

	#months-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 6px;
	}
	.month-btn {
		padding: 8px 0;
		font-size: 11px;
		text-align: center;
		border-radius: 8px;
		cursor: pointer;
		color: var(--text-main);
		font-weight: 500;
	}
	.month-btn:hover:not(.disabled) { background-color: var(--bg-app); }
	.month-btn.active { background-color: var(--text-main) !important; color: var(--bg-card) !important; font-weight: 600; }
	
	/* Sesuai Request: Tetap ada, pakai text-muted, gabisa diklik */
	.month-btn.disabled { 
		color: var(--text-muted) !important; 
		cursor: not-allowed; 
		opacity: 0.4; 
	}

	.popover-footer {
		display: flex;
		justify-content: space-between;
		margin-top: 10px;
		padding-top: 8px;
		border-top: 1px solid var(--border-color);
		font-size: 10px;
		font-weight: 600;
	}
	#clear-popover { color: var(--text-muted); cursor: pointer; }
	#this-month-popover { color: var(--text-main); cursor: pointer; }

	/* Financial Summary Boxes Box */
	.summary-boxes-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.summary-box {
		background-color: var(--bg-card);
		padding: 18px 15px;
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow-sm);
		border: 1px solid var(--border-color);
	}
	.summary-box p:first-child {
		font-size: 10px;
		color: var(--text-muted);
		margin-bottom: 5px;
	}
	.summary-box p:last-child {
		font-size: 15px;
		font-weight: 700;
	}
	
	/* 
	   ==========================================================================
	   DATA LIST VIEW (TRANSAKSI & TAGIHAN / HUTANG)
	   ==========================================================================
	*/
	.list-section {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.btn-pdf-flat {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-size: 11px;
		font-weight: 500;
		color: var(--text-muted);
		cursor: pointer;
		padding: 6px 12px;
		border: 1px solid var(--border-color);
		border-radius: 999px;
		background-color: transparent;
	}

	/* Kustomisasi Khusus untuk Icon PDF */
	.btn-pdf-flat i {
		color: var(--rose);
		font-size: 13px;
		display: inline-flex;
		align-items: center;
		line-height: 1;
	}

	/* Efek Interaktif Saat Kursor Mouse Berada di Atas Tombol */
	.btn-pdf-flat:hover {
		background-color: var(--border-color);
		color: var(--text-main);
		border-color: var(--text-muted);
	}

	/* Debt Status Chips Filtering */
	.debt-filter-container {
		display: flex;
		gap: 6px;
		overflow-x: auto;
	}
	.debt-filter-container::-webkit-scrollbar { display: none; }

	.debt-filter-chip {
		padding: 6px 12px;
		background-color: var(--bg-card);
		border: 1px solid var(--border-color);
		font-size: 11px;
		border-radius: 999px;
		white-space: nowrap;
		cursor: pointer;
		color: var(--text-muted);
	}
	.debt-filter-chip.active {
		background-color: var(--text-main);
		color: var(--bg-card);
		border-color: var(--text-main);
		font-weight: 500;
	}

	/* Items Stack List View Card Components */
	.items-stack {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.card-item {
		background-color: var(--bg-card);
		border-radius: var(--radius-sm);
		padding: 12px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border: 1px solid var(--border-color);
		margin-bottom:3px;
	}
	/*.card-item:last-child {
		margin-bottom:0px;
	}*/

	/* Mikro-interaksi pas di-touch / hover list tagihannya */
	.card-item:hover {
		/*box-shadow: var(--shadow-md);*/
	}
	.item-left-content {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	/* Custom Icons Boxes & Circles */
	.icon-box-bg {
		width: 38px;
		height: 38px;
		border-radius: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 14px;
	}
	.icon-circle-bg {
		width: 38px;
		height: 38px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 14px;
	}
	.item-main-title {
		font-size: 12px;
		font-weight: 600;
		color: var(--text-main);
		margin-bottom: 3px;
	}
	.item-sub-date {
		font-size: 10px;
		color: var(--text-muted);
		display: flex;
		align-items: center;
		gap: 4px;
	}
	.tag-label {
		font-size: 9px;
		padding: 2px 6px;
		border-radius: 4px;
		font-weight: 600;
		display: inline-block;
	}
	.item-right-content {
		text-align: right;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 4px;
	}
	.item-amount {
		font-size: 12px;
		font-weight: 700;
	}
	.item-time-stamp {
		font-size: 9px;
		color: var(--text-muted);
	}

	/* Badges Status Tagihan */
	.badge { font-size: 9px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
	.badge-rose { background-color: var(--rose-light); color: var(--rose); }
	.badge-amber { background-color: var(--amber-light); color: var(--amber); }
	.badge-emerald { background-color: var(--emerald-light); color: var(--emerald); }

	/* Alert Borders Tagihan */
	.border-rose-alert { border-left: 4px solid var(--rose) !important; border-color: var(--rose) !important; }
	.border-amber-alert { border-left: 4px solid var(--amber) !important; border-color: var(--amber) !important; }
	.border-emerald-alert { border-left: 4px solid var(--emerald) !important; border-color: var(--emerald) !important; }

	/* Empty State Handling */
	.empty-state {
		text-align: center;
		padding: 24px 16px;
		background-color: var(--bg-card);
		border-radius: var(--radius-sm);
		border: 1px dashed var(--border-color);
	}
	.empty-icon-circle {
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background-color: var(--bg-app);
		color: var(--text-muted);
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto 10px auto;
		font-size: 16px;
	}

	.empty-title { font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 2px;}
	.empty-desc { font-size: 10px; color: var(--text-muted); line-height: 1.4; }
	
	/* CONTAINER UTAMA FILTER TRANSAKSI */
	.transaction-filter-container {
		display: flex;
		width: 100%;             /* Memenuhi lebar container section */
		gap: 8px;                /* Jarak renggang antar tombol mirip di gambar image_43f8b0.png */
		margin: 16px 0;
		box-sizing: border-box;
	}

	/* TOMBOL CHIPS TRANSAKSI (PENGELUARAN & PEMASUKAN) */
	.tx-filter-chip {
		flex: 1;
		text-align: center;
		padding: 8px 12px;
		background-color: var(--bg-card);
		border: 1px solid var(--border-color);
		font-size: 11px;
		border-radius: 999px;
		white-space: nowrap;
		cursor: pointer;
		color: var(--text-muted);
		font-weight: 500;
		user-select: none;
	}

	/* STATE KETIKA TRANSAKSI AKTIF */
	.tx-filter-chip.active {
		background-color: var(--text-main);
		color: var(--bg-card);
		border-color: var(--text-main);
	}