
#da-chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #B5174F, #d42063);
  box-shadow: 0 4px 20px rgba(181,23,79,.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
  animation: da-pulse 2.5s infinite;
}
#da-chat-launcher:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(181,23,79,.6); }

@media (max-width: 767px) {
  #da-chat-launcher { bottom: calc(64px + 20px); }
  #da-chat-window  { bottom: calc(64px + 80px); }
}
#da-chat-launcher svg { width:28px; height:28px; fill:#fff; }
@keyframes da-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(181,23,79,.45); }
  50%      { box-shadow: 0 4px 32px rgba(181,23,79,.7), 0 0 0 8px rgba(181,23,79,.12); }
}
#da-chat-badge {
  position:absolute; top:-3px; right:-3px;
  background:#25D366; color:#fff; font-size:.6rem; font-weight:700;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid #fff; animation: da-bounce .8s ease infinite alternate;
}
@keyframes da-bounce { from{transform:scale(1)} to{transform:scale(1.25)} }


#da-chat-window {
  position:fixed; bottom:96px; right:24px; z-index:9998;
  width: min(380px, calc(100vw - 32px));
  max-height: min(580px, calc(100vh - 120px));
  background:#fff; border-radius:20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display:flex; flex-direction:column;
  overflow:hidden;
  transform: scale(0) translateY(20px); transform-origin: bottom right;
  opacity:0; pointer-events:none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
#da-chat-window.open {
  transform: scale(1) translateY(0); opacity:1; pointer-events:all;
}


.da-chat-header {
  background: linear-gradient(135deg, #B5174F 0%, #d42063 100%);
  padding:16px 18px; display:flex; align-items:center; gap:12px; flex-shrink:0;
}
.da-chat-avatar {
  width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0;
}
.da-chat-header-info { flex:1; }
.da-chat-header-name { color:#fff; font-weight:700; font-size:.95rem; }
.da-chat-header-status { color:rgba(255,255,255,.8); font-size:.72rem; display:flex; align-items:center; gap:4px; }
.da-online-dot { width:7px; height:7px; border-radius:50%; background:#4ade80; display:inline-block; }
.da-chat-close { color:rgba(255,255,255,.8); background:none; border:none; cursor:pointer; padding:4px; font-size:1.2rem; line-height:1; }
.da-chat-close:hover { color:#fff; }


.da-messages {
  flex:1; overflow-y:auto; padding:16px 14px;
  background:#FFF8F9; display:flex; flex-direction:column; gap:10px;
  scroll-behavior: smooth;
}
.da-messages::-webkit-scrollbar { width:4px; }
.da-messages::-webkit-scrollbar-thumb { background:rgba(181,23,79,.2); border-radius:2px; }

.da-msg { display:flex; gap:8px; max-width:88%; }
.da-msg.bot { align-self:flex-start; }
.da-msg.user { align-self:flex-end; flex-direction:row-reverse; }

.da-msg-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#B5174F,#d42063); display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0; margin-top:auto; }
.da-msg-bubble {
  padding:10px 14px; border-radius:16px; font-size:.88rem; line-height:1.45;
  max-width:100%;
}
.da-msg.bot .da-msg-bubble { background:#fff; color:#2A0E1C; border-radius:4px 16px 16px 16px; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.da-msg.user .da-msg-bubble { background:linear-gradient(135deg,#B5174F,#d42063); color:#fff; border-radius:16px 4px 16px 16px; }


.da-typing { display:flex; align-items:center; gap:4px; padding:12px 14px; background:#fff; border-radius:4px 16px 16px 16px; box-shadow:0 1px 4px rgba(0,0,0,.08); width:fit-content; }
.da-typing span { width:7px; height:7px; border-radius:50%; background:#B5174F; opacity:.4; animation:da-typing .9s infinite; }
.da-typing span:nth-child(2) { animation-delay:.2s; }
.da-typing span:nth-child(3) { animation-delay:.4s; }
@keyframes da-typing { 0%,60%,100%{opacity:.4;transform:scale(1)} 30%{opacity:1;transform:scale(1.3)} }


.da-options { display:flex; flex-wrap:wrap; gap:7px; margin-top:4px; padding: 0 14px 4px; }
.da-option-btn {
  background:#fff; color:#B5174F; border:1.5px solid #F0D9E2;
  border-radius:50px; padding:7px 14px; font-size:.8rem; font-weight:600;
  cursor:pointer; transition:all .18s; white-space:nowrap;
}
.da-option-btn:hover { background:#B5174F; color:#fff; border-color:#B5174F; }


.da-input-area {
  padding:12px 14px; background:#fff; border-top:1px solid #F0D9E2;
  display:flex; gap:8px; align-items:flex-end; flex-shrink:0;
}
.da-text-input {
  flex:1; border:1.5px solid #F0D9E2; border-radius:12px;
  padding:9px 13px; font-size:.85rem; outline:none; resize:none;
  min-height:38px; max-height:90px; font-family:inherit;
  transition: border-color .2s;
}
.da-text-input:focus { border-color:#B5174F; }
.da-send-btn {
  width:38px; height:38px; border-radius:50%; background:#B5174F; border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:background .2s; flex-shrink:0;
}
.da-send-btn:hover { background:#d42063; }
.da-send-btn svg { width:16px; height:16px; fill:#fff; }


.da-wa-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:#25D366; color:#fff; border:none; border-radius:12px;
  padding:13px 20px; font-size:.9rem; font-weight:700; cursor:pointer;
  width:100%; margin-top:6px; text-decoration:none;
  transition:background .2s;
}
.da-wa-btn:hover { background:#128C7E; color:#fff; }


.da-progress { height:3px; background:#F0D9E2; flex-shrink:0; }
.da-progress-bar { height:100%; background:linear-gradient(to right,#B5174F,#d42063); transition:width .4s ease; }


.da-summary { background:#FFF0F7; border-radius:12px; padding:12px 14px; font-size:.82rem; line-height:1.8; border:1px solid #F0D9E2; }
.da-summary strong { color:#B5174F; }
