        :root {
            --cookie-primary: #D98A53; /* Golden baked cookie */
            --cookie-hover: #C67943;
            --chocolate: #5C3A21; /* Chocolate chip */
            --dough-bg: #FFFBF2; /* Soft dough background */
            --nav-bg: #FFFFFF;
        }

        body { 
            font-family: 'Nunito', sans-serif; 
            background: var(--dough-bg); 
            margin: 0; 
            display: flex; 
            justify-content: center; 
            min-height: 100vh; 
        }

        /* Mobile App Container */
        .app-container { 
            width: 100%; 
            max-width: 450px; 
            background: var(--dough-bg); 
            min-height: 100vh; 
            box-shadow: 0 0 30px rgba(92, 58, 33, 0.1); 
            position: relative; 
            display: flex; 
            flex-direction: column; 
        }
        
        /* Header */
        .app-header { 
            background: var(--cookie-primary); 
            padding: 15px 20px; 
            text-align: center; 
            position: sticky; 
            top: 0; 
            z-index: 10;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            box-shadow: 0 4px 15px rgba(217, 138, 83, 0.3);
        }
        .app-header h2 { margin: 0; color: white; font-weight: 800; font-size: 1.5rem; letter-spacing: 1px;}
        
        /* Views */
        .view { padding: 20px; display: none; padding-bottom: 90px; flex-grow: 1; }
        .view.active { display: block; animation: fadeIn 0.3s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Custom Cookie Buttons */
        .btn-cookie { 
            background: var(--cookie-primary); 
            color: white; 
            font-weight: 800; 
            border-radius: 50px; 
            padding: 12px; 
            transition: 0.3s; 
            border: none;
        }
        .btn-cookie:hover { background: var(--cookie-hover); color: white; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(217, 138, 83, 0.4);}
        .btn-chocolate { background: var(--chocolate); color: white; border-radius: 50px; font-weight: 800; padding: 12px; }
        .btn-chocolate:hover { background: #452b18; color: white; }
        .btn-liked-state { background: #e0d8d0; color: #8c7e73; border-radius: 50px; font-weight: bold; pointer-events: none; }
        
        /* Inputs */
        .form-control, .form-select { border-radius: 15px; padding: 12px 15px; border: 2px solid #f0e6d8; background: #fff; }
        .form-control:focus, .form-select:focus { border-color: var(--cookie-primary); box-shadow: 0 0 0 0.2rem rgba(217, 138, 83, 0.25); }
        
        /* Profile Cards */
        .cookie-card { 
            background: white; 
            border-radius: 20px; 
            overflow: hidden; 
            box-shadow: 0 8px 20px rgba(92, 58, 33, 0.08); 
            margin-bottom: 25px; 
            border: none; 
        }
        .cookie-card img { width: 100%; height: 350px; object-fit: cover; }
        .card-body h3 { color: var(--chocolate); font-weight: 800; margin-bottom: 5px;}
        
        /* Navigation Bar */
        .nav-bar { 
            position: fixed; 
            bottom: 0; 
            width: 100%; 
            max-width: 450px; 
            background: var(--nav-bg); 
            display: none; 
            justify-content: space-around; 
            padding: 15px 0 20px 0; 
            z-index: 20;
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
            box-shadow: 0 -5px 20px rgba(92, 58, 33, 0.1);
        }
        .nav-bar.visible { display: flex; }
        .nav-item { font-size: 1.5rem; cursor: pointer; color: #d1c5b8; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
        .nav-item span { font-size: 0.7rem; font-weight: 800; margin-top: 4px; opacity: 0; transition: 0.3s;}
        .nav-item.active { color: var(--cookie-primary); transform: translateY(-5px); }
        .nav-item.active span { opacity: 1; }

        /* LOADING OVERLAY */
        #loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 251, 242, 0.95); z-index: 1000; display: none; justify-content: center; align-items: center; flex-direction: column; }
        .spinner { width: 50px; height: 50px; border: 5px solid #f0e6d8; border-top: 5px solid var(--cookie-primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        /* Phone Number Highlight */
        .phone-display { background: #fdf2e9; color: var(--cookie-hover); padding: 12px; border-radius: 50px; font-weight: 800; text-align: center; margin-top: 10px; display: block; width: 100%; border: 2px dashed var(--cookie-primary); }
        
        .empty-state { text-align: center; color: #a69b91; margin-top: 60px; padding: 20px; }
        .empty-state i { font-size: 4rem; color: #e6dacd; margin-bottom: 15px; display: block; }
        .hidden { display: none !important; }

        /* Action Buttons Container (Side-by-side) */
        .action-buttons { display: flex; gap: 10px; margin-top: 15px; }

        /* Pass Button */
        .btn-pass { background: #e0d8d0; color: #8c7e73; font-weight: 800; border-radius: 50px; padding: 12px; transition: 0.3s; border: none; }
        .btn-pass:hover { background: #d1c5b8; color: #5c3a21; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(92, 58, 33, 0.1); }

        /* Animation for passing a profile */
        @keyframes slideOutLeft {
            to { opacity: 0; transform: translateX(-100%) rotate(-10deg); }
        }
        .sliding-out { animation: slideOutLeft 0.4s forwards; pointer-events: none; }
        /* Chat Bubbles */
        .chat-bubble { max-width: 80%; padding: 10px 15px; border-radius: 20px; font-weight: 600; font-size: 0.95rem; }
        .chat-sent { background: var(--cookie-primary); color: white; align-self: flex-end; border-bottom-right-radius: 5px;}
        .chat-received { background: white; color: var(--chocolate); border: 1px solid #f0e6d8; align-self: flex-start; border-bottom-left-radius: 5px;}

        /* Ensure the nav items can hold an absolute badge */
        .nav-item { position: relative; } 

        .nav-badge {
            position: absolute;
            top: 0px;
            right: 15%;
            background: #ff4b4b;
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 50%;
            display: none; /* Hidden by default */
            border: 2px solid white;
        }

        /* Person-specific unread indicator */
        .chat-unread-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            background-color: #ff4b4b;
            border-radius: 50%;
            margin-left: 10px;
            box-shadow: 0 0 8px rgba(255, 75, 75, 0.6);
            vertical-align: middle;
        }