.saca-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.saca-cat-btn {
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb05a 5%, #f0742d 75%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  position: relative;
  cursor: pointer;
  animation: saca-float 2.8s ease-in-out infinite;
}

.saca-cat-face {
  font-size: 33px;
  line-height: 1;
}

.saca-cat-ear {
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: #f07f35;
  border-radius: 3px;
  transform: rotate(45deg);
}

.saca-cat-ear-left { left: 11px; }
.saca-cat-ear-right { right: 11px; }

.saca-cat-tail {
  position: absolute;
  right: -9px;
  bottom: 9px;
  width: 24px;
  height: 9px;
  border-radius: 9px;
  background: #cf5f1d;
  transform-origin: left center;
  animation: saca-tail 1.6s ease-in-out infinite;
}

.saca-chat {
  width: min(360px, calc(100vw - 30px));
  height: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 10px;
}

.saca-chat.is-open {
  display: flex;
}

.saca-chat-head {
  min-height: 50px;
  background: linear-gradient(120deg, #f0742d, #f89e4b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 14px;
}

.saca-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
}

.saca-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f8fafc;
}

.saca-msg {
  max-width: 88%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  white-space: pre-wrap;
}

.saca-msg-user {
  margin-left: auto;
  background: #dbe8ff;
  color: #20355f;
}

.saca-msg-assistant {
  margin-right: auto;
  background: #fff;
  color: #29344d;
  border: 1px solid #e4ecff;
}

.saca-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ebeff8;
  background: #fff;
}

.saca-form input {
  flex: 1;
  border: 1px solid #d8e1f6;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.saca-form button {
  border: 0;
  border-radius: 10px;
  background: #2f67ff;
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

@keyframes saca-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes saca-tail {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-12deg); }
}
