.share-control {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(139, 183, 255, 0.38);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 8px 24px rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(16px);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease;
}

.share-control svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.share-control:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(184, 210, 255, 0.68);
}

.share-control:active {
  transform: translateY(0) scale(0.97);
}

.share-control:focus-visible {
  outline: 3px solid rgba(139, 183, 255, 0.48);
  outline-offset: 4px;
}

.share-control[data-state="copied"] {
  background: linear-gradient(135deg, #169b62, #0f7c4d);
  border-color: rgba(132, 255, 199, 0.55);
}

.share-control[data-state="error"] {
  background: linear-gradient(135deg, #b54747, #873434);
  border-color: rgba(255, 179, 179, 0.5);
}

@media (max-width: 620px) {
  .share-control {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 50px;
    min-height: 50px;
    padding: 0;
  }

  .share-control-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-control {
    transition: none;
  }
}
