#solkaris-hg-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: "Inter", sans-serif;
}

#solkaris-hg-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: #fff;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(16, 18, 24, 0.16);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#solkaris-hg-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(16, 18, 24, 0.2);
}

#solkaris-hg-toggle img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

#solkaris-hg-box {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, 72vh);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.24s ease;
}

#solkaris-hg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#solkaris-hg-header img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

#solkaris-hg-header strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

#solkaris-hg-header span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

#solkaris-hg-log {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.45;
  background: #fcfcfd;
}

#solkaris-hg-log .chat-message,
#solkaris-hg-log div.user-message,
#solkaris-hg-log div.ai-message {
  margin: 0 0 12px;
}

#solkaris-hg-log .chat-message.user p,
#solkaris-hg-log div.user-message {
  display: inline-block;
  margin: 0;
  margin-left: auto;
  background: #eff6ff;
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 14px 14px 4px 14px;
}

#solkaris-hg-log .chat-message.agent .agent {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

#solkaris-hg-log .chat-message.agent p,
#solkaris-hg-log div.ai-message {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px 14px 14px 4px;
}

#solkaris-hg-log a {
  color: #0b63ce;
  text-decoration: underline;
  word-break: break-word;
}

#solkaris-hg-input {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px;
  background: #ffffff;
}

#solkaris-hg-input input {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  min-width: 0;
}

#solkaris-hg-input input:focus {
  border-color: rgba(11, 99, 206, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.08);
}

#solkaris-hg-input button {
  background: #0b63ce;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

#solkaris-hg-input button:hover {
  background: #094fa6;
}

#solkaris-hg-input button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
