.gene-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8ad49, #f7d980);
  color: #0c1730;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 12px 18px;
  font: 950 0.95rem Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gene-chat-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #071a3d;
  color: #f7d980;
}

.gene-chat-window {
  position: fixed;
  right: 18px;
  bottom: 150px;
  z-index: 91;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 180px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 217, 128, 0.18), transparent 13rem),
    rgba(7, 26, 61, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.gene-chat-window.open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.gene-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.gene-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gene-chat-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8ad49, #f7d980);
  color: #0c1730;
  font-weight: 950;
}

.gene-chat-title strong,
.gene-chat-title span {
  display: block;
  line-height: 1.1;
}

.gene-chat-title strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.gene-chat-title span {
  margin-top: 3px;
  color: #d7e3ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.gene-chat-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
}

.gene-chat-messages {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 310px;
  overflow: auto;
  padding: 16px;
}

.gene-msg {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 13px;
  font: 800 0.92rem/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gene-msg.bot {
  justify-self: start;
  border: 1px solid rgba(247, 217, 128, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #d7e3ff;
}

.gene-msg.user {
  justify-self: end;
  background: linear-gradient(135deg, #d8ad49, #f7d980);
  color: #0c1730;
}

.gene-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.gene-chat-helper {
  margin: 0 16px 10px;
  border: 1px solid rgba(247, 217, 128, 0.18);
  border-radius: 14px;
  background: rgba(247, 217, 128, 0.08);
  color: #d7e3ff;
  padding: 10px 11px;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.35;
}

.gene-chip {
  border: 1px solid rgba(247, 217, 128, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7d980;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.gene-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
}

.gene-chat-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0c1730;
  outline: none;
  padding: 10px 14px;
  font-weight: 800;
}

.gene-chat-form input:focus {
  border-color: rgba(247, 217, 128, 0.9);
  box-shadow: 0 0 0 4px rgba(247, 217, 128, 0.18);
}

.gene-chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8ad49, #f7d980);
  color: #0c1730;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 950;
}

.gene-msg a {
  color: #f7d980;
  text-decoration: underline;
}

@media (max-width: 620px) {
  .gene-chat-launcher {
    right: 14px;
    bottom: 76px;
    padding: 11px 14px;
  }

  .gene-chat-window {
    right: 10px;
    left: 10px;
    bottom: 136px;
    width: auto;
    max-height: calc(100vh - 150px);
  }
}
