.btn {
  box-sizing: border-box;
  font-family: inherit;
  line-height: normal;
  padding: 10px 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  max-height: 70px;
}

.btn-white {
  background: var(--white);
  color: var(--blue-900);
}

.btn-white:hover {
  background: var(--sky-50);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-900);
  color: var(--gray-900);
}

.btn-outline:hover {
  background: var(--white-alpha-10);
}

.btn-blue {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-700);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-600);
}

.btn-red:disabled {
  background-color: var(--red-300);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-outline-red {
    background: var(--white);
    color: var(--red-600);
    border: 2px solid var(--red-600);
}

.btn-outline-red:hover {
    background: var(--red-50);
}

/* Premium subscription actions (subscribe, resubscribe, manage billing).
   Renamed from .btn-purple when Premium moved to the blue brand ramp. */
.btn-premium {
    background: var(--premium-500);
    color: var(--white);
}

.btn-premium:hover {
    background: var(--premium-600);
}

.btn-outline-premium {
    background: var(--white);
    color: var(--premium-600);
    border: 2px solid var(--premium-600);
}

.btn-outline-premium:hover {
    background: var(--premium-50);
}

.btn-black {
  background: transparent;
  border: 2px solid var(--gray-900);
  color: var(--gray-900);
  padding: 6px 0;
}

.btn-black:hover {
  background: var(--shadow-sm);
}

.back-button {
  display: inline-flex;
  align-items: center;
  margin: 20px 0;
  padding: 8px 16px;
  color: var(--gray-900);
  background-color: var(--whiteBackground);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: var(--gray-bg-light);
  color: var(--blue-900);
  border-color: var(--gray-input-border);
}

.back-button svg {
  margin-right: 6px;
}

.btn-gray {
  background-color: var(--gray-bg-light);
  color: var(--black);
  border: 1px solid var(--gray-500);
}

.btn-gray:hover {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.btn-small {
  width: auto;
  min-width: 100px;
  padding: 5px 12px;
  font-size: var(--text-2xs);
}
