.support-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8000;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, #7900f4, #f000d4);
  color: white;
  box-shadow: 0 18px 55px rgba(183, 0, 255, 0.38);
  cursor: pointer !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

body.support-open .cursor {
  opacity: 0 !important;
}

body.support-open,
body.support-open * {
  cursor: auto;
}

.support-launcher:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 22px 70px rgba(240, 0, 212, 0.46);
}

.support-launcher svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.support-launcher .support-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #08070c;
  border-radius: 20px;
  background: var(--gold);
  color: #120c00;
  font: 700 0.58rem var(--font-mono);
}

.support-launcher .support-unread.visible {
  display: grid;
}

.support-panel {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 8000;
  width: min(390px, calc(100vw - 28px));
  height: min(650px, calc(100dvh - 125px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(240, 0, 212, 0.14), transparent 32%),
    #0d0a11;
  color: #f6f3f8;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.support-panel,
.support-panel * {
  cursor: auto;
}

.support-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.support-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 0, 212, 0.35);
  border-radius: 50%;
  background: rgba(240, 0, 212, 0.08);
  color: var(--pink);
  font: 0.72rem var(--font-display);
}

.support-header-copy {
  min-width: 0;
}

.support-header-copy strong {
  display: block;
  font-size: 0.86rem;
}

.support-header-copy span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #88818c;
  font: 0.52rem var(--font-mono);
  letter-spacing: 0.08em;
}

.support-header-copy span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57f287;
  box-shadow: 0 0 10px #57f287;
}

.support-close {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8f8893;
  font-size: 1.5rem;
}

.support-body {
  min-height: 0;
  overflow: hidden;
}

.support-step {
  height: 100%;
  display: none;
  overflow-y: auto;
}

.support-step.active {
  display: flex;
  flex-direction: column;
}

.support-intro {
  padding: 28px 21px;
}

.support-kicker {
  color: var(--pink);
  font: 0.53rem var(--font-mono);
  letter-spacing: 0.13em;
}

.support-intro h2 {
  margin-top: 12px;
  font: 2.2rem/0.92 var(--font-display);
  letter-spacing: -0.06em;
}

.support-intro > p {
  margin-top: 15px;
  color: #99929d;
  font-size: 0.77rem;
  line-height: 1.65;
}

.support-team-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.support-team-member {
  min-width: 0;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.support-team-member > b,
.support-team-member > img,
.support-online-team span > b,
.support-online-team span > img,
.support-message-avatar > b,
.support-message-avatar > img,
.support-typing-avatar > b,
.support-typing-avatar > img {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 0, 212, 0.32);
  border-radius: 50%;
  background: rgba(240, 0, 212, 0.1);
  color: var(--pink);
  object-fit: cover;
  font: 0.62rem var(--font-display);
}

.support-team-member > span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-team-member i {
  display: block;
  margin-top: 3px;
  color: #706a74;
  font: normal 0.47rem var(--font-mono);
}

.support-team-member.online {
  border-color: rgba(87, 242, 135, 0.2);
}

.support-team-member.online i {
  color: #57f287;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.support-field {
  display: grid;
  gap: 7px;
}

.support-field label,
.support-choice-label {
  color: #beb7c2;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-field input,
.support-compose textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  font: 0.8rem var(--font-body);
}

.support-field input {
  height: 48px;
  padding: 0 13px;
}

.support-field input:focus,
.support-compose textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240, 0, 212, 0.08);
}

.support-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.support-agent {
  position: relative;
}

.support-agent input {
  position: absolute;
  opacity: 0;
}

.support-agent span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s, background 0.25s;
}

.support-agent strong {
  font-size: 0.75rem;
}

.support-agent small {
  margin-top: 5px;
  color: #817a85;
  font-size: 0.61rem;
  line-height: 1.35;
}

.support-agent input:checked + span {
  border-color: var(--pink);
  background: rgba(240, 0, 212, 0.09);
}

