.support-float-btn,
.support-float-btn *,
.support-modal,
.support-modal * {
  box-sizing: border-box;
}

.footer-support-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--footer-link);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, color .15s ease;
}

.footer-support-link:hover {
  color: var(--footer-link-hover);
  transform: translateY(-1px);
}

.support-float-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1002;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #000;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2, #ff5aa5), var(--accent, #3dd6ff));
  box-shadow: 5px 5px 0 #000, 0 12px 28px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.support-float-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 20px;
  border: 2px solid color-mix(in srgb, var(--accent, #3dd6ff) 50%, transparent);
  opacity: .34;
  animation: supportPulse 2.8s ease-in-out infinite;
}

.support-float-btn:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 7px 7px 0 #000, 0 16px 34px rgba(0, 0, 0, .28);
  filter: saturate(1.08);
}

.support-float-btn:active {
  transform: translateY(2px);
  box-shadow: 3px 3px 0 #000, 0 8px 18px rgba(0, 0, 0, .22);
}

.support-float-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}

.support-float-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes supportPulse {
  0%, 100% {
    transform: scale(.96);
    opacity: .24;
  }
  50% {
    transform: scale(1.08);
    opacity: .5;
  }
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.support-modal.is-open {
  display: flex;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .54);
  backdrop-filter: blur(3px);
}

.support-modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 25px 22px 20px;
  border: 3px solid #000;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--accent, #3dd6ff) 22%, transparent), transparent 38%),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent-2, #ff5aa5) 24%, transparent), transparent 36%),
    var(--paper, #14182a);
  box-shadow: 9px 9px 0 #000, 0 24px 60px rgba(0, 0, 0, .34);
  color: var(--text, #eef2ff);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  animation: supportModalIn .18s ease forwards;
}

body.light-theme .support-modal-card {
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--accent, #1f77ff) 18%, transparent), transparent 38%),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent-2, #ff4aa3) 20%, transparent), transparent 36%),
    #fff7cc;
}

@keyframes supportModalIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.support-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #000;
  border-radius: 13px;
  color: #000;
  background: var(--brand-color, #ffd43b);
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}

.support-modal-close svg {
  width: 19px;
  height: 19px;
}

.support-modal-kicker {
  margin: 0 0 7px;
  color: var(--accent, #3dd6ff);
  font-size: .88rem;
  font-weight: 950;
}

body.light-theme .support-modal-kicker {
  color: color-mix(in srgb, var(--accent, #1f77ff) 86%, #000);
}

.support-modal-card h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(1.45rem, 1.12rem + 1.45vw, 2.05rem);
  line-height: 1.02;
}

.support-modal-card p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted, rgba(238, 242, 255, .78));
  font-weight: 800;
}

.support-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.support-modal-primary,
.support-modal-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
  border-radius: 15px;
  padding: 10px 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.support-modal-primary {
  color: #000;
  background: var(--brand-color, #ffd43b);
  text-decoration: none;
}

.support-modal-secondary {
  color: var(--text, #eef2ff);
  background: color-mix(in srgb, var(--surface, #1a1f33) 82%, transparent);
}

body.light-theme .support-modal-secondary {
  color: #111;
  background: #fff;
}

.support-modal-primary:hover,
.support-modal-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #000;
}

.support-modal-primary:active,
.support-modal-secondary:active,
.support-modal-close:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 #000;
}

body.support-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .support-float-btn {
    left: 14px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .support-float-icon {
    width: 29px;
    height: 29px;
  }

  .support-modal-card {
    padding: 23px 16px 16px;
    border-radius: 18px;
    box-shadow: 6px 6px 0 #000, 0 18px 44px rgba(0, 0, 0, .32);
  }

  .support-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-float-btn,
  .support-float-btn::after,
  .support-modal-card,
  .support-modal-primary,
  .support-modal-secondary,
  .support-modal-close {
    animation: none !important;
    transition: none !important;
  }

  .support-modal-card {
    transform: none;
    opacity: 1;
  }
}
