/* HUB platform widgets: chat, estimator, filters — corporate, minimal */

.hub-chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgb(116 73 45), rgb(93 58 36));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hub-chat-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hub-chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 89;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: min(28rem, 70vh);
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 20, 16, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hub-chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hub-chat-panel header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.hub-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgb(226 232 240);
}

.hub-chat-msg {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
}
.hub-chat-msg.bot {
  border-left: 2px solid rgb(201 176 150);
}

.hub-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.hub-chat-actions button {
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hub-chat-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hub-estimator-result {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  font-size: 0.9rem;
  color: rgb(30 41 59);
}

.hub-field-error {
  font-size: 0.75rem;
  color: rgb(185 28 28);
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .hub-chat-panel {
    right: 0.75rem;
    bottom: 5rem;
  }
  .hub-chat-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
