/* StarBorder — frame variant (ported from React Bits JS+CSS; not a button) */
.star-border {
  position: relative;
  isolation: isolate;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--star-border-radius, 12px);
  background: var(--star-border-surface, transparent);
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.star-border::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--star-border-thickness, 1px) var(--star-border-track, rgba(24, 24, 27, 0.1));
  pointer-events: none;
}

.star-border__light {
  position: absolute;
  top: -48px;
  left: -48px;
  z-index: -1;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  pointer-events: none;
}

/* Only style real star-border *buttons* — never bleed into .btn or preview frames */
button.star-border:not(.btn),
a.star-border:not(.btn):not(.star-border--wl) {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}

.star-border:focus-visible {
  outline: 2px solid var(--star-border-track, rgba(24, 24, 27, 0.12));
  outline-offset: 3px;
}

.star-border:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* White-label reseller preview frame */
.star-border--wl {
  position: absolute;
  left: 44px;
  top: 44px;
  right: -30px;
  bottom: -30px;
  overflow: visible;
  background: transparent;
  color: inherit;
}

/* Trail must sit above the opaque .wl fill or the 1px edge is invisible on light pages */
.star-border--wl .star-border__light {
  z-index: 3;
}

.star-border--wl .wl {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .star-border--wl {
    left: 20px;
    top: 24px;
  }
}
