.syc-chatbot-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b1220 0%, #111c33 55%, #0b1220 100%);
  color: #fff;
  font: 600 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.syc-chatbot-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 9999;
  width: min(420px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 120px));
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: none;
}

.syc-chatbot-panel[data-open="true"] {
  display: flex;
  flex-direction: column;
}

.syc-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  background: linear-gradient(135deg, #0b1220 0%, #111c33 55%, #0b1220 100%);
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.syc-chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.syc-chatbot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ff4d5a 0%, #e11d48 45%, #991b1b 100%);
  display: grid;
  place-items: center;
  font: 800 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}

.syc-chatbot-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.syc-chatbot-title-text .syc-chatbot-name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.syc-chatbot-title-text .syc-chatbot-subtitle {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.syc-chatbot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.9;
}

.syc-chatbot-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.syc-chatbot-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
}

.syc-chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow: auto;
  background: radial-gradient(1200px 400px at 30% 0%, rgba(225, 29, 72, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
    #f6f7fb;
}

.syc-msg {
  max-width: min(76%, 560px);
  padding: 11px 12px;
  border-radius: 16px;
  margin: 10px 0;
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

.syc-msg p {
  margin: 0;
}

.syc-msg p + p {
  margin-top: 10px;
}

.syc-msg ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.syc-msg li {
  margin: 4px 0;
}

.syc-msg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.syc-msg pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.94);
  color: #f8fafc;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.syc-msg pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.syc-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.syc-msg-user {
  margin-left: auto;
  background: linear-gradient(135deg, #0b1220 0%, #111c33 60%, #0b1220 100%);
  color: #fff;
  border-top-right-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.18);
}

.syc-msg-bot {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.96);
  color: #101828;
  border: 1px solid #e6e8f0;
  border-top-left-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.syc-chatbot-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e6e8f0;
  background: #fff;
}

.syc-chatbot-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  outline: none;
  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
}

.syc-chatbot-input:focus {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.syc-chatbot-send {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.syc-chatbot-send[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.syc-chatbot-note {
  padding: 8px 12px;
  font: 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #667085;
  background: #fff;
  border-top: 1px solid #f0f1f5;
}

.syc-chatbot-embed {
  width: 100%;
  height: min(560px, calc(100vh - 220px));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6e8f0;
}

.syc-chatbot-embed .syc-chatbot-header {
  border-bottom: 0;
}

.syc-chatbot-embed .syc-chatbot-messages {
  background: #f6f7fb;
}

@media (max-width: 1024px) {
  .syc-chatbot-embed {
    height: min(520px, calc(100vh - 260px));
  }
}

@media (max-width: 640px) {
  .syc-chatbot-embed {
    height: min(460px, calc(100vh - 280px));
  }
}

.syc-chatbot-panel .syc-chatbot-messages::-webkit-scrollbar,
.syc-chatbot-embed .syc-chatbot-messages::-webkit-scrollbar {
  width: 10px;
}

.syc-chatbot-panel .syc-chatbot-messages::-webkit-scrollbar-thumb,
.syc-chatbot-embed .syc-chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.15);
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.syc-chatbot-panel .syc-chatbot-messages::-webkit-scrollbar-track,
.syc-chatbot-embed .syc-chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.syc-lead-title {
  font: 700 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-bottom: 6px;
}

.syc-lead-subtitle {
  font: 12px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #475467;
  margin-bottom: 10px;
}

.syc-lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syc-lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .syc-lead-row {
    grid-template-columns: 1fr;
  }
}

.syc-lead-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  outline: none;
  font: 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
}

.syc-lead-input:focus {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.syc-lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.syc-lead-submit {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 55%, #e11d48 100%);
  color: #fff;
  font: 700 13px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.18);
}

.syc-lead-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.syc-lead-note {
  font: 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #667085;
}

.syc-lead-error {
  font: 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  border: 1px solid rgba(180, 35, 24, 0.18);
  padding: 8px 10px;
  border-radius: 10px;
}
