/* ============================================================
   assets/chat-grup.css
   Chat Grup Perkasa Hosting — WhatsApp-style layout & bubble,
   konsisten dengan design tokens di includes/style.php (var(--ink),
   --lime, --surface, --shadow, dst). Dipakai di /chat-grup & /admin/chat-grup.
   ============================================================ */

.gc-shell{
    display:grid; grid-template-columns:280px 1fr; gap:14px;
    height:calc(100vh - 150px); min-height:520px; max-width:1180px; margin:0 auto;
}
.gc-shell.gc-shell-3col{ grid-template-columns:270px 1fr 260px; }
.gc-panel{
    background:var(--glass-bg); border:1px solid var(--glass-border); border-radius:var(--radius);
    box-shadow:var(--shadow); backdrop-filter:blur(var(--glass-blur)) saturate(150%); -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(150%);
    display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden;
}

/* ============ SIDEBAR (list percakapan admin) ============ */
.gc-side-top{ padding:14px; border-bottom:1px solid var(--glass-border); }
.gc-side-brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.gc-side-brand .gc-avatar{ width:38px; height:38px; }
.gc-side-brand-name{ font-weight:800; font-size:13.5px; line-height:1.25; }
.gc-side-brand-status{ font-size:10.5px; color:var(--ink-soft); display:flex; align-items:center; gap:5px; }
.gc-search{ position:relative; }
.gc-search input{
    width:100%; padding:9px 12px 9px 34px; border-radius:var(--radius-sm); border:none;
    background:var(--surface); box-shadow:var(--shadow-inset-sm); font-size:12px; color:var(--ink);
}
.gc-search svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); width:14px; height:14px; color:var(--ink-soft); }
.gc-filter-tabs{ display:flex; gap:5px; padding:10px 14px; overflow-x:auto; border-bottom:1px solid var(--glass-border); flex-shrink:0; }
.gc-filter-tab{
    flex-shrink:0; padding:6px 11px; border-radius:20px; font-size:10.5px; font-weight:700; white-space:nowrap;
    background:var(--surface); box-shadow:var(--shadow-sm); color:var(--ink-soft); cursor:pointer; border:none; transition:.2s var(--ease);
}
.gc-filter-tab.active{ background:var(--ink); color:#fff; box-shadow:none; }
.gc-conv-list{ flex:1; overflow-y:auto; padding:6px; }
.gc-conv-item{
    display:flex; gap:10px; align-items:flex-start; padding:10px; border-radius:12px; cursor:pointer;
    transition:background .2s var(--ease); margin-bottom:2px; position:relative;
}
.gc-conv-item:hover{ background:var(--surface); }
.gc-conv-item.active{ background:var(--surface); box-shadow:var(--shadow-inset-sm); }
.gc-conv-item .gc-avatar{ width:38px; height:38px; flex-shrink:0; }
.gc-conv-item-body{ min-width:0; flex:1; }
.gc-conv-item-top{ display:flex; justify-content:space-between; align-items:baseline; gap:6px; }
.gc-conv-item-name{ font-size:12.5px; font-weight:800; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc-conv-item-time{ font-size:9.5px; color:var(--ink-soft); flex-shrink:0; }
.gc-conv-item-preview{ font-size:11px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:1px; }
.gc-conv-item.unread .gc-conv-item-preview{ color:var(--ink); font-weight:700; }
.gc-conv-badge{
    background:var(--danger); color:#fff; font-size:9.5px; font-weight:800; border-radius:20px;
    min-width:16px; height:16px; padding:0 4px; display:flex; align-items:center; justify-content:center; margin-left:auto;
}
.gc-conv-item-tags{ display:flex; gap:4px; margin-top:4px; }
.gc-conv-status-pill{ font-size:8.5px; font-weight:800; text-transform:uppercase; padding:1px 6px; border-radius:8px; letter-spacing:.03em; }
.gc-conv-status-open{ background:var(--lime-soft); color:var(--lime); }
.gc-conv-status-handled{ background:#FEF3C7; color:#B45309; }
.gc-conv-status-closed{ background:var(--grey); color:var(--ink-soft); }
.gc-empty-list{ text-align:center; padding:40px 16px; color:var(--ink-soft); font-size:12px; }

/* ============ MAIN CHAT AREA ============ */
.gc-chat-col{ display:flex; flex-direction:column; min-width:0; }
.gc-chat-header{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:12px 16px; border-bottom:1px solid var(--glass-border); flex-shrink:0;
}
.gc-chat-header-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.gc-chat-header-left .gc-back{
    display:none; align-items:center; justify-content:center; width:32px; height:32px; margin-left:-6px;
    border-radius:50%; color:var(--ink); flex-shrink:0; transition:background .2s var(--ease);
}
.gc-chat-header-left .gc-back svg{ width:20px; height:20px; }
.gc-chat-header-left .gc-back:hover{ background:var(--surface); }
.gc-chat-header-name{ font-size:13.5px; font-weight:800; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc-chat-header-status{ font-size:10.5px; color:var(--ink-soft); display:flex; align-items:center; gap:5px; }
.gc-avatar{
    width:40px; height:40px; border-radius:50%; flex-shrink:0; overflow:hidden;
    box-shadow:var(--shadow-sm); background:var(--surface); display:flex; align-items:center; justify-content:center;
}
.gc-avatar img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }
.gc-avatar-fallback{ color:var(--lime); }
.gc-avatar-fallback svg{ width:18px; height:18px; }
/* Avatar kecil di setiap bubble pesan grup (bukan header) — mirip WhatsApp */
.gc-msg .gc-avatar{ width:26px; height:26px; font-size:11px; align-self:flex-end; margin-bottom:2px; }
.gc-status-dot{ width:8px; height:8px; border-radius:50%; background:#9CA3AF; display:inline-block; flex-shrink:0; }
.gc-status-dot.online{ background:#22C55E; box-shadow:0 0 0 3px rgba(34,197,94,.18); }
.gc-status-dot.offline{ background:#9CA3AF; }
.gc-status-dot.maintenance{ background:#F59E0B; }
.gc-chat-header-actions{ display:flex; gap:6px; }

.gc-messages{
    flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:2px; position:relative; min-width:0;
    background-image:radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:22px 22px;
}

/* ---- Animasi pesan baru masuk (fade + slide kecil), cepat & halus ---- */
.gc-msg.gc-msg-animate{ animation:gc-msg-in .22s var(--ease); }
@keyframes gc-msg-in{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.gc-date-sep{ text-align:center; margin:14px 0 10px; }
.gc-date-sep span{
    background:var(--surface); box-shadow:var(--shadow-sm); padding:4px 12px; border-radius:20px;
    font-size:10px; font-weight:700; color:var(--ink-soft);
}
.gc-system-msg{
    text-align:center; font-size:11px; color:var(--ink-soft); background:var(--surface); box-shadow:var(--shadow-inset-sm);
    padding:8px 14px; border-radius:12px; margin:8px auto; max-width:80%;
}
.gc-system-time{ display:block; font-size:9px; margin-top:2px; opacity:.7; }

.gc-msg{ display:flex; gap:8px; margin:5px 0; max-width:78%; align-items:flex-end; }
.gc-msg-mine{ margin-left:auto; flex-direction:row-reverse; }
.gc-msg-theirs{ margin-right:auto; }
.gc-bubble-wrap{ display:flex; flex-direction:column; min-width:0; }
.gc-msg-mine .gc-bubble-wrap{ align-items:flex-end; }
.gc-sender{ font-size:10px; font-weight:800; color:var(--lime); margin-bottom:2px; padding-left:2px; }
.gc-bubble{
    padding:9px 13px; border-radius:16px; font-size:13px; line-height:1.5; word-break:break-word; box-shadow:var(--shadow-sm);
}
.gc-msg-mine .gc-bubble{ background:var(--lime); color:#fff; border-bottom-right-radius:4px; }
.gc-msg-theirs .gc-bubble{ background:var(--surface); color:var(--ink); border-bottom-left-radius:4px; }
.gc-bubble-deleted{ font-style:italic; color:var(--ink-soft); display:flex; align-items:center; gap:6px; background:var(--surface); }
.gc-bubble-deleted svg{ width:13px; height:13px; }
.gc-text{ white-space:pre-wrap; }
.gc-meta{ display:flex; align-items:center; gap:3px; font-size:9.5px; color:var(--ink-soft); margin-top:3px; padding:0 3px; }
.gc-tick{ width:12px; height:12px; }
.gc-tick-sent{ opacity:.6; }
.gc-tick-read{ color:var(--lime); }

/* ---- Status centang pesan (✓ terkirim / ✓✓ dibaca), mirip WhatsApp ---- */
.gc-ticks{ display:inline-flex; align-items:center; margin-left:1px; color:rgba(255,255,255,.7); }
.gc-msg-theirs .gc-ticks{ display:none; }
.gc-ticks svg{ width:12px; height:12px; stroke-width:3; }
.gc-ticks svg:last-child{ margin-left:-7px; }
.gc-ticks.gc-ticks-read{ color:#53BDEB; }

.gc-attach-img{ display:block; margin-bottom:4px; border-radius:12px; overflow:hidden; max-width:220px; }
.gc-attach-img img{ display:block; width:100%; height:auto; max-height:260px; object-fit:cover; }
.gc-attach-file{
    display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.5); border-radius:12px; padding:8px 10px;
    margin-bottom:4px; text-decoration:none; color:inherit; min-width:180px;
}
.gc-msg-mine .gc-attach-file{ background:rgba(255,255,255,.22); }
.gc-attach-file svg:first-child{ width:20px; height:20px; flex-shrink:0; }
.gc-attach-file-info{ display:flex; flex-direction:column; min-width:0; flex:1; }
.gc-attach-file-info b{ font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc-attach-file-info small{ font-size:9.5px; opacity:.75; }
.gc-attach-file svg:last-child{ width:14px; height:14px; flex-shrink:0; opacity:.7; }

.gc-typing-indicator{ display:flex; align-items:center; gap:6px; padding:6px 14px; font-size:11px; color:var(--ink-soft); flex-shrink:0; }
.gc-typing-dots{ display:inline-flex; gap:3px; }
.gc-typing-dots span{ width:5px; height:5px; border-radius:50%; background:var(--ink-soft); animation:gc-bounce 1.2s infinite ease-in-out; }
.gc-typing-dots span:nth-child(2){ animation-delay:.15s; }
.gc-typing-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes gc-bounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-3px); opacity:1; } }

.gc-jump-latest{
    position:absolute; bottom:14px; right:14px; background:var(--ink); color:#fff; border:none; border-radius:20px;
    padding:7px 13px; font-size:11px; font-weight:700; display:flex; align-items:center; gap:5px; box-shadow:var(--shadow);
    cursor:pointer; opacity:0; pointer-events:none; transform:translateY(6px); transition:.2s var(--ease);
}
.gc-jump-latest.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.gc-jump-latest svg{ width:13px; height:13px; }

.gc-empty-state{ margin:auto; text-align:center; color:var(--ink-soft); padding:30px; }
.gc-empty-state svg{ width:44px; height:44px; margin-bottom:10px; opacity:.5; }
.gc-empty-state p{ font-size:12.5px; max-width:260px; margin:0 auto; }

/* ============ COMPOSER ============ */
.gc-composer{ border-top:1px solid var(--glass-border); padding:10px 14px; flex-shrink:0; position:relative; }
.gc-attach-preview-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.gc-attach-preview{
    position:relative; width:64px; height:64px; border-radius:10px; overflow:hidden; box-shadow:var(--shadow-sm);
    background:var(--surface); display:flex; align-items:center; justify-content:center;
}
.gc-attach-preview img{ width:100%; height:100%; object-fit:cover; }
.gc-attach-preview .gc-attach-preview-file{ display:flex; flex-direction:column; align-items:center; gap:2px; font-size:8px; color:var(--ink-soft); padding:4px; text-align:center; }
.gc-attach-preview .gc-attach-preview-file svg{ width:18px; height:18px; }
.gc-attach-remove{
    position:absolute; top:2px; right:2px; width:16px; height:16px; border-radius:50%; background:rgba(0,0,0,.55);
    color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
}
.gc-attach-remove svg{ width:10px; height:10px; }
.gc-composer-row{ display:flex; align-items:flex-end; gap:6px; }
.gc-composer-btn{
    width:38px; height:38px; border-radius:50%; border:none; background:var(--surface); box-shadow:var(--shadow-sm);
    display:flex; align-items:center; justify-content:center; color:var(--ink-soft); cursor:pointer; flex-shrink:0; transition:.2s var(--ease);
}
.gc-composer-btn:hover{ color:var(--lime); box-shadow:var(--shadow); }
.gc-composer-btn svg{ width:17px; height:17px; }
.gc-composer-input-wrap{ flex:1; background:var(--surface); box-shadow:var(--shadow-inset-sm); border-radius:20px; padding:4px 6px 4px 16px; display:flex; align-items:center; }
.gc-composer-input{
    flex:1; border:none; background:transparent; resize:none; font-size:13px; font-family:var(--font-body); color:var(--ink);
    max-height:110px; padding:8px 0; line-height:1.4;
}
.gc-composer-input:focus{ outline:none; }
.gc-send-btn{
    width:38px; height:38px; border-radius:50%; border:none; background:var(--lime); color:#fff; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--shadow-sm); transition:.2s var(--ease);
}
.gc-send-btn svg{ width:16px; height:16px; margin-left:-1px; }
.gc-send-btn:disabled{ opacity:.4; cursor:not-allowed; }
.gc-send-btn:not(:disabled):hover{ transform:scale(1.06); }
.gc-composer-hint{ font-size:9.5px; color:var(--ink-soft); text-align:center; margin-top:6px; }
.gc-dropzone-active{ outline:2px dashed var(--lime); outline-offset:-8px; background:var(--lime-soft); }
.gc-msg-retry{ font-size:9.5px; color:var(--danger); font-weight:700; cursor:pointer; margin-top:2px; text-decoration:underline; }
.gc-msg-sending{ opacity:.55; }

/* ============ EMOJI PICKER ============ */
.gc-emoji-pop{
    position:absolute; bottom:56px; left:0; background:var(--surface); border-radius:14px; box-shadow:var(--shadow-lg);
    padding:10px; display:none; grid-template-columns:repeat(7, 1fr); gap:4px; z-index:40; width:270px;
}
.gc-emoji-pop.open{ display:grid; }
.gc-emoji-pop button{ border:none; background:transparent; font-size:19px; padding:5px; border-radius:8px; cursor:pointer; line-height:1; }
.gc-emoji-pop button:hover{ background:var(--grey); }

/* ============ INFO PANEL (admin, kanan) ============ */
.gc-info-panel{ padding:16px; overflow-y:auto; }
.gc-info-panel h4{ font-size:11px; text-transform:uppercase; color:var(--ink-soft); letter-spacing:.04em; margin:14px 0 8px; }
.gc-info-panel h4:first-child{ margin-top:0; }
.gc-info-row{ display:flex; justify-content:space-between; gap:8px; font-size:12px; padding:6px 0; border-bottom:1px solid var(--grey); }
.gc-info-row span:first-child{ color:var(--ink-soft); }
.gc-info-row span:last-child{ font-weight:700; text-align:right; }
.gc-info-profile{ text-align:center; padding-bottom:6px; }
.gc-info-profile .gc-avatar{ width:64px; height:64px; margin:0 auto 8px; }
.gc-info-profile-name{ font-weight:800; font-size:14px; }
.gc-templates-list{ display:flex; flex-direction:column; gap:6px; }
.gc-template-item{
    text-align:left; background:var(--surface); border:none; box-shadow:var(--shadow-sm); border-radius:10px; padding:8px 10px;
    font-size:11px; cursor:pointer; color:var(--ink); transition:.2s var(--ease);
}
.gc-template-item:hover{ box-shadow:var(--shadow); color:var(--lime); }

/* ============ Loading skeleton ============ */
.gc-skeleton{ display:flex; flex-direction:column; gap:12px; padding:16px; }
.gc-skel-row{ display:flex; gap:8px; align-items:flex-end; }
.gc-skel-row.right{ flex-direction:row-reverse; }
.gc-skel-bubble{ height:34px; border-radius:16px; background:linear-gradient(90deg, var(--grey) 25%, var(--grey-dark) 50%, var(--grey) 75%); background-size:200% 100%; animation:gc-shimmer 1.4s infinite; }
@keyframes gc-shimmer{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ============ Lightbox ============ */
.gc-lightbox-overlay{
    position:fixed; inset:0; background:rgba(10,10,10,.88); z-index:500; display:none;
    align-items:center; justify-content:center; padding:24px;
}
.gc-lightbox-overlay.open{ display:flex; }
.gc-lightbox-overlay img{ max-width:92vw; max-height:88vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); cursor:zoom-in; transition:transform .25s var(--ease); }
.gc-lightbox-overlay img.zoomed{ cursor:zoom-out; transform:scale(1.7); }
.gc-lightbox-close, .gc-lightbox-download{
    position:absolute; top:18px; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.12); color:#fff;
    display:flex; align-items:center; justify-content:center; border:none; cursor:pointer;
}
.gc-lightbox-close{ right:18px; }
.gc-lightbox-download{ right:66px; text-decoration:none; }
.gc-lightbox-close svg, .gc-lightbox-download svg{ width:17px; height:17px; }

/* ============ Landing (belum login) ============ */
.gc-landing{ max-width:760px; margin:0 auto; text-align:center; padding:30px 16px 10px; }
.gc-landing .gc-avatar{ width:76px; height:76px; margin:0 auto 14px; }
.gc-landing-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin:26px 0; text-align:left; }
.gc-landing-card{ background:var(--glass-bg); border:1px solid var(--glass-border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); }
.gc-landing-card svg{ width:22px; height:22px; color:var(--lime); margin-bottom:8px; }
.gc-landing-card h3{ font-size:13px; margin-bottom:4px; }
.gc-landing-card p{ font-size:11.5px; color:var(--ink-soft); line-height:1.5; }

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
    /* ---- Mode full-layar ala WhatsApp: hilangkan navbar situs & bungkus
       container/card, chat jadi satu permukaan penuh (bukan "kartu mengambang") ---- */
    body:has(#gcShell) .navbar{ display:none; }
    body:has(#gcShell) footer{ display:none; }
    .gc-page-section{ padding-top:0 !important; }
    .gc-page-container{ padding:0; max-width:100%; }
    .gc-shell{ grid-template-columns:1fr; height:100dvh; border-radius:0; max-width:100%; overflow-x:hidden; }
    .gc-shell.gc-shell-3col{ grid-template-columns:1fr; }
    .gc-panel.gc-chat-col{
        border:none; border-radius:0; box-shadow:none;
        backdrop-filter:none; -webkit-backdrop-filter:none;
        background:var(--surface);
    }
    .gc-chat-header{ background:var(--surface); }
    .gc-composer{ background:var(--surface); }
    .gc-panel.gc-side-panel{ display:flex; }
    .gc-panel.gc-chat-col{ display:flex; }
    .gc-shell:has(.gc-side-panel) .gc-panel.gc-side-panel{ display:flex; }
    .gc-shell:has(.gc-side-panel) .gc-panel.gc-chat-col{ display:none; }
    .gc-shell.gc-conv-open:has(.gc-side-panel) .gc-panel.gc-side-panel{ display:none; }
    .gc-shell.gc-conv-open:has(.gc-side-panel) .gc-panel.gc-chat-col{ display:flex; }
    .gc-info-panel-col{ display:none !important; }
    .gc-chat-header-left .gc-back{ display:flex; }
    .gc-landing-grid{ grid-template-columns:1fr; }
    .gc-msg{ max-width:88%; }
    /* Cegah iOS Safari auto-zoom saat fokus ke input (terjadi kalau font-size < 16px) */
    .gc-composer-input, .gc-search input{ font-size:16px; }
    .gc-emoji-pop{ width:min(270px, calc(100vw - 28px)); }
}
@media (max-width:900px) and (max-height:640px){
    .gc-messages{ padding:10px; }
}
.gc-shell, .gc-panel{ scroll-behavior:smooth; }
.gc-messages::-webkit-scrollbar, .gc-conv-list::-webkit-scrollbar{ width:6px; }
.gc-messages::-webkit-scrollbar-thumb, .gc-conv-list::-webkit-scrollbar-thumb{ background:var(--grey-dark); border-radius:10px; }

/* ============================================================
   TAMBAHAN KHUSUS CHAT GRUP (badge admin verified, reply,
   forward, video, context menu, banner moderasi, dsb)
   ============================================================ */

.gc-avatar-admin{ background:var(--lime); color:#fff; }
.gc-sender-admin{ color:var(--lime); display:inline-flex; align-items:center; gap:3px; }
.gc-verified{ display:inline-flex; color:#1D9BF0; animation:gc-badge-pop .5s var(--ease); }
.gc-verified svg{ width:13px; height:13px; }
@keyframes gc-badge-pop{ 0%{ transform:scale(0); opacity:0; } 60%{ transform:scale(1.25); opacity:1; } 100%{ transform:scale(1); } }
@media (prefers-color-scheme: dark){ .gc-verified{ color:#4DB8FF; } }

.gc-edited{ font-style:italic; opacity:.75; margin:0 2px; }

.gc-msg-menu-btn{
    border:none; background:transparent; cursor:pointer; opacity:.5; padding:0 2px; display:inline-flex;
    align-items:center; transition:.15s var(--ease);
}
.gc-msg-menu-btn svg{ width:13px; height:13px; }
.gc-msg-menu-btn:hover{ opacity:1; }

.gc-forwarded{ display:flex; align-items:center; gap:5px; font-size:10px; font-style:italic; color:var(--ink-soft); margin-bottom:3px; }
.gc-msg-mine .gc-forwarded{ color:rgba(255,255,255,.75); }
.gc-forwarded svg{ width:12px; height:12px; }

.gc-reply-preview{
    display:flex; flex-direction:column; gap:1px; border-left:3px solid var(--lime); background:rgba(0,0,0,.05);
    border-radius:8px; padding:5px 8px; margin-bottom:5px; cursor:pointer; font-size:11px;
}
.gc-msg-mine .gc-reply-preview{ background:rgba(255,255,255,.18); border-left-color:#fff; }
.gc-reply-preview b{ font-size:10.5px; color:var(--lime); }
.gc-msg-mine .gc-reply-preview b{ color:#fff; }
.gc-reply-preview span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; opacity:.85; }
.gc-msg-flash{ animation:gc-flash 1.4s var(--ease); }
@keyframes gc-flash{ 0%,100%{ background:transparent; } 30%{ background:var(--lime-soft); } }

.gc-attach-video{ display:block; width:100%; max-width:260px; border-radius:12px; margin-bottom:4px; background:#000; }

/* ---- Composer: bar reply/edit aktif ---- */
.gc-composer-context{
    display:flex; align-items:center; gap:8px; background:var(--surface); box-shadow:var(--shadow-inset-sm);
    border-radius:10px; padding:6px 10px; margin-bottom:8px; font-size:11.5px;
}
.gc-composer-context-body{ flex:1; min-width:0; border-left:3px solid var(--lime); padding-left:8px; }
.gc-composer-context-body b{ display:block; color:var(--lime); font-size:10.5px; }
.gc-composer-context-body span{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-soft); }
.gc-composer-context-close{ border:none; background:transparent; cursor:pointer; color:var(--ink-soft); flex-shrink:0; }
.gc-composer-context-close svg{ width:15px; height:15px; }

/* ---- Context menu popover pada bubble ---- */
.gc-ctx-menu{
    position:fixed; z-index:60; background:var(--surface); box-shadow:var(--shadow-lg); border-radius:12px;
    padding:6px; display:none; flex-direction:column; min-width:170px;
}
.gc-ctx-menu.open{ display:flex; }
.gc-ctx-menu button{
    display:flex; align-items:center; gap:9px; border:none; background:transparent; text-align:left; padding:8px 10px;
    border-radius:8px; font-size:12.5px; color:var(--ink); cursor:pointer;
}
.gc-ctx-menu button:hover{ background:var(--grey); }
.gc-ctx-menu button.gc-ctx-danger{ color:var(--danger); }
.gc-ctx-menu svg{ width:15px; height:15px; }

/* ---- Banner Bot Perlindungan (notice sementara di atas composer) ---- */
.gc-bot-banner{
    display:flex; align-items:flex-start; gap:8px; background:#FEF2F2; color:#B91C1C; border:1px solid #FECACA;
    border-radius:12px; padding:9px 12px; margin-bottom:8px; font-size:11.5px; line-height:1.5;
}
.gc-bot-banner svg{ width:16px; height:16px; flex-shrink:0; margin-top:1px; }

/* ---- Header info: jumlah member online, tombol search & info grup ---- */
.gc-online-label{ display:flex; align-items:center; gap:5px; }
.gc-online-dot{ width:7px; height:7px; border-radius:50%; background:#22C55E; flex-shrink:0; }

.gc-search-bar{
    display:none; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--glass-border);
}
.gc-search-bar.open{ display:flex; }
.gc-search-bar input{ flex:1; border:none; background:var(--surface); box-shadow:var(--shadow-inset-sm); border-radius:20px; padding:8px 14px; font-size:13px; color:var(--ink); }
.gc-search-bar button{ border:none; background:transparent; cursor:pointer; color:var(--ink-soft); display:flex; }
.gc-search-results{ max-height:260px; overflow-y:auto; }
.gc-search-result-item{ padding:9px 12px; border-radius:10px; cursor:pointer; font-size:12px; }
.gc-search-result-item:hover{ background:var(--surface); }
.gc-search-result-item b{ display:block; font-size:11.5px; color:var(--lime); }
.gc-search-result-item span{ color:var(--ink-soft); }

/* ---- Toast kecil (disalin, dihapus, dsb) ---- */
.gc-toast{
    position:fixed; bottom:24px; left:50%; transform:translate(-50%, 10px); background:var(--ink); color:#fff;
    padding:9px 16px; border-radius:20px; font-size:12px; z-index:80; opacity:0; pointer-events:none; transition:.25s var(--ease);
}
.gc-toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ---- Selection mode admin (hapus massal) ---- */
.gc-select-mode .gc-msg{ cursor:pointer; }
.gc-msg.gc-selected .gc-bubble{ outline:2px solid var(--lime); outline-offset:2px; }
.gc-select-bar{
    display:none; align-items:center; justify-content:space-between; gap:10px; padding:8px 14px;
    border-bottom:1px solid var(--glass-border); font-size:12px;
}
.gc-select-bar.open{ display:flex; }
