        :root {
            /* =========================================
               DARK MODE (Default)
               ========================================= */
            --primary: #0ea5e9;
            --primary-dark: #0284c7;
            --primary-light: #7dd3fc;
            --accent: #f59e0b;
            
            --bg-progress: rgba(255, 255, 255, 0.12);
            --bg-body: #0f172a;
            --bg-body-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            
            --bg-card: #1e293b;
            --bg-card-light: #334155;
            
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            
            /* UI Variables */
            --border-radius: 16px;
            --border-radius-sm: 12px;
            --border-color: rgba(255, 255, 255, 0.08);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
            
            --sidebar-width: 280px;
            --header-height: 80px;
            --nav-height-mobile: 75px;

            /* Typography */
            --font-display: 'Playfair Display', serif;
            --font-body: 'Inter', sans-serif;
            --font-h1: 2.75rem;
            --font-h2: 1.75rem;
            --font-h3: 1.25rem;

            /* Animations */
            --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
            --ease-bouncy: cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }

        /* =========================================
           LIGHT MODE
           ========================================= */
        [data-theme="light"] {
            --bg-body: #f1f5f9;
            --bg-body-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            
            --bg-card: #ffffff;
            --bg-card-light: #f8fafc;
            
            --text-main: #0f172a;
            --text-muted: #64748b;
            
            --border-color: rgba(0, 0, 0, 0.08);
            --shadow: 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.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        /* Reset & Base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            background: var(--bg-body-gradient);
            background-attachment: fixed;
            color: var(--text-main);
            overflow-x: hidden;
            font-size: 15px;
            font-family: var(--font-body);
            line-height: 1.6;
            transition: background 0.3s ease, color 0.3s ease;
        }
        
        /* Subtle animated background pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        
        /* Remove Input Spinners */
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .app-header {
        padding-top: max(20px, env(safe-area-inset-top));

        background-color: #0284c7; /* sama dengan theme-color */
        
        /* Pastikan elemen lain juga disesuaikan jika menggunakan navigasi bawah */
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        }
        
        /* ================= LOGIN PAGE ================= */
        .login-container {
            position: fixed;
            inset: 0;
            background: var(--bg-body-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            transition: opacity 0.5s ease, visibility 0.5s;
        }
        .login-container.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .login-card {
            background: var(--bg-card);
            padding: 48px;
            border-radius: 24px; /* Extra rounded for Login */
            box-shadow: var(--shadow-lg);
            width: 90%;
            max-width: 420px;
            animation: slideUp 0.6s var(--ease-smooth);
            border: 1px solid var(--border-color);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-header {
            text-align: center;
            margin-bottom: 32px;
        }
        .login-header i {
            font-size: 4rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            display: inline-block;
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.05); }
        }
        
        .login-header h1 {
            font-family: var(--font-display);
            font-size: 2rem;
            color: var(--text-main);
            margin-bottom: 8px;
            font-weight: 800;
        }
        .login-header p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .form-group {
            margin-bottom: 16px;
        }
        .form-group label {
            display: block;
            margin-bottom: 7px;
            font-weight: 600;
            font-size: 0.78rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 11px 14px;
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
            background: var(--bg-body);
            color: var(--text-main);
            font-family: var(--font-body);
            font-weight: 500;
        }
        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
            background: var(--bg-card);
        }
        .form-group input::placeholder {
            color: var(--text-muted);
            opacity: 0.55;
            font-weight: 400;
        }
        .form-group select {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }

        .btn-primary {
            width: 100%;
            padding: 10px 12px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s var(--ease-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: var(--font-body);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
        }
        .btn-primary:active {
            transform: scale(0.98);
        }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .login-error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            padding: 14px 16px;
            border-radius: 12px;
            margin-bottom: 24px;
            font-size: 0.9rem;
            display: none;
            border-left: 4px solid var(--danger);
            align-items: center;
            gap: 12px;
        }
        .login-error.show {
            display: flex;
            animation: shake 0.4s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-8px); }
            75% { transform: translateX(8px); }
        }

        /* ================= APP LAYOUT ================= */
        .app-container {
            display: none;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }
        .app-container.active {
            display: flex;
        }

        /* Sidebar (Desktop) */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--bg-card);
            border-right: 1px solid var(--border-color);
            padding: 28px 24px;
            display: flex;
            flex-direction: column;
            position: fixed;
            height: 100%;
            z-index: 100;
            transition: transform 0.3s var(--ease-smooth);
            backdrop-filter: blur(10px);
        }
        
        .logo {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 48px;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.5px;
        }
        
        .logo-mobile {
            display: none;
        }

        .logo-mobile-card {
            display: none;
        }

        @media (max-width: 768px) {
            .logo-mobile {
                font-family: var(--font-display);
                font-size: 1.75rem;
                font-weight: 900;
                background: linear-gradient(135deg, var(--primary), var(--accent));
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 12px;
                letter-spacing: -0.5px;
            }

            .logo-mobile-card {
                display: flex;
                justify-content: center;
            }
        }

        .nav-menu {
            list-style: none;
            flex: 1;
        }
        .nav-item {
            margin-bottom: 8px;
        }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            color: var(--text-muted);
            background: none;
            border: none;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.2s;
            width: 100%;
            text-align: left;
            font-size: 0.95rem;
            cursor: pointer;
            font-family: var(--font-body);
        }
        .nav-link i {
            font-size: 1.4rem;
        }
        .nav-link:hover {
            background: rgba(14, 165, 233, 0.1);
            color: var(--primary);
            transform: translateX(4px);
        }
        .nav-link.active {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
        }

        /* Main Content */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 32px;
            padding-bottom: 100px;
            width: calc(100% - var(--sidebar-width));
            transition: margin-left 0.3s;
            min-height: 100vh;
        }

        /* ================= DASHBOARD HEADER ================= */
        .dashboard-header {
            position: relative;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 24px 0;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .welcome-box {
            margin-bottom: 24px;
        }
        
        .user-welcome h2 {
            font-family: var(--font-display);
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.2;
        }
        .user-welcome h2 span {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-widgets {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .digital-clock {
            font-family: 'Courier New', monospace;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            background: var(--bg-card);
            padding: 10px 20px;
            border-radius: 12px;
            border: 2px solid rgba(14, 165, 233, 0.2);
            letter-spacing: 2px;
        }

        .date-badge {
            display: inline-flex;
            align-items: center;
            background: var(--bg-card);
            color: var(--text-muted);
            padding: 18px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        
        .date-badge:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
        }

        /* Cards */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }
        
        .card {
            background: var(--bg-card);
            padding: 28px;
            border-radius: 16px; /* FORCE ROUNDED */
            box-shadow: var(--shadow);
            position: relative;
            border: 1px solid var(--border-color);
            transition: all 0.3s var(--ease-smooth);
        }
        
        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: rgba(14, 165, 233, 0.3);
        }
        
        .card-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .card-value {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            font-weight: 900;
            color: var(--text-main);
            letter-spacing: -1px;
        }
        .card.income .card-value {
            color: var(--success);
        }
        .card.expense .card-value {
            color: var(--danger);
        }

        .accounts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        
        .account-card {
            background: var(--bg-card-light);
            padding: 18px;
            border-radius: 16px; /* FORCE ROUNDED */
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: all 0.3s var(--ease-smooth);
            position: relative;
            overflow: hidden;
        }
        
        .account-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .account-card:hover {
            transform: translateY(-2px);
            border-color: rgba(14, 165, 233, 0.4);
            background: var(--bg-card);
        }
        
        .account-card:hover::before {
            opacity: 1;
        }
        
        .acc-name {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .acc-amount {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-main);
        }
        .acc-amount.negative {
            color: var(--danger);
        }

        /* ================= MOBILE NAVIGATION ================= */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: var(--nav-height-mobile);
            background: var(--bg-card);
            box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.3);
            z-index: 900;
            justify-content: space-around;
            align-items: center;
            padding: 0 12px;
            border-top: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
        }

        .nav-item-mobile {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.7rem;
            width: 70px;
            transition: all 0.3s;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 12px;
            font-family: var(--font-body);
        }
        .nav-item-mobile i {
            font-size: 1.75rem;
            margin-bottom: 4px;
            transition: transform 0.2s;
        }
        .nav-item-mobile.active {
            color: var(--primary);
            background: rgba(14, 165, 233, 0.1);
        }
        .nav-item-mobile.active i {
            transform: translateY(-2px) scale(1.1);
        }

        /* ================= FAB ANIMATIONS & STYLES ================= */
        
        .fab-wrapper-mobile {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.2);
            border-color: rgba(255, 255, 255, 0.08);
            color: white;
            font-size: 32px;
            cursor: pointer;
            transition: all 0.3s var(--ease-bouncy);
            z-index: 1000;
        }
        .fab-wrapper-mobile:active {
            transform: scale(0.9);
        }
        .fab-wrapper-mobile:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6);
        }
        
        .fab-wrapper-mobile i {
            transition: transform 0.4s var(--ease-bouncy);
        }
        .fab-wrapper-mobile.active i {
            transform: rotate(135deg);
        }

        .fab-menu {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: center;
            z-index: 999;
            pointer-events: none;
        }

        .fab-container {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 18px;
            position: fixed;
            bottom: 32px;
            right: 32px;
            z-index: 90;
            pointer-events: none; /* container itself never blocks clicks */
        }
        
        .fab-main {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.2);
            font-size: 32px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s var(--ease-bouncy);
            pointer-events: auto; /* only the button is clickable */
        }
        .fab-main:hover {
            transform: scale(1.1);
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6);
        }
        .fab-main:active {
            transform: scale(0.9);
        }

        .fab-main i {
            transition: transform 0.4s var(--ease-bouncy);
        }
        .fab-main.active i {
            transform: rotate(135deg);
        }

        .fab-menu-desktop {
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: flex-end;
            padding-bottom: 5px;
            pointer-events: none;
        }

        .fab-option {
            padding: 14px 28px;
            border-radius: 50px;
            color: white;
            text-decoration: none;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 12px;
            width: auto;
            min-width: 150px;
            justify-content: flex-start;
            opacity: 0;
            transform: translateY(20px) scale(0.5);
            transition: all 0.4s var(--ease-bouncy);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-family: var(--font-body);
        }

        .fab-option i {
            font-size: 1.3rem;
        }

        .fab-option.income {
            background: linear-gradient(135deg, var(--success), #059669);
        }
        .fab-option.expense {
            background: linear-gradient(135deg, var(--danger), #dc2626);
        }
        .fab-option.transfer {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        }

        .fab-menu.show,
        .fab-menu-desktop.show {
            pointer-events: auto;
        }

        .fab-menu.show .fab-option,
        .fab-menu-desktop.show .fab-option {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .fab-menu.show .fab-option:nth-child(3),
        .fab-menu-desktop.show .fab-option:nth-child(3) {
            transition-delay: 0.05s;
        }
        .fab-menu.show .fab-option:nth-child(2),
        .fab-menu-desktop.show .fab-option:nth-child(2) {
            transition-delay: 0.1s;
        }
        .fab-menu.show .fab-option:nth-child(1),
        .fab-menu-desktop.show .fab-option:nth-child(1) {
            transition-delay: 0.15s;
        }

        .fab-option:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }
        .fab-option:active {
            transform: scale(0.95);
        }

        /* Transaction List */
        .transaction-list {
            background: var(--bg-card);
            border-radius: 16px;
            box-shadow: var(--shadow);
            overflow: clip; /* clips visually but does NOT cut pointer events */
            border: 1px solid var(--border-color);
        }
        
        .transaction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            transition: background 0.15s;
            gap: 16px;
            flex-wrap: nowrap;
            position: relative;
        }
        .transaction-item:last-child {
            border-bottom: none;
        }
        .transaction-item:hover {
            background: var(--bg-card-light);
        }
        
        .t-info {
            display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
            min-width: 0;
        }

        .t-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
            align-self: stretch;   /* fill full row height — no vertical gaps */
        }
        
        .t-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        .t-icon.income {
            background: rgba(16, 185, 129, 0.15);
            color: var(--success);
        }
        .t-icon.expense {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
        }
        .t-icon.transfer {
            background: rgba(14, 165, 233, 0.15);
            color: var(--primary);
        }
        
        .t-details h4 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            word-break: break-word;
        }
        .t-details {
            flex: 1;
            min-width: 0;
        }
        
        .badge-category {
            font-size: 0.7rem;
            background: rgba(14, 165, 233, 0.15);
            color: var(--primary);
            padding: 4px 10px;
            border-radius: 8px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        .badge-n8n {
            font-size: 0.65rem;
            background: rgba(245, 158, 11, 0.15);
            color: var(--accent);
            padding: 3px 8px;
            border-radius: 8px;
            font-weight: 700;
            letter-spacing: 0.3px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .badge-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin: 3px 0;
        }
        
        .t-details span {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        
        
        .t-amount {
            font-family: 'Cinzel', serif;
            font-weight: 700;
            font-size: 1.1rem;
            white-space: nowrap;
        }
        .t-amount.income {
            color: var(--success);
        }
        .t-amount.expense {
            color: var(--danger);
        }
        .t-amount.transfer {
            color: var(--primary);
        }

        .btn-icon {
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 10px;
            color: var(--text-muted);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            min-height: 40px;
            touch-action: manipulation;
        }
        .btn-icon:hover {
            background: rgba(14, 165, 233, 0.1);
            color: var(--primary);
        }
        .btn-icon.delete:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .modal-overlay.open {
            display: flex;
            opacity: 1;
        }
        
        .modal-card {
            background: var(--bg-card);
            width: 92%;
            max-width: 460px;
            border-radius: 24px;
            transform: scale(0.94) translateY(16px);
            transition: transform 0.32s var(--ease-smooth), opacity 0.32s;
            opacity: 0;
            box-shadow: var(--shadow-lg);
            max-height: 92vh;
            overflow: clip; /* clip bukan hidden — tidak blokir touch events di iOS Safari */
            position: relative;
            z-index: 2001;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }
        .modal-overlay.open .modal-card {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        /* Scrollable form area inside modal */
        .modal-body {
            padding: 22px 26px 28px;
            overflow-y: auto;
            flex: 1;
            scrollbar-width: thin;
            scrollbar-color: var(--bg-card-light) transparent;
        }
        .modal-body::-webkit-scrollbar {
            width: 4px;
        }
        .modal-body::-webkit-scrollbar-thumb {
            background: var(--bg-card-light);
            border-radius: 4px;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-header h3 {
            font-family: var(--font-display);
            font-size: 1.35rem;
            font-weight: 900;
            color: var(--text-main);
        }
        
        .close-modal {
            background: rgba(239, 68, 68, 0.1);
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            color: var(--danger);
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .close-modal:hover {
            background: rgba(239, 68, 68, 0.2);
            transform: rotate(90deg);
        }

        /* Sections */
        .view-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .view-section.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Loading */
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(8px);
            z-index: 3000;
            display: none;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 20px;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(14, 165, 233, 0.2);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Chart & Reports */
        .chart-container {
            background: var(--bg-card-light);
            padding: 24px;
            border-radius: 16px; /* FORCE ROUNDED */
            box-shadow: var(--shadow);
            height: 400px;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .report-controls {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        .report-controls input {
            padding: 12px;
            border: 2px solid var(--bg-card-light);
            border-radius: 12px; /* More rounded */
            font-family: var(--font-body);
            background: var(--bg-body);
            color: var(--text-main);
        }
        .report-controls input:focus {
            border-color: var(--primary);
            outline: none;
        }

        /* Toast */
        .toast-container {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 4000;
            display: flex;
            flex-direction: column;
            gap: 12px;
            left: auto;
            max-width: 400px;
        }
        
        .toast {
            background: var(--bg-card);
            padding: 18px 24px;
            border-radius: 16px; /* FORCE ROUNDED */
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 280px;
            width: auto;
            border-left: 5px solid var(--primary);
            animation: slideLeft 0.3s ease;
            flex-wrap: nowrap;
            border: 1px solid var(--border-color);
        }
        .toast.success {
            border-left-color: var(--success);
        }
        .toast.error {
            border-left-color: var(--danger);
        }
        
        @keyframes slideLeft {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* ================= PAGINATION ================= */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 24px;
            gap: 16px;
            flex-wrap: wrap;
        }
        
        .pagination-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 10px 20px;
            border-radius: 12px; /* More rounded */
            cursor: pointer;
            font-weight: 700;
            color: var(--text-main);
            transition: all 0.2s;
            font-size: 0.95rem;
            font-family: var(--font-body);
        }
        .pagination-btn:hover:not(:disabled) {
            background: var(--primary);
            border-color: var(--primary);
            transform: translateY(-2px);
            color: white;
        }
        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: var(--bg-card-light);
        }
        .pagination-info {
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        /* ================= HOME PAGE REDESIGN ================= */
        
        .home-container {
            display: flex;
            flex-direction: column;
            gap: 32px;
            animation: fadeIn 0.5s ease;
        }

        /* Level 1: Hero Balance */
        .balance-hero-card {
            background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-light) 100%);
            border-radius: 24px; /* FORCE ROUNDED */
            padding: 48px;
            color: var(--text-main);
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 220px;
            border: 1px solid var(--border-color);
        }
        
        .balance-hero-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        
        .balance-hero-card::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .balance-label {
            font-size: 1rem;
            font-weight: 600;
            opacity: 0.8;
            margin-bottom: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
        }

        /* Flex container for Balance Value and Toggle Button */
        .balance-row {
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            z-index: 1;
        }

        .balance-value {
            font-family: 'Cinzel', serif;
            font-size: var(--font-h1);
            font-weight: 900;
            letter-spacing: -2px;
            line-height: 1;
        }

        /* Privacy Toggle Button Style - UPDATED to be inline */
        .toggle-privacy-btn-hero {
            background: rgba(14, 165, 233, 0.15);
            border: 2px solid rgba(14, 165, 233, 0.3);
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(4px);
            flex-shrink: 0;
        }
        .toggle-privacy-btn-hero:hover {
            background: rgba(14, 165, 233, 0.25);
            transform: scale(1.1);
            border-color: var(--primary);
        }
        .toggle-privacy-btn-hero i {
            font-size: 1.3rem;
            transition: transform 0.3s;
        }

        /* Level 2: Income & Expense Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .stat-card {
            background: var(--bg-card);
            padding: 28px;
            border-radius: 20px; /* FORCE ROUNDED */
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.3s var(--ease-smooth);
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: rgba(14, 165, 233, 0.3);
        }

        .stat-info {
            text-align: left;
            flex: 1;
        }

        .stat-info h4 {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 700;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-info p {
            font-family: 'Cinzel', serif;
            font-size: var(--font-h3);
            font-weight: 900;
            letter-spacing: -1px;
        }

        .stat-icon-wrapper {
            width: 64px;
            height: 64px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            flex-shrink: 0;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .stat-icon-wrapper.income {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
            color: var(--success);
            border: 2px solid rgba(16, 185, 129, 0.2);
        }
        
        .stat-icon-wrapper.expense {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
            color: var(--danger);
            border: 2px solid rgba(239, 68, 68, 0.2);
        }

        /* Level 3: Split Layout */
        .dashboard-split {
            display: grid;
            grid-template-columns: 1.6fr 1fr;
            gap: 32px;
            align-items: start;
        }

        .column-wrapper {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 28px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            height: 100%;
            overflow: visible;
            display: flex;
            flex-direction: column;
        }

        .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .column-title {
            font-family: var(--font-display);
            font-size: var(--font-h2);
            font-weight: 900;
            color: var(--text-main);
        }

        .view-all-btn {
            font-size: 0.9rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s;
        }
        .view-all-btn:hover {
            color: var(--accent);
            transform: translateX(4px);
        }

        /* ================= FILTER SECTION (Refined) ================= */
        .filter-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            align-items: start; /* Agar label rata atas jika ada perbedaan tinggi */
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .filter-group label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
            margin: 0; /* Reset margin default */
        }

        .filter-group select,
        .filter-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-body);
            color: var(--text-main);
            font-family: var(--font-body);
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.2s;
        }

        .filter-group select:focus,
        .filter-group input:focus {
            border-color: var(--primary);
        }

        .filter-actions {
            display: flex;
            gap: 8px;
            align-self: end; /* Tombol rata bawah sejajar dengan input */
            margin-top: auto; /* Dorong ke bawah jika container lebih tinggi */
        }

        /* Responsive: Stack filter items on mobile */
        @media (max-width: 600px) {
            .filter-section {
                grid-template-columns: 1fr;
            }
            .filter-actions {
                width: 100%;
                margin-top: 4px;
            }
            .filter-actions .btn-primary,
            .filter-actions .btn-icon {
                flex: 1;
                justify-content: center;
            }
        }
        
        /* ================= THEME TOGGLE SWITCH ================= */
        .theme-toggle-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .theme-label-group {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-main);
        }

        .theme-switch {
            position: relative;
            display: inline-block;
            width: 52px;
            height: 28px;
        }
        .theme-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        input:checked + .slider {
            background-color: var(--primary);
        }
        input:focus + .slider {
            box-shadow: 0 0 1px var(--primary);
        }
        input:checked + .slider:before {
            transform: translateX(24px);
        }

        /* Responsive for Home */
        @media (max-width: 1024px) {
            .dashboard-split {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }
        
        @media (max-width: 768px) {
            .dashboard-split {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .column-wrapper {
                padding: 20px;
            }

            .column-header {
                margin-bottom: 20px;
            }

            .column-title {
                font-size: var(--font-h3);
            }

            /* Override inline style di accountBalancesList */
            #accountBalancesList {
                grid-template-columns: 1fr 1fr !important;
                gap: 12px !important;
            }

            /* Transaction items dalam dashboard-split */
            .column-wrapper .transaction-item {
                padding: 14px 16px;
                gap: 12px;
                min-height: auto;
            }

            .column-wrapper .t-icon {
                width: 42px;
                height: 42px;
                font-size: 1.1rem;
                flex-shrink: 0;
            }

            .column-wrapper .t-info {
                gap: 12px;
                flex: 1;
                min-width: 0;
            }

            .column-wrapper .t-details {
                flex: 1;
                min-width: 0;
            }

            .column-wrapper .t-details h4 {
                font-size: 0.95rem;
                margin-bottom: 4px;
            }

            .column-wrapper .t-details span {
                font-size: 0.8rem;
            }

            .column-wrapper .t-amount {
                font-size: 0.95rem;
                flex-shrink: 0;
            }

            .column-wrapper .badge-category {
                font-size: 0.68rem;
                padding: 3px 6px;
            }

            .column-wrapper .transaction-list {
                border-radius: 14px;
            }
        }

        @media (max-width: 600px) {
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .balance-hero-card {
                padding: 32px;
                min-height: auto;
            }
            .balance-value {
                font-size: 2.25rem;
            }
        }

        @media (max-width: 480px) {
            .dashboard-split {
                gap: 16px;
            }

            .column-wrapper {
                padding: 16px;
                border-radius: 18px;
            }

            .column-header {
                margin-bottom: 16px;
                gap: 8px;
            }

            .column-title {
                font-size: 1.2rem;
                margin: 0;
            }

            .view-all-btn {
                font-size: 0.8rem;
            }

            .btn-icon {
                padding: 8px;
                width: 36px;
                height: 36px;
            }

            .btn-icon i {
                font-size: 1.1rem;
            }

            /* Saldo Rekening di mobile kecil jadi 1 kolom */
            #accountBalancesList {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }

            .column-wrapper .account-card {
                padding: 14px;
                border-radius: 12px;
            }

            .column-wrapper .account-card .acc-name {
                font-size: 0.75rem;
            }

            .column-wrapper .account-card .acc-amount {
                font-size: 1.05rem;
            }

            /* Transaction items lebih kecil di mobile kecil */
            .column-wrapper .transaction-item {
                padding: 12px 14px;
                flex-wrap: nowrap;
                border-bottom: 1px solid var(--border-color);
            }

            .column-wrapper .transaction-item:last-child {
                border-bottom: none;
            }

            .column-wrapper .t-icon {
                width: 38px;
                height: 38px;
                font-size: 1rem;
                min-width: 38px;
                border-radius: 10px;
            }

            .column-wrapper .t-info {
                gap: 10px;
            }

            .column-wrapper .t-details h4 {
                font-size: 0.9rem;
                margin-bottom: 2px;
                gap: 6px;
            }

            .column-wrapper .t-details span {
                font-size: 0.75rem;
            }

            .column-wrapper .t-amount {
                font-size: 0.9rem;
                white-space: nowrap;
            }

            .column-wrapper .badge-category {
                font-size: 0.65rem;
                padding: 2px 6px;
            }

            .column-wrapper .t-actions {
                gap: 6px;
            }

            .column-wrapper .btn-icon {
                padding: 6px;
                width: 32px;
                height: 32px;
            }

            .column-wrapper .btn-icon i {
                font-size: 1rem;
            }
        }

        @media (max-width: 380px) {
            .column-wrapper {
                padding: 14px;
                border-radius: 16px;
            }

            .column-header {
                margin-bottom: 14px;
                gap: 6px;
                flex-wrap: wrap;
            }

            .column-title {
                font-size: 1rem;
                font-weight: 700;
                flex-shrink: 0;
            }

            .view-all-btn {
                font-size: 0.75rem;
                flex-shrink: 0;
            }

            .btn-icon {
                padding: 6px;
                width: 32px;
                height: 32px;
            }

            .btn-icon i {
                font-size: 1rem;
            }

            /* Saldo Rekening ultra small */
            #accountBalancesList {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }

            .column-wrapper .account-card {
                padding: 12px;
                border-radius: 10px;
            }

            .column-wrapper .account-card .acc-name {
                font-size: 0.7rem;
            }

            .column-wrapper .account-card .acc-amount {
                font-size: 1rem;
            }

            /* Transaction items ultra compact */
            .column-wrapper .transaction-item {
                padding: 10px 12px;
                gap: 8px;
                border-bottom: 1px solid var(--border-color);
            }

            .column-wrapper .t-icon {
                width: 34px;
                height: 34px;
                font-size: 0.9rem;
                border-radius: 8px;
                flex-shrink: 0;
            }

            .column-wrapper .t-info {
                gap: 8px;
                min-width: 0;
            }

            .column-wrapper .t-details {
                min-width: 0;
                flex: 1;
            }

            .column-wrapper .t-details h4 {
                font-size: 0.85rem;
                margin-bottom: 0;
                gap: 4px;
                word-break: break-word;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                line-clamp: 1;
                -webkit-box-orient: vertical;
            }

            .column-wrapper .t-details span {
                font-size: 0.7rem;
            }

            .column-wrapper .t-amount {
                font-size: 0.85rem;
                flex-shrink: 0;
                white-space: nowrap;
            }

            .column-wrapper .badge-category {
                font-size: 0.6rem;
                padding: 2px 5px;
                display: none;
            }

            .column-wrapper .t-actions {
                gap: 4px;
            }

            .column-wrapper .btn-icon {
                padding: 5px;
                width: 28px;
                height: 28px;
            }

            .column-wrapper .btn-icon i {
                font-size: 0.9rem;
            }

            .column-wrapper .transaction-list {
                border-radius: 12px;
            }
        }

        /* ================= MODAL TYPE TABS ================= */
        .modal-type-tabs {
            display: flex;
            gap: 0;
            background: var(--bg-card-light);
            border-bottom: 1px solid var(--border-color);
            border-radius: 24px 24px 0 0;
            /* overflow: hidden dihapus — ini penyebab iOS Safari menelan touch event
               pada child elements. Ganti dengan clip-path atau biarkan tanpa clip. */
            overflow: visible;
            flex-shrink: 0;
            position: relative;   /* Buat stacking context sendiri agar z-index valid */
            z-index: 1;           /* Di atas modal-overlay background */
            touch-action: manipulation;
        }

        /* Sembunyikan tab switcher saat mode edit.
           Pakai !important agar tidak teroverride oleh inline style
           atau CSS display:flex di atas pada mobile browser. */
        .modal-type-tabs.tabs-hidden {
            display: none !important;
        }

        /* Saat tab disembunyikan (edit mode), modal-body butuh
           rounded corner atas karena elemen tabs-nya tidak ada */
        .modal-card.edit-mode .modal-body {
            border-radius: 24px 24px 0 0;
        }

        /* Badge kecil penanda "Edit Mode" di sebelah judul modal */
        .edit-mode-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--accent);
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
            padding: 3px 10px;
            border-radius: 8px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            vertical-align: middle;
        }

        .modal-tab-btn {
            flex: 1;
            padding: 14px 8px;
            border: none;
            border-radius: 0;
            font-size: 0.8rem;
            font-weight: 700;
            font-family: var(--font-body);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.25s var(--ease-smooth);
            background: transparent;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.3px;
            border-bottom: 3px solid transparent;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            /* Pastikan seluruh area button bisa menerima touch */
            position: relative;
            z-index: 2;
            user-select: none;
            -webkit-user-select: none;
        }

        /* Rounded corner pada tab pertama dan terakhir (pengganti overflow:hidden parent) */
        .modal-tab-btn:first-child {
            border-radius: 24px 0 0 0;
        }
        .modal-tab-btn:last-child {
            border-radius: 0 24px 0 0;
        }

        .modal-tab-btn i {
            font-size: 1.1rem;
        }

        .modal-tab-btn:hover:not(.tab-active) {
            background: var(--bg-card);
            color: var(--text-main);
        }

        .modal-tab-btn.tab-active.tab-income {
            background: var(--bg-card);
            color: var(--success);
            border-bottom-color: var(--success);
        }

        .modal-tab-btn.tab-active.tab-expense {
            background: var(--bg-card);
            color: var(--danger);
            border-bottom-color: var(--danger);
        }

        .modal-tab-btn.tab-active.tab-transfer {
            background: var(--bg-card);
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        /* ================= RESPONSIVE ================= */
        @media (max-width: 768px) {
            .sidebar {
                display: none;
            }
            .fab-container {
                display: none;
            }
            .mobile-bottom-nav {
                display: flex;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
                padding-bottom: 100px;
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }
            .login-card {
                padding: 36px 24px;
            }
            .toast-container {
                left: 50%;
                transform: translateX(-50%);
                right: auto;
                max-width: calc(100% - 32px);
            }
            .toast {
                min-width: auto;
                max-width: calc(100vw - 48px);
                width: auto;
            }
            
            .dashboard-header {
                padding: 16px 0;
                margin-bottom: 24px;
                align-items: flex-start;
                justify-content: center;
            }

            .header-widgets {
                gap: 8px;
                align-items: flex-end;
            }

            .digital-clock {
                font-size: 1.3rem;
                color: var(--primary);
                padding: 8px 16px;
            }

            .date-badge {
                display: none;
            }

            .user-welcome h2 {
                font-size: 1.5rem;
            }
        }

        @media (min-width: 769px) {
            .sidebar.active {
                transform: none;
            }
        }

        /* ================= FIX MOBILE TRANSACTION LIST ================= */
        @media (max-width: 600px) {
            .transaction-item {
                /* Ubah susunan baris menjadi vertikal (tumpuk ke bawah) */
                flex-direction: column; 
                align-items: stretch; /* Lebar penuh */
                gap: 12px; /* Jarak antara blok teks dan blok tombol */
                padding: 16px; /* Tambah sedikit padding agar lega */
            }

            /* Penyesuaian Bagian Info (Icon + Teks) */
            .t-info {
                width: 100%;
                align-items: flex-start; /* Rata kiri atas */
            }

            /* Pastikan teks tidak terpotong (wrap) jika panjang */
            .t-details h4 {
                white-space: normal;
                word-break: break-word;
                line-height: 1.4;
                margin-bottom: 2px;
            }

            /* Penyesuaian Bagian Aksi (Nominal + Tombol) */
            .t-actions {
                width: 100%;
                justify-content: flex-end; /* Jarakkan Nominal dan Tombol */
                align-items: center;
                padding-top: 10px;
            }

            /* Pastikan nominal tetap terbaca jelas */
            .t-amount {
                font-size: 1.1rem;
                flex-shrink: 0;
            }

            /* Badge kategori bisa disembunyikan di layar sangat kecil agar lebih rapi */
            .badge-category, .badge-n8n {
                display: inline-flex;
            }
        }