
        :root {
            --primary: #f59e0b;
            --primary-dark: #d97706;
            --bg-gradient: linear-gradient(90deg, #a6ddff 0%, #4c8fff 100%);
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --accent-red: #ef4444;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }header {
            text-align: center;
            padding: 20px 0;
            color: white;
            position: relative;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5px;
        }

        .logo {
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 4px;
        }

        .logo span {
            color: var(--primary);
        }

        .menu-btn {
            background: none;
            border: none;
            color: white;
            font-size: 2.2rem;
            cursor: pointer;
            line-height: 1;
            transition: transform 0.2s;
        }

        .menu-btn:hover {
            transform: scale(1.1);
        }

        .tagline {
            font-size: 0.95rem;
            opacity: 0.8;
            font-weight: 300;
            text-align: left;
            width: 100%;
            padding: 0 5px;
        }

        .card {
            background: var(--card-bg);
            border-radius: 28px;
            padding: 24px;
            box-shadow: var(--shadow);
        }

        .card h2 {
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text-main);
        }

        .desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .balance-wrap {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .balance-amount {
            font-size: 2.1rem;
            font-weight: 800;
            color: var(--text-main);
        }

        .balance-sub {
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        .money-meter {
            position: relative;
            width: 100%;
            max-width: 520px;
            margin: 8px auto 0;
            aspect-ratio: 1445 / 282;
            height: 110px;
            min-height: 110px;
        }

.money-base,
.money-fill {
    position: absolute;
    background: url('/img/money.png?v=2') left center / var(--money-width, 520px) 100% no-repeat;
}

        .money-base {
            inset: 0;
            filter: grayscale(1);
            opacity: 0.35;
            z-index: 1;
        }

        .money-fill {
            top: 0;
            left: 0;
            bottom: 0;
            height: 100%;
            width: 0;
            overflow: hidden;
            transition: width 0.8s ease, left 0.8s ease, background-position 0.8s ease;
            z-index: 2;
        }

        .balance-note {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: center;
        }

        .share-actions {
            margin-top: 16px;
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .share-btn {
            border: none;
            background: #0f172a;
            color: #ffffff;
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
        }

        .share-btn.secondary {
            background: #f8fafc;
            color: #0f172a;
            border: 1px solid #e2e8f0;
        }

        .ledger {
            margin-top: 16px;
            display: grid;
            gap: 10px;
        }

        .ledger-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            font-size: 0.95rem;
        }

        .ledger-row.negative {
            color: #b91c1c;
        }

        .ledger-row.total {
            font-weight: 800;
            color: #0f172a;
            background: #fff7ed;
            border-color: #fdba74;
        }

        .ledger-title {
            font-weight: 600;
        }

        .side-menu {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100%;
            background: white;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
            z-index: 2000;
            transition: right 0.3s ease-out;
            padding: 20px;
            color: #0f172a;
            text-align: left;
        }

        .side-menu.active {
            right: 0;
        }

        .menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        .menu-header h2 {
            font-size: 1.5rem;
            font-weight: 800;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #0f172a;
            line-height: 1;
        }

        .menu-nav ul {
            list-style: none;
            padding: 0;
        }

        .menu-nav li {
            margin-bottom: 12px;
        }

        .menu-nav a {
            text-decoration: none;
            font-size: 1rem;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 10px;
            transition: background 0.2s;
        }

        .menu-nav a:hover {
            background: #f1f5f9;
        }

        .menu-nav .icon {
            font-size: 1.2rem;
        }

        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            display: none;
            backdrop-filter: blur(4px);
        }

        .menu-overlay.active {
            display: block;
        }
    
