.soop-support-widget {
  --sc-bg: #050505;
  --sc-surface: #111111;
  --sc-surface-2: #1a1a1a;
  --sc-text: #ffffff;
  --sc-text-muted: #b8b8b8;
  --sc-lime: #b6ff00;
  --sc-lime-2: #a8f000;
  --sc-border: rgba(255, 255, 255, 0.1);
  --sc-border-strong: rgba(183, 255, 0, 0.38);
  --sc-glow: 0 0 28px rgba(183, 255, 0, 0.22);
}

.soop-support-widget,
.soop-support-widget * {
  box-sizing: border-box;
}

.soop-support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  color: var(--sc-text);
  font-family: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.soop-support-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  color: var(--sc-lime);
  background: rgba(5, 5, 5, 0.96);
  border: 1px solid var(--sc-border-strong);
  border-radius: 999px;
  box-shadow: var(--sc-glow), 0 18px 46px rgba(0, 0, 0, 0.42);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.soop-support-launcher:hover,
.soop-support-launcher:focus-visible {
  border-color: var(--sc-lime);
  box-shadow: 0 0 40px rgba(183, 255, 0, 0.34), 0 22px 56px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  outline: none;
}

.soop-support-launcher svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.soop-support-launcher-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: var(--sc-lime);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(183, 255, 0, 0.8);
}

.soop-support-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 126px));
  overflow: hidden;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid var(--sc-border);
  border-radius: 22px;
  box-shadow: var(--sc-glow), 0 30px 82px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.soop-support-panel[hidden] {
  display: none;
}

.soop-support-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--sc-border);
}

.soop-support-brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  position: relative;
  overflow: hidden;
  color: var(--sc-lime);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background:
    radial-gradient(circle at 25% 18%, rgba(183, 255, 0, 0.16), transparent 42%),
    #050505;
  border: 1px solid rgba(183, 255, 0, 0.32);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(183, 255, 0, 0.18);
}

.soop-support-brandmark img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soop-support-brandmark img[src=""] {
  display: none;
}

.soop-support-brandmark span {
  position: relative;
  z-index: 0;
  color: var(--sc-lime);
  font-weight: 950;
  text-shadow: 0 0 10px rgba(183, 255, 0, 0.45);
}

.soop-support-panel-head h2 {
  margin: 0;
  color: var(--sc-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.soop-support-panel-head p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--sc-text-muted);
  font-size: 12px;
  line-height: 1;
}

.soop-support-panel-head p span,
.soop-support-footnote span {
  width: 7px;
  height: 7px;
  background: var(--sc-lime);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(183, 255, 0, 0.72);
}

.soop-support-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  color: var(--sc-text);
  font-size: 18px;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
}

.soop-support-close:hover,
.soop-support-close:focus-visible {
  color: var(--sc-lime);
  border-color: var(--sc-border-strong);
  outline: none;
}

.soop-support-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px 16px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(182, 255, 0, 0.035), transparent 34%),
    var(--sc-bg);
  scrollbar-color: rgba(183, 255, 0, 0.66) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
}

.soop-support-thread::-webkit-scrollbar,
.soop-support-composer textarea::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.soop-support-thread::-webkit-scrollbar-track,
.soop-support-composer textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
}

.soop-support-thread::-webkit-scrollbar-thumb,
.soop-support-composer textarea::-webkit-scrollbar-thumb {
  min-height: 42px;
  background:
    linear-gradient(180deg, rgba(183, 255, 0, 0.95), rgba(168, 240, 0, 0.56));
  border: 2px solid rgba(5, 5, 5, 0.82);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(183, 255, 0, 0.22);
}

.soop-support-thread::-webkit-scrollbar-thumb:hover,
.soop-support-composer textarea::-webkit-scrollbar-thumb:hover {
  background: var(--sc-lime);
}

.soop-support-thread::-webkit-scrollbar-corner,
.soop-support-composer textarea::-webkit-scrollbar-corner {
  background: transparent;
}

.soop-support-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 82%;
}

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

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

.soop-support-bubble {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 15px;
}

.soop-support-message.is-agent .soop-support-bubble {
  color: var(--sc-text);
  background: var(--sc-surface-2);
  border: 1px solid var(--sc-border);
}

.soop-support-bubble a {
  color: var(--sc-lime);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.soop-support-message.is-visitor .soop-support-bubble {
  color: var(--sc-bg);
  font-weight: 700;
  background: var(--sc-lime);
  box-shadow: 0 0 18px rgba(183, 255, 0, 0.18);
}

.soop-support-message time {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.soop-support-system {
  align-self: center;
  max-width: 86%;
  padding: 8px 10px;
  color: var(--sc-text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sc-border);
  border-radius: 999px;
}

.soop-support-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  background: rgba(17, 17, 17, 0.98);
  border-top: 1px solid var(--sc-border);
}

.soop-support-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 96px;
  padding: 12px 16px 12px 13px;
  resize: none;
  color: var(--sc-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  outline: none;
  scrollbar-color: rgba(183, 255, 0, 0.66) rgba(5, 5, 5, 0.36);
  scrollbar-width: thin;
}

.soop-support-composer textarea:focus {
  border-color: var(--sc-border-strong);
  box-shadow: 0 0 0 3px rgba(183, 255, 0, 0.08);
}

.soop-support-composer textarea::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.soop-support-composer button[type="submit"] {
  min-width: 70px;
  height: 44px;
  padding: 0 18px;
  color: var(--sc-bg);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--sc-lime);
  border: 1px solid var(--sc-lime);
  border-radius: 14px;
}

