.support-fab{
  position:fixed; left:18px; bottom:18px;
  width:56px; height:56px; border-radius:50%;
  border:0; cursor:pointer;
      background: linear-gradient(135deg, var(--color-end), var(--color-primary));
    color: white;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  display:flex; align-items:center; justify-content:center;
  z-index:99999;
}

.support-panel{
  position:fixed; left:18px; bottom:86px;
  width:360px; max-width:calc(100vw - 36px);
  height:520px; max-height:calc(100vh - 120px);
  background:#fff; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  overflow:hidden; z-index:99999;
  display:none; flex-direction:column;
  border:1px solid #e5e7eb;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

.support-header{
  padding:14px;
    background: linear-gradient(135deg, var(--color-end), var(--color-primary));
    color: white;
  display:flex; align-items:center; justify-content:space-between;
}

.support-header .title{
  font-weight:800; font-size:14px;
}
.support-header .sub{
  font-size:12px; opacity:.85;
}

.support-body{
  padding:12px;
  background:#f6f7fb;
  flex:1; overflow:auto;
}

.support-queue{
  background:#fff;
  border:1px dashed #d1d5db;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  color:#374151;
  margin-bottom:10px;
}

.msg{
  max-width:78%;
  padding:10px 12px;
  border-radius:14px;
  margin:8px 0;
  font-size:13px;
  line-height:1.35;
  word-wrap:break-word;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.msg.user{
  margin-left:auto;
  background:#111827;
  color:#fff;
  border-bottom-right-radius:6px;
}
.msg.admin{
  margin-right:auto;
  background:#fff;
  color:#111827;
  border:1px solid #e5e7eb;
  border-bottom-left-radius:6px;
}
.msg.system{
  margin:10px auto;
  max-width:95%;
  text-align:center;
  background:#fff;
  color:#6b7280;
  border:1px solid #e5e7eb;
}

.support-footer{
  padding:10px;
  background:#fff;
  border-top:1px solid #e5e7eb;
  display:flex; gap:8px;
}

.support-input{
  flex:1;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  font-size:13px;
}

.support-send{
  border:0; border-radius:12px;
  padding:10px 14px;
     background: linear-gradient(135deg, var(--color-end), var(--color-primary));
    color: white;
  cursor:pointer; font-weight:800;
}
.support-send:disabled{ opacity:.55; cursor:not-allowed; }

.support-close{
  background:transparent; border:0; color:#fff;
  cursor:pointer; font-size:18px; line-height:1;
}
.support-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:10px 0 12px;
}
.support-btn{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
    background: linear-gradient(135deg, var(--color-end), var(--color-primary));
    color: white;
}
.support-btn.outline{
  background:#fff;
  color:#111827;
  border:1px solid #e5e7eb;
}

.support-attach{
  display:flex; align-items:center; gap:8px;
}
.support-file{
  display:none;
}
.support-preview{
  margin-top:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px;
  display:none;
}
.support-preview img{
  max-width:100%;
  border-radius:10px;
  display:block;
}
.support-preview .x{
  margin-top:6px;
  border:0;
  background:#ef4444;
  color:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}
