.flint-bot-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 110px;
  left: auto;
  top: auto;
  display: none;
  width: min(430px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 70px));
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #071632 0%, #061229 100%);
  border: 2px solid rgba(0, 217, 255, 0.7);
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.2), 0 26px 70px rgba(0, 0, 0, 0.45);
  z-index: 99999;
}

.flint-bot-header {
  height: 86px;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(0, 217, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #071f49 0%, #06142e 60%, #040b1d 100%);
}

.flint-bot-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flint-bot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 18px rgba(0, 217, 255, .35);
}

.flint-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flint-bot-profile h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.flint-bot-profile p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #eaf5ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2efc75;
  box-shadow: 0 0 9px rgba(46, 252, 117, 0.8);
}

.flint-bot-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-chat-btn,
.close-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: 0.25s ease;
}

.switch-chat-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-chat-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.flint-bot-body {
  height: calc(100% - 86px);
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at center 25%, rgba(0, 217, 255, 0.09), transparent 35%),
    linear-gradient(145deg, #ffffff 0%, #eff6ff 52%, #f8fbff 100%);
  color: #10244d;
  overflow: hidden;
}

.bot-home {
  height: 100%;
  padding: 38px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wave-orb {
  width: 230px;
  height: 190px;
  position: relative;
  margin-bottom: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(235, 245, 255, .45) 58%, transparent 70%);
  overflow: hidden;
}

.wave-line {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 92px;
  height: 38px;
  border-radius: 50%;
  border-top: 3px solid rgba(0, 217, 255, 0.75);
  filter: drop-shadow(0 0 7px rgba(0, 217, 255, 0.4));
  animation: waveMove 2.7s ease-in-out infinite;
}

.wave-two {
  top: 88px;
  border-color: rgba(87, 118, 255, 0.6);
  transform: rotate(5deg);
  animation-delay: 0.25s;
}

.wave-three {
  top: 96px;
  border-color: rgba(174, 89, 255, 0.45);
  transform: rotate(-7deg);
  animation-delay: 0.45s;
}

@keyframes waveMove {

  0%,
  100% {
    transform: translateX(-5px) scaleY(.85);
  }

  50% {
    transform: translateX(6px) scaleY(1.18);
  }
}

.bot-home h2 {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.45;
  color: #10244d;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  width: 100%;
  max-width: 310px;
}

.choice-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #10244d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}

.choice-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: 0.25s ease;
  overflow: hidden;
}

.choice-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-choice .choice-icon {
  box-shadow: 0 0 0 10px rgba(0, 217, 255, .12), 0 0 24px rgba(0, 217, 255, .75);
}

.chat-choice .choice-icon {
  box-shadow: 0 15px 28px rgba(7, 26, 60, .22);
}

.choice-btn strong {
  font-size: 15px;
  font-weight: 800;
}

.choice-btn small {
  font-size: 12px;
  color: #61718f;
}

.chat-screen {
  height: 100%;
  display: none;
  flex-direction: column;
}

.messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px 10px;
}

.message-row {
  display: flex;
  margin-bottom: 12px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.bot {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-row.user .message-bubble {
  background: linear-gradient(145deg, #092a63, #06142e);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.message-row.bot .message-bubble {
  background: #ffffff;
  color: #10244d;
  border: 1px solid rgba(11, 47, 102, 0.08);
  border-bottom-left-radius: 5px;
  box-shadow: 0 10px 22px rgba(8, 31, 70, 0.09);
}

.chat-input-area {
  margin: 8px 16px 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid rgba(11, 47, 102, 0.1);
  border-radius: 18px;
}

.chat-input-area input {
  flex: 1;
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
  color: #10244d;
  font-size: 14px;
}

.mic-mini-btn,
.send-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  padding: 0;
}

.mic-mini-btn img,
.send-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listening {
  box-shadow: 0 0 0 10px rgba(255, 49, 94, 0.12), 0 0 25px rgba(255, 49, 94, 0.65) !important;
  border-radius: 50%;
}

.bot-status {
  min-height: 18px;
  margin: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #61718f;
}

.flint-bot-launcher {
  position: fixed;
  right: 34px;
  bottom: 34px;
  width: 68px;
  height: 68px;
  border: 2px solid rgba(0, 217, 255, 0.85);
  border-radius: 50%;
  background: linear-gradient(145deg, #153d91, #05142e);
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(0, 217, 255, 0.1), 0 0 28px rgba(0, 217, 255, 0.48);
  z-index: 99998;
  display: none;
  overflow: hidden;
  padding: 0;
}

.flint-bot-launcher img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .flint-bot-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    height: min(620px, calc(100vh - 28px));
  }
}

@media (max-width: 420px) {
  .switch-chat-btn span {
    display: none;
  }
}

.title {
  color: white;
}