/* ── LIVE CHAT + KONTAK CS ── */
.cs-fab {
  position: fixed; right: 14px; bottom: 14px; z-index: 9999;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd54f, #f59e0b);
  border: none; box-shadow: 0 4px 18px rgba(245, 158, 11, .55);
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.cs-fab:active { transform: scale(.92); }
.cs-fab .cs-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  background: #ef4444; border: 2px solid #1a1a2e; border-radius: 50%;
  display: none;
}
.cs-fab.has-unread .cs-dot { display: block; animation: csPing 1.4s ease-out infinite; }
@keyframes csPing {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cs-panel {
  position: fixed; right: 12px; bottom: 76px; z-index: 9998;
  width: min(340px, calc(100vw - 24px)); height: 440px;
  background: #161a2e; border: 1px solid rgba(255, 213, 79, .3);
  border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  display: none; flex-direction: column; overflow: hidden;
}
.cs-panel.open { display: flex; }
.cs-head {
  background: linear-gradient(135deg, #2a1e4d, #4a2a6b);
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255, 213, 79, .25);
}
.cs-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cs-head b { font-size: .85rem; color: #ffd54f; }
.cs-head small { display: block; font-size: .62rem; color: #94a3b8; }
.cs-close { margin-left: auto; background: none; border: none; color: #94a3b8; font-size: 1.1rem; cursor: pointer; }
.cs-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.cs-msg { max-width: 82%; padding: 7px 11px; border-radius: 12px; font-size: .76rem; line-height: 1.35; word-wrap: break-word; }
.cs-msg.member { align-self: flex-end; background: #7c3aed; color: #fff; border-bottom-right-radius: 3px; }
.cs-msg.admin { align-self: flex-start; background: #1e293b; color: #e2e8f0; border-bottom-left-radius: 3px; }
.cs-msg .t { display: block; font-size: .58rem; opacity: .6; margin-top: 3px; }
.cs-welcome { font-size: .72rem; color: #94a3b8; text-align: center; padding: 6px; }
.cs-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.cs-input input {
  flex: 1; background: #0f1222; border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  color: #fff; padding: 8px 10px; font-size: .78rem; outline: none;
}
.cs-input button {
  background: linear-gradient(135deg, #ffd54f, #f59e0b); color: #1a1a2e;
  border: none; border-radius: 10px; padding: 0 14px; font-weight: 800; font-size: .78rem; cursor: pointer;
}
.cs-links { display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.cs-links a {
  flex: 1; text-align: center; font-size: .68rem; font-weight: 700; text-decoration: none;
  padding: 7px 4px; border-radius: 9px;
}
.cs-links .tg { background: rgba(37, 211, 102, .15); color: #25d366; border: 1px solid rgba(37, 211, 102, .3); }
.cs-links .wa { background: rgba(37, 211, 102, .15); color: #25d366; border: 1px solid rgba(37, 211, 102, .3); }
