        :root {
            --bg-window: #f4f7fb;
            --bg-nav: #ffffff;
            --bg-sidebar: #ffffff;
            --bg-chat: #f3f6fa;
            --bg-chat-header: #ffffff;
            --bg-info: #ffffff;
            --border-color: #e8ecf3;
            --border-subtle: #dbe2ea;

            --primary: #2b77f8;
            --primary-hover: #1e66e2;
            --primary-light: #edf4fe;

            --text-main: #111827;
            --text-muted: #718096;
            --text-subtle: #a0aec0;

            --bubble-me: #2b77f8;
            --bubble-me-text: #ffffff;
            --bubble-other: #ffffff;
            --bubble-other-text: #111827;

            --input-bg: #edf2f7;
            --item-hover: #f7fafc;
            --item-active: #edf4fe;

            --warning: #f59e0b;
            --danger: #ef4444;
            --radius-md: 10px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Plus Jakarta Sans', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-sidebar);
            color: var(--text-main);
            height: 100vh;
            width: 100vw;
            margin: 0;
            padding: 0;
            overflow: hidden;
            display: flex;
            transition: background 0.25s ease;
        }

        /* Full Screen Telegram Desktop Window Frame (Edge-to-Edge) */
        .tg-app-window {
            width: 100vw;
            height: 100vh;
            background: var(--bg-sidebar);
            border-radius: 0;
            box-shadow: none;
            border: none;
            display: flex;
            overflow: hidden;
            position: relative;
        }

        /* 1. Leftmost Slim Navigation Bar */
        .tg-nav-sidebar {
            width: 68px;
            background: var(--bg-nav);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0.5rem;
            flex-shrink: 0;
            z-index: 10;
        }

        .tg-nav-top,
        .tg-nav-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.85rem;
            width: 100%;
        }

        .tg-logo {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgb(43, 119, 248);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            cursor: pointer;
            box-shadow: none;
            margin-bottom: 0.5rem;
            user-select: none;
            transition: transform 0.2s ease;
        }

        .tg-logo:hover {
            transform: scale(1.05);
        }

        .tg-nav-btn {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            font-size: 1.15rem;
            position: relative;
            transition: all 0.2s ease;
        }

        .tg-nav-label {
            font-size: 0.65rem;
            font-weight: 600;
        }

        .tg-profile-nav-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .tg-profile-nav-btn .tg-nav-label {
            display: none;
        }

        .chat-mobile-back-btn {
            display: none;
        }

        .tg-nav-btn:hover {
            color: var(--primary);
            background: var(--item-hover);
        }

        .tg-nav-btn.active {
            color: var(--primary);
            background: var(--primary-light);
        }

        .tg-nav-btn.active::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 10px;
            bottom: 10px;
            width: 4px;
            background: var(--primary);
            border-radius: 0 4px 4px 0;
        }

        /* Telegram / Blip Style Blue Notification Badges */
        .badge-count {
            position: absolute;
            top: 4px;
            right: 4px;
            background: #2b77f8;
            /* Telegram Signature Blue */
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 0 4px;
            min-width: 18px;
            height: 18px;
            box-sizing: border-box;
            line-height: 1;
            border-radius: 9999px;
            text-align: center;
            border: 2px solid var(--bg-nav);
            box-shadow: none;
            pointer-events: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
        }

        .badge-count[style*="display: none"],
        .badge-count:empty {
            display: none !important;
        }

        .avatar-circle .avatar-badge,
        .user-card .avatar-badge {
            position: absolute;
            top: -3px;
            right: -5px;
            background: #2b77f8;
            /* Telegram Signature Blue */
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 0 4px;
            min-width: 18px;
            height: 18px;
            box-sizing: border-box;
            line-height: 1;
            border-radius: 9999px;
            border: 2px solid var(--bg-sidebar, #ffffff);
            box-shadow: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .avatar-badge[style*="display: none"],
        .avatar-badge:empty {
            display: none !important;
        }



        .tg-my-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--primary);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            box-shadow: none;
            transition: transform 0.2s ease;
        }

        .tg-my-avatar:hover {
            transform: scale(1.08);
        }

        /* 2. Second Column: Chats & Radar User List */
        .tg-chats-sidebar {
            width: 330px;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow: visible;
            transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.25s ease;
        }

        .tg-chats-sidebar.collapsed {
            width: 0 !important;
            min-width: 0 !important;
            border-right: none !important;
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }

        .tg-search-header {
            padding: 0.85rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-bottom: 1px solid var(--border-color);
            position: relative;
        }

        .tg-search-box {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        .tg-search-btn-trigger {
            position: absolute;
            left: 0.25rem;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            padding: 0.4rem 0.55rem;
            cursor: pointer;
            color: var(--text-subtle);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            z-index: 2;
        }

        .tg-search-btn-trigger:hover {
            color: var(--primary);
            background: rgba(0, 0, 0, 0.04);
        }

        .tg-search-icon {
            position: static;
            color: inherit;
            font-size: 0.85rem;
        }

        .tg-search-clear-btn {
            position: absolute;
            right: 0.45rem;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.8rem;
            padding: 0.35rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.15s ease;
            z-index: 2;
        }

        .tg-search-clear-btn:hover {
            color: var(--text-main);
            background: rgba(0, 0, 0, 0.06);
        }

        .tg-search-input {
            width: 100%;
            background: var(--input-bg);
            border: 1px solid transparent;
            border-radius: 20px;
            padding: 0.55rem 2rem 0.55rem 2.25rem;
            font-size: 0.85rem;
            color: var(--text-main);
            outline: none;
            transition: all 0.2s ease;
        }

        .tg-search-input:focus {
            background: var(--bg-sidebar);
            border-color: var(--primary);
            box-shadow: none;
        }

        .tg-section-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: var(--text-subtle);
            margin-bottom: 0.5rem;
            text-transform: uppercase;
        }

        /* Filter Pills */
        .tg-filter-tabs {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-sidebar);
        }

        .tg-filter-pill {
            padding: 0.3rem 0.75rem;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            background: transparent;
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.15s ease;
            outline: none;
        }

        .tg-filter-pill:hover {
            background: var(--item-hover);
            color: var(--text-main);
        }

        .tg-filter-pill.active {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
        }

        .tg-filter-pill.active i {
            color: #ffffff !important;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* User Card Item (Telegram Style Chat Row) */
        .user-card {
            background: transparent;
            border: none;
            border-radius: var(--radius-md);
            padding: 0.65rem 0.85rem;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            transition: all 0.15s ease;
            cursor: pointer;
            position: relative;
        }

        .user-card:hover {
            background: var(--item-hover);
        }

        .user-card.active-chat {
            background: var(--item-active);
        }

        /* Titik tiga opsi pada card kontak / teman */
        .user-card-menu-btn {
            opacity: 0;
            pointer-events: none;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            cursor: pointer;
            transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
            flex-shrink: 0;
        }

        .user-card:hover .user-card-menu-btn,
        .user-card.menu-open .user-card-menu-btn {
            opacity: 1;
            pointer-events: auto;
        }

        .user-card-menu-btn:hover {
            background: var(--border-color);
            color: var(--text-main);
        }

        .user-card-dropdown {
            position: absolute;
            right: 12px;
            top: 42px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
            z-index: 100;
            min-width: 175px;
            display: none;
            flex-direction: column;
            overflow: hidden;
            animation: fadeInMenu 0.12s ease-out;
        }

        .user-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
            min-width: 0;
        }

        .avatar-circle {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.05rem;
            color: white;
            flex-shrink: 0;
            position: relative;
        }

        .user-details {
            min-width: 0;
            flex: 1;
        }

        .user-details .name {
            font-weight: 600;
            font-size: 0.92rem;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-flex;
            align-items: center;
        }

        .user-friend-badge {
            display: inline-flex;
            align-items: center;
            font-size: 0.72rem;
            font-weight: 700;
            color: #10b981;
            margin-left: 0.4rem;
            letter-spacing: 0.02em;
        }

        .user-handle {
            display: inline-flex;
            align-items: center;
            font-size: 0.78rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-left: 0.35rem;
            letter-spacing: -0.01em;
        }

        .user-card-bio {
            font-size: 0.81rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 0.25rem;
            line-height: 1.35;
            display: block;
        }

        .user-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .user-top-row .time {
            font-size: 0.72rem;
            color: var(--text-muted);
            white-space: nowrap;
            flex-shrink: 0;
            font-weight: 500;
        }

        .user-last-message {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 0.15rem;
            display: block;
            line-height: 1.3;
        }

        .user-last-message.unread {
            color: var(--text-main);
            font-weight: 600;
        }

        .user-last-message.empty {
            color: var(--text-subtle);
            font-style: italic;
        }

        /* ==========================================================================
           UNIFIED BUTTON COMPONENT SYSTEM (.btn, .btn-icon, .btn-pill)
           ========================================================================== */
        .btn {
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            padding: 0.5rem 1rem;
            font-size: 0.84rem;
            font-weight: 600;
            line-height: 1.25;
            border-radius: 10px;
            border: 1px solid transparent;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            box-shadow: none;
        }

        .btn:active {
            transform: scale(0.97);
        }

        .btn:disabled,
        .btn[disabled] {
            opacity: 0.55;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Varian Tombol */
        .btn-primary {
            background: var(--primary);
            color: #ffffff;
            border-color: transparent;
        }

        .btn-primary:hover {
            background: var(--primary-hover);
        }

        .btn-outline {
            background: transparent;
            color: var(--text-main);
            border-color: var(--border-color);
        }

        .btn-outline:hover {
            background: var(--item-hover);
            border-color: var(--border-subtle);
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.2);
        }

        .btn-danger:hover {
            background: var(--danger);
            color: #ffffff;
            border-color: var(--danger);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-muted);
            border-color: transparent;
        }

        .btn-ghost:hover {
            background: var(--item-hover);
            color: var(--text-main);
        }

        /* Ukuran Tombol */
        .btn-sm {
            padding: 0.38rem 0.75rem;
            font-size: 0.78rem;
            border-radius: 8px;
            gap: 0.35rem;
        }

        .btn-lg {
            padding: 0.65rem 1.25rem;
            font-size: 0.95rem;
            border-radius: 12px;
        }

        .btn-pill {
            border-radius: 9999px;
            padding: 0.5rem 1.25rem;
        }

        .btn-pill.btn-sm {
            padding: 0.38rem 0.95rem;
        }

        .btn-pill.btn-lg {
            padding: 0.65rem 1.5rem;
        }

        /* Tombol Ikon Bundar Seragam (.btn-icon) */
        .btn-icon,
        .header-icon-btn,
        .tg-refresh-btn,
        .selection-action-btn,
        .selection-close-btn {
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 10px;
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.18s ease;
            outline: none;
            flex-shrink: 0;
        }

        .btn-icon:hover,
        .header-icon-btn:hover,
        .tg-refresh-btn:hover,
        .selection-action-btn:hover,
        .selection-close-btn:hover {
            background: var(--item-hover);
            color: var(--text-main);
            border-color: var(--border-color);
        }

        .btn-icon:active,
        .header-icon-btn:active,
        .tg-refresh-btn:active,
        .selection-action-btn:active {
            transform: scale(0.92);
        }

        .btn-icon.danger:hover,
        .selection-action-btn.delete:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.2);
        }

        /* Ukuran & Varian Khusus Tombol Ikon */
        .btn-icon.btn-icon-sm {
            width: 30px;
            height: 30px;
            font-size: 0.82rem;
            border-radius: 8px;
        }

        .btn-icon.btn-icon-accept {
            background: rgba(43, 119, 248, 0.1);
            color: var(--primary);
            border-color: rgba(43, 119, 248, 0.2);
        }

        .btn-icon.btn-icon-accept:hover {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
        }

        .btn-icon.btn-icon-reject {
            background: transparent;
            color: var(--text-muted);
            border-color: var(--border-color);
        }

        .btn-icon.btn-icon-reject:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.2);
        }

        /* Smooth Tab Transition Effect */
        .tab-fade-in {
            animation: tabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes tabFadeIn {
            0% {
                opacity: 0;
                transform: translateY(6px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 3. Third Column: Main Chat Box */
        .chat-panel {
            flex: 1;
            background: var(--bg-chat);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            min-width: 0;
        }

        #activeChatInterface {
            display: none;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            height: 100%;
        }

        .chat-header {
            padding: 0.75rem 1.25rem;
            background: var(--bg-chat-header);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            height: 62px;
        }

        .chat-header-info {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .chat-body {
            flex: 1;
            padding: 1.25rem 2rem;
            overflow-y: auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            background: var(--bg-chat);
        }

        .chat-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 100%;
            color: var(--text-muted);
            padding: 2rem;
            background: var(--bg-chat);
        }

        .tg-empty-icon-wrap {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--item-active);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .chat-empty-icon {
            font-size: 2.5rem;
            color: var(--primary);
        }

        /* Telegram Style Rounded Bubbles */
        .message-bubble {
            max-width: 65%;
            min-width: 80px;
            padding: 0.55rem 0.85rem 0.4rem 0.85rem;
            border-radius: 16px;
            font-size: 0.92rem;
            line-height: 1.45;
            position: relative;
            word-break: break-word;
            display: inline-flex;
            flex-direction: column;
        }

        .message-bubble.me {
            align-self: flex-end;
            background: var(--bubble-me);
            color: var(--bubble-me-text);
            border-bottom-right-radius: 4px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        }

        .message-bubble.other {
            align-self: flex-start;
            background: var(--bubble-other);
            border: 1px solid var(--border-color);
            color: var(--bubble-other-text);
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .message-text {
            font-size: 0.92rem;
            color: inherit;
        }

        /* Telegram Single Emoji Large Presentation */
        .message-bubble.single-emoji-bubble {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0.15rem 0.35rem !important;
            min-width: 0 !important;
        }

        .single-emoji-text {
            font-size: 3.25rem !important;
            line-height: 1.15 !important;
            display: inline-block;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
            user-select: none;
            transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .single-emoji-text:hover {
            transform: scale(1.12);
        }

        .message-bubble.single-emoji-bubble .message-footer {
            margin-top: 0.05rem;
            background: rgba(0, 0, 0, 0.38);
            backdrop-filter: blur(4px);
            padding: 0.15rem 0.45rem;
            border-radius: 12px;
            color: #ffffff !important;
        }

        .message-bubble.single-emoji-bubble .message-footer .message-time {
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 0.68rem;
        }

        .message-bubble.single-emoji-bubble .message-footer .message-status-icon {
            color: #ffffff !important;
        }

        .message-bubble.single-emoji-bubble .message-footer .message-status-icon.received {
            color: #60a5fa !important;
        }

        .message-bubble.single-emoji-bubble .message-more-btn {
            background: rgba(0, 0, 0, 0.3);
            color: #ffffff;
            border-radius: 50%;
        }

        .message-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.35rem;
            margin-top: 0.2rem;
            align-self: flex-end;
            user-select: none;
        }

        /* Telegram Floating Rounded Chat Input Bar (Full width across chat panel) */
        .chat-input-bar {
            position: relative;
            padding: 0.75rem 1.25rem 1.15rem 1.25rem;
            background: transparent;
            border-top: none;
            display: flex;
            align-items: center;
            flex-shrink: 0;
            width: 100%;
        }

        .tg-input-wrapper {
            display: flex;
            align-items: center;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 0.75rem 1.25rem;
            width: 100%;
            max-width: 100%;
            box-shadow: none;
            transition: all 0.2s ease;
        }

        .tg-input-wrapper:focus-within {
            border-color: var(--primary);
            box-shadow: none;
        }

        .tg-attach-btn {
            background: transparent;
            border: none;
            color: #5288c1;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.25rem;
            border-radius: 8px;
            transition: color 0.15s ease, transform 0.15s ease;
            flex-shrink: 0;
            line-height: 1;
        }

        .tg-attach-btn:hover {
            color: #2b77f8;
            transform: scale(1.1);
        }

        .tg-input-divider {
            width: 1px;
            height: 22px;
            background: rgba(200, 215, 235, 0.8);
            margin: 0 0.75rem 0 0.5rem;
            flex-shrink: 0;
        }

        .chat-input {
            flex: 1;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            color: var(--text-main);
            font-size: 0.96rem;
            padding: 0.2rem 0;
            min-width: 0;
        }

        .chat-input:focus {
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
        }

        .chat-input::placeholder {
            color: #7d96b8;
            font-size: 0.96rem;
        }

        .tg-input-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
            margin-left: 0.75rem;
        }

        .tg-send-action-btn {
            background: transparent;
            border: none;
            color: #2b77f8;
            font-size: 1.35rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.35rem;
            border-radius: 50%;
            transition: transform 0.15s ease, color 0.15s ease;
            flex-shrink: 0;
            line-height: 1;
        }

        .tg-send-action-btn:hover {
            color: #1e66e2;
            transform: scale(1.12);
        }

        /* Telegram Desktop Emoji Button */
        .tg-emoji-btn {
            background: transparent;
            border: none;
            color: #7d96b8;
            font-size: 1.3rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.3rem;
            border-radius: 50%;
            transition: color 0.15s ease, transform 0.15s ease;
            flex-shrink: 0;
            line-height: 1;
        }

        .tg-emoji-btn:hover {
            color: #2b77f8;
            transform: scale(1.12);
        }

        .tg-emoji-btn.active {
            color: #2b77f8;
        }

        /* Telegram Desktop Style Emoji Picker Popover */
        .tg-emoji-picker-popover {
            position: absolute;
            bottom: calc(100% + 8px);
            right: 1.5rem;
            width: 350px;
            height: 380px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 100;
            animation: fadeInEmoji 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        emoji-picker {
            width: 100%;
            height: 100%;
            --num-columns: 8;
            --emoji-size: 1.5rem;
            --background: #ffffff;
            --border-color: transparent;
            --category-emoji-size: 1.15rem;
        }

        @keyframes fadeInEmoji {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.96);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }



        /* 4. Fourth Column: Right Contact Info Panel (Matched with 2nd column width) */
        .tg-info-panel {
            width: 330px;
            background: var(--bg-info);
            border-left: 1px solid var(--border-color);
            display: none;
            flex-direction: column;
            flex-shrink: 0;
            overflow: hidden;
            animation: fadeInMenu 0.15s ease-out;
        }

        .tg-info-panel.open {
            display: flex;
        }

        .tg-info-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-main);
            height: 62px;
        }

        .tg-info-content {
            padding: 1.5rem 1.25rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .tg-info-avatar-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .tg-info-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--primary);
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        }

        .tg-info-name {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 0.2rem;
        }

        .tg-info-status {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 600;
        }

        .tg-info-section {
            width: 100%;
            text-align: left;
            margin-bottom: 1.5rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
        }

        .tg-info-item {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 0.65rem 0;
        }

        .tg-info-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--input-bg);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .tg-info-text {
            display: flex;
            flex-direction: column;
        }

        .tg-info-val {
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .tg-info-lbl {
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        .tg-info-actions {
            width: 100%;
            border-top: 1px solid var(--border-color);
            padding-top: 0.75rem;
        }

        .tg-action-row {
            width: 100%;
            padding: 0.65rem 0.85rem;
            background: transparent;
            border: none;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            color: var(--text-main);
            text-align: left;
        }

        .tg-action-row:hover {
            background: var(--item-hover);
        }

        .tg-action-row.danger {
            color: var(--danger);
        }

        .tg-action-row.danger:hover {
            background: rgba(239, 68, 68, 0.08);
        }

        /* Message Row with Selection Checkbox */
        .message-row {
            display: flex;
            align-items: center;
            width: 100%;
            margin-bottom: 0.35rem;
            position: relative;
        }

        .message-row.me {
            justify-content: flex-end;
        }

        .message-row.other {
            justify-content: flex-start;
        }

        .message-select-checkbox {
            display: none;
            width: 18px;
            height: 18px;
            margin: 0 0.5rem;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .selecting-mode .message-select-checkbox {
            display: inline-block;
        }

        .selecting-mode .message-bubble {
            cursor: pointer;
        }

        .message-row.selected .message-bubble {
            outline: 2px solid var(--primary);
            outline-offset: 1px;
        }

        /* Three Dots Button on Bubble */
        .message-more-btn {
            position: absolute;
            top: 4px;
            right: 6px;
            width: 18px;
            height: 18px;
            border: none;
            background: transparent !important;
            color: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.15s ease;
            z-index: 5;
            padding: 0;
        }

        .message-bubble.me .message-more-btn {
            color: #ffffff;
            opacity: 0;
        }

        .message-bubble:hover .message-more-btn {
            opacity: 0.85;
            pointer-events: auto;
        }

        .message-bubble.me:hover .message-more-btn {
            opacity: 0.9;
        }

        .message-more-btn:hover {
            background: transparent !important;
            opacity: 1 !important;
        }

        .message-bubble.me .message-more-btn:hover {
            background: transparent !important;
            opacity: 1 !important;
        }

        .selecting-mode .message-more-btn {
            display: none !important;
        }

        /* Floating Context Menu */
        .message-context-menu {
            position: absolute;
            background: #ffffff;
            border: 1px solid var(--border-glass);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
            min-width: 140px;
            z-index: 100;
            display: none;
            flex-direction: column;
            overflow: hidden;
            animation: fadeInMenu 0.12s ease-out;
        }

        @keyframes fadeInMenu {
            from {
                opacity: 0;
                transform: translateY(-4px) scale(0.96);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .message-menu-item {
            padding: 0.6rem 0.85rem;
            font-size: 0.82rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            background: transparent;
            border: none;
            width: 100%;
            text-align: left;
            transition: background 0.15s;
        }

        .message-menu-item:hover {
            background: #f1f5f9;
        }

        .message-menu-item.danger {
            color: var(--danger);
        }

        .message-menu-item.danger:hover {
            background: #fef2f2;
        }

        /* Chat Selection Header Bar (WhatsApp Style Header) */
        .chat-selection-header {
            display: none;
            padding: 0.85rem 1.25rem;
            background: #ffffff;
            border-bottom: 1px solid var(--border-glass);
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            animation: fadeInMenu 0.15s ease;
        }

        .chat-selection-header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .selection-count-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .chat-selection-header-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .message-time {
            font-size: 0.68rem;
            opacity: 0.75;
            font-weight: 500;
        }

        .message-status-icon {
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            line-height: 1;
        }

        .message-status-icon.pending {
            color: rgba(255, 255, 255, 0.7);
            animation: pulseSlow 1.5s infinite;
        }

        .message-status-icon.sent {
            color: rgba(255, 255, 255, 0.85);
        }

        .message-status-icon.received {
            color: #38bdf8;
            /* WhatsApp/Telegram clean blue read receipt */
            text-shadow: none;
        }

        @keyframes pulseSlow {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        /* Old .chat-input styles removed to avoid conflict with Telegram pill bar */

        /* Compressed Ephemeral Photo Bubble Styles (~100KB, 1-hour expiry) */
        .server-photo-card {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            max-width: 320px;
            border-radius: 12px;
            overflow: hidden;
        }

        .photo-img-wrapper {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.05);
        }

        .server-photo-img {
            width: 100%;
            max-height: 280px;
            object-fit: cover;
            display: block;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .server-photo-img:hover {
            opacity: 0.96;
            transform: scale(1.015);
        }

        .photo-overlay-badges {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            z-index: 2;
        }

        .photo-status-badge {
            font-size: 0.7rem;
            font-weight: 600;
            padding: 0.2rem 0.5rem;
            border-radius: 12px;
            backdrop-filter: blur(6px);
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .photo-status-badge.ephemeral {
            background: rgba(15, 23, 42, 0.65);
            color: #f8fafc;
        }

        .photo-status-badge.saved {
            background: rgba(16, 185, 129, 0.85);
            color: #ffffff;
        }

        .photo-save-btn {
            background: rgba(43, 119, 248, 0.85);
            color: #ffffff;
            border: none;
            padding: 0.2rem 0.55rem;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(6px);
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            transition: all 0.15s ease;
        }

        .photo-save-btn:hover {
            background: #2563eb;
            transform: scale(1.05);
        }

        .photo-meta-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.72rem;
            padding: 0 0.25rem;
            opacity: 0.9;
        }

        .photo-dl-link {
            color: inherit;
            text-decoration: none;
            font-size: 0.85rem;
            padding: 0.2rem;
            opacity: 0.75;
            transition: opacity 0.15s;
        }

        .photo-dl-link:hover {
            opacity: 1;
        }

        .photo-expired-box {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.65rem 0.85rem;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            max-width: 270px;
            margin-bottom: 0.25rem;
        }

        .message-bubble.other .photo-expired-box {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        .photo-expired-icon-wrapper {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            font-size: 1rem;
        }

        .message-bubble.other .photo-expired-icon-wrapper {
            background: rgba(100, 116, 139, 0.12);
            color: var(--text-muted);
        }

        .photo-expired-info {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            overflow: hidden;
        }

        .photo-expired-title {
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1.25;
            color: #ffffff;
        }

        .message-bubble.other .photo-expired-title {
            color: var(--text-main);
        }

        .photo-expired-sub {
            font-size: 0.72rem;
            line-height: 1.2;
            color: rgba(255, 255, 255, 0.8);
        }

        .message-bubble.other .photo-expired-sub {
            color: var(--text-muted);
        }

        /* Image Viewer Lightbox Modal */
        .image-lightbox-modal {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            animation: fadeInMenu 0.15s ease;
        }

        .image-lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .image-lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            object-fit: contain;
        }

        .image-lightbox-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #ffffff;
            font-size: 1.2rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .image-lightbox-close:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        /* ==========================================================================
           UNIFIED BLIP MODAL & DIALOG SYSTEM (SweetAlert2, Onboarding, Photo Crop)
           ========================================================================== */
        .swal2-container.swal2-backdrop-show,
        .swal2-container.swal2-noanimation {
            background: rgba(15, 23, 42, 0.45) !important;
            backdrop-filter: blur(6px) !important;
            -webkit-backdrop-filter: blur(6px) !important;
        }

        .swal2-popup.blip-swal-popup.swal2-show {
            border-radius: 20px !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
            padding: 2.25rem 2rem !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            background: #ffffff !important;
            width: 100% !important;
            max-width: 440px !important;
            text-align: center !important;
            animation: popModalCard 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        .swal2-popup.blip-swal-popup.swal2-hide {
            animation: swal2-hide 0.15s forwards !important;
        }

        .swal2-popup.blip-swal-popup {
            border-radius: 20px !important;
            border: 1px solid var(--border-color) !important;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
            padding: 2.25rem 2rem !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            background: #ffffff !important;
            width: 100% !important;
            max-width: 440px !important;
            text-align: center !important;
        }

        @keyframes popModalCard {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(12px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .swal2-popup.blip-swal-popup .swal2-title,
        .blip-modal-title {
            font-size: 1.25rem !important;
            font-weight: 700 !important;
            color: #0f172a !important;
            padding: 0 !important;
            margin: 0 0 0.5rem 0 !important;
            line-height: 1.35 !important;
            text-align: center !important;
            letter-spacing: -0.01em !important;
        }

        .swal2-popup.blip-swal-popup .swal2-html-container,
        .blip-modal-desc {
            font-size: 0.9rem !important;
            color: #64748b !important;
            line-height: 1.55 !important;
            margin: 0 0 1.5rem 0 !important;
            padding: 0 !important;
            text-align: center !important;
        }

        /* Unified Circular Icon Badges (56px) */
        .swal2-popup.blip-swal-popup .swal2-icon,
        .blip-modal-icon,
        .blip-swal-icon {
            border: none !important;
            width: 56px !important;
            height: 56px !important;
            margin: 0 auto 1.15rem auto !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            font-size: 1.4rem !important;
            flex-shrink: 0 !important;
        }

        .swal2-popup.blip-swal-popup .swal2-icon.swal2-warning,
        .blip-modal-icon.danger,
        .blip-modal-icon.warning,
        .blip-swal-icon.danger {
            background: #fef2f2 !important;
            color: #ef4444 !important;
        }

        .swal2-popup.blip-swal-popup .swal2-icon.swal2-success,
        .blip-modal-icon.success,
        .blip-swal-icon.success {
            background: #ecfdf5 !important;
            color: #10b981 !important;
        }

        .swal2-popup.blip-swal-popup .swal2-icon.swal2-info,
        .blip-modal-icon.primary,
        .blip-swal-icon.primary {
            background: rgba(43, 119, 248, 0.1) !important;
            color: var(--primary) !important;
        }

        .swal2-popup.blip-swal-popup .swal2-actions,
        .blip-swal-actions {
            display: flex !important;
            gap: 0.75rem !important;
            justify-content: center !important;
            align-items: center !important;
            margin: 1.25rem 0 0 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }

        .blip-swal-confirm-btn {
            background: #ef4444 !important;
            color: #ffffff !important;
            border-radius: 10px !important;
            font-size: 0.9rem !important;
            font-weight: 600 !important;
            padding: 0.65rem 1.4rem !important;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            margin: 0 !important;
            outline: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.4rem !important;
        }

        .blip-swal-confirm-btn:hover {
            background: #dc2626 !important;
            transform: translateY(-1px) !important;
        }

        .blip-swal-confirm-btn.primary {
            background: var(--primary) !important;
            box-shadow: 0 2px 6px rgba(43, 119, 248, 0.25) !important;
        }

        .blip-swal-confirm-btn.primary:hover {
            background: #2563eb !important;
            transform: translateY(-1px) !important;
        }

        .blip-swal-cancel-btn {
            background: #ffffff !important;
            color: #0f172a !important;
            border: 1.5px solid #e2e8f0 !important;
            border-radius: 10px !important;
            font-size: 0.9rem !important;
            font-weight: 600 !important;
            padding: 0.65rem 1.4rem !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            margin: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.4rem !important;
        }

        .blip-swal-cancel-btn:hover {
            background: #f8fafc !important;
            border-color: #cbd5e1 !important;
        }



        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.4rem;
            font-weight: 600;
        }

        .form-input {
            width: 100%;
            background: #f8fafc;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 0.75rem 1rem;
            color: var(--text-main);
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s;
        }

        .form-input:focus {
            border-color: var(--primary);
            box-shadow: none;
            background: #ffffff;
        }

        .tg-username-input-wrap {
            display: flex;
            align-items: center;
            width: 100%;
            background: #f8fafc;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            transition: all 0.2s;
        }

        .tg-username-input-wrap:focus-within {
            border-color: var(--primary);
            background: #ffffff;
            box-shadow: 0 0 0 2px rgba(43, 119, 248, 0.12);
        }

        .tg-username-prefix {
            padding: 0 0.15rem 0 0.9rem;
            font-weight: 700;
            color: var(--primary);
            font-size: 0.95rem;
            user-select: none;
        }

        .tg-username-input {
            border: none !important;
            background: transparent !important;
            padding-left: 0.2rem !important;
            outline: none !important;
            box-shadow: none !important;
        }

        .tg-username-input:focus {
            box-shadow: none !important;
            border: none !important;
            background: transparent !important;
        }



        /* Gender & Age UI */
        .gender-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.6rem;
            margin-top: 0.35rem;
        }

        .gender-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.65rem 0.85rem;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-window);
            color: var(--text-main);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            user-select: none;
        }

        .gender-btn:hover {
            background: var(--item-hover);
            border-color: var(--border-subtle);
        }

        .gender-btn:active {
            transform: scale(0.97);
        }

        .gender-btn.active {
            background: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        /* User Card Badges & Info Subtitle */
        .user-subline {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            margin-top: 0.25rem;
            flex-wrap: wrap;
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .user-subline .subline-dot {
            font-size: 0.65rem;
            color: #cbd5e1;
        }

        .user-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1;
        }

        .user-tag.gender-male {
            color: #2563eb;
        }

        .user-tag.gender-female {
            color: #db2777;
        }

        .user-tag.age-badge {
            color: #475569;
        }



        /* Avatar Crop Modal (Matching Unified Blip Modal System) */
        .avatar-crop-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            animation: fadeInOverlay 0.25s ease-out;
        }

        .avatar-crop-dialog {
            background: #ffffff;
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
            border: 1px solid var(--border-color);
            padding: 2.25rem 2rem;
            text-align: center;
            animation: popModalCard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .avatar-crop-body {
            padding: 0;
            background: #0f172a;
            border-radius: 14px;
            min-height: 240px;
            max-height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        /* Cropper.js visual refinement to match Blip aesthetic */
        .avatar-crop-body .cropper-face {
            border-radius: 50%;
        }

        .avatar-crop-body .cropper-view-box {
            border-radius: 50%;
            outline: 2px solid var(--primary);
        }

        .avatar-crop-body .cropper-line,
        .avatar-crop-body .cropper-point {
            background-color: var(--primary);
        }

        .avatar-crop-body .cropper-modal {
            background-color: rgba(15, 23, 42, 0.65);
        }

        /* Profile Avatar Badge & Actions UX */
        .profile-avatar-wrapper {
            position: relative;
            width: 80px;
            height: 80px;
            margin-bottom: 0.5rem;
        }

        /* ==========================================================================
           THREAD & PUBLIC DISCUSSIONS FEED
           ========================================================================== */
        /* Quick Compose Banner at top of thread feed */
        .thread-quick-compose {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 0.65rem 0.85rem;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.65rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
        }

        /* Thread / Knot Quick Compose */
        .thread-quick-compose {
            background: transparent;
            border: 1px dashed var(--border-color);
            border-radius: var(--radius-md);
            padding: 0.65rem 0.85rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .thread-quick-compose:hover {
            background: var(--item-hover);
            border-color: var(--primary);
        }

        .thread-quick-input-placeholder {
            flex: 1;
            min-width: 0;
            background: var(--input-bg);
            border: 1px solid transparent;
            border-radius: 20px;
            padding: 0.45rem 0.85rem;
            color: var(--text-muted);
            font-size: 0.84rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .thread-quick-btn {
            border-radius: 20px !important;
            padding: 0.35rem 0.85rem !important;
            font-size: 0.8rem !important;
            font-weight: 600 !important;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        /* Thread / Knot Card in Feed (Matching Telegram-style User Card) */
        .thread-card {
            background: transparent;
            border: none;
            border-radius: var(--radius-md);
            padding: 0.75rem 0.85rem;
            margin-bottom: 0.25rem;
            cursor: pointer;
            transition: all 0.15s ease;
            position: relative;
            box-shadow: none;
            /* DOM Virtualization Optimization (ala Twitter / Threads) */
            content-visibility: auto;
            contain-intrinsic-size: 0 130px;
        }

        .thread-card:hover {
            border-color: transparent;
            background: var(--item-hover);
            transform: none;
            box-shadow: none;
        }

        .thread-card.active-thread {
            border-color: transparent;
            background: var(--item-active);
            box-shadow: none;
        }

        .thread-card-header {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 0.4rem;
        }

        .thread-card-avatar {
            flex-shrink: 0;
        }

        .thread-card-meta {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .thread-card-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            min-width: 0;
        }

        .thread-card-author-name {
            font-weight: 600;
            font-size: 0.92rem;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .thread-card-sub-row {
            font-size: 0.78rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .thread-author-handle {
            font-size: 0.78rem;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .thread-distance-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.72rem;
            color: var(--text-muted);
            line-height: 1;
            flex-shrink: 0;
        }

        .thread-distance-badge i {
            font-size: 0.68rem;
            color: var(--primary);
        }

        .thread-content-text {
            font-size: 0.88rem;
            color: var(--text-main);
            line-height: 1.48;
            white-space: pre-wrap;
            word-break: break-word;
            margin: 0.35rem 0 0.55rem 0;
            padding-left: calc(44px + 0.75rem); /* Align with text under avatar */
        }

        .thread-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid var(--border-subtle);
            padding-top: 0.45rem;
            margin-top: 0.35rem;
            padding-left: calc(44px + 0.75rem);
        }

        .thread-actions-group {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .thread-action-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--text-muted);
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0.2rem 0.45rem;
            border-radius: 6px;
            transition: all 0.15s ease;
        }

        .thread-action-pill:hover {
            color: var(--primary);
            background: var(--item-hover);
        }

        .thread-action-pill.liked {
            color: #ef4444;
        }

        .thread-action-pill.liked i {
            color: #ef4444;
        }

        .thread-action-pill.danger:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.08);
        }

        .thread-time-text {
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Detail Thread & Replies View */
        .thread-detail-body {
            background: var(--bg-chat) !important;
            padding: 1.25rem 2rem !important;
            gap: 0 !important;
        }

        .thread-detail-container {
            max-width: 720px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .thread-op-card {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.15rem 1.25rem;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .thread-op-card .thread-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .thread-op-card .thread-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
            flex: 1;
        }

        .thread-op-card .thread-author-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            margin-bottom: 2px;
        }

        .thread-op-card .thread-content-text {
            font-size: 0.96rem;
            line-height: 1.55;
            margin: 0.65rem 0 0.85rem 0;
            padding-left: 0;
        }

        .thread-op-card .thread-footer {
            padding-left: 0;
        }

        .thread-replies-divider {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 0.25rem 0;
        }

        .thread-reply-item {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 0.85rem 1rem;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
            transition: all 0.15s ease;
        }

        .thread-reply-item:hover {
            border-color: #cbd5e1;
        }

        .thread-reply-content {
            font-size: 0.9rem;
            color: var(--text-main);
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
            margin-top: 0.35rem;
            padding-left: calc(34px + 0.6rem);
        }

        .thread-empty-replies {
            text-align: center;
            padding: 2.5rem 1.5rem;
            color: var(--text-muted);
            background: transparent;
            border-radius: 16px;
            border: 1px dashed var(--border-color);
        }

        .thread-empty-replies i {
            font-size: 2rem;
            color: var(--primary);
            opacity: 0.6;
            margin-bottom: 0.65rem;
        }

        .thread-empty-replies h4 {
            font-size: 0.94rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 0.2rem;
        }

        .thread-empty-replies p {
            font-size: 0.82rem;
            color: var(--text-muted);
            margin: 0;
        }

        .thread-reply-input-bar {
            background: transparent !important;
            border-top: none !important;
            padding: 0.75rem 1.25rem 1.15rem 1.25rem !important;
            justify-content: center;
        }

        .thread-reply-input-wrapper {
            max-width: 720px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 0.75rem 1.25rem;
            transition: all 0.2s ease;
        }

        .thread-reply-input-wrapper:focus-within {
            border-color: var(--primary);
        }

        .thread-reply-input {
            flex: 1;
            border: none;
            background: transparent;
            outline: none;
            font-size: 0.96rem;
            color: var(--text-main);
            padding: 0.2rem 0;
        }

        /* Mention Styling & Autocomplete Dropdown */
        .thread-mention-tag {
            color: var(--primary);
            font-weight: 600;
            background: rgba(43, 119, 248, 0.08);
            padding: 0.08rem 0.32rem;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 2px;
            word-break: normal;
        }

        .thread-mention-tag:hover {
            background: rgba(43, 119, 248, 0.16);
            color: var(--primary-hover);
            text-decoration: underline;
        }

        /* Mention Dropdown Standar (Untuk Balasan Knot & Modal Desktop) */
        .mention-autocomplete-dropdown {
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            margin-top: 6px;
            max-height: 220px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.2);
            overflow-y: auto;
            z-index: 10000;
            padding: 0.35rem;
        }

        .mention-item {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.5rem 0.65rem;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.12s ease;
        }

        .mention-item:hover,
        .mention-item.selected {
            background: #f1f5f9;
        }

        .mention-item-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            line-height: 1.25;
        }

        .mention-item-name {
            font-size: 0.86rem;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mention-item-handle {
            font-size: 0.74rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .mention-item-dist {
            font-size: 0.68rem;
            color: var(--primary);
            font-weight: 600;
            background: var(--primary-light);
            padding: 0.15rem 0.45rem;
            border-radius: 999px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }

        /* Thread Notifications Dropdown */
        .thread-notifs-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0.75rem;
            width: 320px;
            max-width: 90vw;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
            z-index: 9999;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .thread-notifs-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fafbfc;
        }

        .thread-notifs-mark-read {
            border: none;
            background: transparent;
            color: var(--primary);
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0.2rem 0.4rem;
            border-radius: 6px;
            transition: all 0.15s;
        }

        .thread-notifs-mark-read:hover {
            background: rgba(43, 119, 248, 0.08);
        }

        .thread-notifs-list {
            max-height: 340px;
            overflow-y: auto;
            padding: 0.25rem 0;
        }

        .thread-notif-item {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            padding: 0.7rem 0.95rem;
            cursor: pointer;
            transition: background 0.15s ease;
            border-bottom: 1px solid rgba(232, 236, 243, 0.6);
        }

        .thread-notif-item:last-child {
            border-bottom: none;
        }

        .thread-notif-item:hover {
            background: #f8fafc;
        }

        .thread-notif-item.unread {
            background: rgba(43, 119, 248, 0.04);
        }

        .thread-notif-item.unread::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary);
            position: absolute;
            left: 0.4rem;
            margin-top: 0.85rem;
        }

        .thread-notif-content {
            flex: 1;
            min-width: 0;
            font-size: 0.82rem;
            line-height: 1.35;
            color: var(--text-main);
        }

        .thread-notif-title {
            font-weight: 600;
            margin-bottom: 2px;
        }

        .thread-notif-preview {
            color: var(--text-muted);
            font-size: 0.78rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
        }

        .thread-notif-time {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 3px;
        }

        .avatar-badge-btn {
            position: absolute;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #ffffff;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 5;
        }

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

        .avatar-badge-btn:active {
            transform: scale(0.95);
        }

        .avatar-badge-btn.change-photo-badge {
            bottom: -2px;
            right: -2px;
            background: var(--primary);
            color: #ffffff;
            font-size: 0.72rem;
        }

        .avatar-badge-btn.change-photo-badge:hover {
            background: #2563eb;
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
        }

        .avatar-badge-btn.remove-photo-badge {
            top: -2px;
            right: -2px;
            background: #ffffff;
            color: #ef4444;
            border-color: #fee2e2;
            font-size: 0.68rem;
        }

        .avatar-badge-btn.remove-photo-badge:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ffffff;
            box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
        }

        /* ==========================================================================
           Onboarding Modal: Setup Akun Awal (Unified Style)
           ========================================================================== */
        .onboarding-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            animation: fadeInOverlay 0.25s ease-out;
        }

        /* Threads / Instagram Style Compose Modal */
        .threads-compose-modal {
            background: #ffffff;
            width: 100%;
            max-width: 540px;
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
            border: 1px solid var(--border-color);
            overflow: visible;
            display: flex;
            flex-direction: column;
            animation: popModalCard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .threads-compose-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            position: relative;
        }

        .threads-compose-cancel-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.92rem;
            font-weight: 500;
            cursor: pointer;
            padding: 0.2rem 0;
            transition: color 0.15s ease;
        }

        .threads-compose-cancel-btn:hover {
            color: var(--text-main);
        }

        .threads-compose-title {
            font-weight: 700;
            font-size: 0.98rem;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }

        .threads-compose-body {
            display: flex;
            gap: 0.85rem;
            padding: 1.25rem 1.25rem 0.5rem;
            align-items: flex-start;
        }

        .threads-compose-avatar {
            flex-shrink: 0;
        }

        .threads-compose-main {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .threads-compose-username {
            font-weight: 700;
            font-size: 0.92rem;
            color: var(--text-main);
            margin-bottom: 0.25rem;
            line-height: 1.2;
        }

        .threads-compose-textarea {
            width: 100%;
            border: none;
            outline: none;
            resize: none;
            font-size: 0.98rem;
            line-height: 1.5;
            color: var(--text-main);
            background: transparent;
            padding: 0.2rem 0;
            min-height: 90px;
            font-family: inherit;
        }

        .threads-compose-textarea::placeholder {
            color: #94a3b8;
        }

        .threads-compose-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1.25rem 1rem;
            border-top: 1px solid #f1f5f9;
            margin-top: 0.5rem;
        }

        .threads-compose-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .threads-compose-loc {
            font-size: 0.78rem;
            color: var(--primary);
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: var(--primary-light);
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
        }

        .threads-compose-counter {
            font-size: 0.74rem;
            color: var(--text-muted);
        }

        .threads-compose-submit-btn {
            background: var(--primary);
            color: #ffffff;
            border: none;
            border-radius: 999px;
            padding: 0.45rem 1.15rem;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .threads-compose-submit-btn:hover {
            background: var(--primary-hover);
            transform: scale(1.02);
        }

        .threads-compose-submit-btn:active {
            transform: scale(0.97);
        }

        .threads-compose-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Likes Count Clickable / Hoverable */
        .thread-like-count-click {
            padding: 0.1rem 0.25rem;
            border-radius: 4px;
            transition: background 0.15s ease, text-decoration 0.15s ease;
            cursor: pointer;
        }

        .thread-like-count-click:hover {
            text-decoration: underline;
            background: rgba(239, 68, 68, 0.12);
        }

        /* Thread Likes Modal */
        .thread-likes-modal {
            background: #ffffff;
            width: 100%;
            max-width: 440px;
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: popModalCard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .thread-likes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.95rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            background: #fafbfc;
        }

        .thread-likes-title {
            font-weight: 700;
            font-size: 1rem;
            color: var(--text-main);
            letter-spacing: -0.01em;
        }

        .thread-likes-list {
            max-height: 400px;
            overflow-y: auto;
            padding: 0.5rem 0;
            display: flex;
            flex-direction: column;
        }

        .thread-like-user-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.7rem 1.25rem;
            cursor: pointer;
            transition: background 0.15s ease;
            border-bottom: 1px solid rgba(241, 245, 249, 0.8);
        }

        .thread-like-user-row:last-child {
            border-bottom: none;
        }

        .thread-like-user-row:hover {
            background: #f8fafc;
        }

        .thread-like-user-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
            flex: 1;
        }

        .onboarding-card {
            background: #ffffff;
            width: 100%;
            max-width: 440px;
            border-radius: 20px;
            padding: 2.25rem 2rem;
            text-align: center;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
            border: 1px solid var(--border-color);
            animation: popModalCard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }



        .onboarding-gender-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1.75rem;
        }

        .onboarding-gender-card {
            background: #f8fafc;
            border: 2px solid var(--border-color);
            border-radius: 16px;
            padding: 1.25rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            user-select: none;
            outline: none;
        }

        .onboarding-gender-card:hover {
            transform: translateY(-2px);
            border-color: var(--primary);
            box-shadow: 0 6px 16px rgba(43, 119, 248, 0.15);
        }

        .onboarding-gender-card.active {
            border-color: var(--primary);
            background: rgba(43, 119, 248, 0.08);
            box-shadow: 0 0 0 3px rgba(43, 119, 248, 0.22);
        }

        .onboard-icon {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: transform 0.2s;
        }

        .onboarding-gender-card:hover .onboard-icon {
            transform: scale(1.1);
        }

        .onboard-icon.male {
            background: #eff6ff;
            color: #2563eb;
        }

        .onboard-icon.female {
            background: #fdf2f8;
            color: #db2777;
        }

        .onboard-label {
            font-size: 0.96rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .onboarding-submit-btn {
            width: 100%;
            padding: 0.85rem 1.25rem;
            background: var(--primary);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(43, 119, 248, 0.25);
        }

        .onboarding-submit-btn:hover:not(:disabled) {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        }

        .onboarding-submit-btn:disabled {
            background: #cbd5e1;
            color: #94a3b8;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* ==========================================================================
           ANDROID & MOBILE RESPONSIVE UI (<= 768px)
           Native App Style: Bottom Nav Bar, Slide-over Chat & Profile, Touch Friendly
           ========================================================================== */
        @media (max-width: 768px) {
            html, body {
                height: 100% !important;
                height: 100dvh !important;
                width: 100vw !important;
                overflow: hidden !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
            }

            .tg-app-window {
                width: 100vw !important;
                height: 100% !important;
                height: 100dvh !important;
                display: flex !important;
                flex-direction: column-reverse !important; /* Bottom Navigation Bar */
                overflow: hidden !important;
                position: relative !important;
            }

            /* 1. Bottom Navigation Bar */
            .tg-nav-sidebar {
                width: 100% !important;
                height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
                min-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
                max-height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
                flex-direction: row !important;
                justify-content: space-around !important;
                align-items: center !important;
                padding: 0 0.5rem env(safe-area-inset-bottom, 0px) !important;
                border-right: none !important;
                border-top: 1px solid var(--border-color) !important;
                background: #ffffff !important;
                z-index: 100 !important;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
            }

            .tg-logo {
                display: none !important;
            }

            .tg-nav-top {
                flex-direction: row !important;
                justify-content: space-around !important;
                align-items: center !important;
                width: 80% !important;
                gap: 0 !important;
            }

            .tg-nav-bottom {
                width: 20% !important;
                flex-direction: row !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 0 !important;
            }

            .tg-nav-btn {
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                height: 52px !important;
                width: 100% !important;
                max-width: 65px !important;
                padding: 4px 1px !important;
                gap: 2px !important;
                border-radius: 12px !important;
                position: relative !important;
            }

            /* Hilangkan bar indikator vertikal desktop di mobile bottom nav */
            .tg-nav-btn.active::before {
                display: none !important;
            }

            .tg-nav-btn.active {
                color: var(--primary) !important;
                background: rgba(43, 119, 248, 0.1) !important;
            }

            .tg-nav-btn i {
                font-size: 1.25rem !important;
            }

            .tg-nav-label {
                font-size: 0.68rem !important;
                font-weight: 600 !important;
                display: block !important;
                line-height: 1 !important;
            }

            .tg-profile-nav-btn {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 2px !important;
                height: 52px !important;
                width: 100% !important;
                max-width: 75px !important;
            }

            .tg-profile-nav-btn .tg-nav-label {
                display: block !important;
                font-size: 0.68rem !important;
                font-weight: 600 !important;
                color: var(--text-muted) !important;
            }

            .tg-profile-nav-btn.active .tg-nav-label {
                color: var(--primary) !important;
            }

            .tg-profile-nav-btn #navAvatar {
                width: 24px !important;
                height: 24px !important;
                font-size: 0.72rem !important;
                border-radius: 50% !important;
            }

            .tg-nav-btn .badge-count {
                top: 2px !important;
                right: 18% !important;
                font-size: 0.65rem !important;
                padding: 0.1rem 0.35rem !important;
            }

            /* 2. Main List Sidebar (Sekitar, Teman, Chat List) */
            .tg-chats-sidebar {
                width: 100% !important;
                height: calc(100% - 60px) !important;
                flex: 1 !important;
                border-right: none !important;
                background: var(--bg-sidebar) !important;
            }

            .tg-search-header {
                padding: 0.65rem 0.85rem !important;
            }

            .tg-search-input {
                font-size: 16px !important; /* Prevents auto-zoom on mobile */
                padding: 0.5rem 0.85rem 0.5rem 2.25rem !important;
            }

            /* 3. Main Chat Panel on Mobile */
            .chat-panel {
                display: none !important; /* Hidden until chat is opened */
            }

            body.in-chat-mobile .tg-chats-sidebar,
            body.in-chat-mobile .tg-nav-sidebar,
            body.in-thread-mobile .tg-chats-sidebar,
            body.in-thread-mobile .tg-nav-sidebar {
                display: none !important;
            }

            body.in-chat-mobile .chat-panel,
            body.in-thread-mobile .chat-panel {
                display: flex !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100% !important;
                height: 100dvh !important;
                z-index: 250 !important;
                background: var(--bg-chat) !important;
            }

            .chat-mobile-back-btn {
                display: inline-flex !important;
                width: 36px !important;
                height: 36px !important;
                align-items: center !important;
                justify-content: center !important;
                color: var(--text-main) !important;
                font-size: 1.05rem !important;
                border-radius: 8px !important;
                flex-shrink: 0 !important;
            }

            .chat-header {
                padding: 0.5rem 0.75rem !important;
                height: 58px !important;
            }

            .chat-header-info {
                gap: 0.6rem !important;
            }

            #chatHeaderAvatar {
                width: 36px !important;
                height: 36px !important;
                font-size: 0.95rem !important;
            }

            #chatHeaderName {
                font-size: 0.92rem !important;
                max-width: 140px !important;
            }

            #chatHeaderUsername {
                font-size: 0.75rem !important;
                max-width: 100px !important;
            }

            #chatHeaderBio {
                font-size: 0.72rem !important;
                max-width: 220px !important;
            }

            .chat-body {
                padding: 0.75rem 0.65rem !important;
                gap: 0.4rem !important;
            }

            .message-bubble {
                max-width: 86% !important;
                padding: 0.55rem 0.8rem 0.45rem !important;
                font-size: 0.92rem !important;
            }

            .chat-input-bar {
                padding: 0.45rem 0.6rem !important;
                gap: 0.4rem !important;
            }

            .chat-input {
                font-size: 16px !important; /* Prevents auto zoom */
                padding: 0.55rem 0.75rem !important;
            }

            .tg-emoji-picker-popover {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 54px !important;
                width: 100% !important;
                max-width: 100vw !important;
                border-radius: 16px 16px 0 0 !important;
                max-height: 290px !important;
                box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15) !important;
            }

            emoji-picker {
                width: 100% !important;
                height: 290px !important;
            }

            /* 4. Contact Info Panel (Slide-over drawer on mobile) */
            .tg-info-panel {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100% !important;
                height: 100% !important;
                height: 100dvh !important;
                z-index: 350 !important;
                background: #ffffff !important;
            }

            .tg-info-content {
                padding: 1.25rem 1rem !important;
                overflow-y: auto !important;
            }

            /* 5. Modals and Popups on Android */
            #createThreadModal.onboarding-overlay {
                padding: 0 !important;
                align-items: stretch !important;
                justify-content: stretch !important;
            }

            #createThreadModal .threads-compose-modal {
                width: 100% !important;
                max-width: 100% !important;
                height: 100% !important;
                height: 100dvh !important;
                border-radius: 0 !important;
                border: none !important;
                display: flex !important;
                flex-direction: column !important;
            }

            #createThreadModal .threads-compose-body {
                flex: 1 !important;
                min-height: 0 !important;
                padding: 1rem !important;
            }

            #createThreadModal .threads-compose-textarea {
                flex: 1 !important;
                min-height: 140px !important;
                height: auto !important;
                font-size: 1.05rem !important;
            }

            #createThreadModal .threads-compose-footer {
                padding: 0.65rem 1rem !important;
                background: #ffffff !important;
                border-top: 1px solid var(--border-color) !important;
            }

            #createThreadModal .mention-autocomplete-dropdown {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                top: auto !important;
                bottom: 45px !important;
                width: 100% !important;
                max-height: 50vh !important;
                background: #ffffff !important;
                border: none !important;
                border-top: 1px solid var(--border-color) !important;
                box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
                border-radius: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                z-index: 100000 !important;
            }

            #createThreadModal .mention-autocomplete-dropdown .mention-item {
                padding: 0.7rem 1.15rem !important;
                border-radius: 0 !important;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
                gap: 0.75rem !important;
            }

            #createThreadModal .mention-autocomplete-dropdown .mention-item-name {
                font-size: 0.94rem !important;
                font-weight: 700 !important;
            }

            #createThreadModal .mention-autocomplete-dropdown .mention-item-handle {
                font-size: 0.8rem !important;
                color: #64748b !important;
            }

            .onboarding-card,
            .avatar-crop-dialog,
            .swal2-popup.blip-swal-popup {
                width: 92vw !important;
                max-width: 95vw !important;
                padding: 1.5rem 1.25rem !important;
                max-height: 90vh !important;
                max-height: 90dvh !important;
                overflow-y: auto !important;
                border-radius: 18px !important;
            }

            .swal2-popup.blip-swal-popup .swal2-actions,
            .blip-swal-actions {
                flex-direction: column-reverse !important;
                gap: 0.5rem !important;
                width: 100% !important;
            }

            .blip-swal-confirm-btn,
            .blip-swal-cancel-btn {
                width: 100% !important;
            }

            .form-input {
                font-size: 16px !important; /* Prevents auto zoom */
            }

            /* Selection Header on Mobile */
            .chat-selection-header {
                padding: 0.5rem 0.75rem !important;
            }
        }

        /* Knot Icon Styles */
        .knot-icon-mask {
            display: inline-block;
            width: 1.15em;
            height: 1.15em;
            background-color: currentColor;
            -webkit-mask: url('/knot-icon.svg') no-repeat center / contain;
            mask: url('/knot-icon.svg') no-repeat center / contain;
            vertical-align: middle;
            flex-shrink: 0;
        }

        .tg-nav-btn .knot-icon-mask {
            width: 22px;
            height: 22px;
            margin-bottom: 2px;
        }

        @media (max-width: 768px) {
            .tg-nav-btn .knot-icon-mask {
                width: 20px;
                height: 20px;
                margin-bottom: 0;
            }
        }

        /* Knot Search User Section Styles */
        .knot-search-user-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            padding: 0.55rem 0.75rem;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.15s ease;
            margin-bottom: 0.35rem;
            background: #ffffff;
            border: 1px solid var(--border-subtle);
        }

        .knot-search-user-item:hover {
            background: var(--item-hover);
        }

        .knot-search-user-btn {
            font-size: 0.76rem;
            padding: 0.3rem 0.65rem;
            border-radius: 6px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            flex-shrink: 0;
            border: none;
            cursor: pointer;
            transition: opacity 0.15s ease;
        }

        .knot-search-user-btn.add {
            background: var(--primary);
            color: #ffffff;
        }

        .knot-search-user-btn.add:hover {
            opacity: 0.9;
        }

        .knot-search-user-btn.pending {
            background: rgba(245, 158, 11, 0.12);
            color: #d97706;
            cursor: default;
        }

        .knot-search-user-btn.friend {
            background: rgba(16, 185, 129, 0.12);
            color: #059669;
            cursor: default;
        }

        /* Twitter-Style Skeleton Shimmer UI */
        @keyframes knotShimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        .knot-skeleton-card {
            padding: 0.75rem 0.85rem;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .knot-skeleton-shimmer {
            background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: knotShimmer 1.5s infinite ease-in-out;
            border-radius: 6px;
        }

        .knot-skeleton-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .knot-skeleton-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .knot-skeleton-line-title {
            height: 14px;
            width: 45%;
            border-radius: 4px;
        }

        .knot-skeleton-line-text1 {
            height: 12px;
            width: 88%;
            border-radius: 4px;
        }

        .knot-skeleton-line-text2 {
            height: 12px;
            width: 60%;
            border-radius: 4px;
        }

        /* ==========================================================================
           Twitter / X Style Profile Page
           ========================================================================== */
        .twitter-profile-cover {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
            position: relative;
            flex-shrink: 0;
        }

        .twitter-profile-cover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.08);
        }

        .twitter-profile-header-area {
            padding: 0 1rem 0.85rem 1rem;
            position: relative;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-main);
        }

        .twitter-profile-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: -42px;
            margin-bottom: 0.65rem;
            position: relative;
        }

        .twitter-avatar-overlap {
            position: relative;
            width: 82px;
            height: 82px;
            flex-shrink: 0;
        }

        .twitter-profile-avatar-img {
            width: 82px;
            height: 82px;
            border-radius: 50%;
            border: 4px solid var(--bg-main);
            background-color: var(--primary);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: 700;
            background-position: center;
            background-size: cover;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .twitter-profile-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding-bottom: 4px;
        }

        .twitter-btn-edit-profile {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.45rem 0.95rem;
            border-radius: 9999px;
            border: 1px solid var(--border-color);
            background: var(--bg-main);
            color: var(--text-main);
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .twitter-btn-edit-profile:hover {
            background: var(--item-hover);
            border-color: var(--text-muted);
        }

        .twitter-profile-names {
            margin-bottom: 0.5rem;
        }

        .twitter-display-name {
            font-size: 1.18rem;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.25;
            margin: 0;
            letter-spacing: -0.01em;
        }

        .twitter-handle {
            font-size: 0.84rem;
            color: var(--text-muted);
            margin-top: 1px;
            font-weight: 500;
        }

        .twitter-bio-text {
            font-size: 0.88rem;
            color: var(--text-main);
            line-height: 1.45;
            margin: 0.5rem 0 0.65rem 0;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .twitter-profile-meta-list {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.85rem;
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-top: 0.4rem;
        }

        .twitter-meta-item {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .twitter-meta-item i {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Twitter Tabs */
        .twitter-profile-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-main);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .twitter-tab-btn {
            flex: 1;
            padding: 0.75rem 0.5rem;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .twitter-tab-btn:hover {
            background: var(--item-hover);
            color: var(--text-main);
        }

        .twitter-tab-btn.active {
            color: var(--text-main);
            font-weight: 700;
        }

        .twitter-tab-indicator {
            position: absolute;
            bottom: 0;
            height: 3px;
            width: 44px;
            background: var(--primary);
            border-radius: 9999px;
            display: none;
        }

        .twitter-tab-btn.active .twitter-tab-indicator {
            display: block;
        }

        .profile-knots-container {
            display: flex;
            flex-direction: column;
        }

        .profile-empty-knots {
            padding: 3rem 1.5rem;
            text-align: center;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
        }

        .profile-empty-knots > i {
            font-size: 2.2rem;
            color: var(--text-muted);
            opacity: 0.6;
        }

        .profile-empty-knots .btn-primary {
            color: #ffffff !important;
        }

        .profile-empty-knots .btn-primary i {
            color: #ffffff !important;
            font-size: 0.85rem !important;
            opacity: 1 !important;
        }

        /* User Posted Knots inside Contact Info Panel */
        .info-knot-card {
            padding: 0.65rem 0.75rem;
            background: var(--bg-main);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .info-knot-card:hover {
            background: var(--item-hover);
        }

        .info-knot-content {
            font-size: 0.82rem;
            color: var(--text-main);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .info-knot-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.4rem;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        /* Floating Back Button on Cover */
        .twitter-floating-back-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: #ffffff;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            font-size: 0.95rem;
            transition: all 0.18s ease;
        }

        .twitter-floating-back-btn:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.05);
        }

        /* Unfriend Button Pill */
        .twitter-btn-unfriend {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.45rem 0.85rem;
            border-radius: 9999px;
            border: 1px solid #fee2e2;
            background: #fff5f5;
            color: #ef4444;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .twitter-btn-unfriend:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        /* ==========================================================================
           Threads Clean Style Profile Header (No Banner Cover)
           ========================================================================== */
        .threads-profile-header-area {
            padding: 1.15rem 1rem 0.85rem 1rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-main);
        }

        .threads-profile-top-row {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .threads-profile-info-col {
            flex: 1;
            min-width: 0;
        }

        .threads-display-name {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.2;
            margin: 0;
            letter-spacing: -0.01em;
            word-break: break-word;
        }

        .threads-handle {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin-top: 3px;
            font-weight: 500;
        }

        .threads-avatar-wrap {
            flex-shrink: 0;
        }

        .threads-profile-avatar-img {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background-color: var(--primary);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            font-weight: 700;
            background-position: center;
            background-size: cover;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        }

        .threads-bio-text {
            font-size: 0.88rem;
            color: var(--text-main);
            line-height: 1.45;
            margin: 0.65rem 0 0.4rem 0;
            white-space: pre-wrap;
            word-break: break-word;
        }

        /* Action Buttons: Full Width in Threads Header */
        .threads-btn-action {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.55rem 1rem;
            border-radius: 10px;
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .threads-btn-action.edit-profile {
            background: #ffffff;
            color: var(--text-main);
            border: 1px solid var(--border-color);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .threads-btn-action.edit-profile:hover {
            background: var(--item-hover);
            border-color: var(--text-muted);
        }

        .threads-btn-action.add-friend {
            background: var(--primary);
            color: #ffffff;
            border: 1px solid var(--primary);
        }

        .threads-btn-action.add-friend:hover {
            background: var(--primary-hover);
            border-color: var(--primary-hover);
        }

        .threads-btn-action.unfriend {
            background: #fff5f5;
            color: #ef4444;
            border: 1px solid #fee2e2;
        }

        .threads-btn-action.unfriend:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        .threads-btn-action.pending {
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning);
            border: 1px solid rgba(245, 158, 11, 0.25);
            cursor: default;
        }

        /* Action buttons for photo inside Edit Profile Mode */
        .profile-photo-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.42rem 0.85rem;
            border-radius: 8px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s ease;
            text-decoration: none;
        }

        .profile-photo-action-btn.primary {
            background: var(--item-active);
            color: var(--primary);
            border: 1px solid rgba(43, 119, 248, 0.25);
        }

        .profile-photo-action-btn.primary:hover {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
        }

        .profile-photo-action-btn.danger {
            background: #fff5f5;
            color: #ef4444;
            border: 1px solid #fee2e2;
        }

        .profile-photo-action-btn.danger:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        /* Deny Button in SweetAlert (for remove photo action) */
        .blip-swal-deny-btn {
            background: #fff5f5 !important;
            color: #ef4444 !important;
            border: 1.5px solid #fee2e2 !important;
            border-radius: 10px !important;
            font-size: 0.9rem !important;
            font-weight: 600 !important;
            padding: 0.65rem 1.25rem !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            margin: 0 !important;
            outline: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.4rem !important;
        }

        .blip-swal-deny-btn:hover {
            background: #ef4444 !important;
            color: #ffffff !important;
            border-color: #ef4444 !important;
        }

        .avatar-action-sheet-confirm-btn {
            background: var(--primary) !important;
            color: #ffffff !important;
            box-shadow: 0 2px 6px rgba(43, 119, 248, 0.25) !important;
            border-radius: 10px !important;
            font-size: 0.9rem !important;
            font-weight: 600 !important;
            padding: 0.65rem 1.4rem !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            margin: 0 !important;
            outline: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.4rem !important;
        }

        .avatar-action-sheet-confirm-btn:hover {
            background: #2563eb !important;
            transform: translateY(-1px) !important;
        }

        /* Avatar Options Dropdown Menu */
        .avatar-options-dropdown {
            position: absolute;
            top: 48px;
            left: 20px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
            width: 155px;
            padding: 0.35rem;
            z-index: 100;
            display: flex;
            flex-direction: column;
            animation: fadeInMenu 0.15s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .avatar-dropdown-item {
            width: 100%;
            padding: 0.55rem 0.75rem;
            border-radius: 8px;
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-main);
            cursor: pointer;
            text-align: left;
            transition: all 0.15s ease;
        }

        .avatar-dropdown-item:hover {
            background: var(--item-hover);
        }

        .avatar-dropdown-item.danger {
            color: #ef4444;
        }

        .avatar-dropdown-item.danger:hover {
            background: #fff5f5;
        }

        /* Reusable Modal Dialog Component Styles */
        .blip-reusable-modal-dialog {
            background: #ffffff;
            border-radius: 16px;
            width: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            animation: fadeInMenu 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .blip-reusable-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-main);
        }

        .blip-reusable-modal-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .blip-reusable-modal-body {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
        }
