    body {
        font-family: 'Inter', sans-serif;
        background-color: #F0F2F7;
        /* Light gray background */
    }

    /* Wrapper for profile image and timer */
    .profile-image-wrapper {
        position: relative;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        /* Crucial for circular timer fill */
        border: 5px solid #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        /* For centering content */
        justify-content: center;
        align-items: center;
        margin: auto;
        transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    }

    .profile-img {
        width: 100%;
        /* Fill the wrapper */
        height: 100%;
        /* Fill the wrapper */
        border-radius: 50%;
        object-fit: cover;
        position: relative;
        z-index: 2;
    }

    /* Timer Overlay CSS */
    .timer-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: conic-gradient(#22c55e 0%, transparent 0%);
        /* Initial state: 0% filled */
        z-index: 1;
        /* Below the image */
        transform: rotate(-90deg);
        /* Start from top */
        transform-origin: center;
        transition: background 0.1s ease-out;
        /* For smooth color change */
    }

    .timer-overlay.active {
        animation: fillCircle 3s linear forwards;
        /* Animation to fill the circle */
    }

    /* State for timer-overlay when it's "ready to add" */
    .timer-overlay.ready-to-add {
        background: #10b981;
        /* Solid green */
        animation: pulseSolidGreen 0.2s ease-out forwards;
        /* Quick pulse and hold */
    }

    @keyframes fillCircle {
        0% {
            background: conic-gradient(#22c55e 0%, transparent 0%);
        }

        100% {
            background: conic-gradient(#22c55e 100%, transparent 100%);
        }
    }

    @keyframes pulseSolidGreen {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Money Add Animation CSS */
    .money-add-animation {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Center it */
        opacity: 0;
        font-size: 1.5rem;
        font-weight: bold;
        color: #10b981;
        /* Green color */
        pointer-events: none;
        /* Allow clicks to pass through */
        z-index: 10;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
        /* Subtle glow */
    }

    .money-add-animation.animate {
        animation: moneyFlyUpFade 1s ease-out forwards;
    }

    @keyframes moneyFlyUpFade {
        0% {
            transform: translate(-50%, -50%) translateY(0);
            opacity: 0;
        }

        20% {
            opacity: 1;
            /* Fade in quickly */
        }

        100% {
            transform: translate(-50%, -50%) translateY(-50px);
            /* Move up */
            opacity: 0;
            /* Fade out */
        }
    }

    /* Flash Ready Animation CSS for the wrapper */
    .profile-image-wrapper.flash-ready {
        animation: flashReady 0.3s ease-in-out forwards;
    }

    @keyframes flashReady {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        50% {
            transform: scale(1.05);
            /* Slight bounce */
            box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
            /* Green glow */
        }
    }

    /* NEW: Pre-Money Loader Spinner CSS */
    .pre-money-loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid rgba(255, 255, 255, 0.3);
        /* Light white border for the ring */
        border-top: 4px solid #10b981;
        /* Green top border for the moving part */
        border-radius: 50%;
        opacity: 0;
        /* Hidden by default */
        pointer-events: none;
        /* Don't block clicks */
        z-index: 15;
        transition: opacity 0.1s ease-in-out;
    }

    .pre-money-loader.active {
        opacity: 1;
        /* Show it */
        animation: spin 0.8s linear infinite;
        /* Spin animation */
    }

    @keyframes spin {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    .money-display {
        font-size: 2.5rem;
        font-weight: 700;
        color: white;
        text-align: center;
        padding: 1.5rem 0;
        background: linear-gradient(90deg, #22c55e, #10b981);
        /* Gradient background */
        border-radius: 0.75rem;
        margin: 1.5rem auto;
        max-width: 600px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease-in-out, all 0.3s ease-in-out;
        z-index: 1000;
    }

    .money-display-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-bottom-left-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
        margin: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    }

    .money-display.pulse {
        animation: pulse-animation 0.5s ease-in-out;
    }

    @keyframes pulse-animation {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }

    .money-display-placeholder {
        height: 0;
        transition: height 0.3s ease-in-out;
    }

    .product-card {
        background-color: #ffffff;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        width: 280px;
        /* Fixed width */
        height: 361px;
        /* Fixed height */
        margin: auto;
        /* Center cards within grid cells */
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .product-image {
        width: 100%;
        height: 180px;
        object-fit: contain;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .product-name {
        font-weight: 600;
        color: #333;
        margin-bottom: 0.25rem;
    }

    .product-price {
        font-weight: 700;
        color: #16a34a;
        margin-bottom: 0.75rem;
    }

    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .quantity-input {
        width: 100px;
        text-align: center;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        padding: 0.5rem 0.25rem;
        font-size: 1rem;
        -moz-appearance: textfield;
    }

    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .control-button {
        padding: 0.6rem 1rem;
        border-radius: 0.5rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    }

    .control-button:active {
        transform: scale(0.98);
    }

    .buy-button {
        background-color: #22c55e;
        color: white;
    }

    .buy-button:hover:not(:disabled) {
        background-color: #16a34a;
        color: white;
    }

    .sell-button {
        background-color: #ef4444;
        color: white;
    }

    .sell-button:hover:not(:disabled) {
        background-color: #dc2626;
        color: white;
    }

    .control-button:disabled {
        background-color: #d1d5db;
        color: #9ca3af;
        cursor: not-allowed;
    }

    /* Custom Dropdown Styling */
    .custom-select-wrapper {
        position: relative;
        display: inline-block;
        width: 100%;
        /* Adjust as needed */
        max-width: 300px;
        /* Same as before */
        margin: auto;
    }

    #spenderSelect {
        appearance: none;
        /* Remove default arrow */
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        padding-right: 2.5rem;
        /* Space for custom arrow */
        font-size: 1.1rem;
        line-height: 1.5;
        color: #333;
        cursor: pointer;
        transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    #spenderSelect:focus {
        outline: none;
        border-color: #22c55e;
        box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.25);
    }

    .custom-select-wrapper::after {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        pointer-events: none;
        /* Allow clicks to pass through to the select */
        color: #6b7280;
        font-size: 0.8rem;
    }

    /* Receipt Section Specifics */
    .receipt-section .d-flex {
        /* Target the item rows within receipt content */
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        /* Align text on the same baseline */
        padding: 0.5rem 0;
        /* Add some vertical padding */
    }

    .receipt-section .d-flex span:nth-child(1) {
        /* Product Name */
        flex-grow: 1;
        /* Allow it to take available space */
        text-align: left;
        padding-right: 10px;
        /* Small space before quantity */
        white-space: nowrap;
        /* Prevent wrapping of long names */
        overflow: hidden;
        /* Hide overflow */
        text-overflow: ellipsis;
        /* Add ellipsis for overflow */
    }

    .receipt-section .d-flex span:nth-child(2) {
        /* Quantity (xN) */
        flex-shrink: 0;
        /* Don't allow it to shrink */
        width: 50px;
        /* Fixed width for quantity to align */
        text-align: center;
        color: #6c757d;
        /* Bootstrap muted color */
    }

    .receipt-section .d-flex span:nth-child(3) {
        /* Total Price */
        flex-shrink: 0;
        /* Don't allow it to shrink */
        min-width: 100px;
        /* Minimum width for price to align */
        text-align: right;
        font-weight: 600;
        color: #16a34a;
        /* Green color */
        white-space: nowrap;
        /* Prevent price from wrapping */
    }

    /* Adjust total line alignment */
    .receipt-section .border-top {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .receipt-section .border-top #receiptTotal {
        text-align: right;
        flex-shrink: 0;
        width: auto;
        /* Let it adapt, or give a fixed width if needed */
    }


    /* Responsive adjustments for Bootstrap grid */
    @media (max-width: 767.98px) {
        .money-display {
            font-size: 1.8rem;
            padding: 1rem 0;
            margin: 1rem auto;
        }

        .money-display-fixed {
            padding: 0.75rem 0;
        }

        .product-card {
            width: 100%;
            height: auto;
            padding: 0.75rem;
        }

        .product-image {
            height: 120px;
        }

        .quantity-input {
            width: 70px;
            padding: 0.4rem 0.2rem;
        }

        .control-button {
            padding: 0.5rem 0.8rem;
            font-size: 0.9rem;
        }

        #spenderSelect {
            font-size: 1rem;
            padding: 0.6rem 0.8rem;
            padding-right: 2rem;
        }

        .custom-select-wrapper::after {
            right: 0.8rem;
        }

        /* Receipt responsive adjustments */
        .receipt-section .d-flex span:nth-child(2) {
            /* Quantity (xN) */
            width: 40px;
            /* Smaller fixed width */
        }

        .receipt-section .d-flex span:nth-child(3) {
            /* Total Price */
            min-width: 80px;
            /* Smaller fixed width */
        }
    }

    @media (max-width: 575.98px) {
        .main-app-content {
            /* Changed from .container-custom */
            padding: 10px;
            border-radius: 1rem;
        }

        .profile-image-wrapper {
            width: 90px;
            height: 90px;
        }

        .money-display {
            font-size: 1.5rem;
            margin: 0.75rem auto;
        }

        .money-display-fixed {
            padding: 0.5rem 0;
        }

        .product-image {
            height: 100px;
        }

        .product-name {
            font-size: 0.9rem;
        }

        .product-price {
            font-size: 0.95rem;
        }

        .quantity-input {
            width: 50px;
            font-size: 0.9rem;
        }

        .control-button {
            padding: 0.4rem 0.7rem;
            font-size: 0.8rem;
        }

        #spenderSelect {
            font-size: 0.9rem;
            padding: 0.5rem 0.7rem;
            padding-right: 1.8rem;
        }

        .custom-select-wrapper::after {
            right: 0.7rem;
        }

        /* Receipt responsive adjustments */
        .receipt-section .d-flex span:nth-child(2) {
            /* Quantity (xN) */
            width: 35px;
            /* Even smaller fixed width */
        }

        .receipt-section .d-flex span:nth-child(3) {
            /* Total Price */
            min-width: 70px;
            /* Even smaller fixed width */
            font-size: 0.9rem;
        }
    }

    .legal-text {
        color: #000000;
    }