/* AIRA FLOW Website Chatbot – V84 */
:root {
  --aira-chat-black: #05060a;
  --aira-chat-panel: rgba(10, 12, 19, 0.98);
  --aira-chat-line: rgba(255,255,255,0.14);
  --aira-chat-text: #f4f6ff;
  --aira-chat-muted: rgba(244,246,255,0.70);
  --aira-chat-glow: rgba(125, 171, 255, 0.55);
  --aira-chat-blue: #8db7ff;
}

.aira-chatbot,
.aira-chatbot * {
  box-sizing: border-box;
}

.aira-chatbot {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 99999;
  font-family: inherit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--aira-chat-text);
}

.aira-chatbot__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 9px 15px 9px 9px;
  background: linear-gradient(135deg, #06070c 0%, #13192a 52%, #06070c 100%);
  color: #fff;
  box-shadow: 0 14px 42px rgba(0,0,0,0.44), 0 0 24px rgba(75,121,255,0.28);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.aira-chatbot__toggle:hover,
.aira-chatbot__toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(141,183,255,0.75);
  box-shadow: 0 18px 46px rgba(0,0,0,0.50), 0 0 30px rgba(104,158,255,0.45);
  outline: none;
}

.aira-chatbot__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.aira-chatbot__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aira-chatbot__toggle-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.aira-chatbot__toggle-text strong {
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.aira-chatbot__toggle-text span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--aira-chat-muted);
}

.aira-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 108px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(97,143,255,0.26), transparent 34%), var(--aira-chat-panel);
  box-shadow: 0 30px 90px rgba(0,0,0,0.62), 0 0 44px rgba(82,127,255,0.28);
  backdrop-filter: blur(18px);
}

.aira-chatbot.is-open .aira-chatbot__panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.aira-chatbot.is-open .aira-chatbot__toggle-text span {
  color: #fff;
}

.aira-chatbot__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 15px 13px;
  border-bottom: 1px solid var(--aira-chat-line);
}

.aira-chatbot__title {
  min-width: 0;
}

.aira-chatbot__title strong {
  display: block;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aira-chatbot__title span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--aira-chat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aira-chatbot__close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.aira-chatbot__close:hover,
.aira-chatbot__close:focus-visible {
  border-color: rgba(141,183,255,0.75);
  outline: none;
}

.aira-chatbot__messages {
  overflow-y: auto;
  padding: 15px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.aira-chatbot__msg {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-wrap;
}

.aira-chatbot__msg--bot {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--aira-chat-text);
  border-bottom-left-radius: 6px;
}

.aira-chatbot__msg--user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(86,132,255,0.98), rgba(116,202,255,0.86));
  color: #07101f;
  border-bottom-right-radius: 6px;
  font-weight: 700;
}

.aira-chatbot__msg a {
  color: #bcd6ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aira-chatbot__msg--user a {
  color: #07101f;
}

.aira-chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.aira-chatbot__chip {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.aira-chatbot__chip:hover,
.aira-chatbot__chip:focus-visible {
  border-color: rgba(141,183,255,0.80);
  background: rgba(141,183,255,0.14);
  outline: none;
}

.aira-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  border-top: 1px solid var(--aira-chat-line);
  background: rgba(0,0,0,0.18);
}

.aira-chatbot__input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.aira-chatbot__input::placeholder {
  color: rgba(255,255,255,0.48);
}

.aira-chatbot__input:focus {
  border-color: rgba(141,183,255,0.80);
  box-shadow: 0 0 0 3px rgba(141,183,255,0.13);
}

.aira-chatbot__send {
  min-width: 74px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: #05060a;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.aira-chatbot__send:hover,
.aira-chatbot__send:focus-visible {
  box-shadow: 0 0 0 3px rgba(141,183,255,0.22);
  outline: none;
}

.aira-chatbot__note {
  grid-column: 1 / -1;
  margin: -1px 3px 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(244,246,255,0.52);
}

@media (max-width: 520px) {
  .aira-chatbot {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: flex-end;
  }

  .aira-chatbot__panel {
    right: 0;
    left: 0;
    width: auto;
    bottom: 70px;
    max-height: min(640px, calc(100vh - 96px));
    border-radius: 22px;
  }

  .aira-chatbot__toggle-text span {
    display: none;
  }
}
