/* AI 24/7 floating chat */

.tbt-ai {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: Inter, system-ui, sans-serif;
}

.tbt-ai__fab {
  border: 0;
  cursor: pointer;
  background: #ffee00;
  color: #000;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.tbt-ai__fab:hover { background: #fff; }

.tbt-ai__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(380px, calc(100vw - 28px));
  background: #0a0a0a;
  border: 1px solid rgba(255, 238, 0, 0.35);
  display: flex;
  flex-direction: column;
  max-height: min(520px, 70vh);
  overflow: hidden;
}

.tbt-ai__panel[hidden] { display: none !important; }

.tbt-ai__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffee00;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.tbt-ai__close {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tbt-ai__log {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tbt-ai__bubble {
  max-width: 90%;
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tbt-ai__bubble--bot {
  align-self: flex-start;
  background: #1a1a1a;
  color: #f1f1f1;
  border: 1px solid rgba(255, 238, 0, 0.2);
}

.tbt-ai__bubble--user {
  align-self: flex-end;
  background: #ffee00;
  color: #000;
}

.tbt-ai__bubble--typing {
  opacity: 0.7;
  font-style: italic;
}

.tbt-ai__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tbt-ai__form input {
  flex: 1;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.7rem 0.75rem;
}

.tbt-ai__form button {
  background: #ffee00;
  color: #000;
  border: 0;
  padding: 0 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-size: 12px;
}
