.db-bubble {
  position: fixed;
  right: 70px;
  bottom: 18px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 20px;
  background: #111;
  color: #fff;
  z-index: 999999;
}

.db-modal {
  position: fixed;
  right: 18px;
  bottom: 82px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  z-index: 999999;
}

.db-hidden {
  display: none;
}

.db-card {
  height: 100%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.db-header {
  padding: 10px 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-title {
  font-weight: 600;
  font-size: 14px;
}

.db-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.db-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

.db-messages {
  flex: 1;
  overflow: auto;
  padding: 6px;
  background: #f6f6f6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-msg {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.25;
  max-width: 90%;
  white-space: pre-wrap;
}

.db-bot {
  background: #fff;
  align-self: flex-start;
}

.db-user {
  background: #111;
  color: #fff;
  align-self: flex-end;
}

.db-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.db-link {
  font-size: 12px;
  color: #111;
  text-decoration: none;
  padding: 5px 12px;
  background: #388d3029;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.db-link::after {
  content: "→";
  font-size: 14px;
  opacity: 0.5;
  margin-left: 8px;
}

.db-link:hover {
  background: #fff;
  border-color: #0b57d0;
  color: #0b57d0;
  box-shadow: 0 2px 8px rgba(11, 87, 208, 0.1);
}

.db-link:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

.db-quick,
.db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-btn {
  border: 2px solid #388d30;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.db-btn:hover {
  background: #f0f0f0;
}

.db-btn-secondary {
  border-color: #bbb;
}

.db-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
}

.db-text {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
}

.db-send {
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: #111;
  color: #fff !important;
}