 /* 1. Modal Overlay and Modal */
        #modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent blackout */
            z-index: 9998; /* High z-index */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0s 0.3s;
        }

        #custom-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            z-index: 9999; /* Higher z-index than overlay */
            opacity: 0;
            visibility: hidden;
            background-color: white;
            
            /* Visuals matching V0 image */
            border-radius: 12px; /* Smoother radius */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Soft, noticeable shadow */
            max-width: 440px; 
            width: 90%;
            padding: 30px; 
            
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            display: flex; 
            flex-direction: column;
        }
        
        /* 2. Active State & Transitions */
        .modal-active #modal-overlay {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s ease;
        }

        .modal-active #custom-modal {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        /* 3. The Blur Effect (CRITICAL PART) */
        /* Change this selector if your main content wrapper is different! */
        .modal-active .site-content-wrapper,
        .modal-active .site-header,
        .modal-active .site-main { 
            filter: blur(5px);
            pointer-events: none; 
            transition: filter 0.3s ease;
        }

        /* Modal Content Styling (V0 Match) */
        #custom-modal .modal-content-wrapper {
            display: flex;
            flex-direction: column;
            gap: 10px; /* Space between title/message/buttons */
        }

        #custom-modal .modal-title {
            font-size: 22px; 
            font-weight: 700; 
            color: #333333; /* Darker text for title */
            margin: 0 0 5px 0; /* Tighten up margin */
            text-align: left;
        }
        
        #custom-modal .modal-message {
            font-size: 16px;
            color: #888888; /* Greyed out message text */
            margin: 0 0 20px 0; /* Space before buttons */
            text-align: left;
        }
        
        #custom-modal .modal-buttons {
            display: flex;
            justify-content: flex-end; 
            gap: 12px; /* Space between buttons */
        }

        /* BUTTONS - Matching V0 */

        #custom-modal .modal-button-cancel {
            padding: 10px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 6px;
            
            /* WHITE BUTTON STYLES */
            border: 1px solid #cccccc; 
            background-color: #ffffff; 
            color: #666666; 
            
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            line-height: 1.5; /* Ensure good height */
        }

        #custom-modal .modal-button-cancel:hover {
            background-color: #f8f8f8;
            border-color: #b5b5b5;
        }

        #custom-modal .modal-button-logout {
            padding: 10px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 6px;
            
            /* ORANGE/BROWN BUTTON STYLES */
            background-color: #e6912c; /* Updated Orange/Brown */
            color: #fff;
            
            text-decoration: none; 
            border: none; 
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            display: inline-flex; 
            align-items: center;
            justify-content: center;
            line-height: 1.5; /* Ensure good height */
        }

        #custom-modal .modal-button-logout:hover {
            background-color: #d18227; /* Darker on hover */
        }

        /* Make sure the body style resets */
        body.modal-active {
            overflow: hidden; /* Prevent scrolling of blurred background */
        }