:root {
            --primary-color: #772953; /* Maroon */
            --primary-dark: #511c39;  /* Maroon Gelap */
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }

        /* --- UI LOGIN TEMA MAROON LAMIANBET --- */
        #login-screen { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: #f8f9fa; /* Latar abu-abu terang */
            display: flex; 
            justify-content: center; 
            align-items: flex-start; /* Geser box sedikit ke atas */
            padding-top: 10vh; 
            z-index: 9999; 
        }
        
        .login-box { 
            background: white; 
            padding: 40px; 
            border-radius: 12px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
            width: 100%;
            max-width: 380px; /* Ukuran pas untuk form login modern */
            text-align: center; 
        }
        
        .login-box h2 { 
            margin-bottom: 30px; 
            color: var(--primary-color); /* Warna tulisan mengikuti Maroon */
            font-size: 1.8rem;
            font-weight: 500;
        }
        
        .login-box input { 
            width: 100%; 
            padding: 12px 15px; 
            margin-bottom: 15px; 
            border: 1px solid #ccc; 
            border-radius: 6px; 
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .login-box input:focus {
            border-color: var(--primary-color);
        }
        
        .login-box button { 
            width: 100%; 
            padding: 12px; 
            background-color: var(--primary-color); /* Tombol Login Maroon */
            color: white; 
            border: none; 
            border-radius: 6px; 
            cursor: pointer; 
            font-size: 1.1rem; 
            font-weight: bold;
            transition: all 0.3s ease; 
        }
        
        .login-box button:hover { 
            background-color: var(--primary-dark); 
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        .error-message { 
            color: #dc3545; /* Merah untuk pesan error */
            font-size: 0.85rem; 
            margin-top: 15px; 
            display: none; 
            font-weight: bold;
        }

        /* DASHBOARD GRID */
        #dashboard-screen { display: none; }
        
        #sidebar-profile { text-align: center; padding: 10px 0 20px 0; border-bottom: 1px solid #ddd; margin-bottom: 15px; }
        #sidebar-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); margin-bottom: 10px; background: white; cursor: pointer; transition: 0.3s; }
        #sidebar-photo:hover { opacity: 0.8; }
        #sidebar-name { color: var(--primary-dark); font-weight: bold; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 4px;}
        #sidebar-email { color: #6c757d; font-size: 12px; margin-bottom: 12px; word-break: break-all; }
        .btn-dashboard-profil { display: inline-block; background-color: #17a2b8; color: white; padding: 8px 15px; border-radius: 6px; font-size: 12px; font-weight: bold; transition: 0.3s; width: 100%; text-align: center; cursor: pointer; border: none; }
        .btn-dashboard-profil:hover { background-color: #138496; }

        /* Komponen Panel Bootstrap */
        .panel-group { margin-bottom: 15px; width: 100%; }
        .panel { margin-bottom: 0; background-color: #fff; border: 1px solid transparent; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
        .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; font-size: 14px; font-weight: bold; display: flex; align-items: center; }
        .panel-body { padding: 15px; display: flex; flex-direction: column; gap: 5px; }

        .panel-info { border-color: #bce8f1; }
        .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
        .panel-success { border-color: #d6e9c6; }
        .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
        .panel-danger { border-color: #ebccd1; }
        .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }

        /* Tombol Menu */
        .btn-menu { text-align: left; padding: 8px 12px; font-size: 13px; font-weight: bold; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; width: 100%; display: block; }
        .btn-info { color: #ffffff; background-color: var(--primary-color); border-color: var(--primary-color); }
        .btn-info:hover { background-color: var(--primary-dark); border-color: #491933; }
        .me-2 { margin-right: 8px; }
        
        /* Posisi Badge agar ke kanan */
        .badge { background: #e74c3c; color: white; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: bold; display: none; float: right; margin-top: 2px; }
        .badge { background: #e74c3c; color: white; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: bold; display: none; margin-left: 5px;}

        .logout-container { margin-top: auto; padding-top: 20px; }
        .logout-btn { width: 100%; padding: 12px 15px; background-color: #e74c3c; color: white; border: none; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; }
        .logout-btn:hover { background-color: #c0392b; }

        /* DASHBOARD LAYOUT & SIDEBAR COLLAPSIBLE */
        .dashboard-container { 
            display: flex; 
            width: 100%; 
            height: 100vh; 
            overflow: hidden; 
            position: relative; /* KUNCI: Agar tombol bisa melayang sejajar di container ini */
        }

        /* Sidebar Tema Panel Group Maroon (Dilengkapi Transisi) */
        .sidebar { 
            width: 280px; 
            flex-shrink: 0; 
            background-color: #f8f9fa; 
            color: #333; 
            padding: 20px; 
            overflow-y: auto; 
            overflow-x: hidden;
            display: flex; 
            flex-direction: column; 
            height: 100vh; 
            border-right: 2px solid #e0e0e0; 
            transition: width 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
        }

        /* TAMBAHKAN KODE INI UNTUK MEMPERBAIKI JUDUL */
        .sidebar h2 { 
            text-align: center; 
            margin-bottom: 20px; 
            font-size: 22px; 
            color: var(--primary-color); 
            font-weight: bold; 
            letter-spacing: 2px; 
        }

        /* Class khusus saat Sidebar ditutup */
        .sidebar.collapsed { 
            width: 0; 
            padding-left: 0; 
            padding-right: 0; 
            border-right: none; 
            opacity: 0;
        }

        .main-content { 
            flex-grow: 1; 
            background-color: #ecf0f1; 
            padding: 15px; 
            position: relative; 
            min-width: 0; 
            height: 100vh; 
            overflow: hidden; 
            transition: all 0.4s ease;
        }

        .btn-toggle-sidebar {
            position: absolute;
            top: 50%;
            left: 280px; /* Posisi awal sejajar dengan batas lebar sidebar */
            transform: translate(-50%, -50%); /* Menarik tombol tepat ke tengah garis border */
            z-index: 1005; /* Pastikan di atas layer manapun */
            background-color: var(--primary-color);
            color: white;
            border: 2px solid #fff; /* Border putih memberi efek "memotong" garis sidebar */
            border-radius: 50%;
            width: 32px; /* Ukuran bulat kecil yang modern */
            height: 32px;
            font-size: 12px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            /* Transisi "left" disamakan 0.4s dengan "width" milik sidebar agar bergerak sinkron */
            transition: left 0.4s ease, transform 0.2s ease, background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-toggle-sidebar:hover {
            background-color: var(--primary-dark);
            transform: translate(-50%, -50%) scale(1.15); /* Efek membesar saat hover */
        }

        /* Saat Sidebar Ditutup, tombol ikut terseret ke sisi kiri layar (karena lebar sidebar jadi 0) */
        .sidebar.collapsed + .btn-toggle-sidebar {
            left: 0;
        }

        /* Merapikan posisi icon panah agar benar-benar di tengah lingkaran */
        .btn-toggle-sidebar .glyphicon {
            top: 1px;
            left: -1px;
        }

        /* KONTEN UTAMA & PANELS */
        .content-frame { width: 100%; height: calc(100vh - 30px); border: none; background-color: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
        .internal-panel { display: none; width: 100%; height: calc(100vh - 30px); background-color: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 25px; overflow-y: auto; scroll-behavior: smooth; position: relative; }
        .internal-panel h3 { color: #2c3e50; margin-bottom: 5px; font-size: 18px; }
        .internal-panel p.info-text { color: #7f8c8d; font-size: 13px; margin-bottom: 15px; border-bottom: 1px solid #ecf0f1; padding-bottom: 10px; }

        /* ANIMATIONS SCOPED */
        @keyframes fadeInSlideUp { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes popIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
        
        .animate-post { animation: fadeInSlideUp 0.4s ease-out; }
        .animate-reply { animation: fadeInSlideUp 0.3s ease-out; }
        .animate-pop { animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

        #toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 11000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
        .toast-msg { background: #000; color: white; padding: 12px 25px; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: fadeInSlideUp 0.3s ease-out; font-weight: bold; font-size: 14px; text-align: center; }

        /* EMOJI PICKER POPUP */
        #emoji-picker-container { position: absolute; display: none; z-index: 10010; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-radius: 8px; }
        .btn-emoji { background: none; border: none; cursor: pointer; font-size: 20px; outline: none; padding: 0 5px; transition: 0.2s; }
        .btn-emoji:hover { transform: scale(1.1); }

        /* TABEL PENCAPAIAN MARKETING */
        .marketing-table-container { background: white; border-radius: 6px; border: 1px solid #e2e8f0; overflow: hidden; margin-top: 10px; margin-bottom: 25px; }
        .marketing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .marketing-table th { padding: 8px 10px; background-color: #f8fafc; color: #475569; font-weight: bold; text-transform: uppercase; border-bottom: 2px solid #cbd5e1; }
        .marketing-table td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
        .text-center { text-align: center !important; } .text-left { text-align: left !important; } .text-right { text-align: right !important; }
        .rank-badge { display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; text-align: center; font-weight: bold; font-size: 11px; }
        .top-rank { background: #fffbf0; border: 1px solid #f1c40f; color: #d35400; }
        .normal-rank { background: #ecf0f1; color: #7f8c8d; border: 1px solid #bdc3c7; }

        /* STATISTIK VOUCHER CARDS */
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 10px; }
        .stat-card { background: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid #e2e8f0; text-align: center; }
        .stat-card .stat-title { font-size: 11px; color: #64748b; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
        .stat-card .stat-value { font-size: 22px; font-weight: bold; color: #2c3e50; }
        .stat-card.blue .stat-value { color: #3498db; } .stat-card.orange .stat-value { color: #e67e22; } .stat-card.green .stat-value { color: #27ae60; }

        /* --- SOSIAL MEDIA UI --- */
        .story-bar-container { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; scrollbar-width: thin; cursor: grab; user-select: none; }
        .story-bar-container:active { cursor: grabbing; }
        .story-item { display: flex; flex-direction: column; align-items: center; width: 70px; flex-shrink: 0; cursor: pointer; }
        .story-img-wrapper { position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: white; margin-bottom: 5px; }
        .story-img-wrapper.has-story { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
        .story-img-wrapper.viewed-story { background: #cbd5e1; }
        .story-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid white; background: white; pointer-events: none; }
        .add-story-icon { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; background-color: #3498db; color: white; border-radius: 50%; font-size: 16px; line-height: 18px; text-align: center; font-weight: bold; border: 2px solid white; pointer-events: auto; }
        .online-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; background-color: #2ecc71; border: 2px solid white; border-radius: 50%; }
        .story-name { font-size: 11px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; display: flex; justify-content: center; align-items: center;}

        .search-bar-sosmed { position: relative; margin-bottom: 20px; margin-top: 10px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
        .search-bar-sosmed input { width: 100%; padding: 12px 20px; border: 1px solid #cbd5e1; border-radius: 30px; outline: none; font-size: 14px; background: #f8fafc; transition: all 0.3s ease; }
        .search-bar-sosmed input:focus { border-color: #3498db; background: white; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); }
        #search-sosmed-results { position: absolute; top: calc(100% - 10px); left: 0; right: 0; background: white; border: 1px solid #e2e8f0; border-radius: 8px; max-height: 300px; overflow-y: auto; box-shadow: 0 10px 20px rgba(0,0,0,0.1); display: none; z-index: 50; }

        .create-post-box { background: white; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 20px; display: flex; gap: 15px; position: relative; flex-direction: column; }
        .create-post-body { display: flex; gap: 15px; }
        .create-post-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: 0.2s;}
        .create-post-avatar:hover { opacity: 0.8; }
        .create-post-content { flex: 1; position: relative; }
        .create-post-content textarea { width: 100%; border: none; outline: none; font-size: 15px; resize: none; min-height: 60px; font-family: inherit; margin-top: 5px; }
        .feed-preview-container { display: none; position: relative; width: fit-content; margin-top: 10px; margin-bottom: 10px; max-width: 100%; }
        .feed-preview-container img, .feed-preview-container video { max-height: 200px; border-radius: 8px; border: 1px solid #cbd5e1; object-fit: contain; max-width: 100%; display: block; }
        .btn-remove-preview { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-weight: bold; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .create-post-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: 5px; flex-wrap: wrap; gap: 10px; }
        .btn-post { padding: 8px 20px; background-color: #3498db; color: white; border: none; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 14px; transition: 0.2s; display: inline-flex; align-items: center; gap: 5px; justify-content: center;}
        .btn-post:hover { background-color: #2980b9; }
        .btn-post:disabled { background-color: #95a5a6; cursor: not-allowed; }
        
        .mentions-dropdown { position: absolute; bottom: 100%; left: 0; background: white; border: 1px solid #e2e8f0; border-radius: 8px; max-height: 200px; overflow-y: auto; width: 250px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); display: none; z-index: 50; }
        .mention-item { padding: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f1f5f9; }
        .mention-item:hover { background: #f8fafc; }
        .mention-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
        .mention-info strong { font-size: 13px; color: #0f1419; display: flex; align-items: center;}
        .mention-info small { display: block; font-size: 11px; color: #64748b; }

        .feed-container { display: flex; flex-direction: column; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; background: white; overflow: hidden; }
        
        .post-card { display: flex; gap: 12px; padding: 15px; border-bottom: 1px solid #f1f5f9; transition: background 0.5s; }
        .post-card:hover { background-color: #f8fafc; }
        .post-card.highlighted { background-color: #e0f2fe; }
        .post-card:last-child { border-bottom: none; }
        .post-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: 0.2s; background-color: #cbd5e1; }
        .post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
        .post-header-x { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
        .post-header-info { 
            display: flex; 
            align-items: center; 
            gap: 5px; 
            white-space: nowrap; 
            text-overflow: ellipsis; 
            min-height: 24px; /* Memastikan ruang cukup untuk lencana 24px */
            /* Pastikan tidak ada "overflow: hidden;" di sini agar lencana tidak tertebas */
        }
        
        .post-time { font-size: 12px; color: #536471; }
        .btn-delete-post { color: #f91880; background: none; border: none; font-size: 13px; cursor: pointer; font-weight: bold; }
        .post-text { width: 100%; font-size: 15px; color: #0f1419; margin-bottom: 10px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; font-family: inherit; }
        
        .action-bar { display: flex; gap: 20px; margin-top: 5px; margin-bottom: 10px; width: 100%; }
        .action-btn { display: flex; align-items: center; gap: 5px; color: #536471; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
        .action-btn:hover { color: #f91880; }
        .action-btn.liked { color: #f91880; font-weight: bold; }
        .action-btn.liked span { transform: scale(1.3); display: inline-block; transition: 0.2s;}
        .post-privacy-badge { font-size: 11px; background: #e2e8f0; color: #475569; padding: 2px 6px; border-radius: 4px; margin-left: 5px; }

        .post-name, .reply-name { 
            font-weight: bold; 
            color: #0f1419; 
            cursor: pointer; 
            display: inline-flex; 
            align-items: center; 
            flex-wrap: nowrap !important; /* KUNCI: Mencegah lencana terlempar ke baris bawah */
            white-space: nowrap; 
            gap: 4px;
        }
        
        .post-name { font-size: 15px; }
        .reply-name { font-size: 14px; }

        .verified-badge { 
            width: 16px !important; 
            height: 16px !important; 
            flex-shrink: 0 !important; 
            display: block !important;
        }

        .replies-container { width: 100%; margin-top: 10px; border-top: 1px dashed #e2e8f0; padding-top: 15px; }
        .reply-item { display: flex; gap: 10px; margin-bottom: 12px; }
        .reply-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; cursor: pointer; background-color: #cbd5e1; }
        .reply-body { background: #f1f5f9; padding: 10px; border-radius: 12px; font-size: 14px; width: fit-content; max-width: 100%; color: #334155; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; position: relative; }
        .reply-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 15px; }
        .reply-name:hover { text-decoration: underline; color: #3498db; }
        .btn-reply-nested { background: none; border: none; color: #3498db; cursor: pointer; font-size: 11px; font-weight: bold; padding: 0 4px; }
        .reply-input-wrapper { display: flex; gap: 10px; margin-top: 15px; position: relative; width: 100%; align-items: center; }
        .reply-input { flex: 1; padding: 10px 15px; border: 1px solid #cbd5e1; border-radius: 20px; outline: none; font-size: 13px; background: #f8fafc; }
        .reply-img-btn { background: none; border: none; cursor: pointer; font-size: 20px; outline: none; padding: 0 5px; color: #3498db; transition: 0.2s;}
        .reply-img-btn:hover { transform: scale(1.1); }
        .reply-img-preview { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid #cbd5e1; margin-left: 10px; display: none; }
        .reply-img-preview-container { position: relative; display: inline-block; }
        .reply-img-remove { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: white; width: 16px; height: 16px; font-size: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; display: none;}
        .comment-image { display: block; max-width: 200px; max-height: 200px; border-radius: 8px; margin-top: 8px; cursor: pointer; object-fit: cover; }
        
        .menu-dot-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: #94a3b8; padding: 0 5px; }
        .menu-dot-dropdown { position: absolute; right: -10px; top: 25px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 10; display: none; min-width: 120px; }
        .menu-dot-dropdown button { display: block; width: 100%; padding: 8px 15px; text-align: left; background: none; border: none; color: #334155; font-size: 13px; font-weight: bold; cursor: pointer; white-space: nowrap; }
        .menu-dot-dropdown button.danger { color: #e74c3c; }
        .menu-dot-dropdown button:hover { background: #f1f5f9; border-radius: 8px; }

        /* MODAL STORY */
        #story-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 10000; justify-content: center; align-items: center; flex-direction: column; }
        .story-modal-wrapper { position: relative; width: 100%; max-width: 400px; aspect-ratio: 9/16; background: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.6); display: flex; flex-direction: column; }
        
        #story-progress-container { position: absolute; top: 5px; left: 5px; right: 5px; display: flex; gap: 3px; z-index: 5; }
        .story-progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.4); border-radius: 2px; overflow: hidden; }
        .story-progress-fill { height: 100%; background: white; width: 0%; border-radius: 2px; }

        #story-modal-img, #story-modal-video { width: 100%; height: 100%; object-fit: cover; display: none; }
        #story-modal-header { position: absolute; top: 15px; left: 15px; display: flex; align-items: center; gap: 10px; z-index: 2; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
        #story-modal-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid white; object-fit: cover; background: white; cursor: pointer; transition: 0.2s; }
        #story-modal-avatar:hover { transform: scale(1.05); }
        #story-modal-name { font-size: 14px; margin: 0; font-weight: bold; display: flex; align-items: center; cursor: pointer; transition: 0.2s;}
        #story-modal-name:hover { text-decoration: underline; }
        #story-modal-time { font-size: 11px; margin: 0; opacity: 0.9; }
        #story-modal-close { position: absolute; top: 15px; right: 15px; color: white; font-size: 28px; cursor: pointer; font-weight: bold; z-index: 5; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
        #story-modal-options { position: absolute; top: 15px; right: 45px; color: white; font-size: 24px; cursor: pointer; font-weight: bold; z-index: 5; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.8); padding: 0 5px; }
        #story-options-menu { display: none; position: absolute; top: 45px; right: 45px; background: white; border-radius: 8px; padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 6; }
        
        #story-viewers-container { position: absolute; bottom: 65px; left: 15px; right: 15px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); padding: 12px; border-radius: 10px; max-height: 120px; overflow-y: auto; display: none; scrollbar-width: thin; border: 1px solid rgba(255,255,255,0.2); z-index: 6; }
        
        .story-action-btn { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.5); padding: 8px 12px; border-radius: 20px; color: white; cursor: pointer; z-index: 6; border: 1px solid rgba(255,255,255,0.3); font-size: 14px; transition: 0.2s; backdrop-filter: blur(4px); }
        .story-action-btn:hover { background: rgba(0,0,0,0.8); border-color: #f91880; }
        .story-action-btn.liked { color: #f91880; border-color: #f91880; }

        .viewer-item { display: flex; align-items: center; gap: 10px; color: white; font-size: 13px; margin-bottom: 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
        .viewer-avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); object-fit: cover; }

        /* PREVIEWS & MODALS */
        #story-preview-modal, #full-image-modal, #crop-modal, #edit-profile-modal, #modal-poll-track, #modal-music-badge, .general-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); z-index: 10001; justify-content: center; align-items: center; }
        .story-preview-box { background: white; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; }
        #story-preview-img, #story-preview-video { width: 100%; aspect-ratio: 9/16; object-fit: contain; border-radius: 8px; margin-bottom: 15px; background: #eee; border: 1px solid #ccc; }
        .btn-action-story { padding: 10px 20px; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; width: 45%; }
        .btn-action-story:disabled { background-color: #95a5a6 !important; cursor: not-allowed; }
        
        .modal-box { background: white; width: 90%; max-width: 450px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2); padding: 20px; display: flex; flex-direction: column; max-height: 85vh; }
        .modal-box h3 { margin-bottom: 15px; color: #2c3e50; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
        .modal-body { overflow-y: auto; flex: 1; }
        .close-modal-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #7f8c8d; }
        
        #full-image-modal img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
        .full-image-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: white; font-size: 36px; cursor: pointer; font-weight: bold; z-index: 10002; }

        /* FULL PROFILE PANEL */
        #full-profile-panel { padding: 0; overflow-y: auto; scroll-behavior: smooth; }
        .profile-header-bar { padding: 15px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 15px; position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); z-index: 10; }
        .profile-cover-container { position: relative; width: 100%; height: 200px; background: #cbd5e1; }
        .profile-cover-img { width: 100%; height: 100%; object-fit: cover; transition: 0.2s; }
        
        .edit-cover-icon { position: absolute; bottom: 15px; right: 15px; background: rgba(0,0,0,0.4); color: white; border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 20px; z-index: 5; transition: 0.2s; border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(2px); }
        .edit-cover-icon:hover { background: rgba(0,0,0,0.7); border-color: white; transform: scale(1.05); }

        .profile-avatar-img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid white; position: absolute; bottom: -60px; left: 20px; object-fit: cover; background: white; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .profile-avatar-img.editable:hover { opacity: 0.8; border-color: #f1c40f; }
        
        .profile-action-bar { display: flex; justify-content: flex-end; padding: 15px 20px 0; gap: 10px; }
        .profile-info-section { padding: 0 20px 20px; margin-top: 10px; }
        
        .profile-tabs { display: flex; border-bottom: 1px solid #e2e8f0; margin-top: 20px; }
        .profile-tab { flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: bold; color: #64748b; border-bottom: 3px solid transparent; transition: 0.2s; }
        .profile-tab:hover { background: #f8fafc; }
        .profile-tab.active { color: #0f1419; border-bottom-color: #3498db; }
        
        .fp-follow-stats { display: flex; gap: 15px; margin-top: 10px; font-size: 14px; color: #536471; }
        .fp-follow-stats span { cursor: pointer; transition: 0.2s; }
        .fp-follow-stats span:hover { text-decoration: underline; color: #0f1419; }
        .fp-follow-stats strong { color: #0f1419; }

        /* INBOX UI & CHAT */
        .inbox-tab-header { display: flex; border-bottom: 1px solid #e2e8f0; margin-bottom: 15px; }
        .inbox-tab-btn { flex: 1; text-align: center; padding: 12px; cursor: pointer; font-weight: bold; color: #64748b; border-bottom: 3px solid transparent; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 5px; }
        .inbox-tab-btn.active { color: #3498db; border-bottom-color: #3498db; }

        .notif-card { display: flex; gap: 15px; padding: 15px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: 0.2s; align-items: flex-start; }
        .notif-card:hover { background: #f8fafc; border-color: #cbd5e1; }
        .notif-card.unread { background: #f0f9ff; border-left: 4px solid #3498db; }
        .notif-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; flex-shrink: 0; }
        .notif-icon.like { background: #ffe4e6; color: #f91880; }
        .notif-icon.mention { background: #dbeafe; color: #3b82f6; }
        .notif-icon.system { background: #fef3c7; color: #d97706; }
        .notif-content { flex: 1; font-size: 14px; color: #334155; }
        .notif-content strong { display: inline-flex; align-items: center; }
        .notif-time { font-size: 11px; color: #94a3b8; display: block; margin-top: 4px; }

        /* CHAT LIST & ROOM */
        .chat-top-actions { display: flex; gap: 10px; margin-bottom: 15px; }
        .chat-list-wrapper { position: relative; overflow: hidden; border-bottom: 1px solid #e2e8f0; background: #ffe4e6; border-radius: 4px; margin-bottom: 2px;}
        .chat-list-action { position: absolute; right: 0; top: 0; bottom: 0; background: #e74c3c; color: white; width: 80px; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; font-size: 13px;}
        
        .chat-list-item.swipable { position: relative; z-index: 2; background: white; transition: transform 0.2s ease-out; border-bottom: none; display: flex; gap: 15px; padding: 15px; cursor: pointer; align-items: center; }
        .chat-list-item.swipable:hover { background: #f8fafc; }
        .chat-list-item.swipable.unread { background: #f0f9ff; }
        .chat-list-item.swipable.unread .chat-list-name { color: #0f1419; font-weight: 800; }
        .chat-list-item.swipable.unread .chat-list-preview { color: #0f1419; font-weight: bold; }
        
        .chat-avatar-wrapper { position: relative; width: 48px; height: 48px; flex-shrink: 0;}
        .chat-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid #cbd5e1; background: white;}
        .chat-online-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background-color: #2ecc71; border: 2px solid white; border-radius: 50%; }
        .chat-list-info { flex: 1; overflow: hidden; }
        .chat-list-name { font-weight: bold; font-size: 15px; color: #0f1419; margin-bottom: 3px; display: flex; align-items: center; }
        .chat-list-preview { font-size: 13px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .chat-unread-badge { background: #25D366; color: white; border-radius: 50%; padding: 2px 6px; font-size: 10px; font-weight: bold; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); display: none; }

        #chat-room-container { 
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background: #efeae2; 
            display: none; 
            flex-direction: column; 
            z-index: 100; 
            overflow: hidden; /* KUNCI: Mencegah seluruh kontainer ikut bergulir */
        }
        .chat-header { 
            background: #075e54; 
            color: white; 
            padding: 10px 15px; 
            display: flex; 
            align-items: center; 
            gap: 15px; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
            cursor: pointer; 
            transition: 0.2s;
            flex-shrink: 0; /* PENTING: Mencegah header ikut menyusut */
        }
        .chat-header:hover { background: #064c44; }
        .chat-back-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 0 10px 0 0; position: relative; z-index: 10;}
        .chat-header-info { display: flex; flex-direction: column; }
        .chat-header-name { font-weight: bold; font-size: 16px; display: flex; align-items: center; }
        .chat-header-status { font-size: 12px; opacity: 0.8; }
        .chat-messages { 
            flex: 1; 
            overflow-y: auto; /* KUNCI: Hanya area ini yang memiliki scrollbar */
            padding: 20px; 
            display: flex; 
            flex-direction: column; 
            gap: 10px; 
            background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); 
            background-size: cover; 
            overscroll-behavior: contain; /* PENTING: Mencegah efek "bocor" guliran ke panel belakang */
        }
        
        .chat-preview-container { 
            display: none; 
            align-items: center; 
            gap: 10px; 
            padding: 10px 15px; 
            background: #e2e8f0; 
            border-top: 1px solid #cbd5e1; 
            flex-shrink: 0; 
        }
        .chat-preview-container img, .chat-preview-container video { max-height: 80px; border-radius: 8px; border: 1px solid #cbd5e1; object-fit: contain;}
        
        .chat-message-wrapper { display: flex; gap: 5px; align-items: flex-start; max-width: 85%; width: fit-content; margin-bottom: 2px; }
        .chat-message-wrapper.me { align-self: flex-end; justify-content: flex-end; }
        .chat-message-wrapper.them { align-self: flex-start; }

        .chat-bubble { padding: 10px 15px; border-radius: 12px; font-size: 15px; line-height: 1.4; position: relative; width: fit-content; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; white-space: normal; }
        .chat-bubble.them { background: white; color: #303030; border-top-left-radius: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
        .chat-bubble.me { background: #dcf8c6; color: #303030; border-top-right-radius: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
        
        .chat-bubble img, .chat-bubble video { max-height: 200px; border-radius: 8px; border: 1px solid #cbd5e1; object-fit: contain; cursor: pointer; display: block; max-width: 100%; margin-bottom: 5px;}
        .chat-text-content { white-space: pre-wrap; font-family: inherit; }

        .chat-sender-name { font-size: 12px; font-weight: bold; color: #075e54; margin-bottom: 4px; display: flex; align-items: center;}
        .chat-time { font-size: 10px; color: rgba(0,0,0,0.4); text-align: right; display: flex; justify-content: flex-end; align-items: center; margin-top: 4px; gap: 3px; }
        .read-ticks { font-size: 12px; font-weight: bold; line-height: 1;}
        .read-ticks.read { color: #34b7f1; }
        .read-ticks.unread { color: #94a3b8; }
        
        .chat-footer { 
            background: #f0f0f0; 
            padding: 10px 15px; 
            display: flex; 
            align-items: center; 
            gap: 10px; 
            flex-shrink: 0; /* PENTING: Membekukan footer agar tidak ikut terdorong */
        }
        .chat-input { flex: 1; padding: 12px 15px; border-radius: 20px; border: none; outline: none; font-size: 15px; background: white; }
        .chat-send-btn { background: #075e54; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: none; cursor: pointer; flex-shrink: 0;}

        .tagged-user { color: #3498db !important; cursor: pointer; font-weight: bold; text-decoration: none; transition: 0.2s; }
        .tagged-user:hover { text-decoration: underline; color: #2980b9 !important; }

        .select-user-list { max-height: 300px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 10px; }
        .select-user-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: 0.2s; }
        .select-user-item:hover { background: #f8fafc; }

        /* TABLE SUPER ADMIN */
        .add-data-box { background-color: #f8fafc; padding: 15px; border-radius: 6px; border: 1px solid #cbd5e1; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .add-data-box input { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px; }
        .btn-add { padding: 9px 15px; background-color: #3498db; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
        .staff-table { width: 100%; border-collapse: collapse; margin-top: 5px; font-size: 13px;}
        .staff-table th, .staff-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
        .staff-table th { background-color: #34495e; color: white; font-weight: bold; }
        .checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: #f1f5f9; padding: 10px; border-radius: 6px; border: 1px solid #e2e8f0; }
        .btn-action-group { display: flex; gap: 5px; margin-top: 10px; }
        .btn-save { padding: 6px 10px; background-color: #2ecc71; color: white; border: none; border-radius: 4px; cursor: pointer; }
        .btn-delete { padding: 6px 10px; background-color: #e74c3c; color: white; border: none; border-radius: 4px; cursor: pointer; }

        /* --- UNIFIED MEDIA & SOCIAL EMBED --- */
        .post-image { 
            max-width: 100%; /* Lebar gambar tidak akan melebihi layar */
            max-height: 400px; /* Batas tinggi agar tidak menghabiskan layar vertikal */
            height: auto; /* Membiarkan rasio gambar (1:1, 16:9, dll) tetap natural */
            border-radius: 8px; 
            border: 1px solid #cbd5e1; 
            object-fit: contain; /* KUNCI: Mencegah gambar terpotong/crop */
            margin-bottom: 8px; 
            cursor: pointer; 
            display: block; 
            margin-left: 0; 
            margin-right: auto;
            background-color: transparent; 
        }
        
        .post-video-player, .social-thumb-box { aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid #cbd5e1; object-fit: contain; margin-bottom: 8px; cursor: pointer; display: block; width: 100%; max-width: 480px; background-color: #000; }
        
        .social-embed-card { width: 100%; max-width: 480px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #000; position: relative; display: block; text-decoration: none;}
        .social-embed-thumb { width: 100%; max-height: 250px; object-fit: cover; display: block; cursor: pointer; }
        .social-embed-overlay { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; display: flex; align-items: center; gap: 5px; }
        .youtube-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 40px; background: rgba(255,0,0,0.85); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; cursor: pointer; transition: 0.2s; }
        .youtube-play-btn:hover { background: red; transform: translate(-50%, -50%) scale(1.1); }
        .youtube-iframe-player { width: 100%; height: 250px; border: none; border-radius: 8px; display: block; }

        /* --- MUSIC BADGE --- */
        .music-badge-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #111827 0%, #1f2937 100%); border: 1px solid #374151; padding: 10px 14px; border-radius: 12px; width: 100%; max-width: 480px; margin-bottom: 10px; margin-left: 0; margin-right: auto; color: white; position: relative; overflow: hidden; }
        .music-badge-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6); }
        .music-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); }
        .music-info { flex: 1; overflow: hidden; }
        .music-label { font-size: 11px; color: #10b981; font-weight: bold; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
        .music-title { font-size: 13px; font-weight: bold; color: #f9fafb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
        .music-artist { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .music-play-link { background: #3b82f6; color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
        @keyframes pulseEqualizer { 0%, 100% { height: 4px; } 50% { height: 16px; } }
        .equalizer-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
        .equalizer-bar { width: 2px; background: #10b981; border-radius: 1px; animation: pulseEqualizer 1s infinite ease-in-out; }
        .equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
        .equalizer-bar:nth-child(3) { animation-delay: 0.4s; }

        /* --- POLL-TRACK --- */
        .poll-container { width: 100%; max-width: 480px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; margin-bottom: 10px; margin-left: 0; margin-right: auto; }
        .poll-question { font-weight: bold; font-size: 14px; color: #0f1419; margin-bottom: 10px; }
        .poll-option-btn { width: 100%; text-align: left; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; margin-bottom: 8px; cursor: pointer; font-size: 13px; font-weight: bold; color: #1e293b; transition: 0.2s; position: relative; overflow: hidden; }
        .poll-option-btn:hover { border-color: #3498db; background: #f0f9ff; }
        .poll-bar-fill { position: absolute; top: 0; left: 0; bottom: 0; background: rgba(52, 152, 219, 0.2); z-index: 1; transition: width 0.4s ease; }
        .poll-option-content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
        .poll-footer { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-top: 5px; }

        /* --- HASHTAG & TOOLS --- */
        .hashtag-link { color: #1d9bf0; font-weight: bold; text-decoration: none; cursor: pointer; }
        .hashtag-link:hover { text-decoration: underline; color: #1a8cd8; }
        .action-tool-btn { background: none; border: 1px solid #e2e8f0; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; color: #475569; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; }
        .action-tool-btn:hover { background: #f1f5f9; color: #0f1419; border-color: #cbd5e1; }

        /* --- LOKASI / CHECK-IN --- */
        .location-header-text { font-size: 14px; color: #64748b; margin-left: 4px; font-weight: normal; }
        .location-header-text strong { color: #0f1419; }
        .location-embed-card { display: flex; align-items: center; gap: 10px; background: #f0f9ff; border: 1px solid #bae6fd; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; width: 100%; max-width: 480px; margin-left: 0; margin-right: auto;}
        .location-icon { font-size: 20px; }
        .location-text { font-size: 13px; color: #0369a1; font-weight: bold; }
        /* --- NFT TON STYLES --- */
        /* 1. NFT Melayang di Cover Profil */
        .nft-cover-float { position: absolute; bottom: 15px; left: 20px; width: 60px; height: 60px; border-radius: 12px; cursor: pointer; z-index: 10; transition: transform 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.3); background: transparent; overflow: hidden; }
        .nft-cover-float:hover { transform: scale(1.1); border: 2px solid #3498db; }

        /* 2. NFT Menempel di Pinggir Avatar */
        .nft-avatar-companion { position: absolute; bottom: -5px; right: -5px; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; z-index: 15; transition: transform 0.3s; border: 2px solid white; background: transparent; overflow: hidden; }
        .nft-avatar-companion:hover { transform: scale(1.15); }

        /* 3. NFT Lencana di Header */
        .nft-header-badge { 
            width: 22px !important; /* Ukuran ideal lencana Telegram */
            min-width: 22px !important; 
            height: 22px !important; 
            min-height: 22px !important; 
            border-radius: 4px; /* Sudut melengkung */
            cursor: pointer; 
            background: transparent; 
            overflow: hidden !important; /* KUNCI: Memotong sudut yang tajam */
            display: flex !important; 
            align-items: center;
            justify-content: center;
            flex-shrink: 0 !important; /* Anti gepeng */
            margin: 0 !important; 
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }

        /* 4. Isi Animasi (Lottie/Video) - Mekar di Dalam Kotak */
        .nft-header-badge lottie-player, 
        .nft-header-badge video, 
        .nft-header-badge img {
            width: 100% !important;
            height: 100% !important;
            display: block !important;
            object-fit: cover !important;
            transform: scale(1.25); /* KUNCI: Zoom sedikit agar Lottie memenuhi kotak 22px tanpa celah kosong */
            pointer-events: none;
        }
        
        .nft-header-badge:hover { opacity: 0.8; }

        /* 4. Kontainer Avatar Relatif untuk menampung companion */
        .profile-avatar-wrapper { position: absolute; bottom: -60px; left: 20px; width: 120px; height: 120px; z-index: 10; border-radius: 50%; pointer-events: none; }
        .profile-avatar-wrapper .profile-avatar-img { position: relative; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: auto; }
        /* 1. Memaksa Modal dan Dropdown TON Connect tampil di lapisan paling atas */
        #tc-widget-root,
        #tc-widget-root > div,
        tc-root {
            position: relative;
            z-index: 999999 !important;
        }
        
        tc-root[data-tc-dropdown-container="true"] {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
            background-color: #1a252f !important; /* Warna gelap senada dengan tema sidebar */
            border-radius: 12px !important;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
        }

        /* --- SKELETON LOADING & CLS PREVENTION --- */
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .skeleton-box {
            background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            color: transparent !important;
        }

        .media-placeholder {
            min-height: 250px; /* Memesan ruang 250px di awal agar teks di bawahnya tidak terinjak */
            width: 100%;
        }

/* Utilitas Bootstrap Tambahan */
.hidden { display: none !important; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #6c757d; font-size: 13px; }
.form-control { width: 100%; height: 34px; padding: 6px 12px; font-size: 13px; border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); transition: border-color ease-in-out .15s; }
.form-control:focus { border-color: #3498db; outline: 0; }
hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; }

/* Styling Tabel Menyerupai Panel Pembayaran */
.table { border-collapse: collapse; width: 100%; color: #333; }
.table>thead>tr>th, .table>tbody>tr>td { padding: 10px; vertical-align: middle; border-top: 1px solid #ddd; }
.table>thead>tr>th { border-bottom: 2px solid #ddd; color: #333; }
.table-striped>tbody>tr:nth-of-type(odd) { background-color: #f9f9f9; }
.table-hover>tbody>tr:hover { background-color: #f5f5f5; }

/* Menu Dropdown Aksi (Identik dengan Pembayaran) */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 100px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 50; border-radius: 4px; right: 0; border: 1px solid #ddd; }
.dropdown-content.show-dropdown { display: block; }
.dropdown-content button { color: #333; padding: 8px 12px; text-decoration: none; display: block; text-align: left; background: transparent; border: none; width: 100%; font-size: 12px; font-weight: bold; cursor: pointer; }
.dropdown-content button:hover { background-color: #f1f5f9; }
.dropdown-content button.danger { color: #e74c3c; }

/* Badge Menu */
.badge-menu { display: inline-block; background-color: #3498db; color: white; padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: bold; margin: 2px; }
.box-input-mock { background-color: #fcfcfc; border: 1px solid #ddd; border-radius: 4px; padding: 4px 8px; font-size: 12px; color: #555; display: inline-block; width: 100%; }