.ft-support-root {
  position: fixed;
  right: max(28px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9500;
  font-family: var(--font-geist-sans, "Geist"), ui-sans-serif, sans-serif;
}

.ft-support-fab {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  color: #f7f9f3;
  background: #07090c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ft-support-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 61, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(200, 255, 61, 0.12);
}

.ft-support-fab:active {
  transform: scale(0.98);
}

.ft-support-fab-icon {
  display: block;
  width: 26px;
  height: 26px;
  color: #f7f9f3;
  pointer-events: none;
  transition: color 0.2s ease, filter 0.2s ease;
}

.ft-support-fab:hover .ft-support-fab-icon {
  color: #dfff79;
  filter: drop-shadow(0 0 8px rgba(200, 255, 61, 0.45));
}

.ft-support-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(200, 255, 61, 0.18);
  background: rgba(10, 14, 12, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}

.ft-support-root.ft-support-root--open .ft-support-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ft-support-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ft-support-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f7f9f3;
}

.ft-support-panel-head p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #a8aea1;
}

.ft-support-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: #c8d0c4;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ft-support-field {
  margin-bottom: 12px;
}

.ft-support-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b9682;
}

.ft-support-field select,
.ft-support-field textarea,
.ft-support-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f7f9f3;
  font: inherit;
  font-size: 0.9rem;
}

.ft-support-field input[type="text"] {
  min-height: 44px;
  padding: 0 12px;
}

.ft-support-field select {
  min-height: 44px;
  padding: 0 12px;
}

.ft-support-field textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

.ft-support-field select:focus,
.ft-support-field textarea:focus,
.ft-support-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(200, 255, 61, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.12);
}

.ft-support-tg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(200, 255, 61, 0.08);
  border: 1px solid rgba(200, 255, 61, 0.22);
  font-size: 0.88rem;
  color: #eef2ea;
}

.ft-support-tg a {
  color: #dfff79 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.ft-support-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #10130c;
  background: linear-gradient(105deg, #dfff79, #aeea24);
  box-shadow: 0 10px 28px rgba(174, 234, 36, 0.25);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.ft-support-submit:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .ft-support-fab,
  .ft-support-panel {
    transition: none;
  }
}
