#pc-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 11000;
  color: #eef4fb;
  font: 14px/1.55 var(--font-body, Inter, system-ui, sans-serif);
}
#pc-support *, #pc-support *::before, #pc-support *::after { box-sizing: border-box; }
#pc-support [hidden] { display: none !important; }
#pc-support button { cursor: pointer; font: inherit; }
#pc-support button:disabled { cursor: default; opacity: .48; }
#pc-support button:focus-visible,
#pc-support input:focus-visible,
#pc-support a:focus-visible { outline: 3px solid #dfbd75; outline-offset: 2px; }

#pc-support .support-launch {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid #e5c783;
  border-radius: 50%;
  background: #c6a85d;
  color: #07182d;
  box-shadow: 0 10px 35px #0008;
  animation: support-pulse 2.8s ease-in-out infinite;
  transition: background .2s, color .2s, transform .2s;
}
#pc-support .support-launch:hover {
  background: #e4c77f;
  color: #07182d;
  transform: translateY(-2px);
}
#pc-support .support-launch svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#pc-support .support-online { position: absolute; right: 3px; top: 3px; width: 12px; height: 12px; border: 2px solid #07182d; border-radius: 50%; background: #62dca0; }
@keyframes support-pulse { 0%,100% { box-shadow: 0 10px 35px #0008, 0 0 0 0 #c6a85d77; } 50% { box-shadow: 0 10px 35px #0008, 0 0 0 10px #c6a85d00; } }

#pc-support .support-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: calc(100vw - 24px);
  height: 660px;
  max-height: calc(100dvh - 110px);
  overflow: hidden;
  border: 1px solid #54708e;
  border-radius: 24px;
  background: linear-gradient(160deg, #102b48 0%, #07182f 42%, #08172d 100%);
  box-shadow: 0 28px 90px #0009, 0 0 0 1px #c6a85d18 inset;
}
#pc-support.support-open .support-panel { bottom: 0; }
#pc-support .support-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid #ffffff1b;
  background: #0d2541;
}
#pc-support .support-panel > header strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: #fff; }
#pc-support .support-panel > header small { display: block; margin-top: 3px; font-size: 12px; color: #b6c8dd; }
#pc-support [data-action=close] {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  background: #ffffff0d;
  color: #e4edf7;
}
#pc-support [data-action=close]:hover { border-color: #d9bf7a; background: #c6a85d24; color: #fff; }
#pc-support [data-action=close] svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

#pc-support #support-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 20px 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #607b98 transparent;
}
#pc-support #support-content::-webkit-scrollbar { width: 7px; }
#pc-support #support-content::-webkit-scrollbar-track { background: transparent; }
#pc-support #support-content::-webkit-scrollbar-thumb { border-radius: 8px; background: #607b98; }
#pc-support #support-content::-webkit-scrollbar-thumb:hover { background: #90aac6; }
#pc-support .support-bubble {
  max-width: 90%;
  width: fit-content;
  padding: 13px 16px;
  margin: 0 0 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: support-enter .3s ease-out both;
}
#pc-support .support-bot { border: 1px solid #ffffff16; border-bottom-left-radius: 5px; background: #1c3655; color: #f0f5fc; }
#pc-support .support-user { margin-left: auto; border-bottom-right-radius: 5px; background: #c6a85d; color: #07182d; }
@keyframes support-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
#pc-support .support-options { display: flex; flex-wrap: wrap; gap: 9px; margin: 2px 0 22px; }
#pc-support .support-options button,
#pc-support .support-current > button,
#pc-support .support-handoff > button {
  padding: 9px 13px;
  border: 1px solid #6380a1;
  border-radius: 16px;
  background: #173551;
  color: #eef4fb;
  transition: border-color .2s, background .2s, transform .2s;
}
#pc-support .support-options button { border-radius: 999px; font-size: 13px; }
#pc-support .support-options button:hover,
#pc-support .support-current > button:hover,
#pc-support .support-handoff > button:hover { border-color: #d9bf7a; background: #284d70; transform: translateY(-1px); }
#pc-support .support-options button[aria-pressed=true] { border-color: #e2c47e; background: #806734; color: #fff; }
#pc-support label { display: block; margin: 14px 0; }
#pc-support input:not([type=checkbox]) { display: block; width: 100%; padding: 11px 13px; border: 1px solid #5c7693; border-radius: 13px; background: #142e49; color: #f3f7fc; font: inherit; }
#pc-support input::placeholder { color: #aebfd1; opacity: 1; }
#pc-support [data-field] { margin-top: 6px; }
#pc-support .support-summary { padding: 15px; margin: 16px 0; border: 1px solid #c6a85d66; border-radius: 16px; background: #112d4a; color: #e8eff8; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
#pc-support footer span { font-size: 10px; line-height: 1.5; color: #b9cce0; }
#pc-support #support-error { color: #ffbdbd; }
#pc-support .support-loading { display: flex; align-items: center; gap: 7px; width: fit-content; padding: 17px 20px; border-radius: 18px; background: #1c3655; }
#pc-support .support-loading span { width: 7px; height: 7px; border-radius: 50%; background: #d9bf7a; animation: support-dot 1s ease-in-out infinite; }
#pc-support .support-loading span:nth-child(2) { animation-delay: .13s; }
#pc-support .support-loading span:nth-child(3) { animation-delay: .26s; }
@keyframes support-dot { 0%,70%,100% { opacity: .4; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }

#pc-support #support-chat { display: flex; align-items: center; gap: 10px; padding: 14px 18px; flex-shrink: 0; border-top: 1px solid #ffffff1b; background: #0c2541; }
#pc-support #support-chat input { min-width: 0; margin: 0; border-color: #6885a2; border-radius: 999px; background: #173551; }
#pc-support #support-chat button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #c6a85d; color: #07182d; }
#pc-support #support-chat button:hover { background: #e4c77f; color: #07182d; }
#pc-support #support-chat button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#pc-support footer { display: flex; align-items: center; gap: 10px; padding: 11px 20px 15px; flex-shrink: 0; border-top: 1px solid #ffffff12; background: #0c2541; }
#pc-support footer button { padding: 5px 10px; border: 1px solid #ffffff37; border-radius: 10px; background: transparent; color: #d6e4f5; font-size: 12px; }
#pc-support footer button { flex: 0 0 auto; white-space: nowrap; }
#pc-support footer button:hover { border-color: #d9bf7a; background: #c6a85d1c; color: #fff; }
#pc-support footer a { margin-left: auto; color: #b9cce0; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
#pc-support footer a:hover { color: #e4c77f; }
#pc-support .support-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 430px) {
  #pc-support { right: 12px; bottom: 12px; }
  #pc-support .support-panel { width: calc(100vw - 24px); }
  #pc-support .support-panel > header { padding: 15px 16px; }
  #pc-support #support-content { padding: 16px; }
  #pc-support #support-chat { padding: 10px 14px; }
  #pc-support footer { padding: 8px 16px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #pc-support .support-launch,
  #pc-support .support-loading span,
  #pc-support .support-bubble { animation: none; }
  #pc-support #support-content { scroll-behavior: auto; }
}
