@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
        
        :root {
            --theme-light-blue: #dcfce7;
            --theme-dark-blue: #16a34a;
            --theme-black: #0f172a;
        }

        /* Fixed Overflow issue causing keyboard/scrolling bugs on Android */
        html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; overscroll-behavior-y: none; position: fixed; top: 0; left: 0; }
        body { font-family: 'Poppins', sans-serif; background-color: #f0f2f5; touch-action: manipulation; user-select: auto; -webkit-user-select: auto; -webkit-touch-callout: default; text-rendering: optimizeSpeed; }
        .nav-item, .btn-primary-theme, .attach-btn, .chat-bubble { user-select: none; -webkit-user-select: none; }
        
        .glass { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); }
        .neon-btn { background: linear-gradient(135deg, var(--theme-dark-blue) 0%, #22c55e 100%); transition: 0.3s; }
        
        .screen { display: none; height: 100%; width: 100%; position: absolute; top: 0; left: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 100px; background: #fff; -webkit-overflow-scrolling: touch; transform: translateZ(0); }
        .screen.active { display: block; animation: fadeIn 0.15s ease-out; contain: content; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } 
        
        .auth-bg { background: linear-gradient(180deg, var(--theme-light-blue) 0%, var(--theme-dark-blue) 100%); }
        .input-group { position: relative; margin-bottom: 1.5rem; }
        .input-field { width: 100%; padding: 14px 15px; background: #f3f4f6; border: 1.5px dashed #94a3b8; border-radius: 16px; outline: none; transition: 0.3s; font-size: 0.95rem; font-weight: 600; color: #1f2937; }
        .input-field:focus { border-color: var(--theme-dark-blue); border-style: solid; background: #fff; box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.15); }
        .input-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #9ca3af; cursor: pointer; font-size: 1.1rem; }
        
        .earning-popup { position: fixed; top: 20px; right: 20px; background: #10b981; color: white; padding: 10px 20px; border-radius: 50px; display: none; z-index: 9999; font-weight: bold; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); }
        
        /* IMPROVED CHAT BUBBLES - WHATSAPP STYLE */
        .chat-bubble { max-width: 85%; min-width: 45px; padding: 8px 12px !important; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; word-break: break-word; position: relative; margin-bottom: 8px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1); touch-action: pan-y; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s; will-change: transform; transform: translateZ(0); }
        .msg-meta { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 1; }
        .in-swipe .msg-meta { opacity: 1; }
        .bubble-meta-inline { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 9px; margin-top: 2px; margin-left: 8px; float: right; position: relative; bottom: -2px; }
        .msg-time-inner { font-size: 10px; opacity: 0.6; font-weight: 500; font-family: sans-serif; }
        .active-label { background: #22c55e; color: white; font-size: 8px; font-weight: 900; padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; height: 14px; margin-left: 5px; animation: pulseActive 2s infinite; }
        @keyframes pulseActive { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
        
        .sent { background: linear-gradient(135deg, var(--theme-dark-blue) 0%, #15803d 100%); color: white; border-top-right-radius: 4px !important; border-bottom-right-radius: 4px; margin-left: auto; }
        .received { background: #ffffff; color: #1f2937; border-top-left-radius: 4px !important; border-bottom-left-radius: 4px; margin-right: auto; border: 1px solid rgba(0,0,0,0.05); }
        .sent .text-content, .received .text-content { font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
        .sent .text-content { color: white !important; }
        .received .text-content { color: #1f2937 !important; }
        .sent.same-sender { border-top-right-radius: 12px !important; margin-top: 2px !important; }
        .received.same-sender { border-top-left-radius: 12px !important; margin-top: 2px !important; }
        .sent .msg-time-inner, .sent .bubble-meta-inline { color: rgba(255,255,255,0.7); }
        .received .msg-time-inner, .received .bubble-meta-inline { color: #999; }
        
        .msg-pending { opacity: 0.75; filter: grayscale(0.5); }
        .msg-pending .status-tick-container { animation: pulse 1s infinite; }
        
        .msg-time { display: none !important; }
        .status-tick-container { display: flex; align-items: center; transition: transform 0.2s; }
        .sent .msg-time, .received .msg-time { margin: 0 !important; }
        .msg-wrapper { position: relative; width: 100%; will-change: transform; content-visibility: auto; transform: translateZ(0); }
        .msg-tick { font-size: 0.6rem; margin-left: 2px; } 
        .system-msg { align-self: center; background: rgba(0,0,0,0.1); backdrop-filter: blur(4px); color: #555; font-size: 0.7rem; padding: 4px 10px; border-radius: 10px; margin: 5px 0; font-weight: bold; }
        
        .edited-tag { font-size: 8px; font-style: italic; opacity: 0.7; margin-left: 4px; }

        ::-webkit-scrollbar { width: 0px; background: transparent; }
        
        .filter-option { transition: transform 0.2s; }        
        .filter-option:active { transform: scale(0.9); }

        .processing-modal { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); display: none; flex-direction: column; align-items: center; justify-content: center; color: var(--theme-dark-blue); } 
        
        .radar-spinner { width: 50px; height: 50px; border: 4px solid rgba(0, 180, 255, 0.3); border-top: 4px solid var(--theme-dark-blue); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } 
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } 

        .date-header { padding: 10px 0; font-size: 0.8rem; font-weight: 800; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #f3f4f6; margin-bottom: 10px; }
        
        .bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; padding: 10px; background: rgba(0,0,0,0.03); border-radius: 15px; }
        .bar { flex: 1; background: var(--theme-dark-blue); border-radius: 4px 4px 2px 2px; min-height: 5px; transition: 0.5s; }

        .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
        .slider-toggle:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }        
        input:checked + .slider-toggle { background-color: var(--theme-dark-blue); }        
        input:checked + .slider-toggle:before { transform: translateX(20px); }
        
        .edit-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px; }
        .edit-popup-content { background: white; width: 100%; max-width: 400px; border-radius: 28px; overflow: hidden; animation: popupAnim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
        @keyframes popupAnim { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

        .txn-status-dot { width: 8px; height: 8px; border-radius: 50%; }

        .policy-content { font-size: 0.85rem; line-height: 1.6; color: #4b5563; }
        .policy-content h4 { font-weight: 800; color: #1f2937; margin-top: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }

        .delivering-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; }
        .delivered-check { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #10b981; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #10b981; animation: popCheck 0.4s ease-out; }
        @keyframes popCheck { 0% { transform: scale(0); } 100% { transform: scale(1); } }

        .settings-header-fixed { position: fixed; top: 0; left: 0; right: 0; height: 80px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); z-index: 100; display: none; align-items: center; padding: 0 24px; border-bottom: 1px solid rgba(0,0,0,0.05); }

        .nav-dp-circle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cbd5e1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
        .nav-dp-circle img { width: 100%; height: 100%; object-fit: cover; }

        #message-action-menu { position: fixed; inset: 0; background: rgba(0,0,0,0.2); backdrop-filter: blur(1px); z-index: 5000; display: none; }
        .floating-menu { 
            position: absolute; background: white; border-radius: 20px; 
            box-shadow: 0 10px 40px rgba(0,0,0,0.15); width: 190px; 
            overflow: hidden; animation: menuPop 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
            z-index: 5001; border: 1px solid rgba(0,0,0,0.05);
        }
        @keyframes menuPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .floating-action-item { 
            display: flex; align-items: center; gap: 12px; padding: 12px 16px; 
            font-size: 13px; font-weight: 600; color: #4b5563; cursor: pointer; 
            transition: 0.2s; border-bottom: 1px solid #f1f5f9;
        }
        .floating-action-item:last-child { border-bottom: none; }
        .floating-action-item:active { background: #f1f5f9; }
        .floating-emoji-bar { 
            display: flex; justify-content: space-around; padding: 12px 10px; 
            background: #f8fafc; border-bottom: 1px solid #f1f5f9; 
        }
        .floating-emoji-bar span { font-size: 22px; transition: 0.2s; cursor: pointer; }
        .floating-emoji-bar span:active { transform: scale(1.4); }

        .friend-earning-pill { background: #10b981; color: #fff; font-size: 9px; font-weight: 900; padding: 2px 8px; border-radius: 50px; display: inline-flex; align-items: center; justify-content: center; border: none; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2); }

        .reward-progress-bar { width: 100%; height: 12px; background: #e2e8f0; border-radius: 10px; overflow: hidden; position: relative; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }
        .reward-progress-fill { height: 100%; background: linear-gradient(90deg, var(--theme-dark-blue), #4facfe); border-radius: 10px; transition: 1s cubic-bezier(0.4, 0, 0.2, 1); width: 0%; box-shadow: 0 0 10px rgba(0,180,255,0.5); }
        .refer-step-circle { width: 32px; height: 32px; border-radius: 50%; background: #eff6ff; color: var(--theme-dark-blue); display: flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid #dbeafe; }

        .reaction-container { position: relative; display: flex; gap: 4px; z-index: 5; margin-top: -10px; margin-bottom: 6px; padding: 0 15px; }
        .sent .reaction-container { justify-content: flex-end; }
        .received .reaction-container { justify-content: flex-start; }
        .reaction-pill { background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 2px 6px; font-size: 11px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 3px; cursor: pointer; z-index: 10; }
        
        .msg-selected .chat-bubble { border: 2.5px solid var(--theme-dark-blue) !important; background-color: rgba(0, 180, 255, 0.08) !important; color: #000 !important; box-shadow: 0 5px 25px rgba(0,180,255,0.2) !important; transform: scale(0.96); transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .msg-selected .text-content { color: #000 !important; }
        
        .bubble-swiping-active .chat-bubble { background-color: rgba(0, 180, 255, 0.1) !important; border: 2px solid var(--theme-dark-blue) !important; }
        .bubble-swiping-active .text-content { color: #000 !important; }

        .reply-preview-container {
            width: 100%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 8px 12px;
            border-top: 1px solid rgba(0,0,0,0.05); z-index: 10;
            animation: slideUpReply 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -4px 15px rgba(0,0,0,0.03); margin-bottom: 0;
        }
        @keyframes slideUpReply { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

        .reply-preview { 
            background: rgba(241, 245, 249, 0.8); border-left: 4px solid var(--theme-dark-blue); 
            padding: 8px 12px; border-radius: 10px; font-size: 10px; display: flex; 
            justify-content: space-between; align-items: center; 
        }
        .reply-preview p { color: var(--theme-dark-blue); font-weight: 700; margin-bottom: 2px; }
        .reply-preview .reply-text { color: #4b5563; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

        .quoted-msg { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.04); border-left: 3px solid rgba(0,0,0,0.2); padding: 5px 8px; border-radius: 8px; font-size: 9px; margin-bottom: 6px; color: rgba(0,0,0,0.7); cursor: pointer;}
        .sent .quoted-msg { border-left-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9) !important; }
        .sent .quoted-msg p { color: rgba(255,255,255,0.9) !important; }

        /* COMPACT EMOJI BAR */
        .emoji-bar-center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-radius: 24px; padding: 10px 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; border: 1px solid rgba(0,0,0,0.05); z-index: 5000; animation: bounceIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .emoji-bar-center span { font-size: 22px; transition: 0.2s; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
        .emoji-bar-center span:active { transform: scale(1.3); }
        @keyframes bounceIn { from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

        .swipe-hint { position: absolute; top: 50%; transform: translateY(-50%); color: var(--theme-dark-blue); opacity: 0; transition: 0.2s; }
        .bubble-swiping-left .swipe-hint { opacity: 1; right: -25px; }
        .bubble-swiping-right .swipe-hint { opacity: 1; left: -25px; }

        .chat-bubble.reply-highlight { border: 2px solid var(--theme-dark-blue); background: rgba(0, 180, 255, 0.15); }

        .timer-out-bubble { background: #f8fafc !important; color: #94a3b8 !important; border: 1.5px dashed #cbd5e1 !important; box-shadow: none !important; }
        .timer-out-bubble .text-content { color: #94a3b8 !important; font-style: italic; font-weight: 500 !important; }

        .media-placeholder { position: relative; width: 220px; height: 150px; background: #f1f5f9; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
        .sent .media-placeholder { background: rgba(255,255,255,0.1); }
        .media-download-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 20; }
        .download-btn-pill { background: white; padding: 8px 16px; border-radius: 20px; font-size: 10px; font-weight: 900; color: #16a34a; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 6px; cursor: pointer; transition: 0.2s; }
        .download-btn-pill:active { transform: scale(0.9); }
        .upload-progress-ring { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }

        /* BEAUTIFUL DEFAULT CHAT BACKGROUND SETTINGS (DOODLE) */
        .chat-room-redesign { 
            background-color: #efeae2; 
            background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') !important;
            background-repeat: repeat !important;
            background-size: 400px !important;
            background-position: center !important;
            height: 100%; 
            will-change: transform;
        }
        .friend-list-item {
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border: none !important;
            margin-bottom: 2px !important;
            border-radius: 1rem !important;
            padding: 8px 6px !important;
            box-shadow: none !important;
            background: white !important;
        }
        .friend-list-item:active { transform: scale(0.96); opacity: 0.85; background: #f8fafc !important; }

        @keyframes slideInSmooth {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }
        .active-smooth-chat { display: flex !important; animation: slideInSmooth 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; overflow: hidden; }

        /* PREMIUM SOLID CHAT INPUT BAR REDESIGN */
        .whatsapp-input-container { padding: 12px 16px; padding-bottom: 12px; background: transparent !important; border-top: none !important; display: flex; align-items: flex-end; gap: 10px; position: relative; z-index: 40; }
        .chat-input { position: sticky; bottom: 0; padding: 10px; background: transparent !important; border-top: none !important; }
        .whatsapp-input-box { flex: 1; background: #ffffff !important; border: 1.5px dashed #94a3b8 !important; border-radius: 32px; padding: 4px 6px; display: flex; align-items: flex-end; box-shadow: none; min-height: 48px; position: relative; overflow: hidden; transition: all 0.3s ease; }
        .whatsapp-input-field { line-height: 1.5; transform: translateZ(0); }
        .whatsapp-input-box:focus-within { background: #ffffff !important; border-color: var(--theme-dark-blue) !important; border-style: dashed !important; box-shadow: none; }
        .whatsapp-input-field { flex: 1; border: none; outline: none; padding: 10px 16px; font-size: 0.95rem; max-height: 120px; overflow-y: auto; background: transparent; z-index: 20; font-weight: 500; color: #1f2937; white-space: pre-wrap; word-wrap: break-word; }
        
        .input-icon-btn { color: #8696a0; padding: 5px; cursor: pointer; font-size: 1.2rem; }

        .context-menu-sheet { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 9999; display: none; align-items: flex-end; justify-content: center; }
        .context-sheet-body { background: white; width: 100%; border-radius: 30px 30px 0 0; padding: 30px 24px; animation: slideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }

        .search-pill { white-space: nowrap; padding: 10px 20px; border-radius: 50px; background: #f8fafc; color: #64748b; font-weight: 800; font-size: 11px; cursor: pointer; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1.5px solid #f1f5f9; }
        .search-pill.active { background: var(--theme-dark-blue); color: white; border-color: var(--theme-dark-blue); box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25); }
        .user-search-card { background: white; border-radius: 24px; border: 1px solid #f1f5f9; transition: all 0.3s ease; }
        .user-search-card:active { transform: scale(0.97); background: #f8fafc; }
        .searching-shimmer { background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        .skeleton-circle { width: 56px; height: 56px; border-radius: 50%; background: #f1f5f9; flex-shrink: 0; }
        .skeleton-line { height: 12px; background: #f1f5f9; border-radius: 4px; }

        .wallet-visa-card { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); border-radius: 32px; position: relative; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.15); transition: 0.3s; }
        .wallet-visa-card:active { transform: scale(0.98); }
        .wallet-visa-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); }
        .wallet-visa-card .chip { width: 45px; height: 35px; background: linear-gradient(135deg, #ffd700 0%, #eab308 100%); border-radius: 8px; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        .wallet-stat-box { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 24px; transition: 0.2s; }
        .wallet-stat-box:active { background: #f1f5f9; }
        .withdraw-btn { background: linear-gradient(to right, var(--theme-black), #333333); color: white; border-radius: 20px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
        .add-money-btn { background: linear-gradient(to right, var(--theme-dark-blue), #0082FF); color: white; border-radius: 20px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

        .unread-dot { width: 10px; height: 10px; background: var(--theme-dark-blue); border-radius: 50%; display: block; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,180,255,0.4); }

        .info-button-header { font-size: 18px; color: var(--theme-dark-blue); cursor: pointer; padding: 5px; transition: 0.2s; }
        .info-button-header:active { transform: scale(0.9); }
        .full-report-module { background: white; padding: 20px; border-radius: 30px; border: 1px solid #eee; }

        @keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        .production-mode .glass { backdrop-filter: none !important; background: rgba(255,255,255,0.98); } .production-mode .animate-pulse, .production-mode .animate-bounce, .production-mode .animate-spin { animation: none !important; }
        .production-mode .shadow-xl, .production-mode .shadow-2xl { box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; }
        .production-mode * { animation-duration: 0s !important; transition-duration: 0s !important; }
        .production-mode .chat-room-redesign { background-image: none !important; background-color: #f0f2f5 !important; }

        /* COMPACT VIEW STYLES */
        .compact-chat-item { padding: 4px 6px !important; margin-bottom: 0px !important; min-height: 48px !important; }
        .compact-chat-item .w-14.h-14 { width: 38px !important; height: 38px !important; }
        .compact-chat-item .text-\[14px\] { font-size: 12.5px !important; }
        .compact-chat-item .text-\[11px\] { font-size: 10px !important; }
        .compact-chat-item .unread-badge { min-width: 16px; height: 16px; font-size: 8px; }
        .compact-chat-item .active-label { height: 12px; font-size: 7px; }

        #appLoader { position: fixed; inset: 0; background: #fff; z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.3s ease; }
        
        .sys-notif { position: fixed; top: -110px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.98); backdrop-filter: blur(15px); border-radius: 24px; padding: 14px 20px; box-shadow: 0 15px 45px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 14px; z-index: 999999; transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); width: 92%; max-width: 420px; border-left: 5px solid var(--theme-dark-blue); border: 1px solid rgba(255,255,255,0.8); }
        .sys-notif.show { top: 20px; }

        .txn-filter-btn { padding: 6px 14px; border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; transition: 0.2s; background: #f1f5f9; color: #64748b; white-space: nowrap; box-shadow: inset 0 0 0 1px transparent;}
        .txn-filter-btn.active { background: var(--theme-dark-blue); color: white; box-shadow: 0 4px 10px rgba(0,180,255,0.3); }

        #ban-screen { position: fixed; inset: 0; z-index: 999999; background: white; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
        #ban-screen i { font-size: 4rem; color: #ef4444; margin-bottom: 1rem; }
        #ban-screen h2 { font-size: 1.5rem; font-weight: 900; color: #1f2937; margin-bottom: 0.5rem; }
        #ban-screen p { font-size: 0.9rem; color: #6b7280; font-weight: 500; margin-bottom: 2rem; }
        #ban-screen button { background: var(--theme-dark-blue); color: white; padding: 12px 24px; border-radius: 50px; font-weight: bold; width: 100%; max-width: 250px; box-shadow: 0 5px 15px rgba(0, 180, 255, 0.3); }

        #no-internet-screen { z-index: 99999999; }

        .msg-check-box { display: none; position: absolute; left: -25px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 6px; background: white; z-index: 10; pointer-events: none; align-items: center; justify-content: center; transition: 0.2s; }
        .in-multi-select .msg-check-box { display: flex; }
        .msg-selected .msg-check-box { background: var(--theme-dark-blue); border-color: var(--theme-dark-blue); }
        .msg-selected .msg-check-box::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 10px; }
        
        .btn-primary-theme { background-color: var(--theme-black) !important; color: white !important; }
        .text-theme-dark { color: var(--theme-dark-blue); }

        @keyframes floatUpEmoji {
            0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 1; }
            100% { transform: translateY(-110vh) scale(2) rotate(20deg); opacity: 0; }
        }

        @keyframes bigHeartBeat {
            0% { transform: scale(1); }
            10% { transform: scale(1.4); }
            20% { transform: scale(1.2); }
            30% { transform: scale(1.6); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        .emoji-only-msg { 
            display: flex !important; flex-direction: column; background: transparent !important; box-shadow: none !important; padding: 0 !important; border: none !important; margin-bottom: 18px !important; min-width: auto !important;
        }
        .sent.emoji-only-msg { align-items: flex-end; }
        .received.emoji-only-msg { align-items: flex-start; }
        .emoji-only-msg .text-content { font-size: 3.5rem !important; padding: 0 !important; line-height: 1.1; display: block; margin-bottom: 2px; }
        .emoji-only-msg .bubble-meta-inline { 
            position: relative; bottom: 0; right: 0; 
            background: transparent !important; 
            padding: 0;
            display: flex; align-items: center; 
            box-shadow: none !important;
            color: #667781 !important;
            font-size: 10px;
            float: none !important;
            margin-top: 0;
            margin-left: 4px !important;
        }
        .received.emoji-only-msg .bubble-meta-inline { background: #fff; }
        .emoji-only-msg .status-tick-container { margin-left: 5px; display: inline-flex; align-items: center; }
        .emoji-only-msg .msg-meta { display: none !important; }
        .heart-animate { animation: bigHeartBeat 1.5s ease-in-out infinite; }
        
        .unread-badge { 
            background: #16a34a; color: white; border-radius: 50%; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 4px; font-size: 10px; font-weight: 900; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
        }

        @keyframes destructFade {
            0% { opacity: 1; transform: scale(1); filter: blur(0); }
            100% { opacity: 0; transform: scale(0.95); filter: blur(10px); }
        }
        .msg-destructing {
            animation: destructFade 0.8s forwards ease-out;
            pointer-events: none;
        }

        .sensitive-blur {
            filter: blur(40px) grayscale(1);
            transition: filter 0.5s ease, opacity 0.5s ease;
            user-select: none;
            pointer-events: none;
            opacity: 0.8;
        }
        /* Prevent screenshot/camera capture via overlay */
        .sensitive-media-wrapper {
            position: relative;
            overflow: hidden;
        }
        .sensitive-media-wrapper::after {
            content: 'SENSITIVE';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 900;
            color: rgba(255,255,255,0.4);
            letter-spacing: 2px;
            pointer-events: none;
            z-index: 5;
        }

        .online-dot { 
            width: 12px; height: 12px; background: #10b981; border: 2px solid white; border-radius: 50%; position: absolute; bottom: 0; right: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        .e2e-label { 
            background: rgba(254,252,232,0.8); backdrop-filter: blur(5px); color: #854d0e; font-size: 9px; font-weight: 700; text-align: center; padding: 6px 10px; border-radius: 12px; margin: 10px auto 16px auto; width: 85%; max-width: 300px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; border: 1px solid rgba(254,240,138,0.5); z-index: 10;
        }

        @keyframes pulseFast {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        .snappy-loader { animation: pulseFast 0.6s infinite ease-in-out; }

        @keyframes superBlink {
            0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 10px rgba(0,180,255,0.8)); }
            50% { opacity: 0.5; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(0,180,255,0)); }
        }
        .app-blink-anim { animation: superBlink 1.5s ease-in-out infinite; }

        .media-preview-thumb { transition: transform 0.2s, border 0.2s; border: 2px solid transparent; }
        .media-preview-thumb.active { border-color: var(--theme-dark-blue); transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,180,255,0.3); }

        @keyframes typingPulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.6); }
            70% { box-shadow: 0 0 0 8px rgba(0, 180, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0); }
        }
        .typing-glow {
            animation: typingPulse 1.5s infinite; border-color: var(--theme-dark-blue) !important; border-width: 2px !important;
        }

        @keyframes micPulseRecord {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
            50% { transform: scale(1.3); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
            100% { transform: scale(1.2); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        .mic-active-pulse { animation: micPulseRecord 1s infinite ease-in-out !important; background: #ef4444 !important; transform: scale(1.5) !important; z-index: 100; box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
        #inline-mic-btn { transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s; }

        .graph-bar-wrapper { transition: all 0.3s ease; }
        .graph-bar-wrapper:hover .graph-tooltip { opacity: 1; }

        .dp-premium-card {
            background: #1a1a1a;
            border-radius: 32px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            padding: 10px;
            transform: scale(0.95);
            opacity: 0;
            transition: all 0.15s ease-out;
        }
        .dp-premium-card.active-dp {
            transform: scale(1);
            opacity: 1;
        }
        .dp-premium-img-wrap {
            border-radius: 24px;
            overflow: hidden;
            background: #000;
        }
        
        @keyframes waveAnim {
            0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
            50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
            100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
        }
        .voice-playing-wave {
            animation: waveAnim 1s infinite;
        }

        @keyframes magicPop {
            0% { transform: scale(0.4); opacity: 0; }
            40% { transform: scale(1.4); opacity: 1; }
            80% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.6); opacity: 0; filter: blur(5px); }
        }
        
        #chat-room .sticky.top-0 {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .attachment-menu {
            position: absolute; bottom: 60px; left: 10px;
            background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
            border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            display: none; flex-direction: column; gap: 4px; padding: 12px; z-index: 60;
            border: 1px solid rgba(0,0,0,0.05); width: 160px;
        }
        .attach-btn { 
            display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; 
            padding: 10px 14px; border-radius: 14px; cursor: pointer; transition: 0.2s; color: #374151;
        }
        .attach-btn:hover { background: #f3f4f6; color: var(--theme-dark-blue); }

        .group-label { background: #ede9fe; color: #6d28d9; padding: 2px 6px; border-radius: 4px; font-size: 7px; font-weight: 900; letter-spacing: 0.5px; border: 1px solid #ddd6fe; }
        .admin-label { background: #dcfce7; color: #15803d; padding: 1px 4px; border-radius: 4px; font-size: 6px; font-weight: 900; margin-left: 4px; border: 1px solid #bbf7d0; }
        
        .poll-voter-stack img { margin-left: -8px; border: 2px solid white; }
        .poll-voter-stack img:first-child { margin-left: 0; }

        .rec-wave { width: 3px; background: #ef4444; border-radius: 3px; animation: recWaveAnim 1s infinite ease-in-out; }
        .rec-wave:nth-child(1) { animation-delay: 0.0s; height: 40%; }
        .rec-wave:nth-child(2) { animation-delay: 0.1s; height: 80%; }
        .rec-wave:nth-child(3) { animation-delay: 0.2s; height: 60%; }
        .rec-wave:nth-child(4) { animation-delay: 0.3s; height: 100%; }
        .rec-wave:nth-child(5) { animation-delay: 0.4s; height: 50%; }
        @keyframes recWaveAnim { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

        /* WAVEFORM VOICE NOTE STYLES */
        .vn-waveform-container { cursor: pointer; user-select: none; }
        .vn-bar-container { display: flex; align-items: center; gap: 2px; height: 24px; position: relative; }
        .vn-bar { width: 3px; border-radius: 4px; background: rgba(0,0,0,0.15); flex-shrink: 0; min-height: 4px; }
        .sent .vn-bar { background: rgba(255,255,255,0.3); }
        .vn-progress-mask { position: absolute; left: 0; top: 0; height: 100%; width: 0%; overflow: hidden; display: flex; align-items: center; gap: 2px; transition: width 0.1s linear; pointer-events: none; }
        .vn-bar-active { width: 3px; border-radius: 4px; background: var(--theme-dark-blue); flex-shrink: 0; min-height: 4px; }
        .vn-transcript-box { background: rgba(0,0,0,0.05); border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: 11px; line-height: 1.4; border-left: 3px solid var(--theme-dark-blue); animation: slideDown 0.2s ease-out; }
        .sent .vn-transcript-box { background: rgba(255,255,255,0.15); border-left-color: white; color: white; }
        .sent .vn-bar-active { background: #fff; }

        .game-cell { 
            background: white; border-radius: 1.2rem; min-height: 70px; cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05);
            font-size: 2.2rem; font-weight: 900;
        }
        .game-cell:active { transform: scale(0.9); background: #f8fafc; }
        .game-cell.x::before { content: 'X'; color: #3b82f6; animation: popIn 0.3s forwards; }
        .game-cell.o::before { content: 'O'; color: #ef4444; animation: popIn 0.3s forwards; }
        .game-cell.disabled { pointer-events: none; }
        .game-cell.winner { background: #dcfce7 !important; border-color: #4ade80 !important; color: #166534 !important; transform: scale(1.05); z-index: 10; box-shadow: 0 0 15px rgba(74,222,128,0.3); }

        .bingo-cell { 
            background: white; border-radius: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
            font-weight: 800; font-size: 14px; color: #4b5563; cursor: pointer; transition: 0.2s; border: 1px solid #f1f5f9; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }
        .bingo-cell.marked-me { background: #10b981 !important; color: white !important; transform: scale(0.9); box-shadow: inset 0 2px 10px rgba(0,0,0,0.2); border-color: #059669; }
        .bingo-cell.marked-them { background: #ef4444 !important; color: white !important; transform: scale(0.9); box-shadow: inset 0 2px 10px rgba(0,0,0,0.2); border-color: #dc2626; }
        .bingo-cell.last-marked { border: 2px solid #fbbf24; animation: pulseGlow 1.5s infinite; }
        .bingo-cell.disabled { pointer-events: none; }
        @keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,0.7); } 70% { box-shadow: 0 0 0 10px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
        .bingo-letter-active { background: #10b981 !important; color: white !important; transform: scale(1.1); box-shadow: 0 4px 10px rgba(16,185,129,0.3); }
        @keyframes winnerPop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
        .winner-celebration { animation: winnerPop 0.5s ease-in-out infinite; border: 3px solid #fbbf24 !important; }
        .bingo-score-pill { background: rgba(0,0,0,0.05); padding: 4px 10px; border-radius: 12px; font-weight: 800; font-size: 10px; color: #6b7280; }

        /* SNAKE BATTLE STYLES */
        #snake-canvas { background: #111827; border-radius: 12px; display: block; margin: 0 auto; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); border: 2px solid #374151; }
        .snake-ctrl-btn { width: 50px; height: 50px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #1f2937; box-shadow: 0 4px 6px rgba(0,0,0,0.1); active: scale(0.9); }
        .snake-score-pill { background: rgba(0,0,0,0.05); padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 11px; }

        .game-reaction-overlay { position: absolute; pointer-events: none; font-size: 40px; animation: emojiFloatUp 1.5s ease-out forwards; z-index: 10000; }
        @keyframes emojiFloatUp { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-100px); opacity: 0; } }

        @keyframes levelUpFloat {
            0% { transform: translate(-50%, 20px) scale(0.8); opacity: 0; }
            15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; }
            25% { transform: translate(-50%, 0) scale(1); opacity: 1; }
            85% { transform: translate(-50%, 0) scale(1); opacity: 1; }
            100% { transform: translate(-50%, -30px) scale(0.9); opacity: 0; }
        }
        .level-up-toast {
            position: fixed; top: 120px; left: 50%; transform: translateX(-50%);
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #000; padding: 16px 32px; border-radius: 2.5rem;
            z-index: 10000; font-weight: 900; text-transform: uppercase; text-align: center;
            box-shadow: 0 15px 40px rgba(255, 165, 0, 0.5), inset 0 2px 10px rgba(255,255,255,0.8);
            pointer-events: none; border: 4px solid white;
            animation: levelUpFloat 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
            display: flex; flex-direction: column; align-items: center; gap: 2px;
            white-space: nowrap;
        }

        .level-tab-btn { padding: 10px 16px; border-radius: 14px; font-size: 10px; font-weight: 800; text-transform: uppercase; transition: 0.2s; background: #f1f5f9; color: #64748b; }
        .level-tab-btn.active { background: var(--theme-dark-blue); color: white; box-shadow: 0 4px 10px rgba(0,180,255,0.3); }

        @keyframes splashRippleAnim {
            0% { transform: scale(0.8); opacity: 1; border-width: 4px; }
            100% { transform: scale(3.5); opacity: 0; border-width: 0px; }
        }
        .splash-ripple {
            position: absolute;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.6);
            animation: splashRippleAnim 2s cubic-bezier(0.0, 0.2, 0.8, 1) infinite;
        }

        @keyframes coinFlip {
            0% { transform: rotateY(0) scale(1); }
            50% { transform: rotateY(900deg) scale(1.3); }
            100% { transform: rotateY(1800deg) scale(1); }
        }
        .coin-flip-anim { animation: coinFlip 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

        .header-icon-active { background: var(--theme-dark-blue) !important; color: white !important; border-color: var(--theme-dark-blue) !important; box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3) !important; }
        .header-icon-active i, .header-icon-active span { color: white !important; }

        #chat-messages { overflow-anchor: auto !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior-y: contain; scroll-behavior: smooth; position: relative; flex: 1; min-height: 0; }

        .unread-separator {
            width: 100%;
            text-align: center;
            margin: 18px 0;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .unread-separator::before {
            content: '';
            position: absolute;
            left: 5%;
            right: 5%;
            top: 50%;
            height: 1px;
            background: rgba(239, 68, 68, 0.15);
            z-index: -1;
        }
        .unread-separator span {
            background: #fef2f2;
            color: #ef4444;
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            padding: 5px 16px;
            border-radius: 20px;
            border: 1px solid #fee2e2;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
            animation: slideUp 0.3s ease-out;
        }
        .connection-status-bar { width: 100%; padding: 4px 0; text-align: center; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; display: none; }
        .connection-status-bar.reconnecting { display: block; background: #fef2f2; color: #ef4444; border-bottom: 1px solid #fee2e2; }
        .connection-status-bar.connected-brief { display: block; background: #f0fdf4; color: #16a34a; border-bottom: 1px solid #dcfce7; }