:root {
            --bg-body: #f1f5f9;
            --bg-card: rgba(255, 255, 255, 0.85);
            --bg-card-solid: #ffffff;
            --text-main: #0f172a;
            --text-muted: #475569;
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --success: #10b981;
            --success-bg: rgba(16, 185, 129, 0.12);
            --danger: #f43f5e;
            --danger-bg: rgba(244, 63, 94, 0.12);
            --warning: #f59e0b;
            --warning-bg: rgba(245, 158, 11, 0.12);
            --border: rgba(226, 232, 240, 0.8);
            --border-solid: #e2e8f0;
            --shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
            --radius: 24px;
            --radius-sm: 16px;
            --input-bg: #f8fafc;
            --glass-bg: rgba(255, 255, 255, 0.45);
            --accent: #8b5cf6;
            --login-card-bg: rgba(255, 255, 255, 0.45);
            --login-card-border: rgba(255, 255, 255, 0.6);
            --login-card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.7);
            --login-input-bg: rgba(255, 255, 255, 0.55);
            --login-input-border: rgba(255, 255, 255, 0.5);
        }

        [data-theme="dark"] {
            --bg-body: #0b0f19;
            --bg-card: rgba(21, 28, 47, 0.85);
            --bg-card-solid: #151c2c;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --primary: #6366f1;
            --primary-hover: #818cf8;
            --success: #34d399;
            --success-bg: rgba(52, 211, 153, 0.15);
            --danger: #fb7185;
            --danger-bg: rgba(251, 113, 133, 0.15);
            --warning: #fbbf24;
            --warning-bg: rgba(251, 191, 36, 0.15);
            --border: rgba(51, 65, 85, 0.65);
            --border-solid: #334155;
            --shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
            --input-bg: #0e1320;
            --glass-bg: rgba(15, 23, 42, 0.45);
            --accent: #a78bfa;
            --login-card-bg: rgba(15, 23, 42, 0.45);
            --login-card-border: rgba(255, 255, 255, 0.09);
            --login-card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
            --login-input-bg: rgba(15, 23, 42, 0.55);
            --login-input-border: rgba(255, 255, 255, 0.06);
        }

        /* Custom Scrollbar Global & Stabilitas UI */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-solid);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        * {
            scrollbar-width: thin;
            scrollbar-color: var(--border-solid) transparent;
        }

        body {
            font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
            background: var(--bg-body);
            color: var(--text-main);
            padding: 20px;
            margin: 0;
            transition: background 0.4s ease, color 0.4s ease;
            min-height: 100vh;
            background-attachment: fixed;
        }

        .container {
            display: flex;
            flex-direction: column;
            max-width: 1500px;
            margin: auto;
            gap: 20px;
        }

        .top-header-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-card);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            padding: 16px 24px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            box-sizing: border-box;
            flex-wrap: wrap;
            gap: 15px;
        }

        .top-header-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .top-header-left h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 900;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.8px;
            text-align: center;
        }

        .top-header-right {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

        .top-nav-bar {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            background: var(--bg-card);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px 14px;
            box-shadow: var(--shadow);
            scrollbar-width: none;
            -ms-overflow-style: none;
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
        }

        .top-nav-bar:active {
            cursor: grabbing;
        }

        .top-nav-bar::-webkit-scrollbar {
            display: none;
        }

        .top-nav-bar .tab-btn {
            padding: 12px 18px;
            font-size: 13.5px;
            font-weight: 800;
            border-radius: var(--radius-sm);
            cursor: pointer;
            border: none;
            background: transparent;
            color: var(--text-muted);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }

        .top-nav-bar .tab-btn:hover {
            background: var(--input-bg);
            color: var(--primary);
        }

        .top-nav-bar .tab-btn.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
        }

        .main-content {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
                padding-bottom: 95px;
            }

            .container {
                gap: 15px;
            }

            .top-nav-bar {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                padding: 14px 20px;
                margin: 0;
                z-index: 900;
                border-radius: 24px 24px 0 0;
                border-bottom: none;
                box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
                max-height: max-content;
                overflow-x: auto;
                gap: 10px;
                flex-direction: row !important;
                border-top: 1px solid var(--border);
            }

            .top-nav-bar .tab-btn {
                padding: 12px 18px !important;
                border-radius: 20px !important;
                font-size: 13px !important;
            }
        }

        .header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 5px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .header-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .live-clock {
            width: 100%;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 5px;
            text-align: left;
            letter-spacing: 0.5px;
            opacity: 0.8;
        }

        .status-badge {
            background: var(--success-bg);
            color: var(--success);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--success);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--success);
        }

        .status-badge.error {
            background: var(--danger-bg);
            color: var(--danger);
            border-color: rgba(244, 63, 94, 0.2);
        }

        .status-badge.error .status-dot {
            background-color: var(--danger);
            box-shadow: 0 0 8px var(--danger);
        }

        .status-badge.connecting {
            background: var(--warning-bg);
            color: var(--warning);
            border-color: rgba(245, 158, 11, 0.2);
        }

        .status-badge.connecting .status-dot {
            background-color: var(--warning);
            box-shadow: 0 0 8px var(--warning);
        }

        .nav-tabs {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .tab-btn {
            padding: 14px 18px;
            font-size: 14px;
            font-weight: 750;
            border-radius: var(--radius-sm);
            cursor: pointer;
            border: none;
            background: transparent;
            color: var(--text-muted);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tab-btn:hover {
            background: var(--input-bg);
            color: var(--primary);
            transform: translateX(4px);
        }

        .tab-btn.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
            transform: scale(1.02);
        }

        @media (max-width: 768px) {
            .tab-btn:hover {
                transform: none;
            }

            .tab-btn.active {
                transform: none;
            }
        }

        .page-section {
            display: none;
            animation: fadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .page-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        button {
            font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn {
            padding: 10px 18px;
            font-size: 13px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            cursor: pointer;
            border: 1px solid transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: var(--shadow);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border: none;
        }

        .btn-primary:hover {
            filter: brightness(1.1);
        }

        .btn-warning {
            background: var(--warning);
            color: white;
        }

        .btn-warning:hover {
            filter: brightness(0.95);
        }

        .btn-backup {
            background: var(--success);
            color: white;
        }

        .btn-backup:hover {
            filter: brightness(1.05);
        }

        .btn-restore {
            background: var(--text-muted);
            color: white;
        }

        .btn-restore:hover {
            filter: brightness(1.05);
        }

        .btn-darkmode {
            background: var(--bg-card);
            color: var(--text-main);
            border: 1px solid var(--border);
        }

        .btn-darkmode:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            filter: grayscale(1) !important;
            transform: none !important;
            box-shadow: none !important;
        }

        .btn-hapus-item {
            background: var(--danger-bg);
            color: var(--danger);
            border: 1px solid rgba(244, 63, 94, 0.2);
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
            padding: 6px 12px;
            font-size: 11px;
        }

        .btn-hapus-item:hover {
            background: var(--danger);
            color: white;
            border-color: transparent;
        }

        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .summary-card {
            padding: 24px;
            border-radius: var(--radius);
            font-weight: 700;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .summary-card span {
            font-size: 24px;
            font-weight: 900;
            margin-top: 10px;
            letter-spacing: -0.5px;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }

        .summary-card div {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            opacity: 0.95;
            z-index: 1;
            font-weight: 800;
        }

        .bg-aset {
            background: linear-gradient(135deg, var(--primary), var(--accent));
        }

        .bg-pemasukan {
            background: linear-gradient(135deg, #0ea5e9, #0284c7);
        }

        .bg-pengeluaran {
            background: linear-gradient(135deg, var(--danger), #be123c);
        }

        .bg-untung {
            background: linear-gradient(135deg, var(--success), #059669);
        }

        .bg-hutang {
            background: linear-gradient(135deg, var(--warning), #d97706);
        }

        .summary-card::after {
            content: '';
            position: absolute;
            right: -25px;
            bottom: -25px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
            border-radius: 50%;
            z-index: 0;
        }

        .grid-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 16px;
            margin-bottom: 30px;
            padding: 8px 4px 16px 4px;
        }

        .card {
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 18px 12px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            text-align: center;
            border: 1px solid var(--border);
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            box-sizing: border-box;
        }

        .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 35px -10px rgba(79, 70, 229, 0.15);
            border-color: var(--primary);
        }

        .logo-wrapper {
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            background: white;
            border-radius: var(--radius-sm);
            padding: 6px 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
            width: 85%;
            box-sizing: border-box;
        }

        [data-theme="dark"] .logo-wrapper {
            background: rgba(255, 255, 255, 0.9);
        }

        .card .amount {
            font-size: 15px;
            font-weight: 900;
            color: var(--text-main);
            margin-top: 8px;
            letter-spacing: -0.4px;
        }

        .label-akun {
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-top: 4px;
        }

        .btn-hitung-kas {
            background: var(--success-bg);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
            font-size: 11px;
            padding: 7px 12px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            margin-top: 10px;
            width: 100%;
            font-weight: 800;
        }

        .btn-hitung-kas:hover {
            background: var(--success);
            color: white;
            transform: translateY(-1px);
        }

        .split-layout {
            display: flex;
            flex-direction: column;
            gap: 24px;
            align-items: stretch;
        }

        .layout-left,
        .layout-right {
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 24px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            width: 100%;
            box-sizing: border-box;
        }

        .section-title {
            margin-top: 0;
            border-bottom: 2px solid var(--border);
            padding-bottom: 18px;
            font-size: 20px;
            font-weight: 900;
            margin-bottom: 24px;
            letter-spacing: -0.6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .form-group {
            margin-bottom: 18px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 800;
            font-size: 12.5px;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        select,
        input {
            width: 100%;
            padding: 14px;
            border: 2px solid var(--border-solid);
            border-radius: var(--radius-sm);
            box-sizing: border-box;
            font-size: 14px;
            font-weight: 650;
            background: var(--input-bg);
            color: var(--text-main);
            font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
            transition: all 0.25s ease;
        }

        select:focus,
        input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--bg-card-solid);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
        }

        select:disabled,
        input:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: var(--border-solid);
        }

        .input-fee {
            background-color: var(--success-bg) !important;
            color: var(--success) !important;
            border-color: transparent !important;
        }

        .btn-simpan {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border: none;
            padding: 16px;
            width: 100%;
            cursor: pointer;
            border-radius: var(--radius-sm);
            font-weight: 800;
            margin-top: 10px;
            font-size: 15px;
            box-shadow: 0 6px 20px -8px rgba(79, 70, 229, 0.5);
        }

        .btn-simpan:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
            box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.6);
        }

        .btn-simpan:active {
            transform: translateY(0);
        }

        .btn-reset {
            background: transparent;
            color: var(--danger);
            border: 2px solid var(--danger);
            padding: 12px 20px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            width: auto;
            font-size: 13px;
            font-weight: 800;
            display: block;
            margin-left: auto;
            margin-top: 25px;
        }

        .btn-reset:hover {
            background: var(--danger);
            color: white;
            transform: translateY(-2px);
        }

        .table-wrapper {
            overflow-x: auto;
            overflow-y: auto;
            max-height: 65vh;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13px;
            min-width: 850px;
        }

        th,
        td {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border);
            text-align: left;
            vertical-align: middle;
        }

        td {
            font-weight: 600;
        }

        th {
            background-color: var(--input-bg);
            position: sticky;
            top: 0;
            z-index: 10;
            font-weight: 850;
            color: var(--text-muted);
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.8px;
            box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.05);
            border-bottom: 2px solid var(--border-solid);
        }

        tr {
            transition: background-color 0.2s;
        }

        tr:hover td {
            background-color: rgba(79, 70, 229, 0.03) !important;
        }

        [data-theme="dark"] tr:hover td {
            background-color: rgba(99, 102, 241, 0.05) !important;
        }

        .badge-kategori {
            background: var(--input-bg);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-muted);
            border: 1px solid var(--border-solid);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .no-trx {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary);
            color: white;
            font-weight: 900;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 20px;
            min-width: 20px;
        }

        .no-trx.hutang {
            background: var(--danger-bg);
            color: var(--danger);
            font-size: 10px;
            border: 1px solid rgba(244, 63, 94, 0.2);
        }

        .no-trx.lunas {
            background: var(--success-bg);
            color: var(--success);
            font-size: 10px;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .stok-control {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .stok-display {
            font-size: 17px;
            font-weight: 900;
            color: var(--text-main);
            width: 35px;
            text-align: center;
        }

        .stok-display.habis {
            color: var(--danger);
            text-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
        }

        .btn-min,
        .btn-plus {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            border: none;
            font-size: 18px;
            font-weight: 900;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .btn-min {
            background: var(--danger-bg);
            color: var(--danger);
        }

        .btn-min:hover {
            background: var(--danger);
            color: white;
        }

        .btn-plus {
            background: var(--success-bg);
            color: var(--success);
        }

        .btn-plus:hover {
            background: var(--success);
            color: white;
        }

        .badge-fee {
            background: var(--success-bg);
            color: var(--success);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 800;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .detail-akun {
            font-size: 11.5px;
            color: var(--primary);
            background: var(--input-bg);
            padding: 5px 10px;
            border-radius: 10px;
            display: inline-block;
            font-weight: 800;
            border: 1px solid var(--border-solid);
        }

        .detail-akun.hutang {
            color: var(--danger);
            background: var(--danger-bg);
            border-color: rgba(244, 63, 94, 0.2);
        }

        .detail-akun.lunas {
            color: var(--success);
            background: var(--success-bg);
            border-color: rgba(16, 185, 129, 0.2);
        }

        .pelanggan-info {
            font-size: 12px;
            line-height: 1.5;
        }

        .pelanggan-info strong {
            color: var(--text-main);
            font-size: 13px;
            font-weight: 800;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(4, 7, 13, 0.45);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.25s ease-out;
        }

        .modal-content {
            background-color: var(--bg-card-solid);
            padding: 30px;
            border-radius: var(--radius);
            width: 480px;
            max-width: 90%;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border-solid);
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
        }

        .modal-content.large {
            width: 900px;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }



        .grid-pecahan {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }

        .grid-pecahan input {
            text-align: center;
            padding: 10px;
            font-size: 15px;
        }

        .total-pecahan-box {
            background: var(--success-bg);
            padding: 18px;
            text-align: center;
            border-radius: var(--radius-sm);
            font-weight: 900;
            color: var(--success);
            font-size: 22px;
            margin-bottom: 20px;
            border: 2px dashed var(--success);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        /* LOGO BANK & E-WALLET STYLE */
        .logo-txt-bri {
            color: #00529C;
            font-weight: 900;
            font-size: 19px;
            font-family: 'Inter', sans-serif;
            letter-spacing: -0.5px;
        }

        .logo-txt-mandiri {
            color: #003D79;
            font-weight: 900;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
        }

        .logo-txt-mandiri span {
            color: #F2A900;
        }

        .logo-txt-bca {
            color: #003399;
            font-weight: 900;
            font-size: 19px;
            font-style: italic;
            font-family: sans-serif;
            letter-spacing: -1px;
        }

        .logo-txt-dana {
            color: #118EEA;
            font-weight: 900;
            font-size: 18px;
            font-family: 'Inter', sans-serif;
            letter-spacing: -0.5px;
        }

        .logo-txt-gopay {
            color: #00AED6;
            font-weight: 900;
            font-size: 18px;
            font-family: sans-serif;
            letter-spacing: -0.5px;
        }

        .logo-txt-seabank {
            color: #ff6600;
            font-weight: 900;
            font-style: italic;
            font-size: 15px;
            font-family: sans-serif;
        }

        .logo-txt-qris {
            color: #E30613;
            font-weight: 900;
            font-size: 20px;
            font-style: italic;
            font-family: sans-serif;
            letter-spacing: -1px;
        }

        .logo-txt-bukusimpan {
            color: var(--text-main);
            font-weight: 900;
            font-size: 13px;
            font-family: sans-serif;
            text-transform: uppercase;
            letter-spacing: -0.5px;
        }

        .logo-txt-nobu {
            color: #1e3a8a;
            font-weight: 900;
            font-size: 17px;
            font-family: sans-serif;
        }

        .logo-txt-superbank {
            color: #16a34a;
            font-weight: 900;
            font-size: 14px;
            font-family: sans-serif;
        }

        .logo-txt-neo {
            color: #eab308;
            font-weight: 900;
            font-size: 17px;
            font-family: sans-serif;
            letter-spacing: -0.5px;
        }

        .logo-txt-isimple {
            color: #eab308;
            font-weight: 900;
            font-size: 17px;
            font-family: sans-serif;
        }

        .logo-txt-sidiva {
            color: #9333ea;
            font-weight: 900;
            font-size: 17px;
            font-family: sans-serif;
        }

        .logo-txt-digipos {
            color: #dc2626;
            font-weight: 900;
            font-size: 18px;
            font-style: italic;
            font-family: sans-serif;
        }

        .logo-txt-rita {
            color: #f472b6;
            font-weight: 900;
            font-size: 17px;
            font-family: sans-serif;
        }

        .logo-txt-orderkuota {
            color: #4A5D23;
            font-weight: 900;
            font-size: 14px;
            font-family: sans-serif;
        }

        .logo-txt-mbp {
            color: #2563eb;
            font-weight: 900;
            font-size: 19px;
            font-family: sans-serif;
        }

        .insight-box {
            padding: 18px;
            border-radius: var(--radius-sm);
            margin-bottom: 18px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
            border: 1px solid var(--border);
        }

        .category-card-btn:hover {
            border-color: var(--primary) !important;
            transform: translateY(-2px);
        }

        .category-card-btn.active {
            border-color: var(--primary) !important;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(167, 139, 250, 0.12)) !important;
            color: var(--primary) !important;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
        }

        .filter-tanggal-header {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-card);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            margin-bottom: 15px;
            font-size: 13px;
            font-weight: 750;
            width: max-content;
        }

        .dashboard-group-title {
            font-size: 16px;
            font-weight: 850;
            color: var(--text-muted);
            margin-top: 30px;
            margin-bottom: 12px;
            padding-left: 12px;
            border-left: 4px solid var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .empty-dash-group {
            font-size: 13px;
            color: var(--text-muted);
            padding: 20px;
            background: var(--input-bg);
            border-radius: var(--radius-sm);
            text-align: center;
            font-style: italic;
            border: 1px dashed var(--border-solid);
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }

        .page-header .section-title {
            margin: 0;
            border: none;
            padding: 0;
            flex-shrink: 0;
        }

        .controls-group {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .controls-group input[type="text"] {
            padding: 10px 16px;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border-solid);
            font-size: 13px;
            min-width: 220px;
        }

        .controls-group .filter-tanggal-header {
            margin-bottom: 0;
        }

        .controls-group .btn {
            padding: 10px 20px;
        }

        /* TOAST NOTIFICATION SYSTEM */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 350px;
            width: 90%;
        }

        .toast-item {
            background: var(--bg-card-solid);
            border: 1px solid var(--border-solid);
            border-radius: var(--radius-sm);
            padding: 16px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
            display: flex;
            align-items: flex-start;
            gap: 12px;
            transform: translateX(120%);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            animation: toastIn 0.3s forwards;
        }

        @keyframes toastIn {
            to {
                transform: translateX(0);
            }
        }

        .toast-item.hide {
            animation: toastOut 0.3s forwards;
        }

        @keyframes toastOut {
            to {
                transform: translateX(120%);
                opacity: 0;
            }
        }

        .toast-icon {
            font-size: 20px;
            flex-shrink: 0;
            line-height: 1;
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-weight: 800;
            font-size: 13.5px;
            margin-bottom: 3px;
        }

        .toast-message {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .toast-item.success {
            border-left: 5px solid var(--success);
        }

        .toast-item.danger {
            border-left: 5px solid var(--danger);
        }

        .toast-item.warning {
            border-left: 5px solid var(--warning);
        }

        .toast-item.info {
            border-left: 5px solid var(--primary);
        }

        /* CONFIRM MODAL DIALOG OVERLAY */
        .confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(4, 7, 13, 0.45);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.2s forwards;
        }

        .confirm-box {
            background: var(--bg-card-solid);
            border: 1px solid var(--border-solid);
            border-radius: var(--radius);
            padding: 25px;
            width: 400px;
            max-width: 90%;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
            text-align: center;
        }

        .confirm-title {
            font-size: 18px;
            font-weight: 900;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .confirm-msg {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
            font-weight: 600;
            line-height: 1.5;
        }

        .confirm-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .confirm-btn {
            flex: 1;
            padding: 12px;
            font-weight: 800;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            font-size: 13px;
        }

        .confirm-cancel {
            background: var(--input-bg);
            color: var(--text-muted);
            border: 1px solid var(--border-solid);
        }

        .confirm-cancel:hover {
            background: var(--border-solid);
        }

        .confirm-ok {
            background: var(--danger);
            color: white;
        }

        .confirm-ok:hover {
            filter: brightness(1.1);
        }

        .confirm-ok.primary {
            background: var(--primary);
        }

        /* SEARCHABLE COMBOBOX STYLE */
        .combobox-container {
            position: relative;
            width: 100%;
        }

        .combobox-input-wrapper {
            display: flex;
            align-items: center;
            position: relative;
        }

        .combobox-input-wrapper input {
            padding-right: 35px;
        }

        .combobox-chevron {
            position: absolute;
            right: 15px;
            pointer-events: none;
            opacity: 0.6;
            transition: transform 0.2s;
            font-size: 10px;
        }

        .combobox-container.open .combobox-chevron {
            transform: rotate(180deg);
        }

        .combobox-dropdown {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            width: 100%;
            background: var(--bg-card-solid);
            border: 1px solid var(--border-solid);
            border-radius: var(--radius-sm);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            z-index: 100;
            max-height: 250px;
            overflow-y: auto;
            display: none;
        }

        .combobox-container.open .combobox-dropdown {
            display: block;
        }

        .combobox-item {
            padding: 12px 16px;
            font-size: 13px;
            font-weight: 650;
            cursor: pointer;
            transition: background 0.15s;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .combobox-item:last-child {
            border-bottom: none;
        }

        .combobox-item:hover,
        .combobox-item.active {
            background: rgba(79, 70, 229, 0.08);
            color: var(--primary);
        }

        .combobox-item-badge {
            font-size: 10.5px;
            font-weight: 800;
            background: var(--input-bg);
            color: var(--text-muted);
            padding: 3px 8px;
            border-radius: 6px;
            border: 1px solid var(--border-solid);
        }

        /* VISUAL BANKNOTE CALCULATOR */
        .visual-note-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .note-card {
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-solid);
            padding: 12px 8px;
            text-align: center;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: transform 0.2s;
        }

        .note-card:hover {
            transform: scale(1.03);
        }

        .note-label {
            font-size: 12.5px;
            font-weight: 900;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
        }

        .note-card input {
            width: 75px;
            text-align: center;
            padding: 6px;
            font-size: 14px;
            border: 1px solid var(--border-solid);
            border-radius: 8px;
            font-weight: 800;
            margin: 4px 0;
            background: rgba(255, 255, 255, 0.7);
        }

        [data-theme="dark"] .note-card input {
            background: rgba(15, 23, 42, 0.7);
        }

        .note-card input:focus {
            border-color: var(--primary);
        }

        .note-btn-group {
            display: flex;
            gap: 6px;
            width: 100%;
            justify-content: center;
        }

        .note-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: none;
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .note-100k {
            background: #ffe4e6;
            color: #e11d48;
            border: 1px solid #fecdd3;
        }

        .note-50k {
            background: #e0f2fe;
            color: #0284c7;
            border: 1px solid #bae6fd;
        }

        .note-20k {
            background: #dcfce7;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }

        .note-10k {
            background: #f3e8ff;
            color: #7e22ce;
            border: 1px solid #e9d5ff;
        }

        .note-5k {
            background: #fef3c7;
            color: #b45309;
            border: 1px solid #fde68a;
        }

        .note-2k {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }

        .note-1k {
            background: #fafaf9;
            color: #78716c;
            border: 1px solid #f5f5f4;
        }

        .note-coin {
            background: #fef3c7;
            color: #854d0e;
            border: 1px solid #fde68a;
            border-radius: 50% !important;
        }

        .note-100k .note-btn {
            background: #e11d48;
            color: white;
        }

        .note-50k .note-btn {
            background: #0284c7;
            color: white;
        }

        .note-20k .note-btn {
            background: #15803d;
            color: white;
        }

        .note-10k .note-btn {
            background: #7e22ce;
            color: white;
        }

        .note-5k .note-btn {
            background: #b45309;
            color: white;
        }

        .note-2k .note-btn {
            background: #475569;
            color: white;
        }

        .note-1k .note-btn {
            background: #78716c;
            color: white;
        }

        .note-coin .note-btn {
            background: #854d0e;
            color: white;
        }

        /* THERMAL RECEIPT STYLING */
        .receipt-modal-content {
            max-width: 320px !important;
            font-family: 'Courier New', Courier, monospace !important;
            color: #000 !important;
            background: #fff !important;
            padding: 20px !important;
            border-radius: 4px !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
            border: 1px solid #ddd !important;
        }

        .receipt-header {
            text-align: center;
            border-bottom: 1px dashed #000;
            padding-bottom: 12px;
            margin-bottom: 12px;
        }

        .receipt-title {
            font-size: 16px;
            font-weight: bold;
            margin: 0;
            letter-spacing: 0.5px;
        }

        .receipt-subtitle {
            font-size: 11px;
            margin: 4px 0 0 0;
        }

        .receipt-body {
            font-size: 12px;
            line-height: 1.4;
        }

        .receipt-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .receipt-divider {
            border-top: 1px dashed #000;
            margin: 10px 0;
        }

        .receipt-total {
            font-weight: bold;
            font-size: 13px;
        }

        .receipt-footer {
            text-align: center;
            margin-top: 15px;
            font-size: 11px;
            border-top: 1px dashed #000;
            padding-top: 10px;
        }

        .receipt-actions {
            display: flex;
            gap: 8px;
            margin-top: 20px;
        }

        .receipt-actions button {
            flex: 1;
            padding: 10px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 4px;
            border: 1px solid #ccc;
            font-family: sans-serif;
        }

        .btn-print-receipt {
            background: #111;
            color: white;
            border: none;
        }

        .btn-print-receipt:hover {
            background: #333;
        }

        .btn-copy-receipt {
            background: #f3f4f6;
            color: #333;
        }

        .btn-copy-receipt:hover {
            background: #e5e7eb;
        }

        /* Print Media Rule for Receipt ONLY */
        @media print {
            body * {
                display: none !important;
            }

            #modal-nota,
            #modal-nota * {
                display: block !important;
            }

            #modal-nota {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                background: white !important;
                backdrop-filter: none !important;
            }

            .receipt-modal-content {
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            .receipt-actions {
                display: none !important;
            }

            .close-btn {
                display: none !important;
            }
        }

        /* SVG CHART CONTAINERS */
        .chart-container {
            position: relative;
            width: 100%;
            height: 260px;
            margin-top: 15px;
        }

        /* LOGIN SCREEN OVERLAY */
        #login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at 50% 50%, var(--bg-body) 0%, var(--border-solid) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            padding: 20px;
            box-sizing: border-box;
            backdrop-filter: blur(10px);
            overflow: hidden;
        }

        .login-bg-blob {
            position: absolute;
            width: 420px;
            height: 420px;
            border-radius: 50%;
            filter: blur(85px);
            z-index: 0;
            opacity: 0.48;
            animation: floatBlob 16s infinite alternate ease-in-out;
            pointer-events: none;
        }

        .blob-1 {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            top: 10%;
            left: 12%;
            animation-delay: 0s;
        }

        .blob-2 {
            background: linear-gradient(135deg, var(--accent), #f43f5e);
            bottom: 10%;
            right: 12%;
            animation-delay: -7s;
        }

        @keyframes floatBlob {
            0% {
                transform: translate(0, 0) scale(1) rotate(0deg);
            }
            50% {
                transform: translate(70px, -90px) scale(1.15) rotate(180deg);
            }
            100% {
                transform: translate(-40px, 60px) scale(0.9) rotate(360deg);
            }
        }

        .login-card {
            background: var(--login-card-bg);
            border: 1px solid var(--login-card-border);
            padding: 45px 40px;
            border-radius: 28px;
            box-shadow: var(--login-card-shadow);
            width: 100%;
            max-width: 420px;
            text-align: center;
            backdrop-filter: blur(35px);
            -webkit-backdrop-filter: blur(35px);
            z-index: 1;
            position: relative;
            animation: loginCardAppear 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes loginCardAppear {
            0% {
                opacity: 0;
                transform: scale(0.85) translateY(40px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .login-card h2 {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .login-card p {
            font-size: 13.5px;
            color: var(--text-muted);
            margin-bottom: 26px;
            line-height: 1.5;
        }

        .login-form-group {
            text-align: left;
            margin-bottom: 20px;
        }

        .login-form-group label {
            display: block;
            font-size: 11.5px;
            font-weight: 800;
            color: var(--text-muted);
            margin-bottom: 7px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .login-form-group input {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid var(--login-input-border);
            border-radius: 16px;
            background: var(--login-input-bg);
            color: var(--text-main);
            font-size: 14px;
            font-weight: 650;
            box-sizing: border-box;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .login-form-group input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--bg-card-solid);
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
            transform: translateY(-1px);
        }

        .btn-login {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 6px 20px -5px rgba(79, 70, 229, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-top: 10px;
        }

        .btn-login:hover {
            filter: brightness(1.1);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px -5px rgba(79, 70, 229, 0.5);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
            animation: pulseBtn 1.5s infinite alternate ease-in-out;
        }

        @keyframes pulseBtn {
            0% {
                opacity: 0.7;
            }
            100% {
                opacity: 0.9;
            }
        }

        .login-error {
            color: var(--danger);
            font-size: 12px;
            font-weight: 700;
            margin-top: 14px;
            display: none;
            background: var(--danger-bg);
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(244, 63, 94, 0.2);
            animation: shakeError 0.4s ease-in-out;
        }

        @keyframes shakeError {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-6px); }
            50% { transform: translateX(6px); }
            75% { transform: translateX(-4px); }
        }

        /* ═══════════════════════════════════════════════════════════════
           🎨 PREMIUM VISUAL UPGRADE — V24.0 AESTHETIC OVERHAUL
           ═══════════════════════════════════════════════════════════════ */

        /* ─── 1. LOGIN SCREEN PREMIUM ─── */
        #login-screen {
            background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
                        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
                        radial-gradient(ellipse at 50% 80%, rgba(244, 63, 94, 0.06) 0%, transparent 50%),
                        var(--bg-body);
        }

        .login-bg-blob {
            animation: floatBlob 20s infinite alternate ease-in-out;
        }

        .blob-1 {
            width: 500px;
            height: 500px;
            opacity: 0.35;
            background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
            filter: blur(100px);
        }

        .blob-2 {
            width: 450px;
            height: 450px;
            opacity: 0.30;
            background: linear-gradient(135deg, #a78bfa, #f43f5e, #fb7185);
            filter: blur(100px);
        }

        /* Login floating particles */
        .login-particles {
            position: absolute;
            inset: 0;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        .login-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0;
            animation: particleFloat 8s infinite ease-in-out;
        }

        .login-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
        .login-particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 12s; }
        .login-particle:nth-child(3) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
        .login-particle:nth-child(4) { left: 55%; animation-delay: 0.5s; animation-duration: 11s; }
        .login-particle:nth-child(5) { left: 70%; animation-delay: 2s; animation-duration: 13s; }
        .login-particle:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 10s; }
        .login-particle:nth-child(7) { left: 15%; animation-delay: 2.5s; animation-duration: 14s; }
        .login-particle:nth-child(8) { left: 60%; animation-delay: 1s; animation-duration: 8s; }

        @keyframes particleFloat {
            0% { transform: translateY(100vh) scale(0); opacity: 0; }
            10% { opacity: 0.6; }
            50% { opacity: 0.3; }
            90% { opacity: 0.5; }
            100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
        }

        .login-card {
            background: var(--login-card-bg);
            border: 1px solid var(--login-card-border);
            box-shadow: var(--login-card-shadow), 0 0 80px -20px rgba(99, 102, 241, 0.15);
            position: relative;
            overflow: hidden;
        }

        .login-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent), #f43f5e, var(--accent), var(--primary));
            background-size: 200% 100%;
            animation: shimmerBorder 3s linear infinite;
            border-radius: 28px 28px 0 0;
            z-index: 2;
        }

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

        .login-card h2 {
            font-size: 30px;
            font-weight: 900;
            letter-spacing: -1px;
        }

        .btn-login {
            position: relative;
            overflow: hidden;
            letter-spacing: 0.5px;
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -75%;
            width: 50%;
            height: 200%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: skewX(-25deg);
            animation: btnShimmer 3s infinite;
        }

        @keyframes btnShimmer {
            0% { left: -75%; }
            100% { left: 150%; }
        }

        .login-form-group input {
            border-radius: 14px;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .login-form-group input:focus {
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px -8px rgba(99, 102, 241, 0.2);
            transform: translateY(-2px);
        }

        /* ─── 2. HEADER & NAVIGATION PREMIUM ─── */
        .top-header-bar {
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .top-header-bar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), #f43f5e, var(--accent), var(--primary));
            background-size: 300% 100%;
            animation: gradientFlow 4s linear infinite;
            border-radius: 0 0 24px 24px;
        }

        @keyframes gradientFlow {
            0% { background-position: 0% 0; }
            100% { background-position: 300% 0; }
        }

        .top-header-left h1 {
            font-size: 26px;
            letter-spacing: -1px;
            position: relative;
        }

        .status-dot {
            animation: statusPulse 2s ease-in-out infinite;
        }

        @keyframes statusPulse {
            0%, 100% { box-shadow: 0 0 6px var(--success); transform: scale(1); }
            50% { box-shadow: 0 0 14px var(--success), 0 0 24px rgba(16, 185, 129, 0.3); transform: scale(1.2); }
        }

        .status-badge.error .status-dot {
            animation: statusPulse 2s ease-in-out infinite;
        }

        .status-badge.error .status-dot {
            --pulse-color: var(--danger);
        }

        .top-header-right .btn {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .top-header-right .btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 20px -6px rgba(0,0,0,0.2);
        }

        .top-header-right .btn:active {
            transform: translateY(0) scale(0.98);
        }

        /* Nav tabs sliding indicator */
        .top-nav-bar {
            position: relative;
            transition: all 0.3s ease;
        }

        .top-nav-bar .tab-btn {
            position: relative;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            letter-spacing: 0.2px;
        }

        .top-nav-bar .tab-btn::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            width: 0;
            height: 3px;
            background: var(--primary);
            border-radius: 3px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform: translateX(-50%);
        }

        .top-nav-bar .tab-btn:hover::after {
            width: 40%;
        }

        .top-nav-bar .tab-btn.active {
            transform: scale(1.03);
            box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.4);
        }

        .top-nav-bar .tab-btn.active::after {
            width: 0;
        }

        /* ─── 3. DASHBOARD SUMMARY CARDS PREMIUM ─── */
        .summary-cards {
            gap: 18px;
        }

        .summary-card {
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
        }

        .summary-card:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 20px 40px -12px rgba(0,0,0,0.25);
        }

        .summary-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 20px,
                rgba(255,255,255,0.03) 20px,
                rgba(255,255,255,0.03) 40px
            );
            z-index: 0;
            pointer-events: none;
        }

        .summary-card::after {
            content: '';
            position: absolute;
            right: -30px;
            bottom: -30px;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 70%);
            border-radius: 50%;
            z-index: 0;
            transition: all 0.5s ease;
        }

        .summary-card:hover::after {
            transform: scale(1.5);
            opacity: 0.8;
        }

        .summary-card span {
            font-size: 26px;
            font-weight: 950;
            z-index: 1;
            letter-spacing: -0.8px;
        }

        .summary-card div {
            font-size: 10.5px;
            letter-spacing: 1.5px;
            z-index: 1;
        }

        /* ─── 3b. SALDO CARDS 3D TILT ─── */
        .card {
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--radius);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.0) 0%, rgba(139, 92, 246, 0.0) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 0;
            pointer-events: none;
        }

        .card:hover {
            transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
            box-shadow: 0 25px 50px -15px rgba(99, 102, 241, 0.18),
                        0 0 0 1px rgba(99, 102, 241, 0.15);
        }

        .card:hover::before {
            opacity: 1;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.06) 100%);
        }

        .card .amount {
            font-size: 16px;
            letter-spacing: -0.5px;
            transition: color 0.3s ease;
        }

        .card:hover .amount {
            color: var(--primary);
        }

        .logo-wrapper {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 14px;
        }

        .card:hover .logo-wrapper {
            transform: scale(1.08);
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }

        .btn-hitung-kas {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 12px;
        }

        .btn-hitung-kas:hover {
            transform: translateY(-2px) scale(1.03);
        }

        /* Wide summary cards */
        .laci-cash-card,
        [class*="wide-summary"] {
            transition: all 0.3s ease;
        }

        /* ─── 4. TABLES PREMIUM ─── */
        .table-wrapper {
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: 0 4px 20px -8px rgba(0,0,0,0.06);
        }

        th {
            background: var(--input-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            font-size: 10.5px;
            letter-spacing: 1px;
            padding: 16px 18px;
            border-bottom: 2px solid var(--border-solid);
        }

        /* Zebra striping */
        tbody tr:nth-child(even) td {
            background-color: rgba(99, 102, 241, 0.015);
        }

        [data-theme="dark"] tbody tr:nth-child(even) td {
            background-color: rgba(99, 102, 241, 0.03);
        }

        /* Row hover with left border indicator */
        tbody tr {
            transition: all 0.2s ease;
            position: relative;
        }

        tbody tr:hover td {
            background-color: rgba(99, 102, 241, 0.05) !important;
        }

        tbody tr:hover td:first-child {
            box-shadow: inset 4px 0 0 0 var(--primary);
        }

        [data-theme="dark"] tbody tr:hover td {
            background-color: rgba(99, 102, 241, 0.08) !important;
        }

        td {
            transition: background-color 0.2s ease, box-shadow 0.2s ease;
            padding: 15px 18px;
        }

        /* Badge upgrades */
        .badge-kategori {
            transition: all 0.2s ease;
            border-radius: 10px;
        }

        .badge-fee {
            transition: all 0.2s ease;
            border-radius: 12px;
        }

        .no-trx {
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
        }

        /* ─── 5. FORMS & MODALS PREMIUM ─── */
        .modal {
            animation: modalOverlayIn 0.3s ease-out;
        }

        @keyframes modalOverlayIn {
            from { opacity: 0; backdrop-filter: blur(0px); }
            to { opacity: 1; backdrop-filter: blur(8px); }
        }

        .modal-content {
            animation: modalContentIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid var(--border-solid);
            box-shadow: 0 25px 80px -15px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
            background-size: 200% 100%;
            animation: shimmerBorder 3s linear infinite;
            z-index: 10;
        }

        @keyframes modalContentIn {
            from { opacity: 0; transform: scale(0.9) translateY(30px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        select, input {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 14px;
        }

        select:focus, input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 4px 12px -4px rgba(99, 102, 241, 0.15);
            transform: translateY(-1px);
        }

        .btn-simpan {
            position: relative;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            letter-spacing: 0.3px;
            border-radius: 16px;
        }

        .btn-simpan::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            transform: translate(-50%, -50%);
            transition: width 0.5s ease, height 0.5s ease;
        }

        .btn-simpan:active::after {
            width: 300px;
            height: 300px;
        }

        .btn-simpan:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.55);
        }

        .close-btn {
            position: absolute;
            right: 16px;
            top: 16px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: var(--input-bg);
            transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-size: 24px;
            line-height: 1;
            z-index: 50;
            cursor: pointer;
            color: var(--text-muted);
            user-select: none;
            -webkit-user-select: none;
        }

        .close-btn:hover {
            background: var(--danger-bg);
            color: var(--danger);
            transform: rotate(90deg);
        }

        .section-title {
            position: relative;
        }

        /* Confirm box upgrade */
        .confirm-box {
            animation: modalContentIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 24px;
        }

        .confirm-btn {
            border-radius: 14px;
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .confirm-btn:hover {
            transform: translateY(-2px);
        }

        .confirm-btn:active {
            transform: translateY(0) scale(0.97);
        }

        /* Combobox dropdown animation */
        .combobox-container.open .combobox-dropdown {
            display: block;
            animation: dropdownSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes dropdownSlide {
            from { opacity: 0; transform: translateY(-8px) scaleY(0.95); }
            to { opacity: 1; transform: translateY(0) scaleY(1); }
        }

        .combobox-dropdown {
            border-radius: 16px;
            box-shadow: 0 15px 40px -8px rgba(0,0,0,0.18);
        }

        .combobox-item {
            transition: all 0.15s ease;
            border-radius: 8px;
            margin: 2px 4px;
            padding: 10px 14px;
        }

        .combobox-item:hover {
            transform: translateX(4px);
        }

        /* ─── 6. TOAST NOTIFICATIONS PREMIUM ─── */
        .toast-item {
            border-radius: 16px;
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
            padding: 18px;
        }

        .toast-item::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: var(--primary);
            border-radius: 0 0 16px 16px;
            animation: toastProgress 4s linear forwards;
        }

        .toast-item.success::after { background: var(--success); }
        .toast-item.danger::after { background: var(--danger); }
        .toast-item.warning::after { background: var(--warning); }

        @keyframes toastProgress {
            from { width: 100%; }
            to { width: 0%; }
        }

        .toast-icon {
            font-size: 22px;
            animation: toastIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes toastIconBounce {
            0% { transform: scale(0); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        /* ─── 7. CHARTS & INSIGHT BOXES ─── */
        .insight-box {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
        }

        .insight-box:hover {
            transform: translateX(4px);
            box-shadow: 0 8px 20px -6px rgba(0,0,0,0.08);
        }

        .chart-container-premium {
            border-radius: 16px !important;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .chart-container-premium::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
            z-index: 0;
            pointer-events: none;
        }

        .chart-container-premium:hover {
            box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.12);
        }

        /* ─── 8. MOBILE UX PREMIUM ─── */
        @media (max-width: 768px) {
            .top-nav-bar {
                background: var(--bg-card-solid);
                backdrop-filter: blur(25px) saturate(180%);
                -webkit-backdrop-filter: blur(25px) saturate(180%);
                box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
                border-top: 1px solid var(--border);
                padding: 12px 16px;
                gap: 6px;
            }

            .top-nav-bar .tab-btn {
                padding: 10px 14px !important;
                font-size: 12px !important;
                border-radius: 16px !important;
                flex-direction: column;
                gap: 4px !important;
                min-width: max-content;
            }

            .top-nav-bar .tab-btn.active {
                transform: scale(1.05) !important;
                box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.4) !important;
            }

            .top-nav-bar .tab-btn::after {
                display: none;
            }

            .summary-card span {
                font-size: 20px;
            }

            .card:hover {
                transform: translateY(-4px);
            }

            .top-header-bar {
                border-radius: 20px;
                padding: 14px 18px;
            }

            .top-header-left h1 {
                font-size: 20px;
            }

            .modal-content {
                border-radius: 24px 24px 0 0;
                max-height: 95vh;
            }

            .summary-cards {
                gap: 12px;
            }
        }

        /* ─── 9. GLOBAL POLISH ─── */

        /* Upgraded page transitions */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(16px) scale(0.99);
                filter: blur(2px);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }

        .page-section {
            animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Subtle background texture in dark mode */
        [data-theme="dark"] body {
            background: #0b0f19;
            background-image:
                radial-gradient(ellipse at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
            background-attachment: fixed;
        }

        /* Light mode subtle gradient */
        body {
            background: #f1f5f9;
            background-image:
                radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
            background-attachment: fixed;
        }

        /* Premium scrollbar */
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--border-solid), var(--text-muted));
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--text-muted), var(--primary));
        }

        /* Button hover improvements */
        .btn {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px -8px rgba(0,0,0,0.2);
        }

        .btn:active {
            transform: translateY(0) scale(0.97);
        }

        .btn-hapus-item {
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 10px;
        }

        .btn-hapus-item:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .btn-reset {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 16px;
        }

        .btn-reset:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.3);
        }

        /* Layout cards glass effect upgrade */
        .layout-left, .layout-right {
            border-radius: 24px;
            transition: all 0.3s ease;
        }

        .layout-left:hover, .layout-right:hover {
            box-shadow: 0 12px 35px -10px rgba(0,0,0,0.08);
        }

        /* Dashboard group titles */
        .dashboard-group-title {
            border-left: 4px solid transparent;
            border-image: linear-gradient(180deg, var(--primary), var(--accent)) 1;
            transition: all 0.3s ease;
            padding: 8px 16px;
        }

        /* Note cards hover upgrade */
        .note-card {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .note-card:hover {
            transform: scale(1.06) translateY(-4px);
            box-shadow: 0 8px 20px -6px rgba(0,0,0,0.15);
        }

        /* Receipt modal styling */
        .receipt-modal-content {
            border-radius: 16px !important;
        }

        /* Filter date header */
        .filter-tanggal-header {
            border-radius: 14px;
            transition: all 0.2s ease;
        }

        .filter-tanggal-header:hover {
            border-color: var(--primary);
        }

        /* Category card buttons */
        .category-card-btn {
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        }

        .category-card-btn:hover {
            transform: translateY(-4px) scale(1.03) !important;
            box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.15) !important;
        }

        .category-card-btn.active {
            transform: translateY(-2px) scale(1.02) !important;
        }

        /* Live preview box */
        #live-preview-box {
            transition: all 0.3s ease;
            border-radius: 16px !important;
        }

        /* Pecahan total box */
        .total-pecahan-box {
            border-radius: 16px;
            transition: all 0.3s ease;
            border: 2px dashed var(--success);
        }

        /* Visual note grid */
        .visual-note-grid {
            gap: 14px;
        }

        /* Selection styling */
        ::selection {
            background: rgba(99, 102, 241, 0.2);
            color: var(--text-main);
        }

        /* Focus visible outline for accessibility */
        *:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 4px;
        }

        /* Smooth all transitions globally */
        *, *::before, *::after {
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Stok control buttons upgrade */
        .btn-min, .btn-plus {
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 12px;
        }

        .btn-min:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
        }

        .btn-plus:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
        }

        .stok-display {
            transition: all 0.3s ease;
            font-variant-numeric: tabular-nums;
        }

        /* Detail akun badges */
        .detail-akun {
            transition: all 0.2s ease;
            border-radius: 12px;
        }

        /* Pelanggan info text */
        .pelanggan-info strong {
            transition: color 0.2s ease;
        }

        tr:hover .pelanggan-info strong {
            color: var(--primary);
        }

        /* ─── ROLE-BASED ACCESS CONTROL (RBAC) ─── */
        [data-role="kasir"] .owner-only {
            display: none !important;
        }

        /* ─── RESPONSIVE TABLES FOR MOBILE ─── */
        @media (max-width: 768px) {
            .table-wrapper {
                max-height: none !important;
                border: none !important;
                box-shadow: none !important;
            }

            .table-wrapper table {
                min-width: 100% !important;
            }

            .table-wrapper table thead {
                display: none !important;
            }

            .table-wrapper table,
            .table-wrapper table tbody,
            .table-wrapper table tr,
            .table-wrapper table td {
                display: block !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }

            .table-wrapper table tr {
                margin-bottom: 16px !important;
                background: var(--bg-card-solid) !important;
                border: 1px solid var(--border-solid) !important;
                border-radius: var(--radius-sm) !important;
                padding: 12px 16px !important;
                box-shadow: var(--shadow) !important;
            }

            /* Striping fix for mobile card stack */
            .table-wrapper tbody tr:nth-child(even) td {
                background-color: transparent !important;
            }

            .table-wrapper table td {
                border-bottom: 1px dashed var(--border) !important;
                padding: 12px 8px !important;
                text-align: right !important;
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                min-height: 44px !important;
            }

            .table-wrapper table td:last-child {
                border-bottom: none !important;
                justify-content: flex-end !important;
            }

            /* Create responsive labels from data-label */
            .table-wrapper table td::before {
                content: attr(data-label) !important;
                font-weight: 800 !important;
                color: var(--text-muted) !important;
                text-transform: uppercase !important;
                font-size: 10.5px !important;
                letter-spacing: 0.8px !important;
                text-align: left !important;
                margin-right: 15px !important;
                display: inline-block !important;
            }

            /* Adjust text formatting of stacked cells */
            .table-wrapper table td * {
                text-align: right !important;
            }

            .table-wrapper table td .pelanggan-info,
            .table-wrapper table td .stok-control {
                justify-content: flex-end !important;
                display: inline-flex !important;
            }
        }