.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  border: 1px solid rgb(255 90 104 / 45%);
  border-radius: 14px;
  background: linear-gradient(180deg, #ff3b48 0%, #d5121f 48%, #7c0a13 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 22%) inset,
    0 -10px 18px rgb(0 0 0 / 35%) inset,
    0 10px 30px rgb(255 34 49 / 28%);
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease, filter 0.35s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 28%) inset,
    0 -10px 18px rgb(0 0 0 / 30%) inset,
    0 16px 44px rgb(255 34 49 / 46%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.btn-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75) brightness(0.6);
  box-shadow: none;
}

.btn-primary.compact {
  padding: 13px 24px;
  font-size: 12px;
}

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 42%) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) .btn-shine {
  animation: shine 0.9s var(--ease-out);
}

@keyframes shine {
  to { transform: translateX(130%); }
}

.btn-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.4s var(--spring);
}

.btn-primary:hover:not(:disabled) .btn-icon {
  transform: translateX(5px);
}

.btn-primary.is-loading .btn-label {
  opacity: 0.55;
}

.btn-primary.is-loading .btn-icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 4%);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--line-red);
  background: rgb(255 34 49 / 10%);
  box-shadow: 0 6px 24px rgb(255 34 49 / 18%);
  transform: translateY(-2px);
}

.btn-ghost.small {
  padding: 9px 16px;
  font-size: 11px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 3%);
  font-size: 12px;
  color: var(--muted);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.chip:hover {
  border-color: var(--line-red);
  transform: translateY(-2px);
}

.chip b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