.support-start {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  border: 0;
  background: linear-gradient(115deg, #7700ed, var(--pink));
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.support-start:disabled,
.support-send:disabled {
  opacity: 0.55;
}

.support-privacy {
  margin-top: 14px;
  color: #6f6873;
  font-size: 0.59rem;
  line-height: 1.5;
}

.support-error {
  min-height: 16px;
  color: #ff6f92;
  font-size: 0.66rem;
  font-weight: 700;
}

.support-chat {
  min-height: 0;
}

.support-conversation-meta {
  padding: 9px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #77707b;
  font: 0.49rem var(--font-mono);
  letter-spacing: 0.08em;
  text-align: center;
}

.support-online-team {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}

.support-online-team > strong {
  margin-right: 3px;
  color: #77707b;
  font: 0.45rem var(--font-mono);
  letter-spacing: 0.1em;
}

.support-online-team > p {
  margin: 0;
  color: #716a75;
  font-size: 0.56rem;
}

.support-online-team > span {
  position: relative;
  width: 29px;
  height: 29px;
}

.support-online-team span > b,
.support-online-team span > img {
  width: 29px;
  height: 29px;
}

.support-online-team span > i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #0d0a11;
  border-radius: 50%;
  background: #57f287;
}

.support-welcome {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--pink);
  background: rgba(240, 0, 212, 0.055);
}

.support-welcome strong,
.support-welcome span {
  display: block;
}

.support-welcome strong {
  font-size: 0.66rem;
}

.support-welcome span {
  margin-top: 4px;
  color: #8d8691;
  font-size: 0.58rem;
  line-height: 1.4;
}

.support-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 18px 15px;
}

.support-message {
  max-width: 88%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.support-message.visitor {
  align-self: flex-end;
}

.support-message.agent {
  align-self: flex-start;
}

.support-message-bubble {
  min-width: 0;
}

.support-message-bubble > strong {
  display: block;
  margin: 0 0 5px 2px;
  color: #d4cbd8;
  font-size: 0.56rem;
}

.support-message-bubble p {
  margin: 0;
  padding: 11px 13px;
  background: #211b25;
  color: #e5dfe8;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-message.visitor .support-message-bubble p {
  background: linear-gradient(135deg, #7414ca, #b000b7);
  color: white;
}

.support-message-bubble > span {
  display: block;
  margin-top: 5px;
  color: #69626d;
  font: 0.47rem var(--font-mono);
}

.support-message.visitor .support-message-bubble > span {
  text-align: right;
}

.support-message-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.support-message-avatar > b,
.support-message-avatar > img {
  width: 32px;
  height: 32px;
}

.support-message-attachments {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.support-message-attachments a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 190px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8d0dc;
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.support-message-attachments img {
  width: 58px;
  height: 44px;
  object-fit: cover;
}

.support-message-attachments > a > b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(240, 0, 212, 0.35);
  color: var(--pink);
  font: 0.48rem var(--font-mono);
}

.support-message-attachments span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.support-message-attachments strong,
.support-message-attachments small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-message-attachments strong {
  font-size: 0.56rem;
}

.support-message-attachments small {
  color: #77707b;
  font: 0.45rem var(--font-mono);
}

.support-empty {
  margin: auto;
  color: #77707b;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.support-typing {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 15px 8px;
}

.support-typing-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.support-typing-avatar > b,
.support-typing-avatar > img {
  width: 28px;
  height: 28px;
}

.support-typing > div {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border-radius: 14px;
  background: #211b25;
}

.support-typing > div i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a59ca9;
  animation: support-dot 1.2s infinite ease-in-out;
}

.support-typing > div i:nth-child(2) {
  animation-delay: 0.16s;
}

.support-typing > div i:nth-child(3) {
  animation-delay: 0.32s;
}

.support-typing > p {
  margin: 0;
  color: #716a75;
  font: 0.48rem var(--font-mono);
}

@keyframes support-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.support-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 46px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b090e;
}

.support-attach {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #c6bdca;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.15rem;
}

.support-attach:hover {
  border-color: rgba(240, 0, 212, 0.5);
  color: white;
}

.support-attachment-selection {
  grid-column: 1 / -1;
  color: #8d8691;
  font: 0.48rem var(--font-mono);
  line-height: 1.5;
}

.support-compose textarea {
  min-height: 46px;
  max-height: 100px;
  padding: 13px;
  resize: none;
}

.support-send {
  border: 0;
  background: var(--pink);
  color: white;
  font-size: 1rem;
}

.support-ended {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8d8691;
  font-size: 0.68rem;
  text-align: center;
}

.support-ended button {
  display: block;
  margin: 9px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

@media (max-width: 600px) {
  .support-launcher {
    right: 15px;
    bottom: 15px;
  }

  .support-panel {
    right: 7px;
    bottom: 85px;
    width: calc(100vw - 14px);
    height: min(680px, calc(100dvh - 95px));
  }
}
