/* ==========================
   CATATAN TABUNGANKU 
   =========================== */

:root {
    --bg-color: #070b14;
    --bg-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.24) 0%, transparent 60%),
        radial-gradient(ellipse 60% 45% at 88% 12%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 105%, rgba(79, 70, 229, 0.18) 0%, transparent 60%);
    --bg-size: auto;
    --panel-bg: linear-gradient(155deg, rgba(30, 41, 66, 0.88) 0%, rgba(13, 19, 34, 0.96) 100%);
    --panel-border: rgba(129, 140, 248, 0.22);
    --panel-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(99, 102, 241, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
    --card-bg: linear-gradient(165deg, rgba(24, 34, 56, 0.78) 0%, rgba(11, 16, 29, 0.92) 100%);
    --card-border: rgba(148, 163, 184, 0.12);
    --card-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    --hero-bg: linear-gradient(135deg, rgba(37, 47, 82, 0.94) 0%, rgba(15, 23, 42, 0.98) 55%, rgba(23, 21, 59, 0.96) 100%);
    --hero-border: rgba(129, 140, 248, 0.35);
    --hero-shadow: 0 22px 50px -12px rgba(49, 46, 129, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    --modal-bg: rgba(15, 23, 42, 0.96);
    --modal-border: rgba(255, 255, 255, 0.18);
    --input-bg: rgba(2, 6, 23, 0.75);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-color: #f8fafc;
    --input-focus-border: rgba(99, 102, 241, 0.9);
    --input-focus-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    --container-dark: rgba(2, 6, 23, 0.6);
    --container-dark-border: rgba(255, 255, 255, 0.08);
    --btn-sec-bg: #1e293b;
    --btn-sec-border: rgba(255, 255, 255, 0.1);
    --btn-sec-color: #cbd5e1;
    --accent-bg: #4f46e5;
    --accent-border: #6366f1;
    --accent-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
    --accent-color: #ffffff;
    --accent-text: #818cf8;
    --accent-soft-bg: rgba(99, 102, 241, 0.2);
    --accent-soft-border: rgba(99, 102, 241, 0.35);
    --nav-bg: rgba(15, 23, 42, 0.4);
    --nav-border: rgba(255, 255, 255, 0.2);
    --nav-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    --nav-text: #94a3b8;
    --nav-active-bg: rgba(255, 255, 255, 0.2);
    --nav-active-border: rgba(255, 255, 255, 0.2);
    --nav-active-color: #ffffff;
    --fab-bg: rgba(30, 41, 59, 0.9);
    --fab-border: rgba(255, 255, 255, 0.2);
    --fab-shadow: none;
}

/* =========================================================
   TEMA BAUHAUS (ID: emerald)
   ========================================================= */
html.theme-emerald, html.theme-emerald body {
    background-color: #f4f1ea !important;
    background-image:
        linear-gradient(to right, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17, 17, 17, 0.05) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    color: #111111 !important;
    color-scheme: light;
}
html.theme-emerald .glass-panel, html.theme-emerald .tab-pane > .glass-panel:first-of-type {
    background: #ffffff !important;
    border: 2.5px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 5px 5px 0px #1d4ed8 !important;
}
html.theme-emerald .glass-card {
    background: #ffffff !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 4px 4px 0px #111111 !important;
}
html.theme-emerald .glass-modal, html.theme-emerald #qrisModal > div.relative {
    background: #ffffff !important;
    border: 2.5px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 6px 6px 0px #d92b2b !important;
}
html.theme-emerald #custom-numpad {
    background: #ffffff !important;
    border-top: 2.5px solid #111111 !important;
    border-radius: 0px !important;
}
html.theme-emerald .glass-input, html.theme-emerald select, html.theme-emerald option {
    background: #f4f1ea !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    color: #111111 !important;
}
html.theme-emerald .glass-input::placeholder { color: #525252 !important; }
html.theme-emerald .glass-input:focus {
    background: #ffffff !important;
    box-shadow: 3px 3px 0px #eab308 !important;
}
html.theme-emerald :is(.text-white, .text-slate-100, .text-slate-200) { color: #111111 !important; }
html.theme-emerald :is(.text-slate-300, .text-slate-400, .text-slate-500) { color: #404040 !important; }
html.theme-emerald :is(.text-indigo-300, .text-indigo-400) { color: #1d4ed8 !important; font-weight: 800; }
html.theme-emerald :is(.text-amber-300, .text-amber-400) { color: #b45309 !important; font-weight: 800; }
html.theme-emerald :is(.text-emerald-300, .text-emerald-400) { color: #15803d !important; font-weight: 800; }
html.theme-emerald :is(.text-rose-300, .text-rose-400) { color: #d92b2b !important; font-weight: 800; }
html.theme-emerald :is(.text-purple-300, .text-purple-400) { color: #1d4ed8 !important; font-weight: 800; }

html.theme-emerald :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80):not([onclick="showProfileAvatarModal()"]):not(.rounded-full) {
    background-color: #f4f1ea !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    color: #111111 !important;
}
html.theme-emerald :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: #e5e5e5 !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    color: #111111 !important;
}
html.theme-emerald :is(.bg-indigo-600, .bg-indigo-600\/30, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) {
    background-color: #1d4ed8 !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0px #111111 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
html.theme-emerald :is(.bg-indigo-600, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) :is(i, span) {
    color: #ffffff !important;
}
html.theme-emerald :is(.bg-emerald-600, #btn-type-pemasukan.bg-emerald-500\/20, #btn-debt-piutang.bg-emerald-500\/20) {
    background-color: #eab308 !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0px #111111 !important;
    color: #111111 !important;
    font-weight: 800 !important;
}
html.theme-emerald :is(.bg-rose-500, .bg-rose-600, #btn-type-pengeluaran.bg-rose-500\/20, #btn-debt-utang.bg-rose-500\/20, button:is(.bg-rose-500\/20, .bg-rose-500\/30)) {
    background-color: #d92b2b !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0px #111111 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
html.theme-emerald button:is(.bg-rose-500\/20, .bg-rose-500\/30) i { color: #ffffff !important; }
html.theme-emerald :is(.bg-rose-500\/20, .bg-rose-500\/15, .bg-rose-500\/30):not(button) {
    background-color: #fee2e2 !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    color: #d92b2b !important;
}
html.theme-emerald :is(.bg-emerald-500\/10, .bg-emerald-500\/15, .bg-emerald-500\/20, .bg-emerald-500\/30):not(button) {
    background-color: #dcfce7 !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    color: #15803d !important;
}
html.theme-emerald div:is([class*="rounded-2xl"], [class*="rounded-xl"], .rounded-full):not([onclick="showProfileAvatarModal()"]):is([class*="bg-slate-"], [class*="bg-gray-"], [class*="bg-zinc-"], [class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"], [class*="bg-cyan-"], [class*="bg-sky-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-violet-"], [class*="bg-purple-"], [class*="bg-fuchsia-"], [class*="bg-pink-"], [class*="bg-rose-"], [class*="bg-red-"], [class*="bg-orange-"], [class*="bg-amber-"], [class*="bg-yellow-"], [class*="bg-lime-"]),
html.theme-emerald .color-opt {
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 2px 2px 0px #111111 !important;
    opacity: 1 !important;
}
html.theme-emerald div:is([class*="rounded-2xl"], [class*="rounded-xl"]) i.text-white { color: #ffffff !important; }
html.theme-emerald [onclick="showProfileAvatarModal()"] {
    border: 2.5px solid #111111 !important;
    box-shadow: 3px 3px 0px #111111 !important;
    background-color: #ffffff !important;
}
html.theme-emerald #bottom-nav-container > div > div:first-child {
    background: #ffffff !important;
    border: 2.5px solid #111111 !important;
    border-radius: 0px !important;
    box-shadow: 4px 4px 0px #111111 !important;
}
html.theme-emerald #bottom-nav-container > div > div:first-child button {
    background-color: transparent !important;
    border-radius: 0px !important;
    color: #404040 !important;
}
html.theme-emerald #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: #eab308 !important;
    border: 2px solid #111111 !important;
    color: #111111 !important;
    font-weight: 800 !important;
}
html.theme-emerald #bottom-nav-container > div > div:first-child button.bg-white\/20 :is(i, span) {
    color: #111111 !important;
}
html.theme-emerald #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: #d92b2b !important;
    border: 2.5px solid #111111 !important;
    border-radius: 9999px !important;
    box-shadow: 3px 3px 0px #111111 !important;
}
html.theme-emerald #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #ffffff !important;
}
html.theme-emerald :is(.border-white\/5, .border-white\/10, .border-white\/20, .border-indigo-500\/20, .border-indigo-500\/30, .border-emerald-500\/30, .border-rose-500\/30, .border-amber-500\/30) {
    border-color: #111111 !important;
}
html.theme-emerald .bg-indigo-500\/15 {
    background-color: #fef08a !important;
    border: 2px solid #111111 !important;
    border-radius: 0px !important;
}

/* =========================================================
   TEMA MANGA - Soft Comic Ink (ID: rose)
   ========================================================= */
html.theme-rose, html.theme-rose body {
    background-color: #f3f4f6 !important;
    background-image: none !important;
    color: #1f2937 !important;
    color-scheme: light;
}
html.theme-rose .glass-panel, html.theme-rose .tab-pane > .glass-panel:first-of-type {
    background: #fcfcfd !important;
    border: 2px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 4px 4px 0px rgba(31, 41, 55, 0.85) !important;
}
html.theme-rose .glass-card {
    background: #ffffff !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
    box-shadow: 2px 2px 0px rgba(55, 65, 81, 0.75) !important;
}
html.theme-rose .glass-modal, html.theme-rose #qrisModal > div.relative {
    background: #fcfcfd !important;
    border: 2px solid #1f2937 !important;
    border-radius: 8px !important;
    box-shadow: 5px 5px 0px rgba(31, 41, 55, 0.85) !important;
}
html.theme-rose #custom-numpad {
    background: #fcfcfd !important;
    border-top: 2px solid #1f2937 !important;
    border-radius: 12px 12px 0 0 !important;
}
html.theme-rose .glass-input, html.theme-rose select, html.theme-rose option {
    background: #ffffff !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
    color: #1f2937 !important;
}
html.theme-rose .glass-input::placeholder { color: #6b7280 !important; }
html.theme-rose .glass-input:focus {
    box-shadow: 2px 2px 0px #1f2937 !important;
}
html.theme-rose :is(.text-white, .text-slate-100, .text-slate-200) { color: #1f2937 !important; }
html.theme-rose :is(.text-slate-300, .text-slate-400, .text-slate-500) { color: #4b5563 !important; }
html.theme-rose :is(.text-indigo-300, .text-indigo-400, .text-amber-300, .text-amber-400, .text-purple-300, .text-purple-400) {
    color: #1f2937 !important;
    font-weight: 700;
}
html.theme-rose :is(.text-emerald-300, .text-emerald-400) {
    color: #15803d !important;
    font-weight: 700;
}
html.theme-rose :is(.text-rose-300, .text-rose-400) {
    color: #b91c1c !important;
    font-weight: 700;
}
html.theme-rose :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80):not([onclick="showProfileAvatarModal()"]):not(.rounded-full) {
    background-color: #f3f4f6 !important;
    background-image: none !important;
    border: 1.5px solid #4b5563 !important;
    border-radius: 6px !important;
    color: #1f2937 !important;
}
html.theme-rose :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: #e5e7eb !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
    color: #1f2937 !important;
}
html.theme-rose :is(.bg-indigo-600, .bg-indigo-600\/30, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) {
    background-color: #1f2937 !important;
    border: 1.5px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 2px 2px 0px #9ca3af !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
html.theme-rose :is(.bg-indigo-600, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) :is(i, span) {
    color: #ffffff !important;
}
html.theme-rose :is(.bg-emerald-600, #btn-type-pemasukan.bg-emerald-500\/20, #btn-debt-piutang.bg-emerald-500\/20) {
    background-color: #dcfce7 !important;
    border: 1.5px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 2px 2px 0px #1f2937 !important;
    color: #14532d !important;
    font-weight: 700 !important;
}
html.theme-rose :is(.bg-rose-500, .bg-rose-600, #btn-type-pengeluaran.bg-rose-500\/20, #btn-debt-utang.bg-rose-500\/20, button:is(.bg-rose-500\/20, .bg-rose-500\/30)) {
    background-color: #fee2e2 !important;
    border: 1.5px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 2px 2px 0px #1f2937 !important;
    color: #7f1d1d !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
html.theme-rose button:is(.bg-rose-500\/20, .bg-rose-500\/30) i { color: #7f1d1d !important; }
html.theme-rose :is(.bg-rose-500\/20, .bg-rose-500\/15, .bg-rose-500\/30):not(button) {
    background-color: #f3f4f6 !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
    color: #991b1b !important;
}
html.theme-rose :is(.bg-emerald-500\/10, .bg-emerald-500\/15, .bg-emerald-500\/20, .bg-emerald-500\/30):not(button) {
    background-color: #dcfce7 !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
    color: #15803d !important;
}
html.theme-rose div:is([class*="rounded-2xl"], [class*="rounded-xl"], .rounded-full):not([onclick="showProfileAvatarModal()"]):not(:has(img)):is([class*="bg-slate-"], [class*="bg-gray-"], [class*="bg-zinc-"], [class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"], [class*="bg-cyan-"], [class*="bg-sky-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-violet-"], [class*="bg-purple-"], [class*="bg-fuchsia-"], [class*="bg-pink-"], [class*="bg-rose-"], [class*="bg-red-"], [class*="bg-orange-"], [class*="bg-amber-"], [class*="bg-yellow-"], [class*="bg-lime-"]),
html.theme-rose .color-opt {
    border: 1.5px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 2px 2px 0px rgba(31, 41, 55, 0.8) !important;
    opacity: 1 !important;
}
html.theme-rose div:is([class*="rounded-2xl"], [class*="rounded-xl"]) i.text-white { color: #ffffff !important; }
html.theme-rose [onclick="showProfileAvatarModal()"] {
    border: 2px solid #1f2937 !important;
    box-shadow: 3px 3px 0px rgba(31, 41, 55, 0.85) !important;
    background-color: #ffffff !important;
}
html.theme-rose #bottom-nav-container > div > div:first-child {
    background: #fcfcfd !important;
    border: 2px solid #1f2937 !important;
    border-radius: 8px !important;
    box-shadow: 3px 3px 0px rgba(31, 41, 55, 0.85) !important;
}
html.theme-rose #bottom-nav-container > div > div:first-child button {
    background-color: transparent !important;
    border-radius: 6px !important;
    color: #4b5563 !important;
}
html.theme-rose #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: #1f2937 !important;
    border: 1.5px solid #1f2937 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
html.theme-rose #bottom-nav-container > div > div:first-child button.bg-white\/20 :is(i, span) {
    color: #ffffff !important;
}
html.theme-rose #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: #1f2937 !important;
    border: 2px solid #1f2937 !important;
    border-radius: 8px !important;
    box-shadow: 3px 3px 0px #9ca3af !important;
}
html.theme-rose #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #ffffff !important;
}
html.theme-rose :is(.border-white\/5, .border-white\/10, .border-white\/20, .border-indigo-500\/20, .border-indigo-500\/30, .border-emerald-500\/30, .border-rose-500\/30, .border-amber-500\/30) {
    border-color: #4b5563 !important;
}
html.theme-rose .bg-indigo-500\/15 {
    background-color: #f3f4f6 !important;
    border: 1.5px solid #374151 !important;
    border-radius: 6px !important;
}

/* Tema Material You (ID: nordic) */
html.theme-nordic {
    --bg-color: #141218;
    --bg-image: none;
    --bg-size: auto;
    --panel-bg: #211f26;
    --panel-border: rgba(208, 188, 255, 0.12);
    --panel-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    --card-bg: #2b2930;
    --card-border: rgba(208, 188, 255, 0.08);
    --card-shadow: none;
    --hero-bg: #4f378b;
    --hero-border: rgba(234, 221, 255, 0.2);
    --hero-shadow: 0 8px 24px rgba(79, 55, 139, 0.35);
    --modal-bg: #2b2930;
    --modal-border: rgba(208, 188, 255, 0.18);
    --input-bg: #36343b;
    --input-border: transparent;
    --input-color: #e6e0e9;
    --input-focus-border: #d0bcff;
    --input-focus-shadow: 0 0 0 2px rgba(208, 188, 255, 0.4);
    --container-dark: #1d1b20;
    --container-dark-border: transparent;
    --btn-sec-bg: #4a4458;
    --btn-sec-border: transparent;
    --btn-sec-color: #e8def8;
    --accent-bg: #d0bcff;
    --accent-border: transparent;
    --accent-shadow: none;
    --accent-color: #381e72;
    --accent-text: #d0bcff;
    --accent-soft-bg: #4a4458;
    --accent-soft-border: transparent;
    --nav-bg: #2b2930;
    --nav-border: rgba(208, 188, 255, 0.14);
    --nav-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --nav-text: #cac4d0;
    --nav-active-bg: #4a4458;
    --nav-active-border: transparent;
    --nav-active-color: #e8def8;
    --fab-bg: #efb8c8;
    --fab-border: transparent;
    --fab-shadow: 0 6px 20px rgba(239, 184, 200, 0.25);
}
html.theme-nordic .glass-panel,
html.theme-nordic .tab-pane > .glass-panel:first-of-type {
    border-radius: 28px !important;
}
html.theme-nordic .glass-card {
    border-radius: 22px !important;
}
html.theme-nordic .glass-input,
html.theme-nordic select,
html.theme-nordic button {
    border-radius: 9999px !important;
}
html.theme-nordic #bottom-nav-container > div > div:first-child {
    border-radius: 9999px !important;
}
html.theme-nordic #bottom-nav-container > div > div:last-child:not(:only-child) button {
    border-radius: 20px !important;
}
html.theme-nordic #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #492532 !important;
}

/* =========================================================
   TEMA HAND-DRAWN (ID: mocha)
   ========================================================= */
html.theme-mocha, html.theme-mocha body {
    background-color: #fbf7f0 !important;
    background-image:
        repeating-linear-gradient(transparent, transparent 27px, rgba(44, 37, 32, 0.08) 28px) !important;
    background-size: 100% 28px !important;
    color: #2c2520 !important;
    color-scheme: light;
}
html.theme-mocha .glass-panel, html.theme-mocha .tab-pane > .glass-panel:first-of-type {
    background: #fffdf9 !important;
    border: 2px solid #2c2520 !important;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px !important;
    box-shadow: 3px 4px 0px rgba(44, 37, 32, 0.85) !important;
}
html.theme-mocha .glass-card {
    background: #ffffff !important;
    border: 1.8px solid #2c2520 !important;
    border-radius: 18px 220px 20px 210px / 210px 18px 220px 20px !important;
    box-shadow: 2px 3px 0px rgba(44, 37, 32, 0.8) !important;
}
html.theme-mocha .glass-modal, html.theme-mocha #qrisModal > div.relative {
    background: #fffdf9 !important;
    border: 2px solid #2c2520 !important;
    border-radius: 28px 14px 24px 16px / 16px 26px 14px 28px !important;
    box-shadow: 5px 6px 0px #2c2520 !important;
}
html.theme-mocha #custom-numpad {
    background: #fffdf9 !important;
    border-top: 2px solid #2c2520 !important;
    border-radius: 28px 34px 0 0 / 18px 22px 0 0 !important;
}
html.theme-mocha .glass-input, html.theme-mocha select, html.theme-mocha option {
    background: #ffffff !important;
    border: 1.8px solid #2c2520 !important;
    border-radius: 14px 240px 16px 230px / 230px 14px 240px 16px !important;
    color: #2c2520 !important;
}
html.theme-mocha .glass-input::placeholder { color: #78716c !important; }
html.theme-mocha .glass-input:focus {
    box-shadow: 2px 3px 0px #f59e0b !important;
}
html.theme-mocha :is(.text-white, .text-slate-100) { color: #2c2520 !important; }
html.theme-mocha .text-slate-200 { color: #44403c !important; }
html.theme-mocha .text-slate-300 { color: #57534e !important; }
html.theme-mocha :is(.text-slate-400, .text-slate-500) { color: #78716c !important; }
html.theme-mocha :is(.text-indigo-300, .text-indigo-400, .text-amber-300, .text-amber-400) { color: #b45309 !important; font-weight: 700; }
html.theme-mocha :is(.text-emerald-300, .text-emerald-400) { color: #15803d !important; font-weight: 700; }
html.theme-mocha :is(.text-rose-300, .text-rose-400) { color: #be123c !important; font-weight: 700; }
html.theme-mocha :is(.text-purple-300, .text-purple-400) { color: #6d28d9 !important; font-weight: 700; }

html.theme-mocha :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80) {
    background-color: #f5efe6 !important;
    border: 1.5px dashed #2c2520 !important;
    color: #2c2520 !important;
}
html.theme-mocha :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: #ede6db !important;
    border: 1.8px solid #2c2520 !important;
    border-radius: 14px 220px 14px 220px / 220px 14px 220px 14px !important;
    color: #2c2520 !important;
}
html.theme-mocha :is(.bg-indigo-600, .bg-indigo-600\/30, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) {
    background-color: #fde68a !important;
    border: 2px solid #2c2520 !important;
    border-radius: 16px 240px 18px 230px / 230px 16px 240px 18px !important;
    box-shadow: 2px 3px 0px #2c2520 !important;
    color: #2c2520 !important;
    font-weight: 700 !important;
}
html.theme-mocha :is(#subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) :is(i, span) {
    color: #2c2520 !important;
}
html.theme-mocha :is(.bg-emerald-600, #btn-type-pemasukan.bg-emerald-500\/20, #btn-debt-piutang.bg-emerald-500\/20) {
    background-color: #bbf7d0 !important;
    border: 2px solid #2c2520 !important;
    box-shadow: 2px 3px 0px #2c2520 !important;
    color: #2c2520 !important;
}
html.theme-mocha :is(.bg-rose-500, .bg-rose-600, #btn-type-pengeluaran.bg-rose-500\/20, #btn-debt-utang.bg-rose-500\/20, button:is(.bg-rose-500\/20, .bg-rose-500\/30)) {
    background-color: #fecdd3 !important;
    border: 2px solid #2c2520 !important;
    box-shadow: 2px 3px 0px #2c2520 !important;
    color: #2c2520 !important;
    opacity: 1 !important;
}
html.theme-mocha button:is(.bg-rose-500\/20, .bg-rose-500\/30) i { color: #2c2520 !important; }
html.theme-mocha :is(.bg-rose-500\/20, .bg-rose-500\/15, .bg-rose-500\/30):not(button) {
    background-color: #ffe4e6 !important;
    border: 1.5px dashed #2c2520 !important;
    color: #be123c !important;
}
html.theme-mocha :is(.bg-emerald-500\/20, .bg-emerald-500\/15, .bg-emerald-500\/30):not(button) {
    background-color: #dcfce7 !important;
    border: 1.5px dashed #2c2520 !important;
    color: #15803d !important;
}
html.theme-mocha div:is([class*="rounded-2xl"], [class*="rounded-xl"]):is([class*="bg-slate-"], [class*="bg-gray-"], [class*="bg-zinc-"], [class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"], [class*="bg-cyan-"], [class*="bg-sky-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-violet-"], [class*="bg-purple-"], [class*="bg-fuchsia-"], [class*="bg-pink-"], [class*="bg-rose-"], [class*="bg-red-"], [class*="bg-orange-"], [class*="bg-amber-"], [class*="bg-yellow-"], [class*="bg-lime-"]),
html.theme-mocha .color-opt {
    border: 1.5px solid #2c2520 !important;
    border-radius: 14px 200px 14px 200px / 200px 14px 200px 14px !important;
    box-shadow: 2px 2px 0px rgba(44, 37, 32, 0.8) !important;
    opacity: 1 !important;
}
html.theme-mocha div:is([class*="rounded-2xl"], [class*="rounded-xl"]) i.text-white { color: #ffffff !important; }
html.theme-mocha [onclick="showProfileAvatarModal()"] {
    border: 2px solid #2c2520 !important;
    box-shadow: 3px 3px 0px rgba(44, 37, 32, 0.85) !important;
    background-color: #fffdf9 !important;
}
html.theme-mocha #bottom-nav-container > div > div:first-child {
    background: #fffdf9 !important;
    border: 2px solid #2c2520 !important;
    border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px !important;
    box-shadow: 3px 4px 0px #2c2520 !important;
}
html.theme-mocha #bottom-nav-container > div > div:first-child button {
    background-color: transparent !important;
    color: #57534e !important;
}
html.theme-mocha #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: #fde68a !important;
    border: 1.5px solid #2c2520 !important;
    border-radius: 14px 200px 14px 200px / 200px 14px 200px 14px !important;
    color: #2c2520 !important;
    font-weight: 700 !important;
}
html.theme-mocha #bottom-nav-container > div > div:first-child button.bg-white\/20 :is(i, span) {
    color: #2c2520 !important;
}
html.theme-mocha #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: #fdba74 !important;
    border: 2px solid #2c2520 !important;
    border-radius: 55% 45% 48% 52% / 45% 55% 45% 55% !important;
    box-shadow: 2px 3px 0px #2c2520 !important;
}
html.theme-mocha #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #2c2520 !important;
}
html.theme-mocha :is(.border-white\/5, .border-white\/10, .border-white\/20, .border-indigo-500\/20, .border-indigo-500\/30, .border-emerald-500\/30, .border-rose-500\/30, .border-amber-500\/30) {
    border-color: #2c2520 !important;
}
html.theme-mocha .bg-indigo-500\/15 {
    background-color: #fef3c7 !important;
    border: 1.8px dashed #2c2520 !important;
}

/* Tema Lavender Dusk */
html.theme-lavender {
    --bg-color: #171424;
    --bg-image:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(167, 139, 250, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 65% 45% at 85% 15%, rgba(244, 114, 182, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 105%, rgba(124, 58, 237, 0.16) 0%, transparent 60%);
    --panel-bg: linear-gradient(155deg, rgba(44, 39, 68, 0.92) 0%, rgba(26, 23, 41, 0.97) 100%);
    --panel-border: rgba(196, 181, 253, 0.26);
    --panel-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.65), 0 0 24px -6px rgba(167, 139, 250, 0.18), inset 0 1px 0 0 rgba(245, 243, 255, 0.16);
    --card-bg: linear-gradient(165deg, rgba(54, 48, 82, 0.78) 0%, rgba(31, 27, 48, 0.92) 100%);
    --card-border: rgba(196, 181, 253, 0.18);
    --card-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.42), inset 0 1px 0 0 rgba(245, 243, 255, 0.1);
    --hero-bg: linear-gradient(135deg, rgba(61, 51, 96, 0.95) 0%, rgba(30, 26, 48, 0.98) 58%, rgba(52, 39, 82, 0.96) 100%);
    --hero-border: rgba(196, 181, 253, 0.4);
    --hero-shadow: 0 22px 50px -12px rgba(91, 33, 182, 0.5), inset 0 1px 1px rgba(245, 243, 255, 0.22);
    --modal-bg: #221e33;
    --modal-border: rgba(196, 181, 253, 0.3);
    --input-bg: #171424;
    --input-border: rgba(196, 181, 253, 0.26);
    --input-color: #f5f3ff;
    --input-focus-border: #c4b5fd;
    --input-focus-shadow: 0 0 20px rgba(180, 160, 248, 0.32);
    --container-dark: rgba(23, 20, 36, 0.82);
    --container-dark-border: rgba(196, 181, 253, 0.18);
    --btn-sec-bg: #383254;
    --btn-sec-border: rgba(196, 181, 253, 0.26);
    --btn-sec-color: #ede9fe;
    --accent-bg: linear-gradient(135deg, #7c3aed, #a78bfa);
    --accent-border: #ddd6fe;
    --accent-shadow: 0 8px 22px -4px rgba(139, 116, 214, 0.45);
    --accent-text: #c4b5fd;
    --accent-soft-bg: rgba(196, 181, 253, 0.2);
    --accent-soft-border: rgba(196, 181, 253, 0.36);
    --nav-bg: rgba(36, 32, 56, 0.95);
    --nav-border: rgba(196, 181, 253, 0.28);
    --nav-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(245, 243, 255, 0.2);
    --nav-text: #ddd6fe;
    --nav-active-bg: rgba(196, 181, 253, 0.3);
    --nav-active-border: rgba(221, 214, 254, 0.48);
    --fab-bg: linear-gradient(135deg, #7c3aed, #a78bfa);
    --fab-border: rgba(245, 243, 255, 0.5);
    --fab-shadow: 0 8px 28px rgba(167, 139, 250, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Base Layout & Shared Components */
html {
    color-scheme: dark;
    background-color: var(--bg-color);
}
html, body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color) !important;
    background-image: var(--bg-image) !important;
    background-size: var(--bg-size) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', sans-serif;
    color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
}
html.theme-mocha, html.theme-mocha body { font-family: 'Balsamiq Sans', 'Inter', sans-serif !important; }
html.theme-emerald, html.theme-emerald body { font-family: 'Space Grotesk', 'Inter', sans-serif !important; }
html.theme-rose, html.theme-rose body { font-family: 'Space Grotesk', 'Inter', sans-serif !important; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.glass-panel {
    background: var(--panel-bg) !important;
    border: 1px solid var(--panel-border) !important;
    box-shadow: var(--panel-shadow) !important;
    isolation: isolate;
}
.glass-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: var(--card-shadow) !important;
    transform: translateZ(0);
}
.tab-pane > .glass-panel:first-of-type {
    background: var(--hero-bg) !important;
    border: 1px solid var(--hero-border) !important;
    box-shadow: var(--hero-shadow) !important;
}
.glass-modal, #custom-numpad, #qrisModal > div.relative {
    background: var(--modal-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--modal-border) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: translateZ(0);
    isolation: isolate;
}
.glass-input, select, option {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--input-color) !important;
}
.glass-input:focus {
    border-color: var(--input-focus-border) !important;
    box-shadow: var(--input-focus-shadow) !important;
}

/* Containers, Buttons & Navigation via Variables */
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80) {
    background-color: var(--container-dark) !important;
    border-color: var(--container-dark-border) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: var(--btn-sec-bg) !important;
    border-color: var(--btn-sec-border) !important;
    color: var(--btn-sec-color) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.bg-indigo-600, .bg-indigo-600\/30) {
    background: var(--accent-bg) !important;
    border-color: var(--accent-border) !important;
    box-shadow: var(--accent-shadow) !important;
    color: var(--accent-color) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.text-indigo-300, .text-indigo-400) {
    color: var(--accent-text) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.border-indigo-500, .border-indigo-500\/20, .border-indigo-500\/30) {
    border-color: var(--accent-soft-border) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) :is(.bg-indigo-500\/10, .bg-indigo-500\/15, .bg-indigo-500\/20, .bg-indigo-500\/30) {
    background-color: var(--accent-soft-bg) !important;
    border-color: var(--accent-soft-border) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) #bottom-nav-container > div > div:first-child {
    background: var(--nav-bg) !important;
    border-color: var(--nav-border) !important;
    box-shadow: var(--nav-shadow) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) #bottom-nav-container > div > div:first-child button:not(.bg-white\/20) {
    color: var(--nav-text) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: var(--nav-active-bg) !important;
    border-color: var(--nav-active-border) !important;
    color: var(--nav-active-color) !important;
}
html:not(.theme-light):not(.theme-mint):not(.theme-mocha):not(.theme-emerald):not(.theme-rose) #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: var(--fab-bg) !important;
    border-color: var(--fab-border) !important;
    box-shadow: var(--fab-shadow) !important;
}

/* =========================================================
   TEMA TERANG (Paper Retro / Neobrutalism)
   ========================================================= */
html.theme-light, html.theme-light body {
    background-color: #f7f3eb !important;
    background-image:
        linear-gradient(to right, rgba(24, 24, 27, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 24, 27, 0.06) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    color: #18181b !important;
    color-scheme: light;
}
html.theme-light .glass-panel, html.theme-light .tab-pane > .glass-panel:first-of-type {
    background: #fffdf7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 4px 4px 0px #18181b !important;
}
html.theme-light .glass-card {
    background: #ffffff !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}
html.theme-light .glass-modal, html.theme-light #qrisModal > div.relative {
    background: #fffdf7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 6px 6px 0px #18181b !important;
}
html.theme-light #custom-numpad {
    background: #fffdf7 !important;
    border-top: 2px solid #18181b !important;
    box-shadow: 0 -4px 0px #18181b !important;
}
html.theme-light .glass-input, html.theme-light select, html.theme-light option {
    background: #ffffff !important;
    border: 2px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-light .glass-input::placeholder { color: #71717a !important; }
html.theme-light .glass-input:focus {
    box-shadow: 3px 3px 0px #fbbf24 !important;
    border-color: #18181b !important;
}
html.theme-light button:active, html.theme-light a[download]:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 0px 0px 0px #18181b !important;
}
html.theme-light :is(.text-white, .text-slate-100) { color: #18181b !important; }
html.theme-light .text-slate-200 { color: #27272a !important; }
html.theme-light .text-slate-300 { color: #3f3f46 !important; }
html.theme-light :is(.text-slate-400, .text-slate-500) { color: #52525b !important; }
html.theme-light :is(.text-indigo-300, .text-indigo-400, .text-amber-300, .text-amber-400) { color: #92400e !important; font-weight: 700; }
html.theme-light :is(.text-emerald-300, .text-emerald-400) { color: #065f46 !important; font-weight: 700; }
html.theme-light :is(.text-rose-300, .text-rose-400) { color: #9f1239 !important; font-weight: 700; }
html.theme-light :is(.text-purple-300, .text-purple-400) { color: #5b21b6 !important; font-weight: 700; }

html.theme-light :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80) {
    background-color: #fef3c7 !important;
    border: 1.5px solid #18181b !important;
    color: #18181b !important;
}
html.theme-light :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: #e4e4e7 !important;
    border: 1.5px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-light :is(.bg-indigo-600, .bg-indigo-600\/30, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) {
    background-color: #fbbf24 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-light :is(#subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) :is(i, span) {
    color: #18181b !important;
}
html.theme-light :is(.bg-emerald-600, #btn-type-pemasukan.bg-emerald-500\/20, #btn-debt-piutang.bg-emerald-500\/20) {
    background-color: #6ee7b7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-light :is(.bg-rose-500, .bg-rose-600, #btn-type-pengeluaran.bg-rose-500\/20, #btn-debt-utang.bg-rose-500\/20) {
    background-color: #fda4af !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-light :is(.bg-amber-400, .bg-amber-500) {
    background-color: #fcd34d !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-light button:is(.bg-rose-500\/20, .bg-rose-500\/30) {
    background-color: #fda4af !important;
    border: 2px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
html.theme-light button:is(.bg-rose-500\/20, .bg-rose-500\/30) i { color: #18181b !important; }
html.theme-light :is(.bg-rose-500\/20, .bg-rose-500\/15, .bg-rose-500\/30):not(button) {
    background-color: #ffe4e6 !important;
    border: 1.5px solid #18181b !important;
    color: #9f1239 !important;
}
html.theme-light :is([class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"]):not(button) {
    border: 1.5px solid #18181b !important;
}
html.theme-light div:is([class*="rounded-2xl"], [class*="rounded-xl"]):is([class*="bg-slate-"], [class*="bg-gray-"], [class*="bg-zinc-"], [class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"], [class*="bg-cyan-"], [class*="bg-sky-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-violet-"], [class*="bg-purple-"], [class*="bg-fuchsia-"], [class*="bg-pink-"], [class*="bg-rose-"], [class*="bg-red-"], [class*="bg-orange-"], [class*="bg-amber-"], [class*="bg-yellow-"], [class*="bg-lime-"]),
html.theme-light .color-opt {
    border: 1.5px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    opacity: 1 !important;
}
html.theme-light div:is([class*="rounded-2xl"], [class*="rounded-xl"]) i.text-white {
    color: #ffffff !important;
}
html.theme-light #bottom-nav-container > div > div:first-child {
    background: #fffdf7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 4px 4px 0px #18181b !important;
}
html.theme-light #bottom-nav-container > div > div:first-child button {
    background-color: transparent !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    color: #52525b !important;
}
html.theme-light #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: #fbbf24 !important;
    border: 1.5px solid #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-light #bottom-nav-container > div > div:first-child button.bg-white\/20 :is(i, span) {
    color: #18181b !important;
}
html.theme-light #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: #fbbf24 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}
html.theme-light #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #18181b !important;
    filter: none !important;
}
html.theme-light :is(.border-white\/5, .border-white\/10, .border-white\/20, .border-indigo-500\/20, .border-indigo-500\/30, .border-emerald-500\/30, .border-rose-500\/30, .border-amber-500\/30) {
    border-color: #18181b !important;
}
html.theme-light .bg-indigo-500\/15 {
    background-color: #fef3c7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}

/* =========================================================
   TEMA TERANG 2 (Mint Sketch / Neobrutalism)
   ========================================================= */
html.theme-mint, html.theme-mint body {
    background-color: #ecfdf5 !important;
    background-image: none !important;
    color: #18181b !important;
    color-scheme: light;
}
html.theme-mint .glass-panel, html.theme-mint .tab-pane > .glass-panel:first-of-type {
    background: #f0fdf4 !important;
    border: 2px solid #18181b !important;
    box-shadow: 4px 4px 0px #18181b !important;
}
html.theme-mint .glass-card {
    background: #ffffff !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}
html.theme-mint .glass-modal, html.theme-mint #qrisModal > div.relative {
    background: #f0fdf4 !important;
    border: 2px solid #18181b !important;
    box-shadow: 6px 6px 0px #18181b !important;
}
html.theme-mint #custom-numpad {
    background: #f0fdf4 !important;
    border-top: 2px solid #18181b !important;
    box-shadow: 0 -4px 0px #18181b !important;
}
html.theme-mint .glass-input, html.theme-mint select, html.theme-mint option {
    background: #ffffff !important;
    border: 2px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-mint .glass-input::placeholder { color: #71717a !important; }
html.theme-mint .glass-input:focus {
    box-shadow: 3px 3px 0px #34d399 !important;
    border-color: #18181b !important;
}
html.theme-mint button:active, html.theme-mint a[download]:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 0px 0px 0px #18181b !important;
}
html.theme-mint :is(.text-white, .text-slate-100) { color: #18181b !important; }
html.theme-mint .text-slate-200 { color: #27272a !important; }
html.theme-mint .text-slate-300 { color: #3f3f46 !important; }
html.theme-mint :is(.text-slate-400, .text-slate-500) { color: #52525b !important; }
html.theme-mint :is(.text-indigo-300, .text-indigo-400) { color: #0f766e !important; font-weight: 700; }
html.theme-mint :is(.text-amber-300, .text-amber-400) { color: #92400e !important; font-weight: 700; }
html.theme-mint :is(.text-emerald-300, .text-emerald-400) { color: #065f46 !important; font-weight: 700; }
html.theme-mint :is(.text-rose-300, .text-rose-400) { color: #9f1239 !important; font-weight: 700; }
html.theme-mint :is(.text-purple-300, .text-purple-400) { color: #5b21b6 !important; font-weight: 700; }

html.theme-mint :is(.bg-slate-950\/60, .bg-slate-950\/50, .bg-slate-900\/70, .bg-slate-900\/80, .bg-slate-900\/60, .bg-slate-900\/40, .bg-slate-900, .bg-indigo-950\/80) {
    background-color: #d1fae5 !important;
    border: 1.5px solid #18181b !important;
    color: #18181b !important;
}
html.theme-mint :is(.bg-slate-800, .bg-slate-800\/80, .bg-slate-700) {
    background-color: #e4e4e7 !important;
    border: 1.5px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-mint :is(.bg-indigo-600, .bg-indigo-600\/30, #subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) {
    background-color: #2dd4bf !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-mint :is(#subtab-btn-riwayat:not(.glass-card), #subtab-btn-budget:not(.glass-card), #subtab-btn-target:not(.glass-card)) :is(i, span) {
    color: #18181b !important;
}
html.theme-mint :is(.bg-emerald-600, #btn-type-pemasukan.bg-emerald-500\/20, #btn-debt-piutang.bg-emerald-500\/20) {
    background-color: #6ee7b7 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-mint :is(.bg-rose-500, .bg-rose-600, #btn-type-pengeluaran.bg-rose-500\/20, #btn-debt-utang.bg-rose-500\/20) {
    background-color: #fda4af !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-mint :is(.bg-amber-400, .bg-amber-500) {
    background-color: #fde047 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
    color: #18181b !important;
}
html.theme-mint button:is(.bg-rose-500\/20, .bg-rose-500\/30) {
    background-color: #fda4af !important;
    border: 2px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
html.theme-mint button:is(.bg-rose-500\/20, .bg-rose-500\/30) i { color: #18181b !important; }
html.theme-mint :is(.bg-rose-500\/20, .bg-rose-500\/15, .bg-rose-500\/30):not(button) {
    background-color: #ffe4e6 !important;
    border: 1.5px solid #18181b !important;
    color: #9f1239 !important;
}
html.theme-mint :is([class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"]):not(button) {
    border: 1.5px solid #18181b !important;
}
html.theme-mint div:is([class*="rounded-2xl"], [class*="rounded-xl"]):is([class*="bg-slate-"], [class*="bg-gray-"], [class*="bg-zinc-"], [class*="bg-emerald-"], [class*="bg-green-"], [class*="bg-teal-"], [class*="bg-cyan-"], [class*="bg-sky-"], [class*="bg-blue-"], [class*="bg-indigo-"], [class*="bg-violet-"], [class*="bg-purple-"], [class*="bg-fuchsia-"], [class*="bg-pink-"], [class*="bg-rose-"], [class*="bg-red-"], [class*="bg-orange-"], [class*="bg-amber-"], [class*="bg-yellow-"], [class*="bg-lime-"]),
html.theme-mint .color-opt {
    border: 1.5px solid #18181b !important;
    box-shadow: 2px 2px 0px #18181b !important;
    opacity: 1 !important;
}
html.theme-mint div:is([class*="rounded-2xl"], [class*="rounded-xl"]) i.text-white {
    color: #ffffff !important;
}
html.theme-mint #bottom-nav-container > div > div:first-child {
    background: #f0fdf4 !important;
    border: 2px solid #18181b !important;
    box-shadow: 4px 4px 0px #18181b !important;
}
html.theme-mint #bottom-nav-container > div > div:first-child button {
    background-color: transparent !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    color: #52525b !important;
}
html.theme-mint #bottom-nav-container > div > div:first-child button.bg-white\/20 {
    background-color: #2dd4bf !important;
    border: 1.5px solid #18181b !important;
    color: #18181b !important;
    font-weight: 700 !important;
}
html.theme-mint #bottom-nav-container > div > div:first-child button.bg-white\/20 :is(i, span) {
    color: #18181b !important;
}
html.theme-mint #bottom-nav-container > div > div:last-child:not(:only-child) button {
    background: #fde047 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}
html.theme-mint #bottom-nav-container > div > div:last-child:not(:only-child) button i {
    color: #18181b !important;
    filter: none !important;
}
html.theme-mint :is(.border-white\/5, .border-white\/10, .border-white\/20, .border-indigo-500\/20, .border-indigo-500\/30, .border-emerald-500\/30, .border-rose-500\/30, .border-amber-500\/30) {
    border-color: #18181b !important;
}
html.theme-mint .bg-indigo-500\/15 {
    background-color: #d1fae5 !important;
    border: 2px solid #18181b !important;
    box-shadow: 3px 3px 0px #18181b !important;
}

/* =========================================================
   DEKORASI KHUSUS TIAP TEMA
   ========================================================= */
.tab-pane > :first-child { position: relative; }

html:not([class*="theme-"]) .tab-pane > :first-child::after {
    content: ""; position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    border-top: 2px solid rgba(129, 140, 248, 0.35); border-right: 2px solid rgba(56, 189, 248, 0.35);
    border-top-right-radius: 12px; pointer-events: none;
}
html.theme-light .tab-pane > :first-child { overflow: visible !important; }
html.theme-light .tab-pane > :first-child::before {
    content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2.5deg);
    width: 88px; height: 20px; background: rgba(251, 191, 36, 0.72); border: 1.5px solid #18181b;
    box-shadow: 2px 2px 0px rgba(24, 24, 27, 0.25); z-index: 20; pointer-events: none;
}
html.theme-light .tab-pane > :first-child::after {
    content: "CATATAN TABUNGANKU"; position: absolute; top: 8px; right: 12px; font-size: 8px;
    font-weight: 800; letter-spacing: 0.12em; color: #9f1239; border: 1.5px dashed #9f1239;
    padding: 2px 6px; border-radius: 4px; transform: rotate(4deg); opacity: 0.45; pointer-events: none;
}

html.theme-mint .tab-pane > :first-child { overflow: visible !important; }
html.theme-mint .tab-pane > :first-child::before {
    content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(2deg);
    width: 88px; height: 20px; background: rgba(45, 212, 191, 0.78); border: 1.5px solid #18181b;
    box-shadow: 2px 2px 0px rgba(24, 24, 27, 0.25); z-index: 20; pointer-events: none;
}
html.theme-mint .tab-pane > :first-child::after {
    content: "CATATAN TABUNGANKU"; position: absolute; top: 8px; right: 12px; font-size: 8px;
    font-weight: 800; letter-spacing: 0.12em; color: #0f766e; border: 1.5px dashed #0f766e;
    padding: 2px 6px; border-radius: 4px; transform: rotate(-4deg); opacity: 0.55; pointer-events: none;
}
/* Dekorasi Bauhaus (segitiga/lingkaran geometris di pojok) */
html.theme-emerald .tab-pane > :first-child::after {
    content: ""; position: absolute; bottom: 10px; right: 10px; width: 22px; height: 22px;
    border-radius: 9999px; background: #d92b2b; border: 2px solid #111111;
    box-shadow: -14px 0 0 -2px #eab308; pointer-events: none;
}
/* Dekorasi Manga (efek onomatopoeia lembut) */
html.theme-rose .tab-pane > :first-child::after {
    content: "ゴゴゴ"; position: absolute; top: 8px; right: 10px; font-size: 9px;
    font-weight: 800; letter-spacing: 0.08em; color: #374151;
    background: #f9fafb; border: 1.5px solid #4b5563; border-radius: 4px; padding: 1px 5px;
    opacity: 0.7; transform: rotate(-3deg); pointer-events: none;
}
/* Dekorasi Material You (tonal blob lembut) */
html.theme-nordic .tab-pane > :first-child::after {
    content: ""; position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
    border-radius: 14px; transform: rotate(15deg);
    background: rgba(208, 188, 255, 0.16); pointer-events: none;
}
/* Dekorasi Hand-Drawn (coretan bintang/lingkaran pensil) */
html.theme-mocha .tab-pane > :first-child::after {
    content: "✦ ~"; position: absolute; top: 10px; right: 14px; font-size: 13px;
    font-weight: 700; color: #b45309; transform: rotate(8deg); pointer-events: none;
}
@keyframes starTwinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
html.theme-lavender body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 14% 9%, #ede9fe 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 32% 16%, #c4b5fd 50%, transparent 100%),
        radial-gradient(2px 2px at 74% 7%, #ffffff 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 19%, #ddd6fe 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 56% 11%, #c4b5fd 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 22% 28%, #f5d0fe 50%, transparent 100%);
    animation: starTwinkle 4s ease-in-out infinite;
}
html.theme-lavender .tab-pane > :first-child::after {
    content: ""; position: absolute; top: 16px; right: 22px; width: 26px; height: 26px;
    border-radius: 9999px; box-shadow: -6px 4px 0 0 rgba(221, 214, 254, 0.32); pointer-events: none;
}
/* Fix Avatar Bulat Sempurna di Beranda & Profil */
html [onclick="showProfileAvatarModal()"],
html [onclick="showProfileAvatarModal()"] > div,
html [onclick="showProfileAvatarModal()"] img,
html div.rounded-full:has(img),
html div.rounded-full > img {
    border-radius: 9999px !important;
    overflow: hidden !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}
[onclick="showProfileAvatarModal()"] img {
    border-radius: 9999px !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}
html:is(.theme-emerald, .theme-rose, .theme-mocha, .theme-light, .theme-mint) [onclick="showProfileAvatarModal()"] {
    box-shadow: none !important;
}
html:is(.theme-emerald, .theme-rose, .theme-mocha, .theme-light, .theme-mint) .relative.inline-block > .blur-md {
    display: none !important;
}

/* Animations & Utilities */
.fade-in { animation: fadeIn 0.2s ease-in-out; }
.slide-up { animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.tab-pane { animation: fadeIn 0.2s ease-out forwards; }
.nav-tab-btn { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.spinner { border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 50%; border-top: 3px solid #818cf8; width: 28px; height: 28px; animation: spin 1s linear infinite; }
#custom-numpad button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Paksa tulisan & ikon toast putih di semua tema */
html[class*="theme-"] #toast-container > div,
html[class*="theme-"] #toast-container > div > i,
html[class*="theme-"] #toast-container > div > span {
    color: #ffffff !important;
}

