/* Popup Broadcast WhatsApp (dari kartu Pengaturan di Percakapan) */
.bc-pop { position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 18px; background: rgba(23, 20, 42, .42); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.bc-pop.open { opacity: 1; pointer-events: auto; }
.bcp-box { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); transform: translateY(14px) scale(.97); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bc-pop.open .bcp-box { transform: none; }
.bcp-box h3 { margin: 0 0 4px; font-size: 17px; color: #1B1F3B; }
.bcp-sub { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.bcp-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F1EFF6; font-size: 18px; line-height: 1; cursor: pointer; }
.bcp-x:hover { background: #E6E2F2; }
.bcp-chips, .bcp-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bcp-chip, .bcp-tplb { border: 1px solid #E2DEF0; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: #4B5577; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bcp-chip:hover, .bcp-tplb:hover { transform: translateY(-1px); border-color: #CFE0E8; }
.bcp-chip.on { background: #0A4F63; border-color: #0A4F63; color: #fff; }
.bcp-tplb { background: #F6F3FF; color: #0A4F63; }
.bcp-count { min-height: 18px; margin: 2px 0 8px; font-size: 12.5px; font-weight: 700; color: #1B1F3B; font-variant-numeric: tabular-nums; }
.bcp-teks { width: 100%; box-sizing: border-box; border: 1px solid #E2DEF0; border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 13px; color: #1B1F3B; resize: vertical; }
.bcp-teks:focus { outline: none; border-color: #8B7BFF; box-shadow: 0 0 0 3px rgba(8, 145, 178, .18); }
.bcp-prev { margin: 10px 0 0; display: grid; gap: 4px; }
.bcp-prev small { font-size: 11px; color: var(--muted); }
.bcp-bubble { white-space: pre-wrap; max-width: 92%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #F1F5FF; color: #1B1F3B; font-size: 13px; line-height: 1.5; }
.bcp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bcp-res { font-size: 12.5px; color: #4B5577; }
.bcp-send { border: 0; border-radius: 99px; padding: 10px 18px; background: linear-gradient(135deg, #0891B2, #0A4F63); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 8px 18px rgba(91, 69, 201, .3); transition: transform .2s; }
.bcp-send:hover { transform: translateY(-1px); }
.bcp-send:disabled { opacity: .6; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .bc-pop, .bcp-box { transition: none !important; } }
/* Popup Pesan otomatis: daftar saklar */
.poto-isi { display: grid; gap: 6px; margin-top: 12px; }
.poto-grup { margin: 12px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.poto-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid #E5E7EB; border-radius: 14px; background: #fff; }
.poto-kanan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.poto-edit { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid #C7D2FE; background: #EEF2FF; color: #4338CA; cursor: pointer; }
.poto-edit:hover { background: #E0E7FF; }
.pesoto-edit-ov { z-index: 1100; }
.pesoto-edit-box { width: min(560px, 100%); }
.pesoto-lbl { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: #111827; }
.pesoto-ta { width: 100%; font: inherit; font-size: 13px; font-weight: 400; line-height: 1.45; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 12px; resize: vertical; color: #111827; background: #fff; }
.pesoto-ta:focus { outline: 2px solid #6366F1; outline-offset: 1px; }
@media (max-width: 560px) { .poto-row { grid-template-columns: 1fr; } .poto-kanan { justify-content: flex-start; } }
.poto-info { cursor: default; background: #F9FAFB; }
.poto-t { display: grid; gap: 2px; min-width: 0; }
.poto-t b { font-size: 13.5px; color: #111827; }
.poto-t small { font-size: 12px; color: #6B7280; line-height: 1.35; }
.poto-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EEF0FF; color: #4F46E5; white-space: nowrap; }
.poto-sw { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: #D1D5DB; position: relative; cursor: pointer; transition: background .2s; outline: none; }
.poto-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.poto-sw:checked { background: #16A34A; }
.poto-sw:checked::after { transform: translateX(18px); }
.poto-sw:disabled { opacity: .5; cursor: wait; }
.poto-kosong { font-size: 12.5px; color: #B45309; }