.soop-support-composer button[type="submit"]:hover,
.soop-support-composer button[type="submit"]:focus-visible {
  background: var(--sc-lime-2);
  outline: none;
}

.soop-support-composer button:disabled,
.soop-support-composer textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.soop-support-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--sc-lime);
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid var(--sc-border-strong);
  border-radius: 14px;
}

.soop-support-upload-button:hover,
.soop-support-upload-button:focus-visible {
  color: var(--sc-bg);
  background: var(--sc-lime);
  box-shadow: 0 0 18px rgba(183, 255, 0, 0.22);
  outline: none;
}

.soop-support-upload-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.soop-support-upload-button[hidden] {
  display: none;
}

.soop-support-upload-progress {
  position: relative;
  height: 24px;
  overflow: hidden;
  color: var(--sc-text);
  font-size: 10px;
  font-weight: 800;
  background: rgba(17, 17, 17, 0.98);
  border-top: 1px solid var(--sc-border);
}

.soop-support-upload-progress[hidden] {
  display: none;
}

.soop-support-upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(183, 255, 0, 0.32), rgba(183, 255, 0, 0.78));
  transition: width 0.18s ease;
}

.soop-support-upload-progress strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--sc-text);
}

.soop-support-bubble.is-media {
  max-width: 252px;
  padding: 6px;
  overflow: hidden;
}

.soop-support-bubble.is-media img,
.soop-support-bubble.is-media video {
  display: block;
  max-width: 100%;
  max-height: 290px;
  border-radius: 12px;
  background: #050505;
}

.soop-support-media-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.soop-support-media-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0);
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.soop-support-media-preview:hover::after,
.soop-support-media-preview:focus-visible::after {
  background: rgba(182, 255, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(182, 255, 0, 0.42);
}

.soop-support-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #050505;
  font-size: 0;
  background: var(--sc-lime);
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(182, 255, 0, 0.34);
  transform: translate(-50%, -50%);
}

.soop-support-media-play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  content: "";
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #050505;
}

.soop-support-media-preview:focus-visible {
  outline: 2px solid var(--sc-lime);
  outline-offset: 2px;
}

.soop-support-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.soop-support-lightbox-frame {
  max-width: min(980px, calc(100vw - 44px));
  max-height: min(86vh, 760px);
  padding: 10px;
  background:
    radial-gradient(circle at 50% 0, rgba(182, 255, 0, 0.12), transparent 45%),
    #050505;
  border: 1px solid rgba(182, 255, 0, 0.38);
  border-radius: 18px;
  box-shadow: 0 0 46px rgba(182, 255, 0, 0.24), 0 28px 80px rgba(0, 0, 0, 0.64);
}

.soop-support-lightbox-frame img,
.soop-support-lightbox-frame video {
  display: block;
  max-width: calc(100vw - 64px);
  max-height: calc(86vh - 24px);
  border-radius: 12px;
  object-fit: contain;
  background: #050505;
}

.soop-support-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--sc-lime);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid rgba(182, 255, 0, 0.42);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(182, 255, 0, 0.2);
}


.soop-support-identity {
  padding: 10px 14px 12px;
  color: var(--sc-text-muted);
  background: rgba(17, 17, 17, 0.98);
  border-top: 1px solid var(--sc-border);
}

.soop-support-identity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.soop-support-identity-head strong {
  color: var(--sc-text);
  font-weight: 900;
}

.soop-support-identity-head span {
  color: var(--sc-lime);
  font-weight: 800;
}

.soop-support-identity-email,
.soop-support-identity-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 7px;
}

.soop-support-identity-email[hidden],
.soop-support-identity-code[hidden] {
  display: none;
}

.soop-support-identity input {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  color: var(--sc-text);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  outline: none;
}

.soop-support-identity input:focus {
  border-color: var(--sc-border-strong);
  box-shadow: 0 0 0 3px rgba(183, 255, 0, 0.08);
}

.soop-support-identity button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--sc-bg);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--sc-lime);
  border: 1px solid var(--sc-lime);
  border-radius: 10px;
}

.soop-support-identity button:disabled,
.soop-support-identity input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.soop-support-identity-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.25;
}

.soop-support-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  background: rgba(5, 5, 5, 0.98);
}

@media (max-width: 640px) {
  .soop-support-widget {
    right: 16px;
    bottom: 16px;
  }

  .soop-support-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: min(86vh, 720px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .soop-support-launcher {
    width: 62px;
    height: 62px;
  }
}

.soop-support-translation-note {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.2;
}
