/* TAA bot widget (shared across pages) */

.taaBotLauncher{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10010;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.34);
  box-shadow: 0 30px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03);
  padding: 10px 12px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.taaBotLauncher:hover{ opacity: .98; transform: translateY(-1px); }
.taaBotLauncher:active{ transform: translateY(0px) scale(.99); }

.taaBotDot{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--ember1, #e07a2f), var(--ember2, #ff4b2b), var(--ember3, #ff9b34));
  box-shadow: 0 0 22px var(--emberGlow, rgba(255,100,36,.10));
  color: #170900;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 12px;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.taaBotLabel{
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,241,234,.92);
  white-space: nowrap;
  padding-right: 2px;
}

.taaBotPanel{
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 10020;
  width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 140px));
  border-radius: 18px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 60px 180px rgba(0,0,0,.65);
  overflow: hidden;
  display: none;
  backdrop-filter: blur(10px);
}
.taaBotPanel.on{ display: grid; grid-template-rows: auto 1fr auto; }

.taaBotTop{
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.taaBotTitle{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.taaBotTitle strong{
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: .10em;
  font-size: 22px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ember1, #e07a2f), var(--ember2, #ff4b2b), var(--ember3, #ff9b34));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
  white-space: nowrap;
}
.taaBotTitle span{
  color: rgba(244,241,234,.60);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taaBotClose{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(244,241,234,.92);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  flex: 0 0 auto;
}

.taaBotMsgs{
  padding: 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.taaMsg{
  max-width: 92%;
  border-radius: 14px;
  padding: 10px 12px;
  line-height: 1.45;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.24);
  color: rgba(244,241,234,.86);
  white-space: pre-wrap;
}
.taaMsg.me{
  margin-left: auto;
  border: 1px solid rgba(255,179,71,.18);
  background: linear-gradient(180deg, rgba(255,179,71,.10), rgba(0,0,0,.24));
}
.taaMsg.bot{ margin-right: auto; }

.taaChips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.taaChip{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(244,241,234,.88);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.taaChip.primary{
  border: 0;
  color:#170900;
  background: linear-gradient(90deg, var(--ember1, #e07a2f), var(--ember2, #ff4b2b), var(--ember3, #ff9b34));
  box-shadow: 0 0 22px var(--emberGlow, rgba(255,100,36,.10));
}

.taaBotComposer{
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: rgba(0,0,0,.18);
}

.taaBotInput{
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(244,241,234,.92);
  padding: 12px 14px;
  outline: none;
  font-size: 13px;
}

.taaBotSend{
  border-radius: 999px;
  border: 0;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ember1, #e07a2f), var(--ember2, #ff4b2b), var(--ember3, #ff9b34));
  color: #170900;
  box-shadow: 0 0 22px var(--emberGlow, rgba(255,100,36,.10));
  white-space: nowrap;
}
.taaBotSend:disabled{ opacity: .6; }

@media (max-width: 640px){
  .taaBotLauncher{ right: 12px; bottom: 12px; padding: 10px 10px; }
  .taaBotLabel{ display: none; }
  .taaBotDot{ width: 52px; height: 52px; font-size: 12px; }
  .taaBotPanel{ right: 12px; bottom: 76px; width: calc(100vw - 24px); height: min(560px, calc(100vh - 120px)); }
}
