/**
 * Techotv.com — Minimalist Studio Concierge Widget (Anoma.ly / OpenCode Style)
 * Positioned cleanly on bottom-left so bottom-right stays dedicated to the Anoma.ly sound toggle.
 */

#techotv-live-chat {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 940;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
}

.chat-trigger-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(18, 20, 26, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f2f2ef;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  transition: all 0.16s ease;
}

.chat-trigger-btn:hover {
  background: #e9ff4f;
  color: #050608;
  border-color: #e9ff4f;
  transform: translateY(-1px);
}

.chat-trigger-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px #3ddc84;
}

.chat-trigger-btn:hover .chat-trigger-dot {
  background: #050608;
  box-shadow: none;
}

.chat-window {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101218;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e9ff4f;
  color: #050608;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.chat-agent-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f2ef;
}

.chat-agent-status {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #8e929c;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #8e929c;
  display: grid;
  place-items: center;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2ef;
}

.chat-human-alert {
  padding: 6px 12px;
  background: rgba(61, 220, 132, 0.12);
  border-bottom: 1px solid rgba(61, 220, 132, 0.28);
  color: #3ddc84;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  background: #151821;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e5e9;
}

.chat-msg.user .chat-bubble {
  background: #e9ff4f;
  color: #050608;
  border-color: #e9ff4f;
  font-weight: 500;
}

.chat-msg-time {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #686a6e;
  margin-top: 3px;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.chat-chip {
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f2f2ef;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  text-align: left;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: #e9ff4f;
  color: #050608;
  border-color: #e9ff4f;
}

.chat-typing {
  display: none;
  gap: 4px;
  padding: 6px 10px;
}

.chat-typing.active {
  display: inline-flex;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8e929c;
}

.chat-input-bar {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 6px;
  background: #0e1015;
}

.chat-input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f2ef;
  font-size: 12.5px;
  outline: none;
}

.chat-input:focus {
  border-color: #e9ff4f;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f2f2ef;
  color: #050608;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.chat-send-btn:hover {
  background: #e9ff4f;
}

.mobile-alert-banner {
  position: fixed;
  top: 72px;
  right: 24px;
  background: #0b0d12;
  border: 1px solid #3ddc84;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.mobile-alert-banner.show {
  opacity: 1;
  transform: translateY(0);
}
