.button-primary,
.button-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.button-primary {
  border: 1px solid rgba(82, 82, 82, 0.55);
  background: linear-gradient(90deg, #937137, #c3a191);
  color: white;
  box-shadow: 2px 3px 11px 0px rgba(198, 164, 90, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-60%);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.3s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(198, 164, 90, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.button-primary:hover::before {
  transform: translateX(60%);
  opacity: 1;
}

.button-secondary {
  border: 1px solid rgba(234, 217, 175, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.button-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, 255, 255, 255, 0.04,255, 255, 255, 0.04, 255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button-secondary::after {
  content: "";
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-65%);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.3s ease;
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: #f4e6c342;
  color: #ffffffb2;
  box-shadow: 0 6px 40px rgba(198, 164, 90, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.button-secondary:hover::before {
  opacity: 1;
}

.button-secondary:hover::after {
  transform: translateX(60%);
  opacity: 1;
}

.button-primary:focus-visible,
.button-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(241, 226, 189, 0.9), 0 0 0 4px #000000;
}
