.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.btn:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button.btn {
  cursor: pointer;
}

.btn:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--color-brand) 48%, var(--color-border) 52%);
  box-shadow:
    0 0 0 4px var(--color-brand-soft),
    var(--shadow-sm);
}

button.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.primary {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: linear-gradient(140deg, var(--color-brand), var(--color-brand-alt));
  box-shadow: 0 18px 46px rgba(22, 24, 38, 0.18);
}

.btn.primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 24px 62px rgba(22, 24, 38, 0.2);
}

.btn.danger {
  border-color: transparent;
  color: #fff;
  background: var(--color-danger);
}

.btn.danger:hover {
  background: var(--color-danger-strong);
}

.btn.ghost {
  box-shadow: none;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.55);
}

.btn.icon {
  width: 42px;
  height: 42px;
  padding: 0;
}

.btn.icon svg {
  width: 18px;
  height: 18px;
}

.btn-split {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.72);
}

.btn-split .btn {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.btn-split-main {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.36);
}

.btn-split-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  padding: 0 10px;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.btn-split .btn.primary:hover {
  filter: none;
}

.btn-split:hover .btn.primary {
  filter: brightness(1.05);
}

.star-glyph {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.pill {
  font-size: 12px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--color-surface-soft);
}

.status-off {
  color: #7e241b;
  border-color: rgba(192, 57, 43, 0.28);
  background: rgba(192, 57, 43, 0.1);
}
