#saxonette-chat-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #df7500);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 200, 90, 0.35);
  max-width: 220px;
  text-align: center;
}

#saxonette-chat-btn:hover {
  filter: brightness(1.08);
}

#saxonette-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 390px;
  height: 560px;
  z-index: 9999;
  background: rgba(18, 18, 18, 0.97);
  border: 1px solid rgba(215, 155, 47, 0.35);
  border-radius: 18px;
  display: none;
  overflow: hidden;
  font-family: Arial, sans-serif;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

#saxonette-chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 184, 77, 0.18);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: #f2d38b;
  background: linear-gradient(180deg, rgba(70, 47, 14, 0.95), rgba(33, 24, 12, 0.98));
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#saxonette-chat-title {
  display: block;
  flex: 1;
  min-width: 0;
}

#saxonette-chat-reset {
  flex: 0 0 auto;
  border: 1px solid rgba(215, 155, 47, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f2d38b;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

#saxonette-chat-reset:hover {
  filter: brightness(1.08);
}

#saxonette-chat-log {
  height: 405px;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #f3f3f3;
  background:
    linear-gradient(rgba(20, 20, 20, 0.94), rgba(15, 15, 15, 0.98)),
    radial-gradient(circle at top left, rgba(215, 155, 47, 0.08), transparent 35%);
  box-sizing: border-box;
}

#saxonette-chat-log div {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#saxonette-chat-log div:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#saxonette-chat-log div:nth-child(even) {
  background: rgba(215, 155, 47, 0.08);
  border: 1px solid rgba(215, 155, 47, 0.16);
}

#saxonette-chat-log p,
#saxonette-chat-log h1,
#saxonette-chat-log h2,
#saxonette-chat-log h3 {
  margin: 0 0 10px 0;
}

#saxonette-chat-log strong {
  color: #f2d38b;
}

#saxonette-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 184, 77, 0.16);
  background: rgba(18, 18, 18, 0.98);
  box-sizing: border-box;
}

#saxonette-chat-input textarea {
  flex: 1;
  resize: none;
  height: 60px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 155, 47, 0.25);
  background: #1e1e1e;
  color: #f5f5f5;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

#saxonette-chat-input textarea::placeholder {
  color: #b9b9b9;
}

#saxonette-chat-input textarea:focus {
  border-color: #df7500;
  box-shadow: 0 0 0 2px rgba(215, 155, 47, 0.14);
}

#saxonette-chat-input button {
  width: 95px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #df7500);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#saxonette-chat-input button:hover {
  filter: brightness(1.08);
}

@media (max-width: 520px) {
  #saxonette-chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    height: 72vh;
    bottom: 74px;
  }

  #saxonette-chat-btn {
    right: 10px;
    bottom: 10px;
    max-width: 210px;
    font-size: 13px;
    padding: 12px 14px;
  }

  #saxonette-chat-log {
    height: calc(72vh - 170px);
  }

  #saxonette-chat-header {
    font-size: 16px;
    padding: 12px 14px;
  }

  #saxonette-chat-input textarea {
    height: 54px;
  }

  #saxonette-chat-input button {
    width: 90px;
  }
}
